@aurodesignsystem/auro-formkit 5.9.0 → 5.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -4
- package/README.md +4 -4
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +416 -492
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +369 -302
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +42 -42
- package/components/combobox/dist/index.js +204 -210
- package/components/combobox/dist/registered.js +204 -210
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +119 -171
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +117 -152
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +117 -152
- package/components/counter/dist/registered.js +117 -152
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +678 -2769
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +678 -2769
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +505 -2596
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +505 -2596
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +80 -95
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +70 -85
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +70 -85
- package/components/dropdown/dist/registered.js +70 -85
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/demo/working.html +1 -1
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +102 -115
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +87 -99
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +68 -69
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +87 -82
- package/components/input/dist/registered.js +87 -82
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -577
- package/components/menu/demo/api.min.js +199 -97
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +164 -101
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.context.d.ts +5 -0
- package/components/menu/dist/auro-menu.d.ts +75 -37
- package/components/menu/dist/auro-menuoption.d.ts +38 -13
- package/components/menu/dist/index.js +164 -50
- package/components/menu/dist/registered.js +164 -50
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +357 -262
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +356 -230
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +192 -180
- package/components/select/dist/registered.js +192 -180
- package/package.json +9 -4
|
@@ -3,7 +3,7 @@ import { classMap } from 'lit/directives/class-map.js';
|
|
|
3
3
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
4
|
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
5
5
|
|
|
6
|
-
var styleCss$2 = css`: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}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block;--cbxLocation: var(--ds-size-50, 0.25rem)}fieldset{all:unset}@media screen and (min-width: 576px){.displayFlex slot{display:flex}}.cbxContainer{position:relative;display:flex;flex-direction:row;gap:var(--ds-size-100, 0.5rem);padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-100, 0.5rem)}.cbxContainer:hover{cursor:pointer}.label{display:block;padding-top:var(--ds-size-50, 0.25rem)}.label:hover{cursor:pointer}:host([disabled]) .cbxContainer{pointer-events:none;cursor:default}.inputContainer{position:relative}.inputContainer:after{-webkit-tap-highlight-color:transparent;display:block;content:"";align-items:center;justify-content:center;margin-top:var(--cbxLocation);width:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);outline-style:solid;outline-width:1px;z-index:0}.svg--cbx{position:absolute;left:0;top:3px;bottom:3px;z-index:1;pointer-events:none}`;
|
|
6
|
+
var styleCss$2 = css`: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}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block;--cbxLocation: var(--ds-size-50, 0.25rem)}:host(:focus-visible){outline:none !important}fieldset{all:unset}@media screen and (min-width: 576px){.displayFlex slot{display:flex}}.cbxContainer{position:relative;display:flex;flex-direction:row;gap:var(--ds-size-100, 0.5rem);padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-100, 0.5rem)}.cbxContainer:hover{cursor:pointer}.label{display:block;padding-top:var(--ds-size-50, 0.25rem)}.label:hover{cursor:pointer}:host([disabled]) .cbxContainer{pointer-events:none;cursor:default}.inputContainer{position:relative}.inputContainer:after{-webkit-tap-highlight-color:transparent;display:block;content:"";align-items:center;justify-content:center;margin-top:var(--cbxLocation);width:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);outline-style:solid;outline-width:1px;z-index:0}.svg--cbx{position:absolute;left:0;top:3px;bottom:3px;z-index:1;pointer-events:none}`;
|
|
7
7
|
|
|
8
8
|
var colorCss$2 = css`:host(:not([checked])) .cbxContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-hover, #f2f2f2)}:host .label{color:var(--ds-auro-checkbox-label-color)}:host .inputContainer:after{background-color:var(--ds-auro-checkbox-container-color);border-color:var(--ds-auro-checkbox-border-color);outline-color:var(--ds-auro-checkbox-outline-color)}:host .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-hover, #f2f2f2)}:host .svg--cbx{color:var(--ds-auro-checkbox-checkmark-color)}:host(:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-istrue, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue, #01426a)}:host([checked]) .cbxContainer:hover,:host([checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a)}:host([checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([checked]:focus-within) .cbxContainer:hover,:host([checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a)}:host([disabled]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-disabled, #dddddd);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([disabled]) .cbxContainer:hover,:host([disabled]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-disabled, #dddddd);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse, #ffffff)}:host([disabled][checked]){--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-disabled, #dddddd)}:host([disabled][checked]) .cbxContainer:hover,:host([disabled][checked]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-disabled, #dddddd)}:host([error]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([error]:not([checked]):focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([error][checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error, #e31f26);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([error][checked]) .cbxContainer:hover,:host([error][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-hover, #b1161c);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-hover, #b1161c)}:host([error][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([error][checked]:focus-within) .cbxContainer:hover,:host([error][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-hover, #b1161c)}:host([onDark]),:host([appearance=inverse]){--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-checkbox-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-checkbox-container-color: transparent}:host([onDark]) .cbxContainer:hover,:host([onDark]) .inputContainer:hover,:host([appearance=inverse]) .cbxContainer:hover,:host([appearance=inverse]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-inverse-hover, rgba(255, 255, 255, 0.2))}:host([onDark]:not([checked])) .cbxContainer:hover,:host([onDark]:not([checked])) .inputContainer:hover,:host([appearance=inverse]:not([checked])) .cbxContainer:hover,:host([appearance=inverse]:not([checked])) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-inverse-hover, rgba(255, 255, 255, 0.2))}:host([onDark]:focus-within),:host([appearance=inverse]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][checked]),:host([appearance=inverse][checked]){--ds-auro-checkbox-checkmark-color: var(--ds-advanced-color-boolean-indicator-inverse, #00274a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse, #ffffff)}:host([onDark][checked]) .cbxContainer:hover,:host([onDark][checked]) .inputContainer:hover,:host([appearance=inverse][checked]) .cbxContainer:hover,:host([appearance=inverse][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: transparent;--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse-hover, rgba(255, 255, 255, 0.7))}:host([onDark][checked]:focus-within),:host([appearance=inverse][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][checked]:focus-within) .cbxContainer:hover,:host([onDark][checked]:focus-within) .inputContainer:hover,:host([appearance=inverse][checked]:focus-within) .cbxContainer:hover,:host([appearance=inverse][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse-hover, rgba(255, 255, 255, 0.7))}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][disabled]) .cbxContainer:hover,:host([onDark][disabled]) .inputContainer:hover,:host([appearance=inverse][disabled]) .cbxContainer:hover,:host([appearance=inverse][disabled]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894);--ds-auro-checkbox-container-color: transparent}:host([onDark][disabled][checked]),:host([appearance=inverse][disabled][checked]){--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][disabled][checked]) .cbxContainer:hover,:host([onDark][disabled][checked]) .inputContainer:hover,:host([appearance=inverse][disabled][checked]) .cbxContainer:hover,:host([appearance=inverse][disabled][checked]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][error]:not([checked]):focus-within),:host([appearance=inverse][error]:not([checked]):focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][error][checked]),:host([appearance=inverse][error][checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][error][checked]) .cbxContainer:hover,:host([onDark][error][checked]) .inputContainer:hover,:host([appearance=inverse][error][checked]) .cbxContainer:hover,:host([appearance=inverse][error][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65)}:host([onDark][error][checked]:focus-within),:host([appearance=inverse][error][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][error][checked]:focus-within) .cbxContainer:hover,:host([onDark][error][checked]:focus-within) .inputContainer:hover,:host([appearance=inverse][error][checked]:focus-within) .cbxContainer:hover,:host([appearance=inverse][error][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65)}`;
|
|
9
9
|
|
|
@@ -94,23 +94,20 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
97
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
99
98
|
// See LICENSE in the project root for license information.
|
|
100
99
|
|
|
101
100
|
|
|
102
101
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
106
|
-
* @attr id
|
|
102
|
+
* The `auro-checkbox` element is for the purpose of allowing users to select one or more options of a limited number of choices.
|
|
103
|
+
* @customElement auro-checkbox
|
|
107
104
|
*
|
|
108
105
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
109
106
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
110
107
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
111
108
|
*
|
|
112
|
-
* @
|
|
113
|
-
* @
|
|
109
|
+
* @fires {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
110
|
+
* @fires {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
114
111
|
*/
|
|
115
112
|
|
|
116
113
|
// build the component class
|
|
@@ -118,26 +115,24 @@ class AuroCheckbox extends LitElement {
|
|
|
118
115
|
constructor() {
|
|
119
116
|
super();
|
|
120
117
|
|
|
118
|
+
this._initializeDefaults();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
_initializeDefaults() {
|
|
121
122
|
this.apperance = 'default';
|
|
122
123
|
this.checked = false;
|
|
123
124
|
this.disabled = false;
|
|
124
125
|
this.error = false;
|
|
125
126
|
this.onDark = false;
|
|
126
127
|
this.touched = false;
|
|
128
|
+
this.tabIndex = 0;
|
|
129
|
+
this.ariaChecked = 'false';
|
|
130
|
+
this.role = 'checkbox';
|
|
127
131
|
|
|
128
132
|
/**
|
|
129
133
|
* @private
|
|
130
134
|
*/
|
|
131
135
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @private
|
|
135
|
-
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
136
|
-
*/
|
|
137
|
-
this.constructor.shadowRootOptions = {
|
|
138
|
-
...LitElement.shadowRootOptions,
|
|
139
|
-
delegatesFocus: true,
|
|
140
|
-
};
|
|
141
136
|
}
|
|
142
137
|
|
|
143
138
|
static get styles() {
|
|
@@ -155,7 +150,7 @@ class AuroCheckbox extends LitElement {
|
|
|
155
150
|
|
|
156
151
|
/**
|
|
157
152
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
158
|
-
* @
|
|
153
|
+
* @type {'default' | 'inverse'}
|
|
159
154
|
* @default 'default'
|
|
160
155
|
*/
|
|
161
156
|
appearance: {
|
|
@@ -187,47 +182,94 @@ class AuroCheckbox extends LitElement {
|
|
|
187
182
|
reflect: true
|
|
188
183
|
},
|
|
189
184
|
|
|
185
|
+
/**
|
|
186
|
+
* The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
187
|
+
*/
|
|
188
|
+
id: {
|
|
189
|
+
type: String
|
|
190
|
+
},
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The id for input node.
|
|
194
|
+
* @private
|
|
195
|
+
*/
|
|
196
|
+
inputId: {
|
|
197
|
+
type: String,
|
|
198
|
+
reflect: false,
|
|
199
|
+
attribute: false
|
|
200
|
+
},
|
|
201
|
+
|
|
190
202
|
/**
|
|
191
203
|
* Accepts any string and is used to identify related checkboxes when submitting form data.
|
|
192
204
|
*/
|
|
193
205
|
name: { type: String },
|
|
194
206
|
|
|
195
207
|
/**
|
|
196
|
-
* DEPRECATED - use `appearance` instead.
|
|
208
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
197
209
|
*/
|
|
198
210
|
onDark: {
|
|
199
211
|
type: Boolean,
|
|
200
212
|
reflect: true
|
|
201
213
|
},
|
|
202
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Indicates whether the checkbox has been interacted with.
|
|
217
|
+
* @private
|
|
218
|
+
*/
|
|
219
|
+
touched: {
|
|
220
|
+
type: Boolean,
|
|
221
|
+
reflect: true,
|
|
222
|
+
attribute: false
|
|
223
|
+
},
|
|
224
|
+
|
|
203
225
|
/**
|
|
204
226
|
* Sets the element's input value. Must be unique within an auro-checkbox-group element.
|
|
205
227
|
*/
|
|
206
228
|
value: {
|
|
207
229
|
type: String,
|
|
208
|
-
reflect:
|
|
230
|
+
reflect: false
|
|
209
231
|
},
|
|
210
232
|
|
|
211
233
|
/**
|
|
212
|
-
*
|
|
213
|
-
* @type {boolean}
|
|
234
|
+
* The tabindex attribute for the checkbox.
|
|
214
235
|
* @private
|
|
215
236
|
*/
|
|
216
|
-
|
|
217
|
-
type:
|
|
237
|
+
tabIndex: {
|
|
238
|
+
type: Number,
|
|
218
239
|
reflect: true,
|
|
219
|
-
attribute:
|
|
240
|
+
attribute: 'tabindex'
|
|
220
241
|
},
|
|
221
242
|
|
|
222
243
|
/**
|
|
223
|
-
* The
|
|
244
|
+
* The aria-checked attribute for the checkbox.
|
|
224
245
|
* @private
|
|
225
246
|
*/
|
|
226
|
-
|
|
247
|
+
ariaChecked: {
|
|
227
248
|
type: String,
|
|
228
|
-
reflect:
|
|
229
|
-
attribute:
|
|
230
|
-
}
|
|
249
|
+
reflect: true,
|
|
250
|
+
attribute: 'aria-checked'
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The aria-disabled attribute for the checkbox.
|
|
255
|
+
* @private
|
|
256
|
+
*/
|
|
257
|
+
ariaDisabled: {
|
|
258
|
+
type: String,
|
|
259
|
+
reflect: true,
|
|
260
|
+
attribute: 'aria-disabled'
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* The ARIA role for the element. Must remain 'checkbox' for screen readers
|
|
265
|
+
* to correctly identify this as a checkbox control.
|
|
266
|
+
* @private
|
|
267
|
+
*/
|
|
268
|
+
role: {
|
|
269
|
+
type: String,
|
|
270
|
+
reflect: true
|
|
271
|
+
},
|
|
272
|
+
|
|
231
273
|
};
|
|
232
274
|
}
|
|
233
275
|
|
|
@@ -293,7 +335,7 @@ class AuroCheckbox extends LitElement {
|
|
|
293
335
|
/**
|
|
294
336
|
* Function to generate checkmark svg.
|
|
295
337
|
* @private
|
|
296
|
-
* @returns {
|
|
338
|
+
* @returns {HTMLElement}
|
|
297
339
|
*/
|
|
298
340
|
generateIconHtml() {
|
|
299
341
|
this.dom = new DOMParser().parseFromString(checkLg.svg, 'text/html');
|
|
@@ -314,6 +356,22 @@ class AuroCheckbox extends LitElement {
|
|
|
314
356
|
this.touched = false;
|
|
315
357
|
}
|
|
316
358
|
|
|
359
|
+
/**
|
|
360
|
+
* Updates the aria-label based on slot content.
|
|
361
|
+
* @private
|
|
362
|
+
* @returns {void}
|
|
363
|
+
*/
|
|
364
|
+
updateAriaLabel() {
|
|
365
|
+
const slot = this.shadowRoot.querySelector('slot');
|
|
366
|
+
const text = slot.assignedNodes().
|
|
367
|
+
map((node) => node.textContent).
|
|
368
|
+
join('').
|
|
369
|
+
trim();
|
|
370
|
+
if (text) {
|
|
371
|
+
this.setAttribute('aria-label', text);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
317
375
|
firstUpdated() {
|
|
318
376
|
// Add the tag name as an attribute if it is different than the component name
|
|
319
377
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-checkbox');
|
|
@@ -358,6 +416,24 @@ class AuroCheckbox extends LitElement {
|
|
|
358
416
|
this.removeEventListener('keydown', this.handleKeyDown);
|
|
359
417
|
}
|
|
360
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Updates ARIA attributes when properties change.
|
|
421
|
+
* @private
|
|
422
|
+
* @param {Map} changedProperties - Map of changed properties.
|
|
423
|
+
* @returns {void}
|
|
424
|
+
*/
|
|
425
|
+
updated(changedProperties) {
|
|
426
|
+
super.updated(changedProperties);
|
|
427
|
+
|
|
428
|
+
if (changedProperties.has('checked')) {
|
|
429
|
+
this.ariaChecked = this.checked ? 'true' : 'false';
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if (changedProperties.has('disabled')) {
|
|
433
|
+
this.ariaDisabled = this.disabled ? 'true' : undefined;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
361
437
|
/**
|
|
362
438
|
* Handles keydown event to toggle the checkbox with Space key.
|
|
363
439
|
* @private
|
|
@@ -387,7 +463,7 @@ class AuroCheckbox extends LitElement {
|
|
|
387
463
|
<div class="cbxContainer body-default" part="checkbox">
|
|
388
464
|
<div class="inputContainer">
|
|
389
465
|
<input
|
|
390
|
-
class="
|
|
466
|
+
class="util_displayHidden cbx--input"
|
|
391
467
|
part="checkbox-input"
|
|
392
468
|
@change="${this.handleChange}"
|
|
393
469
|
@input="${this.handleInput}"
|
|
@@ -397,13 +473,15 @@ class AuroCheckbox extends LitElement {
|
|
|
397
473
|
name="${ifDefined(this.name)}"
|
|
398
474
|
type="checkbox"
|
|
399
475
|
.value="${this.value}"
|
|
476
|
+
aria-hidden="true"
|
|
477
|
+
tabindex="-1"
|
|
400
478
|
/>
|
|
401
479
|
${this.checked ? this.generateIconHtml() : undefined}
|
|
402
480
|
</div>
|
|
403
481
|
|
|
404
|
-
<
|
|
405
|
-
<slot></slot>
|
|
406
|
-
</
|
|
482
|
+
<span class="${classMap(labelClasses)}" part="checkbox-label">
|
|
483
|
+
<slot @slotchange="${this.updateAriaLabel}"></slot>
|
|
484
|
+
</span>
|
|
407
485
|
</div>
|
|
408
486
|
`;
|
|
409
487
|
}
|
|
@@ -1552,14 +1630,15 @@ class AuroHelpText extends LitElement {
|
|
|
1552
1630
|
}
|
|
1553
1631
|
}
|
|
1554
1632
|
|
|
1555
|
-
var formkitVersion = '
|
|
1633
|
+
var formkitVersion = '202601271813';
|
|
1556
1634
|
|
|
1557
|
-
// Copyright (c)
|
|
1635
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1558
1636
|
// See LICENSE in the project root for license information.
|
|
1559
1637
|
|
|
1560
1638
|
|
|
1561
1639
|
/**
|
|
1562
|
-
* The auro-checkbox-group element is a wrapper for auro-checkbox
|
|
1640
|
+
* The `auro-checkbox-group` element is a wrapper for `auro-checkbox` elements.
|
|
1641
|
+
* @customElement auro-checkbox-group
|
|
1563
1642
|
*
|
|
1564
1643
|
* @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
|
|
1565
1644
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -1571,6 +1650,10 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1571
1650
|
constructor() {
|
|
1572
1651
|
super();
|
|
1573
1652
|
|
|
1653
|
+
this._initializeDefaults();
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
_initializeDefaults() {
|
|
1574
1657
|
this.appearance = 'default';
|
|
1575
1658
|
this.validity = undefined;
|
|
1576
1659
|
this.disabled = undefined;
|
|
@@ -1636,7 +1719,7 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1636
1719
|
|
|
1637
1720
|
/**
|
|
1638
1721
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
1639
|
-
* @
|
|
1722
|
+
* @type {'default' | 'inverse'}
|
|
1640
1723
|
* @default 'default'
|
|
1641
1724
|
*/
|
|
1642
1725
|
appearance: {
|
|
@@ -1677,7 +1760,7 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1677
1760
|
},
|
|
1678
1761
|
|
|
1679
1762
|
/**
|
|
1680
|
-
* DEPRECATED - use `appearance` instead.
|
|
1763
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
1681
1764
|
*/
|
|
1682
1765
|
onDark: {
|
|
1683
1766
|
type: Boolean,
|
|
@@ -1725,7 +1808,7 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1725
1808
|
|
|
1726
1809
|
/**
|
|
1727
1810
|
* This will register this element with the browser.
|
|
1728
|
-
* @param {string} [name="auro-checkbox-group"] - The name of element that you want to register
|
|
1811
|
+
* @param {string} [name="auro-checkbox-group"] - The name of the element that you want to register.
|
|
1729
1812
|
*
|
|
1730
1813
|
* @example
|
|
1731
1814
|
* AuroCheckboxGroup.register("custom-checkbox-group") // this will register this element to <custom-checkbox-group/>
|
|
@@ -18,6 +18,7 @@ The following sections are editable by making changes to the following files:
|
|
|
18
18
|
-->
|
|
19
19
|
|
|
20
20
|
# Combobox
|
|
21
|
+
|
|
21
22
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
22
23
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
23
24
|
`<auro-combobox>` is the combination of [dropdown](http://auro.alaskaair.com/components/auro/dropdown), [input](http://auro.alaskaair.com/components/auro/input), and [menu](http://auro.alaskaair.com/components/auro/menu) and allows users to filter search results from a predefined list as they type. When the user starts typing in the text input, a dropdown of a menu shows up to display options that match the user’s search.
|
|
@@ -29,7 +30,23 @@ By default, `auro-combobox` behaves as a suggestion list. This means any value m
|
|
|
29
30
|
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
30
31
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
31
32
|
|
|
33
|
+
## Combobox Use Cases
|
|
34
|
+
|
|
35
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
36
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
37
|
+
The `<auro-combobox>` element should be used in situations where users may:
|
|
38
|
+
|
|
39
|
+
* Search
|
|
40
|
+
* Airports: user looks for a specific airport by searching for the city name or airport code
|
|
41
|
+
* Site wide: user searches for a topic site wide and combobox makes suggestions on searchable results
|
|
42
|
+
* Filter
|
|
43
|
+
* Options: user chooses filters for their search by using combobox
|
|
44
|
+
* Select
|
|
45
|
+
* Quantity: user types a quantity to select an option within a range (for example, the user may be limited to 2-34)
|
|
46
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
47
|
+
|
|
32
48
|
## Getting Started
|
|
49
|
+
|
|
33
50
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
|
|
34
51
|
<!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
|
|
35
52
|
|
|
@@ -42,30 +59,7 @@ $ npm i @aurodesignsystem/auro-formkit
|
|
|
42
59
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
43
60
|
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
44
61
|
|
|
45
|
-
###
|
|
46
|
-
|
|
47
|
-
#### Automatic Registration
|
|
48
|
-
|
|
49
|
-
For automatic registration, simply import the component:
|
|
50
|
-
|
|
51
|
-
```javascript
|
|
52
|
-
// Registers <auro-combobox> automatically
|
|
53
|
-
import '@aurodesignsystem/auro-formkit/auro-combobox';
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
#### Custom Registration
|
|
57
|
-
|
|
58
|
-
To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroCombobox.register('custom-combobox')` method on the component class and pass in a unique name.
|
|
59
|
-
|
|
60
|
-
```javascript
|
|
61
|
-
// Import the class only
|
|
62
|
-
import { AuroCombobox } from '@aurodesignsystem/auro-formkit/auro-combobox/class';
|
|
63
|
-
|
|
64
|
-
// Register with a custom name if desired
|
|
65
|
-
AuroCombobox.register('custom-combobox');
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
#### TypeScript Module Resolution
|
|
62
|
+
### TypeScript Module Resolution
|
|
69
63
|
|
|
70
64
|
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
71
65
|
|
|
@@ -78,38 +72,10 @@ When using TypeScript set `moduleResolution` to `bundler`, add the following to
|
|
|
78
72
|
```
|
|
79
73
|
|
|
80
74
|
This configuration enables proper module resolution for the component's TypeScript files.
|
|
81
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
|
-
**Reference component in HTML**
|
|
83
|
-
|
|
84
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
85
|
-
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
86
|
-
|
|
87
|
-
```html
|
|
88
|
-
<auro-combobox>
|
|
89
|
-
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
90
|
-
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
91
|
-
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
92
|
-
<span slot="label">Name</span>
|
|
93
|
-
<auro-menu>
|
|
94
|
-
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
95
|
-
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
96
|
-
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
97
|
-
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
98
|
-
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
99
|
-
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
100
|
-
</auro-menu>
|
|
101
|
-
</auro-combobox>
|
|
102
|
-
```
|
|
103
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
104
|
-
|
|
105
|
-
### Design Token CSS Custom Property dependency
|
|
106
|
-
|
|
107
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
|
|
108
|
-
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
109
|
-
|
|
110
75
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
111
76
|
|
|
112
77
|
## Install from CDN
|
|
78
|
+
|
|
113
79
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
114
80
|
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
115
81
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
@@ -119,27 +85,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
119
85
|
```
|
|
120
86
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
121
87
|
|
|
122
|
-
##
|
|
123
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
|
|
124
|
-
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
125
|
-
|
|
126
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
127
|
-
|
|
128
|
-
## auro-combobox use cases
|
|
129
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
130
|
-
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
131
|
-
The `<auro-combobox>` element should be used in situations where users may:
|
|
132
|
-
|
|
133
|
-
* Search
|
|
134
|
-
* Airports: user looks for a specific airport by searching for the city name or airport code
|
|
135
|
-
* Site wide: user searches for a topic site wide and combobox makes suggestions on searchable results
|
|
136
|
-
* Filter
|
|
137
|
-
* Options: user chooses filters for their search by using combobox
|
|
138
|
-
* Select
|
|
139
|
-
* Quantity: user types a quantity to select an option within a range (for example, the user may be limited to 2-34)
|
|
140
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
141
|
-
|
|
142
|
-
## Formkit development
|
|
88
|
+
## Formkit Development
|
|
143
89
|
|
|
144
90
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
145
91
|
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
@@ -153,4 +99,60 @@ To only develop a single component, use the `--filter` flag:
|
|
|
153
99
|
```shell
|
|
154
100
|
npx turbo dev --filter=@aurodesignsystem/auro-input
|
|
155
101
|
```
|
|
102
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
104
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
105
|
+
|
|
106
|
+
## Custom Component Registration for Version Management
|
|
107
|
+
|
|
108
|
+
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
109
|
+
|
|
110
|
+
When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
|
|
111
|
+
|
|
112
|
+
However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
|
|
113
|
+
|
|
114
|
+
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
115
|
+
|
|
116
|
+
```js
|
|
117
|
+
// Import the class only
|
|
118
|
+
import { AuroCombobox } from '@aurodesignsystem/auro-formkit/auro-combobox/class';
|
|
119
|
+
|
|
120
|
+
// Register with a custom name if desired
|
|
121
|
+
AuroCombobox.register('custom-combobox');
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
This will create a new custom element `<custom-combobox>` that behaves exactly like `<auro-combobox>`, allowing both to coexist on the same page without interfering with each other.
|
|
125
|
+
|
|
126
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
127
|
+
<custom-combobox>
|
|
128
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
129
|
+
<span slot="label">Name</span>
|
|
130
|
+
<auro-menu>
|
|
131
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
132
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
133
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
134
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
135
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
136
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
137
|
+
</auro-menu>
|
|
138
|
+
</custom-combobox>
|
|
139
|
+
</div>
|
|
140
|
+
<auro-accordion alignRight>
|
|
141
|
+
<span slot="trigger">See code</span>
|
|
142
|
+
|
|
143
|
+
```html
|
|
144
|
+
<custom-combobox>
|
|
145
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
146
|
+
<span slot="label">Name</span>
|
|
147
|
+
<auro-menu>
|
|
148
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
149
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
150
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
151
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
152
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
153
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
154
|
+
</auro-menu>
|
|
155
|
+
</custom-combobox>
|
|
156
|
+
```
|
|
157
|
+
</auro-accordion>
|
|
156
158
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
53
53
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
54
54
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
55
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
55
56
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm" type="module"></script>
|
|
56
57
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/+esm" type="module"></script>
|
|
57
58
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
2
|
|
|
3
|
-
import { dynamicMenuExample } from '../apiExamples/dynamicMenu';
|
|
4
|
-
import { setupExternalSelectionExample } from '../apiExamples/externalSelection.js';
|
|
5
|
-
import { valueExample } from '../apiExamples/value';
|
|
6
3
|
import { focusExample } from '../apiExamples/focus';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
4
|
+
import { resetStateExample } from '../apiExamples/reset-state';
|
|
5
|
+
// import { setupExternalSelectionExample } from '../apiExamples/external-selection';
|
|
6
|
+
import { valueExample } from '../apiExamples/value';
|
|
7
|
+
import { inDialogExample } from '../apiExamples/in-dialog';
|
|
8
|
+
import { persistentExample } from '../apiExamples/persistent';
|
|
9
|
+
import { swapValueExample } from '../apiExamples/swap-value';
|
|
11
10
|
|
|
12
11
|
import { AuroCombobox } from '../src/auro-combobox.js';
|
|
13
12
|
import '../../menu/src/registered.js';
|
|
@@ -19,13 +18,13 @@ export function initExamples(initCount) {
|
|
|
19
18
|
|
|
20
19
|
try {
|
|
21
20
|
// javascript example function calls to be added here upon creation to test examples
|
|
22
|
-
dynamicMenuExample();
|
|
23
|
-
valueExample();
|
|
24
21
|
focusExample();
|
|
25
|
-
inDialogExample();
|
|
26
22
|
resetStateExample();
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
// setupExternalSelectionExample();
|
|
24
|
+
valueExample();
|
|
25
|
+
inDialogExample();
|
|
26
|
+
persistentExample();
|
|
27
|
+
swapValueExample();
|
|
29
28
|
} catch (err) {
|
|
30
29
|
if (initCount <= 20) {
|
|
31
30
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|