@aurodesignsystem-dev/auro-formkit 0.0.0-pr834.2 → 0.0.0-pr837.0
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/components/bibtemplate/dist/index.js +3 -2
- package/components/bibtemplate/dist/registered.js +3 -2
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.md +6 -0
- package/components/combobox/demo/api.min.js +27 -26
- package/components/combobox/demo/index.md +12 -0
- package/components/combobox/demo/index.min.js +27 -26
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +2 -0
- package/components/combobox/dist/index.js +26 -25
- package/components/combobox/dist/registered.js +26 -25
- package/components/counter/demo/api.md +9 -0
- package/components/counter/demo/api.min.js +6 -13
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +6 -13
- package/components/counter/dist/auro-counter-group.d.ts +1 -0
- package/components/counter/dist/index.js +6 -13
- package/components/counter/dist/registered.js +6 -13
- package/components/datepicker/README.md +1 -0
- package/components/datepicker/demo/api.md +11 -0
- package/components/datepicker/demo/api.min.js +19 -17
- package/components/datepicker/demo/index.md +12 -0
- package/components/datepicker/demo/index.min.js +19 -17
- package/components/datepicker/demo/readme.md +1 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +1 -0
- package/components/datepicker/dist/index.js +19 -17
- package/components/datepicker/dist/registered.js +19 -17
- package/components/dropdown/demo/api.md +7 -6
- package/components/dropdown/demo/api.min.js +1 -11
- package/components/dropdown/demo/index.min.js +1 -11
- package/components/dropdown/dist/index.js +1 -11
- package/components/dropdown/dist/registered.js +1 -11
- package/components/input/README.md +1 -0
- package/components/input/demo/api.md +14 -6
- package/components/input/demo/api.min.js +12 -4
- package/components/input/demo/index.md +7 -0
- package/components/input/demo/index.min.js +12 -4
- package/components/input/demo/readme.md +1 -0
- package/components/input/dist/base-input.d.ts +3 -1
- package/components/input/dist/index.js +12 -4
- package/components/input/dist/registered.js +12 -4
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +1 -0
- package/components/select/demo/api.md +9 -3
- package/components/select/demo/api.min.js +13 -14
- package/components/select/demo/index.md +8 -0
- package/components/select/demo/index.min.js +13 -14
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +5 -0
- package/components/select/dist/index.js +12 -13
- package/components/select/dist/registered.js +12 -13
- package/package.json +2 -2
|
@@ -1913,8 +1913,9 @@ class AuroBibtemplate extends LitElement {
|
|
|
1913
1913
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
1914
1914
|
<slot name="header"></slot>
|
|
1915
1915
|
</${this.headerTag}>
|
|
1916
|
-
<${this.buttonTag} id="closeButton"
|
|
1917
|
-
|
|
1916
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1917
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
1918
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
1918
1919
|
</${this.buttonTag}>
|
|
1919
1920
|
</div>
|
|
1920
1921
|
<span class="subheader">
|
|
@@ -1913,8 +1913,9 @@ class AuroBibtemplate extends LitElement {
|
|
|
1913
1913
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
1914
1914
|
<slot name="header"></slot>
|
|
1915
1915
|
</${this.headerTag}>
|
|
1916
|
-
<${this.buttonTag} id="closeButton"
|
|
1917
|
-
|
|
1916
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1917
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
1918
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
1918
1919
|
</${this.buttonTag}>
|
|
1919
1920
|
</div>
|
|
1920
1921
|
<span class="subheader">
|
|
@@ -84,6 +84,8 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
86
|
<auro-combobox>
|
|
87
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
88
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
87
89
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
88
90
|
<span slot="label">Name</span>
|
|
89
91
|
<auro-menu>
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
| Name | Description |
|
|
60
60
|
|---------------------------|--------------------------------------------------|
|
|
61
61
|
| | Default slot for the menu content. |
|
|
62
|
+
| `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
|
|
63
|
+
| `ariaLabel.input.clear` | Sets aria-label on clear button |
|
|
62
64
|
| `bib.fullscreen.headline` | Defines the headline to display above menu-options |
|
|
63
65
|
| [displayValue](#displayValue) | Allows custom HTML content to display the selected value when the combobox is not focused. Only works with `snowflake` and `emphasized` layouts. |
|
|
64
66
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
@@ -74,6 +76,8 @@
|
|
|
74
76
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
75
77
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
76
78
|
<auro-combobox>
|
|
79
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
80
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
77
81
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
78
82
|
<span slot="label">Name</span>
|
|
79
83
|
<auro-menu>
|
|
@@ -111,6 +115,8 @@
|
|
|
111
115
|
|
|
112
116
|
```html
|
|
113
117
|
<auro-combobox>
|
|
118
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
119
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
114
120
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
115
121
|
<span slot="label">Name</span>
|
|
116
122
|
<auro-menu>
|
|
@@ -3023,12 +3023,6 @@ class AuroFloatingUI {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
3025
|
setupHideHandlers() {
|
|
3026
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
3027
|
-
event.preventDefault();
|
|
3028
|
-
event.stopPropagation();
|
|
3029
|
-
};
|
|
3030
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3031
|
-
|
|
3032
3026
|
// Define handlers & store references
|
|
3033
3027
|
this.focusHandler = () => this.handleFocusLoss();
|
|
3034
3028
|
|
|
@@ -3078,11 +3072,6 @@ class AuroFloatingUI {
|
|
|
3078
3072
|
cleanupHideHandlers() {
|
|
3079
3073
|
// Remove event listeners if they exist
|
|
3080
3074
|
|
|
3081
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
3082
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3083
|
-
delete this.preventFocusLoseOnBibClick;
|
|
3084
|
-
}
|
|
3085
|
-
|
|
3086
3075
|
if (this.focusHandler) {
|
|
3087
3076
|
document.removeEventListener('focusin', this.focusHandler);
|
|
3088
3077
|
this.focusHandler = null;
|
|
@@ -4582,6 +4571,7 @@ let AuroElement$4 = class AuroElement extends i$2 {
|
|
|
4582
4571
|
* @slot trigger - Defines the content of the trigger.
|
|
4583
4572
|
* @csspart trigger - The trigger content container.
|
|
4584
4573
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
4574
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
4585
4575
|
* @csspart helpText - The helpText content container.
|
|
4586
4576
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4587
4577
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -10431,6 +10421,9 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10431
10421
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10432
10422
|
* @attr id
|
|
10433
10423
|
*
|
|
10424
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
10425
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
10426
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
10434
10427
|
* @slot helpText - Sets the help text displayed below the input.
|
|
10435
10428
|
* @slot label - Sets the label text for the input.
|
|
10436
10429
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -10858,8 +10851,7 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10858
10851
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
10859
10852
|
*/
|
|
10860
10853
|
value: {
|
|
10861
|
-
type: String
|
|
10862
|
-
reflect: true
|
|
10854
|
+
type: String
|
|
10863
10855
|
},
|
|
10864
10856
|
|
|
10865
10857
|
/**
|
|
@@ -13571,12 +13563,13 @@ class AuroInput extends BaseInput {
|
|
|
13571
13563
|
<${this.buttonTag}
|
|
13572
13564
|
@click="${this.handleClickClear}"
|
|
13573
13565
|
?onDark="${this.onDark}"
|
|
13574
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
13575
13566
|
class="notificationBtn clearBtn"
|
|
13576
13567
|
shape="circle"
|
|
13577
13568
|
size="sm"
|
|
13578
13569
|
variant="ghost">
|
|
13570
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
13579
13571
|
<${this.iconTag}
|
|
13572
|
+
aria-hidden="true"
|
|
13580
13573
|
?customColor="${this.onDark}"
|
|
13581
13574
|
category="interface"
|
|
13582
13575
|
name="x-lg"
|
|
@@ -13599,18 +13592,23 @@ class AuroInput extends BaseInput {
|
|
|
13599
13592
|
@click="${this.handleClickShowPassword}"
|
|
13600
13593
|
?onDark="${this.onDark}"
|
|
13601
13594
|
class="notificationBtn passwordBtn"
|
|
13602
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
13603
13595
|
shape="circle"
|
|
13604
13596
|
size="sm"
|
|
13605
13597
|
variant="ghost">
|
|
13598
|
+
<span>
|
|
13599
|
+
${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
13600
|
+
: u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
13601
|
+
</span>
|
|
13606
13602
|
<${this.iconTag}
|
|
13607
13603
|
?customColor="${this.onDark}"
|
|
13604
|
+
aria-hidden="true"
|
|
13608
13605
|
?hidden=${!this.showPassword}
|
|
13609
13606
|
category="interface"
|
|
13610
13607
|
name="hide-password-stroke">
|
|
13611
13608
|
</${this.iconTag}>
|
|
13612
13609
|
<${this.iconTag}
|
|
13613
13610
|
?customColor="${this.onDark}"
|
|
13611
|
+
aria-hidden="true"
|
|
13614
13612
|
?hidden=${this.showPassword}
|
|
13615
13613
|
category="interface"
|
|
13616
13614
|
name="view-password-stroke">
|
|
@@ -15732,8 +15730,9 @@ class AuroBibtemplate extends i$2 {
|
|
|
15732
15730
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15733
15731
|
<slot name="header"></slot>
|
|
15734
15732
|
</${this.headerTag}>
|
|
15735
|
-
<${this.buttonTag} id="closeButton"
|
|
15736
|
-
|
|
15733
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15734
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
15735
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
15737
15736
|
</${this.buttonTag}>
|
|
15738
15737
|
</div>
|
|
15739
15738
|
<span class="subheader">
|
|
@@ -16069,6 +16068,8 @@ class AuroHelpText extends i$2 {
|
|
|
16069
16068
|
/**
|
|
16070
16069
|
* @slot - Default slot for the menu content.
|
|
16071
16070
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
16071
|
+
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
16072
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
16072
16073
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
16073
16074
|
* @slot label - Defines the content of the label.
|
|
16074
16075
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -16888,9 +16889,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16888
16889
|
if (this.dropdown.isBibFullscreen) {
|
|
16889
16890
|
|
|
16890
16891
|
// when focus is on the input, move focus back to close button with Tab key
|
|
16891
|
-
if (document.activeElement.shadowRoot.activeElement === this.inputInBib
|
|
16892
|
-
this.inputInBib.shadowRoot.activeElement.tagName !== 'INPUT' &&
|
|
16893
|
-
!evt.shiftKey) {
|
|
16892
|
+
if (document.activeElement.shadowRoot.activeElement === this.inputInBib) {
|
|
16894
16893
|
evt.preventDefault();
|
|
16895
16894
|
this.dropdown.focus();
|
|
16896
16895
|
}
|
|
@@ -17069,13 +17068,13 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17069
17068
|
|
|
17070
17069
|
this.handleMenuOptions();
|
|
17071
17070
|
break;
|
|
17071
|
+
|
|
17072
|
+
// Programmatically inject as the slot cannot be carried over to bibtemplate.
|
|
17073
|
+
// It's because the bib is/will be separated from dropdown to body.
|
|
17072
17074
|
case 'label':
|
|
17073
|
-
|
|
17074
|
-
// It's because the bib is/will be separated from dropdown to body.
|
|
17075
|
-
this.transportAssignedNodes(event.target, this.inputInBib, "label");
|
|
17076
|
-
break;
|
|
17075
|
+
case 'ariaLabel.input.clear':
|
|
17077
17076
|
case 'optionalLabel':
|
|
17078
|
-
this.transportAssignedNodes(event.target, this.inputInBib,
|
|
17077
|
+
this.transportAssignedNodes(event.target, this.inputInBib, event.target.name);
|
|
17079
17078
|
break;
|
|
17080
17079
|
case 'bib.fullscreen.headline':
|
|
17081
17080
|
this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
|
|
@@ -17146,6 +17145,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17146
17145
|
shape="${this.shape}"
|
|
17147
17146
|
size="${this.size}"
|
|
17148
17147
|
slot="trigger">
|
|
17148
|
+
<slot name="ariaLabel.input.clear" slot="ariaLabel.clear" @slotchange="${this.handleSlotChange}"></slot>
|
|
17149
17149
|
<slot name="label" slot="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
17150
17150
|
<slot name="optionalLabel" slot="optionalLabel" @slotchange="${this.handleSlotChange}"> (optional)</slot>
|
|
17151
17151
|
<slot name="displayValue" slot="displayValue"></slot>
|
|
@@ -17153,6 +17153,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17153
17153
|
|
|
17154
17154
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
17155
17155
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
17156
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
17156
17157
|
<slot></slot>
|
|
17157
17158
|
<${this.inputTag}
|
|
17158
17159
|
id="inputInBib"
|
|
@@ -18064,7 +18065,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
18064
18065
|
|
|
18065
18066
|
var styleCss$1 = i$5`.body-default{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);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{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);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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);font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{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);font-size:var(--wcss-body-2xs-font-size, 0.625rem);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);border-radius:var(--ds-size-100, 0.5rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box]{border-radius:unset}:host .wrapper[class*=shape-snowflake]{border-radius:unset;line-height:24px}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem);line-height:26px}:host .wrapper[class*=-xl]{padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem);line-height:26px}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem))}:host([selected]) .wrapper{padding-left:0}:host([nocheckmark]) .wrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-lg]{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-xl]{padding-left:var(--ds-size-200, 1rem)}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
|
|
18066
18067
|
|
|
18067
|
-
var colorCss$1 = i$5`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color);
|
|
18068
|
+
var colorCss$1 = i$5`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color);box-shadow:inset 0 0 0 1px var(--ds-auro-menuoption-container-border-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
|
|
18068
18069
|
|
|
18069
18070
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18070
18071
|
// See LICENSE in the project root for license information.
|
|
@@ -28,6 +28,8 @@ The `<auro-combobox>` element should be used in situations where users may:
|
|
|
28
28
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/basic.html) -->
|
|
29
29
|
<!-- The below content is automatically added from ./../apiExamples/classic/basic.html -->
|
|
30
30
|
<auro-combobox layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
|
|
31
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
32
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
31
33
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
32
34
|
<span slot="label">Name</span>
|
|
33
35
|
<auro-menu>
|
|
@@ -48,6 +50,8 @@ The `<auro-combobox>` element should be used in situations where users may:
|
|
|
48
50
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/onDark.html) -->
|
|
49
51
|
<!-- The below content is automatically added from ./../apiExamples/classic/onDark.html -->
|
|
50
52
|
<auro-combobox layout="classic" shape="classic" size="lg" placeholder="Placeholder content" ondark required style="width: 249px;">
|
|
53
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
54
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
51
55
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
52
56
|
<span slot="label">Name</span>
|
|
53
57
|
<auro-menu>
|
|
@@ -71,6 +75,8 @@ The `<auro-combobox>` element should be used in situations where users may:
|
|
|
71
75
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
|
|
72
76
|
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
73
77
|
<auro-combobox layout="emphasized" value="Oranges" shape="pill" size="xl" placeholder="Placeholder content" required ondark style="width: 249px;">
|
|
78
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
79
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
74
80
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
75
81
|
<span slot="label">Name</span>
|
|
76
82
|
<auro-menu>
|
|
@@ -100,6 +106,8 @@ The `<auro-combobox>` element should be used in situations where users may:
|
|
|
100
106
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
101
107
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
102
108
|
<auro-combobox layout="snowflake" shape="snowflake" size="lg" placeholder="Placeholder content" required ondark style="width: 249px;">
|
|
109
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
110
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
103
111
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
104
112
|
<span slot="label">Name</span>
|
|
105
113
|
<auro-menu>
|
|
@@ -120,6 +128,8 @@ The `<auro-combobox>` element should be used in situations where users may:
|
|
|
120
128
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
121
129
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
122
130
|
<auro-combobox>
|
|
131
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
132
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
123
133
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
124
134
|
<span slot="label">Name</span>
|
|
125
135
|
<auro-menu>
|
|
@@ -157,6 +167,8 @@ The `<auro-combobox>` element should be used in situations where users may:
|
|
|
157
167
|
|
|
158
168
|
```html
|
|
159
169
|
<auro-combobox>
|
|
170
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
171
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
160
172
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
161
173
|
<span slot="label">Name</span>
|
|
162
174
|
<auro-menu>
|
|
@@ -2881,12 +2881,6 @@ class AuroFloatingUI {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
2883
|
setupHideHandlers() {
|
|
2884
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
2885
|
-
event.preventDefault();
|
|
2886
|
-
event.stopPropagation();
|
|
2887
|
-
};
|
|
2888
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2889
|
-
|
|
2890
2884
|
// Define handlers & store references
|
|
2891
2885
|
this.focusHandler = () => this.handleFocusLoss();
|
|
2892
2886
|
|
|
@@ -2936,11 +2930,6 @@ class AuroFloatingUI {
|
|
|
2936
2930
|
cleanupHideHandlers() {
|
|
2937
2931
|
// Remove event listeners if they exist
|
|
2938
2932
|
|
|
2939
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
2940
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2941
|
-
delete this.preventFocusLoseOnBibClick;
|
|
2942
|
-
}
|
|
2943
|
-
|
|
2944
2933
|
if (this.focusHandler) {
|
|
2945
2934
|
document.removeEventListener('focusin', this.focusHandler);
|
|
2946
2935
|
this.focusHandler = null;
|
|
@@ -4440,6 +4429,7 @@ let AuroElement$4 = class AuroElement extends i$2 {
|
|
|
4440
4429
|
* @slot trigger - Defines the content of the trigger.
|
|
4441
4430
|
* @csspart trigger - The trigger content container.
|
|
4442
4431
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
4432
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
4443
4433
|
* @csspart helpText - The helpText content container.
|
|
4444
4434
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4445
4435
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -10289,6 +10279,9 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10289
10279
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10290
10280
|
* @attr id
|
|
10291
10281
|
*
|
|
10282
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
10283
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
10284
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
10292
10285
|
* @slot helpText - Sets the help text displayed below the input.
|
|
10293
10286
|
* @slot label - Sets the label text for the input.
|
|
10294
10287
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -10716,8 +10709,7 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10716
10709
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
10717
10710
|
*/
|
|
10718
10711
|
value: {
|
|
10719
|
-
type: String
|
|
10720
|
-
reflect: true
|
|
10712
|
+
type: String
|
|
10721
10713
|
},
|
|
10722
10714
|
|
|
10723
10715
|
/**
|
|
@@ -13429,12 +13421,13 @@ class AuroInput extends BaseInput {
|
|
|
13429
13421
|
<${this.buttonTag}
|
|
13430
13422
|
@click="${this.handleClickClear}"
|
|
13431
13423
|
?onDark="${this.onDark}"
|
|
13432
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
13433
13424
|
class="notificationBtn clearBtn"
|
|
13434
13425
|
shape="circle"
|
|
13435
13426
|
size="sm"
|
|
13436
13427
|
variant="ghost">
|
|
13428
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
13437
13429
|
<${this.iconTag}
|
|
13430
|
+
aria-hidden="true"
|
|
13438
13431
|
?customColor="${this.onDark}"
|
|
13439
13432
|
category="interface"
|
|
13440
13433
|
name="x-lg"
|
|
@@ -13457,18 +13450,23 @@ class AuroInput extends BaseInput {
|
|
|
13457
13450
|
@click="${this.handleClickShowPassword}"
|
|
13458
13451
|
?onDark="${this.onDark}"
|
|
13459
13452
|
class="notificationBtn passwordBtn"
|
|
13460
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
13461
13453
|
shape="circle"
|
|
13462
13454
|
size="sm"
|
|
13463
13455
|
variant="ghost">
|
|
13456
|
+
<span>
|
|
13457
|
+
${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
13458
|
+
: u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
13459
|
+
</span>
|
|
13464
13460
|
<${this.iconTag}
|
|
13465
13461
|
?customColor="${this.onDark}"
|
|
13462
|
+
aria-hidden="true"
|
|
13466
13463
|
?hidden=${!this.showPassword}
|
|
13467
13464
|
category="interface"
|
|
13468
13465
|
name="hide-password-stroke">
|
|
13469
13466
|
</${this.iconTag}>
|
|
13470
13467
|
<${this.iconTag}
|
|
13471
13468
|
?customColor="${this.onDark}"
|
|
13469
|
+
aria-hidden="true"
|
|
13472
13470
|
?hidden=${this.showPassword}
|
|
13473
13471
|
category="interface"
|
|
13474
13472
|
name="view-password-stroke">
|
|
@@ -15590,8 +15588,9 @@ class AuroBibtemplate extends i$2 {
|
|
|
15590
15588
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15591
15589
|
<slot name="header"></slot>
|
|
15592
15590
|
</${this.headerTag}>
|
|
15593
|
-
<${this.buttonTag} id="closeButton"
|
|
15594
|
-
|
|
15591
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15592
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
15593
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
15595
15594
|
</${this.buttonTag}>
|
|
15596
15595
|
</div>
|
|
15597
15596
|
<span class="subheader">
|
|
@@ -15927,6 +15926,8 @@ class AuroHelpText extends i$2 {
|
|
|
15927
15926
|
/**
|
|
15928
15927
|
* @slot - Default slot for the menu content.
|
|
15929
15928
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
15929
|
+
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
15930
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
15930
15931
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
15931
15932
|
* @slot label - Defines the content of the label.
|
|
15932
15933
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -16746,9 +16747,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16746
16747
|
if (this.dropdown.isBibFullscreen) {
|
|
16747
16748
|
|
|
16748
16749
|
// when focus is on the input, move focus back to close button with Tab key
|
|
16749
|
-
if (document.activeElement.shadowRoot.activeElement === this.inputInBib
|
|
16750
|
-
this.inputInBib.shadowRoot.activeElement.tagName !== 'INPUT' &&
|
|
16751
|
-
!evt.shiftKey) {
|
|
16750
|
+
if (document.activeElement.shadowRoot.activeElement === this.inputInBib) {
|
|
16752
16751
|
evt.preventDefault();
|
|
16753
16752
|
this.dropdown.focus();
|
|
16754
16753
|
}
|
|
@@ -16927,13 +16926,13 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16927
16926
|
|
|
16928
16927
|
this.handleMenuOptions();
|
|
16929
16928
|
break;
|
|
16929
|
+
|
|
16930
|
+
// Programmatically inject as the slot cannot be carried over to bibtemplate.
|
|
16931
|
+
// It's because the bib is/will be separated from dropdown to body.
|
|
16930
16932
|
case 'label':
|
|
16931
|
-
|
|
16932
|
-
// It's because the bib is/will be separated from dropdown to body.
|
|
16933
|
-
this.transportAssignedNodes(event.target, this.inputInBib, "label");
|
|
16934
|
-
break;
|
|
16933
|
+
case 'ariaLabel.input.clear':
|
|
16935
16934
|
case 'optionalLabel':
|
|
16936
|
-
this.transportAssignedNodes(event.target, this.inputInBib,
|
|
16935
|
+
this.transportAssignedNodes(event.target, this.inputInBib, event.target.name);
|
|
16937
16936
|
break;
|
|
16938
16937
|
case 'bib.fullscreen.headline':
|
|
16939
16938
|
this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
|
|
@@ -17004,6 +17003,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17004
17003
|
shape="${this.shape}"
|
|
17005
17004
|
size="${this.size}"
|
|
17006
17005
|
slot="trigger">
|
|
17006
|
+
<slot name="ariaLabel.input.clear" slot="ariaLabel.clear" @slotchange="${this.handleSlotChange}"></slot>
|
|
17007
17007
|
<slot name="label" slot="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
17008
17008
|
<slot name="optionalLabel" slot="optionalLabel" @slotchange="${this.handleSlotChange}"> (optional)</slot>
|
|
17009
17009
|
<slot name="displayValue" slot="displayValue"></slot>
|
|
@@ -17011,6 +17011,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17011
17011
|
|
|
17012
17012
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
17013
17013
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
17014
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
17014
17015
|
<slot></slot>
|
|
17015
17016
|
<${this.inputTag}
|
|
17016
17017
|
id="inputInBib"
|
|
@@ -17922,7 +17923,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17922
17923
|
|
|
17923
17924
|
var styleCss$1 = i$5`.body-default{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);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{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);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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);font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{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);font-size:var(--wcss-body-2xs-font-size, 0.625rem);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);border-radius:var(--ds-size-100, 0.5rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box]{border-radius:unset}:host .wrapper[class*=shape-snowflake]{border-radius:unset;line-height:24px}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem);line-height:26px}:host .wrapper[class*=-xl]{padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem);line-height:26px}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem))}:host([selected]) .wrapper{padding-left:0}:host([nocheckmark]) .wrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-lg]{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-xl]{padding-left:var(--ds-size-200, 1rem)}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
|
|
17924
17925
|
|
|
17925
|
-
var colorCss$1 = i$5`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color);
|
|
17926
|
+
var colorCss$1 = i$5`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color);box-shadow:inset 0 0 0 1px var(--ds-auro-menuoption-container-border-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
|
|
17926
17927
|
|
|
17927
17928
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
17928
17929
|
// See LICENSE in the project root for license information.
|
|
@@ -84,6 +84,8 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
86
|
<auro-combobox>
|
|
87
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
88
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
87
89
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
88
90
|
<span slot="label">Name</span>
|
|
89
91
|
<auro-menu>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @slot - Default slot for the menu content.
|
|
3
3
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
4
|
+
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
5
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
4
6
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
5
7
|
* @slot label - Defines the content of the label.
|
|
6
8
|
* @slot helpText - Defines the content of the helpText.
|