@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.45 → 0.0.0-pr624.46
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/combobox/demo/api.md +12 -6
- package/components/combobox/demo/api.min.js +2 -2
- package/components/combobox/demo/index.min.js +2 -2
- package/components/combobox/dist/index.js +2 -2
- package/components/combobox/dist/registered.js +2 -2
- package/components/counter/demo/api.md +12 -6
- package/components/datepicker/demo/api.min.js +2 -2
- package/components/datepicker/demo/index.min.js +2 -2
- package/components/datepicker/dist/index.js +2 -2
- package/components/datepicker/dist/registered.js +2 -2
- package/components/dropdown/demo/api.md +16 -2
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +2 -2
- package/components/input/demo/index.min.js +2 -2
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +2 -2
- package/components/input/dist/registered.js +2 -2
- package/components/select/demo/api.md +13 -7
- package/components/select/demo/api.min.js +26 -25
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +26 -25
- package/components/select/dist/auro-select.d.ts +7 -1
- package/components/select/dist/index.js +26 -25
- package/components/select/dist/registered.js +26 -25
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ var styleCss$4 = css`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
10
10
|
|
|
11
11
|
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
12
12
|
|
|
13
|
-
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-
|
|
13
|
+
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
14
14
|
|
|
15
15
|
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
16
16
|
|
|
@@ -5229,7 +5229,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5229
5229
|
},
|
|
5230
5230
|
|
|
5231
5231
|
/**
|
|
5232
|
-
* Define custom placeholder text
|
|
5232
|
+
* Define custom placeholder text.
|
|
5233
5233
|
*/
|
|
5234
5234
|
placeholder: {
|
|
5235
5235
|
type: String,
|
|
@@ -10,7 +10,7 @@ var styleCss$4 = css`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
10
10
|
|
|
11
11
|
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
12
12
|
|
|
13
|
-
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-
|
|
13
|
+
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
14
14
|
|
|
15
15
|
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
16
16
|
|
|
@@ -5229,7 +5229,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5229
5229
|
},
|
|
5230
5230
|
|
|
5231
5231
|
/**
|
|
5232
|
-
* Define custom placeholder text
|
|
5232
|
+
* Define custom placeholder text.
|
|
5233
5233
|
*/
|
|
5234
5234
|
placeholder: {
|
|
5235
5235
|
type: String,
|
|
@@ -33,6 +33,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
33
33
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
34
34
|
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
|
|
35
35
|
| [optionSelected](#optionSelected) | `optionSelected` | `HTMLElement\|Array<HTMLElement>` | | Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true. |
|
|
36
|
+
| [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text. |
|
|
36
37
|
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end". |
|
|
37
38
|
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
38
39
|
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
@@ -68,7 +69,6 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
68
69
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
69
70
|
| [label](#label) | Defines the content of the label. |
|
|
70
71
|
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
71
|
-
| [placeholder](#placeholder) | Defines the content of the placeholder to be shown when there is no value |
|
|
72
72
|
| [valueText](#valueText) | Dropdown value text display. |
|
|
73
73
|
|
|
74
74
|
## CSS Shadow Parts
|
|
@@ -1154,7 +1154,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1154
1154
|
<div style="width: 350px">
|
|
1155
1155
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1156
1156
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1157
|
-
<span slot="label">
|
|
1157
|
+
<span slot="label">Label</span>
|
|
1158
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1158
1159
|
<auro-menu>
|
|
1159
1160
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1160
1161
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1166,7 +1167,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1166
1167
|
</auro-select>
|
|
1167
1168
|
<auro-select offset="20" placement="bottom-end">
|
|
1168
1169
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1169
|
-
<span slot="label">
|
|
1170
|
+
<span slot="label">Label</span>
|
|
1171
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1170
1172
|
<auro-menu>
|
|
1171
1173
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1172
1174
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1178,7 +1180,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1178
1180
|
</auro-select>
|
|
1179
1181
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1180
1182
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1181
|
-
<span slot="label">
|
|
1183
|
+
<span slot="label">Label</span>
|
|
1184
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1182
1185
|
<auro-menu>
|
|
1183
1186
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1184
1187
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1200,7 +1203,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1200
1203
|
<div style="width: 350px">
|
|
1201
1204
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1202
1205
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1203
|
-
<span slot="label">
|
|
1206
|
+
<span slot="label">Label</span>
|
|
1207
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1204
1208
|
<auro-menu>
|
|
1205
1209
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1206
1210
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1212,7 +1216,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1212
1216
|
</auro-select>
|
|
1213
1217
|
<auro-select offset="20" placement="bottom-end">
|
|
1214
1218
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1215
|
-
<span slot="label">
|
|
1219
|
+
<span slot="label">Label</span>
|
|
1220
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1216
1221
|
<auro-menu>
|
|
1217
1222
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1218
1223
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1224,7 +1229,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1224
1229
|
</auro-select>
|
|
1225
1230
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1226
1231
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1227
|
-
<span slot="label">
|
|
1232
|
+
<span slot="label">Label</span>
|
|
1233
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1228
1234
|
<auro-menu>
|
|
1229
1235
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1230
1236
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -7740,7 +7740,7 @@ i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);-
|
|
|
7740
7740
|
|
|
7741
7741
|
i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
7742
7742
|
|
|
7743
|
-
var styleCss$3 = i$5`.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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled])
|
|
7743
|
+
var styleCss$3 = i$5`.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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7744
7744
|
|
|
7745
7745
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7746
7746
|
// See LICENSE in the project root for license information.
|
|
@@ -7755,7 +7755,6 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7755
7755
|
* @slot label - Defines the content of the label.
|
|
7756
7756
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
7757
7757
|
* @slot helpText - Defines the content of the helpText.
|
|
7758
|
-
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
7759
7758
|
* @slot valueText - Dropdown value text display.
|
|
7760
7759
|
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
7761
7760
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
@@ -8025,6 +8024,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8025
8024
|
reflect: true
|
|
8026
8025
|
},
|
|
8027
8026
|
|
|
8027
|
+
/**
|
|
8028
|
+
* Define custom placeholder text.
|
|
8029
|
+
*/
|
|
8030
|
+
placeholder: {
|
|
8031
|
+
type: String,
|
|
8032
|
+
reflect: true
|
|
8033
|
+
},
|
|
8034
|
+
|
|
8028
8035
|
/**
|
|
8029
8036
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
8030
8037
|
*/
|
|
@@ -8135,7 +8142,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8135
8142
|
get commonLabelClasses() {
|
|
8136
8143
|
return {
|
|
8137
8144
|
'is-disabled': this.disabled,
|
|
8138
|
-
'withValue': this.value && this.value.length > 0,
|
|
8145
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8139
8146
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
8140
8147
|
};
|
|
8141
8148
|
}
|
|
@@ -8772,7 +8779,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8772
8779
|
: u`
|
|
8773
8780
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
8774
8781
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
8775
|
-
|
|
8782
|
+
${this.errorMessage}
|
|
8776
8783
|
</p>
|
|
8777
8784
|
</${this.helpTextTag}>
|
|
8778
8785
|
`
|
|
@@ -8787,14 +8794,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8787
8794
|
*/
|
|
8788
8795
|
renderLayoutEmphasized() {
|
|
8789
8796
|
const placeholderClass = {
|
|
8790
|
-
|
|
8797
|
+
'util_displayHidden': this.value
|
|
8791
8798
|
};
|
|
8792
8799
|
|
|
8793
8800
|
const displayValueClasses = {
|
|
8794
8801
|
'displayValue': true,
|
|
8795
8802
|
'hasContent': this.hasDisplayValueContent,
|
|
8796
8803
|
'hasFocus': this.isPopoverVisible,
|
|
8797
|
-
'withValue': this.value && this.value.length > 0,
|
|
8804
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8798
8805
|
'force': this.forceDisplayValue,
|
|
8799
8806
|
};
|
|
8800
8807
|
|
|
@@ -8838,11 +8845,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8838
8845
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8839
8846
|
</label>
|
|
8840
8847
|
<div class="value" id="value"></div>
|
|
8841
|
-
${
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
</div>
|
|
8845
|
-
`}
|
|
8848
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8849
|
+
${this.placeholder}
|
|
8850
|
+
</div>
|
|
8846
8851
|
</div>
|
|
8847
8852
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8848
8853
|
<slot name="displayValue"></slot>
|
|
@@ -8869,14 +8874,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8869
8874
|
*/
|
|
8870
8875
|
renderLayoutSnowflake() {
|
|
8871
8876
|
const placeholderClass = {
|
|
8872
|
-
|
|
8877
|
+
'util_displayHidden': this.value
|
|
8873
8878
|
};
|
|
8874
8879
|
|
|
8875
8880
|
const displayValueClasses = {
|
|
8876
8881
|
'displayValue': true,
|
|
8877
8882
|
'hasContent': this.hasDisplayValueContent,
|
|
8878
8883
|
'hasFocus': this.isPopoverVisible,
|
|
8879
|
-
'withValue': this.value && this.value.length > 0,
|
|
8884
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8880
8885
|
'force': this.forceDisplayValue,
|
|
8881
8886
|
};
|
|
8882
8887
|
|
|
@@ -8919,11 +8924,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8919
8924
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8920
8925
|
</label>
|
|
8921
8926
|
<div class="value" id="value"></div>
|
|
8922
|
-
${
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
</div>
|
|
8926
|
-
`}
|
|
8927
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8928
|
+
${this.placeholder}
|
|
8929
|
+
</div>
|
|
8927
8930
|
</div>
|
|
8928
8931
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8929
8932
|
<slot name="displayValue"></slot>
|
|
@@ -8951,14 +8954,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8951
8954
|
*/
|
|
8952
8955
|
renderLayoutClassic() {
|
|
8953
8956
|
const placeholderClass = {
|
|
8954
|
-
|
|
8957
|
+
'util_displayHidden': this.value
|
|
8955
8958
|
};
|
|
8956
8959
|
|
|
8957
8960
|
const displayValueClasses = {
|
|
8958
8961
|
'displayValue': true,
|
|
8959
8962
|
'hasContent': this.hasDisplayValueContent,
|
|
8960
8963
|
'hasFocus': this.isPopoverVisible,
|
|
8961
|
-
'withValue': this.value && this.value.length > 0,
|
|
8964
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8962
8965
|
'force': this.forceDisplayValue,
|
|
8963
8966
|
};
|
|
8964
8967
|
|
|
@@ -9001,11 +9004,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
9001
9004
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
9002
9005
|
</label>
|
|
9003
9006
|
<div class="value" id="value"></div>
|
|
9004
|
-
${
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
</div>
|
|
9008
|
-
`}
|
|
9007
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
9008
|
+
${this.placeholder}
|
|
9009
|
+
</div>
|
|
9009
9010
|
</div>
|
|
9010
9011
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
9011
9012
|
<slot name="displayValue"></slot>
|
|
@@ -22,7 +22,7 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
|
|
|
22
22
|
<!-- The below content is automatically added from ./../apiExamples/classic/basic.html -->
|
|
23
23
|
<auro-select placeholder="Placeholder content">
|
|
24
24
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
25
|
-
<span slot="label">Name</span>
|
|
25
|
+
<span slot="label">Name with placeholder</span>
|
|
26
26
|
<auro-menu>
|
|
27
27
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
28
28
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -7648,7 +7648,7 @@ i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);-
|
|
|
7648
7648
|
|
|
7649
7649
|
i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
7650
7650
|
|
|
7651
|
-
var styleCss$3 = i$5`.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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled])
|
|
7651
|
+
var styleCss$3 = i$5`.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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7652
7652
|
|
|
7653
7653
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7654
7654
|
// See LICENSE in the project root for license information.
|
|
@@ -7663,7 +7663,6 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7663
7663
|
* @slot label - Defines the content of the label.
|
|
7664
7664
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
7665
7665
|
* @slot helpText - Defines the content of the helpText.
|
|
7666
|
-
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
7667
7666
|
* @slot valueText - Dropdown value text display.
|
|
7668
7667
|
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
7669
7668
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
@@ -7933,6 +7932,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7933
7932
|
reflect: true
|
|
7934
7933
|
},
|
|
7935
7934
|
|
|
7935
|
+
/**
|
|
7936
|
+
* Define custom placeholder text.
|
|
7937
|
+
*/
|
|
7938
|
+
placeholder: {
|
|
7939
|
+
type: String,
|
|
7940
|
+
reflect: true
|
|
7941
|
+
},
|
|
7942
|
+
|
|
7936
7943
|
/**
|
|
7937
7944
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
7938
7945
|
*/
|
|
@@ -8043,7 +8050,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8043
8050
|
get commonLabelClasses() {
|
|
8044
8051
|
return {
|
|
8045
8052
|
'is-disabled': this.disabled,
|
|
8046
|
-
'withValue': this.value && this.value.length > 0,
|
|
8053
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8047
8054
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
8048
8055
|
};
|
|
8049
8056
|
}
|
|
@@ -8680,7 +8687,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8680
8687
|
: u`
|
|
8681
8688
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
8682
8689
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
8683
|
-
|
|
8690
|
+
${this.errorMessage}
|
|
8684
8691
|
</p>
|
|
8685
8692
|
</${this.helpTextTag}>
|
|
8686
8693
|
`
|
|
@@ -8695,14 +8702,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8695
8702
|
*/
|
|
8696
8703
|
renderLayoutEmphasized() {
|
|
8697
8704
|
const placeholderClass = {
|
|
8698
|
-
|
|
8705
|
+
'util_displayHidden': this.value
|
|
8699
8706
|
};
|
|
8700
8707
|
|
|
8701
8708
|
const displayValueClasses = {
|
|
8702
8709
|
'displayValue': true,
|
|
8703
8710
|
'hasContent': this.hasDisplayValueContent,
|
|
8704
8711
|
'hasFocus': this.isPopoverVisible,
|
|
8705
|
-
'withValue': this.value && this.value.length > 0,
|
|
8712
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8706
8713
|
'force': this.forceDisplayValue,
|
|
8707
8714
|
};
|
|
8708
8715
|
|
|
@@ -8746,11 +8753,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8746
8753
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8747
8754
|
</label>
|
|
8748
8755
|
<div class="value" id="value"></div>
|
|
8749
|
-
${
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
</div>
|
|
8753
|
-
`}
|
|
8756
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8757
|
+
${this.placeholder}
|
|
8758
|
+
</div>
|
|
8754
8759
|
</div>
|
|
8755
8760
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8756
8761
|
<slot name="displayValue"></slot>
|
|
@@ -8777,14 +8782,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8777
8782
|
*/
|
|
8778
8783
|
renderLayoutSnowflake() {
|
|
8779
8784
|
const placeholderClass = {
|
|
8780
|
-
|
|
8785
|
+
'util_displayHidden': this.value
|
|
8781
8786
|
};
|
|
8782
8787
|
|
|
8783
8788
|
const displayValueClasses = {
|
|
8784
8789
|
'displayValue': true,
|
|
8785
8790
|
'hasContent': this.hasDisplayValueContent,
|
|
8786
8791
|
'hasFocus': this.isPopoverVisible,
|
|
8787
|
-
'withValue': this.value && this.value.length > 0,
|
|
8792
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8788
8793
|
'force': this.forceDisplayValue,
|
|
8789
8794
|
};
|
|
8790
8795
|
|
|
@@ -8827,11 +8832,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8827
8832
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8828
8833
|
</label>
|
|
8829
8834
|
<div class="value" id="value"></div>
|
|
8830
|
-
${
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
</div>
|
|
8834
|
-
`}
|
|
8835
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8836
|
+
${this.placeholder}
|
|
8837
|
+
</div>
|
|
8835
8838
|
</div>
|
|
8836
8839
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8837
8840
|
<slot name="displayValue"></slot>
|
|
@@ -8859,14 +8862,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8859
8862
|
*/
|
|
8860
8863
|
renderLayoutClassic() {
|
|
8861
8864
|
const placeholderClass = {
|
|
8862
|
-
|
|
8865
|
+
'util_displayHidden': this.value
|
|
8863
8866
|
};
|
|
8864
8867
|
|
|
8865
8868
|
const displayValueClasses = {
|
|
8866
8869
|
'displayValue': true,
|
|
8867
8870
|
'hasContent': this.hasDisplayValueContent,
|
|
8868
8871
|
'hasFocus': this.isPopoverVisible,
|
|
8869
|
-
'withValue': this.value && this.value.length > 0,
|
|
8872
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8870
8873
|
'force': this.forceDisplayValue,
|
|
8871
8874
|
};
|
|
8872
8875
|
|
|
@@ -8909,11 +8912,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8909
8912
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8910
8913
|
</label>
|
|
8911
8914
|
<div class="value" id="value"></div>
|
|
8912
|
-
${
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
</div>
|
|
8916
|
-
`}
|
|
8915
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8916
|
+
${this.placeholder}
|
|
8917
|
+
</div>
|
|
8917
8918
|
</div>
|
|
8918
8919
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8919
8920
|
<slot name="displayValue"></slot>
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @slot label - Defines the content of the label.
|
|
7
7
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
8
8
|
* @slot helpText - Defines the content of the helpText.
|
|
9
|
-
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
10
9
|
* @slot valueText - Dropdown value text display.
|
|
11
10
|
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
12
11
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
@@ -154,6 +153,13 @@ export class AuroSelect extends AuroElement {
|
|
|
154
153
|
type: StringConstructor;
|
|
155
154
|
reflect: boolean;
|
|
156
155
|
};
|
|
156
|
+
/**
|
|
157
|
+
* Define custom placeholder text.
|
|
158
|
+
*/
|
|
159
|
+
placeholder: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
reflect: boolean;
|
|
162
|
+
};
|
|
157
163
|
/**
|
|
158
164
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
159
165
|
*/
|