@aurodesignsystem-dev/auro-formkit 0.0.0-pr754.0 → 0.0.0-pr754.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.min.js +9 -9
- package/components/checkbox/demo/index.min.js +9 -9
- package/components/checkbox/dist/index.js +9 -9
- package/components/checkbox/dist/registered.js +9 -9
- package/components/combobox/demo/api.md +12 -6
- package/components/combobox/demo/api.min.js +43 -84
- package/components/combobox/demo/index.min.js +43 -84
- package/components/combobox/dist/index.js +42 -84
- package/components/combobox/dist/registered.js +42 -84
- package/components/counter/demo/api.md +140 -7
- package/components/counter/demo/api.min.js +555 -385
- package/components/counter/demo/index.md +82 -0
- package/components/counter/demo/index.min.js +555 -385
- package/components/counter/dist/auro-counter-group.d.ts +71 -14
- package/components/counter/dist/auro-counter.d.ts +10 -0
- package/components/counter/dist/index.js +555 -385
- package/components/counter/dist/registered.js +555 -385
- package/components/datepicker/demo/api.min.js +42 -84
- package/components/datepicker/demo/index.min.js +42 -84
- package/components/datepicker/dist/index.js +42 -84
- package/components/datepicker/dist/registered.js +42 -84
- package/components/dropdown/demo/api.md +76 -268
- package/components/dropdown/demo/api.min.js +25 -67
- package/components/dropdown/demo/index.md +45 -363
- package/components/dropdown/demo/index.min.js +25 -67
- package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
- package/components/dropdown/dist/index.js +25 -67
- package/components/dropdown/dist/registered.js +25 -67
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +10 -10
- package/components/input/demo/index.min.js +10 -10
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +10 -10
- package/components/input/dist/registered.js +10 -10
- package/components/menu/demo/api.md +14 -15
- package/components/menu/demo/api.min.js +1 -0
- package/components/menu/demo/index.min.js +1 -0
- package/components/menu/dist/auro-menu.d.ts +2 -1
- package/components/menu/dist/index.js +1 -0
- package/components/menu/dist/registered.js +1 -0
- package/components/radio/demo/api.min.js +9 -9
- package/components/radio/demo/index.min.js +9 -9
- package/components/radio/dist/index.js +9 -9
- package/components/radio/dist/registered.js +9 -9
- package/components/select/demo/api.md +41 -36
- package/components/select/demo/api.min.js +60 -102
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +60 -102
- package/components/select/dist/auro-select.d.ts +9 -2
- package/components/select/dist/index.js +59 -102
- package/components/select/dist/registered.js +59 -102
- package/package.json +2 -2
|
@@ -14,35 +14,35 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Attribute |
|
|
18
|
-
|
|
19
|
-
| [autoPlacement](#autoPlacement) | `autoPlacement` |
|
|
20
|
-
| [autocomplete](#autocomplete) | `autocomplete` |
|
|
21
|
-
| [disabled](#disabled) | `disabled` |
|
|
22
|
-
| [error](#error) | `error` |
|
|
23
|
-
| [forceDisplayValue](#forceDisplayValue) | `forceDisplayValue` |
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [
|
|
27
|
-
| [
|
|
28
|
-
| [
|
|
29
|
-
| [
|
|
30
|
-
| [
|
|
31
|
-
| [
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
34
|
-
| [
|
|
35
|
-
| [
|
|
36
|
-
| [
|
|
37
|
-
| [placement](#placement) | `placement` |
|
|
38
|
-
| [required](#required) | `required` |
|
|
39
|
-
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` |
|
|
40
|
-
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` |
|
|
41
|
-
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` |
|
|
42
|
-
| [shape](#shape) | |
|
|
43
|
-
| [size](#size) | |
|
|
44
|
-
| [validity](#validity) | `validity` |
|
|
45
|
-
| [value](#value) | `value` |
|
|
17
|
+
| Property | Attribute | Type | Default | Description |
|
|
18
|
+
|---------------------------------|---------------------------------|-----------------------------------|----------------|--------------------------------------------------|
|
|
19
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
20
|
+
| [autocomplete](#autocomplete) | `autocomplete` | `string` | | If declared, sets the autocomplete attribute for the select element. |
|
|
21
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
|
|
22
|
+
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
23
|
+
| [forceDisplayValue](#forceDisplayValue) | `forceDisplayValue` | `boolean` | false | If declared, the label and value will be visually hidden and the displayValue will render 100% of the time. |
|
|
24
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
25
|
+
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
26
|
+
| [layout](#layout) | | `string` | "snowflake" | |
|
|
27
|
+
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
28
|
+
| [multiSelect](#multiSelect) | `multiselect` | `boolean` | | Sets multi-select mode, allowing multiple options to be selected at once. |
|
|
29
|
+
| [name](#name) | `name` | `string` | | The name for the select element. |
|
|
30
|
+
| [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
|
|
31
|
+
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
32
|
+
| [noValidate](#noValidate) | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
|
|
33
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
34
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
|
|
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. |
|
|
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". |
|
|
38
|
+
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
39
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
40
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
41
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
42
|
+
| [shape](#shape) | | `string` | "snowflake" | |
|
|
43
|
+
| [size](#size) | | `string` | "xl" | |
|
|
44
|
+
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
45
|
+
| [value](#value) | `value` | `string` | | Value selected for the component. |
|
|
46
46
|
|
|
47
47
|
## Methods
|
|
48
48
|
|
|
@@ -69,7 +69,6 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
69
69
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
70
70
|
| [label](#label) | Defines the content of the label. |
|
|
71
71
|
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
72
|
-
| [placeholder](#placeholder) | Defines the content of the placeholder to be shown when there is no value |
|
|
73
72
|
| [valueText](#valueText) | Dropdown value text display. |
|
|
74
73
|
|
|
75
74
|
## CSS Shadow Parts
|
|
@@ -1155,7 +1154,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1155
1154
|
<div style="width: 350px">
|
|
1156
1155
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1157
1156
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1158
|
-
<span slot="label">
|
|
1157
|
+
<span slot="label">Label</span>
|
|
1158
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1159
1159
|
<auro-menu>
|
|
1160
1160
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1161
1161
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1167,7 +1167,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1167
1167
|
</auro-select>
|
|
1168
1168
|
<auro-select offset="20" placement="bottom-end">
|
|
1169
1169
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1170
|
-
<span slot="label">
|
|
1170
|
+
<span slot="label">Label</span>
|
|
1171
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1171
1172
|
<auro-menu>
|
|
1172
1173
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1173
1174
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1179,7 +1180,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1179
1180
|
</auro-select>
|
|
1180
1181
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1181
1182
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1182
|
-
<span slot="label">
|
|
1183
|
+
<span slot="label">Label</span>
|
|
1184
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1183
1185
|
<auro-menu>
|
|
1184
1186
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1185
1187
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1201,7 +1203,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1201
1203
|
<div style="width: 350px">
|
|
1202
1204
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1203
1205
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1204
|
-
<span slot="label">
|
|
1206
|
+
<span slot="label">Label</span>
|
|
1207
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1205
1208
|
<auro-menu>
|
|
1206
1209
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1207
1210
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1213,7 +1216,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1213
1216
|
</auro-select>
|
|
1214
1217
|
<auro-select offset="20" placement="bottom-end">
|
|
1215
1218
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1216
|
-
<span slot="label">
|
|
1219
|
+
<span slot="label">Label</span>
|
|
1220
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1217
1221
|
<auro-menu>
|
|
1218
1222
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1219
1223
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1225,7 +1229,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1225
1229
|
</auro-select>
|
|
1226
1230
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1227
1231
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1228
|
-
<span slot="label">
|
|
1232
|
+
<span slot="label">Label</span>
|
|
1233
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1229
1234
|
<auro-menu>
|
|
1230
1235
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1231
1236
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -781,19 +781,19 @@ class AuroFormValidation {
|
|
|
781
781
|
{
|
|
782
782
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
783
783
|
validity: 'tooShort',
|
|
784
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
784
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
785
785
|
},
|
|
786
786
|
{
|
|
787
787
|
check: (e) => e.value?.length > e.maxLength,
|
|
788
788
|
validity: 'tooLong',
|
|
789
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
789
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
790
790
|
}
|
|
791
791
|
],
|
|
792
792
|
pattern: [
|
|
793
793
|
{
|
|
794
794
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
795
795
|
validity: 'patternMismatch',
|
|
796
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
796
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
797
797
|
}
|
|
798
798
|
]
|
|
799
799
|
},
|
|
@@ -988,10 +988,10 @@ class AuroFormValidation {
|
|
|
988
988
|
if (!hasValue && elem.required && elem.touched) {
|
|
989
989
|
elem.validity = 'valueMissing';
|
|
990
990
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
991
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
991
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
992
992
|
this.validateType(elem);
|
|
993
993
|
this.validateElementAttributes(elem);
|
|
994
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
994
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
995
995
|
this.validateElementAttributes(elem);
|
|
996
996
|
}
|
|
997
997
|
}
|
|
@@ -4265,7 +4265,7 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
4265
4265
|
|
|
4266
4266
|
var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
4267
4267
|
|
|
4268
|
-
var colorCss$1$2 = i$5`:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4268
|
+
var colorCss$1$2 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4269
4269
|
|
|
4270
4270
|
var classicColorCss = i$5``;
|
|
4271
4271
|
|
|
@@ -4277,7 +4277,7 @@ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
4277
4277
|
|
|
4278
4278
|
var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4279
4279
|
|
|
4280
|
-
var styleCss$6 = i$5
|
|
4280
|
+
var styleCss$6 = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
4281
4281
|
|
|
4282
4282
|
var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
4283
4283
|
|
|
@@ -4582,10 +4582,8 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
4582
4582
|
// See LICENSE in the project root for license information.
|
|
4583
4583
|
|
|
4584
4584
|
|
|
4585
|
-
|
|
4586
|
-
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
4585
|
+
/*
|
|
4587
4586
|
* @slot - Default slot for the popover content.
|
|
4588
|
-
* @slot label - Defines the content of the label.
|
|
4589
4587
|
* @slot helpText - Defines the content of the helpText.
|
|
4590
4588
|
* @slot trigger - Defines the content of the trigger.
|
|
4591
4589
|
* @csspart trigger - The trigger content container.
|
|
@@ -4604,18 +4602,22 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4604
4602
|
this.matchWidth = false;
|
|
4605
4603
|
this.noHideOnThisFocusLoss = false;
|
|
4606
4604
|
|
|
4607
|
-
this.errorMessage =
|
|
4605
|
+
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
4608
4606
|
|
|
4609
4607
|
// Layout Config
|
|
4610
|
-
this.layout =
|
|
4611
|
-
this.shape =
|
|
4612
|
-
this.size =
|
|
4608
|
+
this.layout = undefined;
|
|
4609
|
+
this.shape = undefined;
|
|
4610
|
+
this.size = undefined;
|
|
4613
4611
|
|
|
4614
4612
|
this.parentBorder = false;
|
|
4615
4613
|
|
|
4616
4614
|
this.privateDefaults();
|
|
4617
4615
|
}
|
|
4618
4616
|
|
|
4617
|
+
/**
|
|
4618
|
+
* @private
|
|
4619
|
+
* @returns {object} Class definition for the wrapper element.
|
|
4620
|
+
*/
|
|
4619
4621
|
get commonWrapperClasses() {
|
|
4620
4622
|
return {
|
|
4621
4623
|
'trigger': true,
|
|
@@ -4635,12 +4637,8 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4635
4637
|
this.disabled = false;
|
|
4636
4638
|
this.disableFocusTrap = false;
|
|
4637
4639
|
this.error = false;
|
|
4638
|
-
this.inset = false;
|
|
4639
|
-
this.rounded = false;
|
|
4640
4640
|
this.tabIndex = 0;
|
|
4641
4641
|
this.noToggle = false;
|
|
4642
|
-
this.a11yAutocomplete = 'none';
|
|
4643
|
-
this.labeled = true;
|
|
4644
4642
|
this.a11yRole = 'button';
|
|
4645
4643
|
this.onDark = false;
|
|
4646
4644
|
this.showTriggerBorders = true;
|
|
@@ -4762,26 +4760,27 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4762
4760
|
},
|
|
4763
4761
|
|
|
4764
4762
|
/**
|
|
4765
|
-
* If declared,
|
|
4763
|
+
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
4764
|
+
* @default false
|
|
4766
4765
|
*/
|
|
4767
|
-
|
|
4766
|
+
disableEventShow: {
|
|
4768
4767
|
type: Boolean,
|
|
4769
4768
|
reflect: true
|
|
4770
4769
|
},
|
|
4771
4770
|
|
|
4772
4771
|
/**
|
|
4773
|
-
* If declared,
|
|
4774
|
-
* @attr {Boolean} chevron
|
|
4772
|
+
* If declared, applies a border around the trigger slot.
|
|
4775
4773
|
*/
|
|
4776
|
-
|
|
4774
|
+
simple: {
|
|
4777
4775
|
type: Boolean,
|
|
4778
4776
|
reflect: true
|
|
4779
4777
|
},
|
|
4780
4778
|
|
|
4781
4779
|
/**
|
|
4782
|
-
* If declared, the dropdown
|
|
4780
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
4781
|
+
* @attr {Boolean} chevron
|
|
4783
4782
|
*/
|
|
4784
|
-
|
|
4783
|
+
chevron: {
|
|
4785
4784
|
type: Boolean,
|
|
4786
4785
|
reflect: true
|
|
4787
4786
|
},
|
|
@@ -4795,7 +4794,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4795
4794
|
},
|
|
4796
4795
|
|
|
4797
4796
|
/**
|
|
4798
|
-
* If
|
|
4797
|
+
* If declared, the focus trap inside of bib will be turned off.
|
|
4799
4798
|
*/
|
|
4800
4799
|
disableFocusTrap: {
|
|
4801
4800
|
type: Boolean,
|
|
@@ -4842,22 +4841,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4842
4841
|
reflect: true
|
|
4843
4842
|
},
|
|
4844
4843
|
|
|
4845
|
-
/**
|
|
4846
|
-
* Makes the trigger to be full width of its parent container.
|
|
4847
|
-
*/
|
|
4848
|
-
fluid: {
|
|
4849
|
-
type: Boolean,
|
|
4850
|
-
reflect: true
|
|
4851
|
-
},
|
|
4852
|
-
|
|
4853
|
-
/**
|
|
4854
|
-
* If declared, will apply padding around trigger slot content.
|
|
4855
|
-
*/
|
|
4856
|
-
inset: {
|
|
4857
|
-
type: Boolean,
|
|
4858
|
-
reflect: true
|
|
4859
|
-
},
|
|
4860
|
-
|
|
4861
4844
|
/**
|
|
4862
4845
|
* If true, the dropdown bib is displayed.
|
|
4863
4846
|
*/
|
|
@@ -4901,15 +4884,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4901
4884
|
reflect: true
|
|
4902
4885
|
},
|
|
4903
4886
|
|
|
4904
|
-
/**
|
|
4905
|
-
* Defines if there is a label preset.
|
|
4906
|
-
* @private
|
|
4907
|
-
*/
|
|
4908
|
-
labeled: {
|
|
4909
|
-
type: Boolean,
|
|
4910
|
-
reflect: true
|
|
4911
|
-
},
|
|
4912
|
-
|
|
4913
4887
|
/**
|
|
4914
4888
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
4915
4889
|
* @private
|
|
@@ -4970,6 +4944,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4970
4944
|
reflect: true
|
|
4971
4945
|
},
|
|
4972
4946
|
|
|
4947
|
+
/**
|
|
4948
|
+
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
4949
|
+
*/
|
|
4973
4950
|
onSlotChange: {
|
|
4974
4951
|
type: Function,
|
|
4975
4952
|
reflect: false
|
|
@@ -4984,14 +4961,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4984
4961
|
reflect: true
|
|
4985
4962
|
},
|
|
4986
4963
|
|
|
4987
|
-
/**
|
|
4988
|
-
* If declared, will apply border-radius to trigger and default slots.
|
|
4989
|
-
*/
|
|
4990
|
-
rounded: {
|
|
4991
|
-
type: Boolean,
|
|
4992
|
-
reflect: true
|
|
4993
|
-
},
|
|
4994
|
-
|
|
4995
4964
|
/**
|
|
4996
4965
|
* @private
|
|
4997
4966
|
*/
|
|
@@ -5006,22 +4975,14 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
5006
4975
|
type: String || undefined,
|
|
5007
4976
|
attribute: false,
|
|
5008
4977
|
reflect: false
|
|
5009
|
-
},
|
|
5010
|
-
|
|
5011
|
-
/**
|
|
5012
|
-
* The value for the aria-autocomplete attribute of the trigger element.
|
|
5013
|
-
*/
|
|
5014
|
-
a11yAutocomplete: {
|
|
5015
|
-
type: String,
|
|
5016
|
-
attribute: false,
|
|
5017
4978
|
}
|
|
5018
4979
|
};
|
|
5019
4980
|
}
|
|
5020
4981
|
|
|
5021
4982
|
static get styles() {
|
|
5022
4983
|
return [
|
|
5023
|
-
colorCss$1$2,
|
|
5024
4984
|
tokensCss$1$2,
|
|
4985
|
+
colorCss$1$2,
|
|
5025
4986
|
|
|
5026
4987
|
// default layout
|
|
5027
4988
|
classicColorCss,
|
|
@@ -5461,10 +5422,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
5461
5422
|
id="bib"
|
|
5462
5423
|
shape="${this.shape}"
|
|
5463
5424
|
?data-show="${this.isPopoverVisible}"
|
|
5464
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
5465
|
-
?common="${this.common}"
|
|
5466
|
-
?rounded="${this.common || this.rounded}"
|
|
5467
|
-
?inset="${this.common || this.inset}">
|
|
5425
|
+
?isfullscreen="${this.isBibFullscreen}">
|
|
5468
5426
|
<div class="slotContent">
|
|
5469
5427
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
5470
5428
|
</div>
|
|
@@ -7445,7 +7403,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7445
7403
|
<div id="bibTemplate" part="bibtemplate">
|
|
7446
7404
|
${this.isFullscreen ? u`
|
|
7447
7405
|
<div id="headerContainer">
|
|
7448
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7406
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7449
7407
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
7450
7408
|
</${this.buttonTag}>
|
|
7451
7409
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -7473,7 +7431,7 @@ var bibTemplateVersion = '1.0.0';
|
|
|
7473
7431
|
|
|
7474
7432
|
var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
7475
7433
|
|
|
7476
|
-
var styleCss$4 = i$5
|
|
7434
|
+
var styleCss$4 = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
7477
7435
|
|
|
7478
7436
|
var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
7479
7437
|
|
|
@@ -7679,7 +7637,7 @@ class AuroHelpText extends i$2 {
|
|
|
7679
7637
|
|
|
7680
7638
|
var helpTextVersion = '1.0.0';
|
|
7681
7639
|
|
|
7682
|
-
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])
|
|
7640
|
+
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}`;
|
|
7683
7641
|
|
|
7684
7642
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7685
7643
|
// See LICENSE in the project root for license information.
|
|
@@ -7694,7 +7652,6 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7694
7652
|
* @slot label - Defines the content of the label.
|
|
7695
7653
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
7696
7654
|
* @slot helpText - Defines the content of the helpText.
|
|
7697
|
-
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
7698
7655
|
* @slot valueText - Dropdown value text display.
|
|
7699
7656
|
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
7700
7657
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
@@ -7964,6 +7921,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7964
7921
|
reflect: true
|
|
7965
7922
|
},
|
|
7966
7923
|
|
|
7924
|
+
/**
|
|
7925
|
+
* Define custom placeholder text.
|
|
7926
|
+
*/
|
|
7927
|
+
placeholder: {
|
|
7928
|
+
type: String,
|
|
7929
|
+
reflect: true
|
|
7930
|
+
},
|
|
7931
|
+
|
|
7967
7932
|
/**
|
|
7968
7933
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
7969
7934
|
*/
|
|
@@ -8070,6 +8035,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8070
8035
|
/**
|
|
8071
8036
|
* Formatted value based on `multiSelect` state.
|
|
8072
8037
|
* Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
8038
|
+
* @private
|
|
8073
8039
|
* @returns {String|Array<String>}
|
|
8074
8040
|
*/
|
|
8075
8041
|
get formattedValue() {
|
|
@@ -8093,7 +8059,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8093
8059
|
get commonLabelClasses() {
|
|
8094
8060
|
return {
|
|
8095
8061
|
'is-disabled': this.disabled,
|
|
8096
|
-
'withValue': this.value && this.value.length > 0,
|
|
8062
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8097
8063
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
8098
8064
|
};
|
|
8099
8065
|
}
|
|
@@ -8721,7 +8687,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8721
8687
|
: u`
|
|
8722
8688
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
8723
8689
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
8724
|
-
|
|
8690
|
+
${this.errorMessage}
|
|
8725
8691
|
</p>
|
|
8726
8692
|
</${this.helpTextTag}>
|
|
8727
8693
|
`
|
|
@@ -8736,14 +8702,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8736
8702
|
*/
|
|
8737
8703
|
renderLayoutEmphasized() {
|
|
8738
8704
|
const placeholderClass = {
|
|
8739
|
-
|
|
8705
|
+
'util_displayHidden': this.value
|
|
8740
8706
|
};
|
|
8741
8707
|
|
|
8742
8708
|
const displayValueClasses = {
|
|
8743
8709
|
'displayValue': true,
|
|
8744
8710
|
'hasContent': this.hasDisplayValueContent,
|
|
8745
8711
|
'hasFocus': this.isPopoverVisible,
|
|
8746
|
-
'withValue': this.value && this.value.length > 0,
|
|
8712
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8747
8713
|
'force': this.forceDisplayValue,
|
|
8748
8714
|
};
|
|
8749
8715
|
|
|
@@ -8770,7 +8736,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8770
8736
|
.offset="${this.offset}"
|
|
8771
8737
|
.placement="${this.placement}"
|
|
8772
8738
|
chevron
|
|
8773
|
-
fluid
|
|
8774
8739
|
for="selectMenu"
|
|
8775
8740
|
layout="${this.layout}"
|
|
8776
8741
|
part="dropdown"
|
|
@@ -8787,11 +8752,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8787
8752
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8788
8753
|
</label>
|
|
8789
8754
|
<div class="value" id="value"></div>
|
|
8790
|
-
${
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
</div>
|
|
8794
|
-
`}
|
|
8755
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8756
|
+
${this.placeholder}
|
|
8757
|
+
</div>
|
|
8795
8758
|
</div>
|
|
8796
8759
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8797
8760
|
<slot name="displayValue"></slot>
|
|
@@ -8818,14 +8781,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8818
8781
|
*/
|
|
8819
8782
|
renderLayoutSnowflake() {
|
|
8820
8783
|
const placeholderClass = {
|
|
8821
|
-
|
|
8784
|
+
'util_displayHidden': this.value
|
|
8822
8785
|
};
|
|
8823
8786
|
|
|
8824
8787
|
const displayValueClasses = {
|
|
8825
8788
|
'displayValue': true,
|
|
8826
8789
|
'hasContent': this.hasDisplayValueContent,
|
|
8827
8790
|
'hasFocus': this.isPopoverVisible,
|
|
8828
|
-
'withValue': this.value && this.value.length > 0,
|
|
8791
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8829
8792
|
'force': this.forceDisplayValue,
|
|
8830
8793
|
};
|
|
8831
8794
|
|
|
@@ -8851,7 +8814,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8851
8814
|
.offset="${this.offset}"
|
|
8852
8815
|
.placement="${this.placement}"
|
|
8853
8816
|
chevron
|
|
8854
|
-
fluid
|
|
8855
8817
|
for="selectMenu"
|
|
8856
8818
|
layout="${this.layout}"
|
|
8857
8819
|
part="dropdown"
|
|
@@ -8868,11 +8830,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8868
8830
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8869
8831
|
</label>
|
|
8870
8832
|
<div class="value" id="value"></div>
|
|
8871
|
-
${
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
</div>
|
|
8875
|
-
`}
|
|
8833
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8834
|
+
${this.placeholder}
|
|
8835
|
+
</div>
|
|
8876
8836
|
</div>
|
|
8877
8837
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8878
8838
|
<slot name="displayValue"></slot>
|
|
@@ -8900,14 +8860,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8900
8860
|
*/
|
|
8901
8861
|
renderLayoutClassic() {
|
|
8902
8862
|
const placeholderClass = {
|
|
8903
|
-
|
|
8863
|
+
'util_displayHidden': this.value
|
|
8904
8864
|
};
|
|
8905
8865
|
|
|
8906
8866
|
const displayValueClasses = {
|
|
8907
8867
|
'displayValue': true,
|
|
8908
8868
|
'hasContent': this.hasDisplayValueContent,
|
|
8909
8869
|
'hasFocus': this.isPopoverVisible,
|
|
8910
|
-
'withValue': this.value && this.value.length > 0,
|
|
8870
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8911
8871
|
'force': this.forceDisplayValue,
|
|
8912
8872
|
};
|
|
8913
8873
|
|
|
@@ -8933,7 +8893,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8933
8893
|
.offset="${this.offset}"
|
|
8934
8894
|
.placement="${this.placement}"
|
|
8935
8895
|
chevron
|
|
8936
|
-
fluid
|
|
8937
8896
|
for="selectMenu"
|
|
8938
8897
|
layout="${this.layout}"
|
|
8939
8898
|
part="dropdown"
|
|
@@ -8950,11 +8909,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8950
8909
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8951
8910
|
</label>
|
|
8952
8911
|
<div class="value" id="value"></div>
|
|
8953
|
-
${
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
</div>
|
|
8957
|
-
`}
|
|
8912
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8913
|
+
${this.placeholder}
|
|
8914
|
+
</div>
|
|
8958
8915
|
</div>
|
|
8959
8916
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8960
8917
|
<slot name="displayValue"></slot>
|
|
@@ -9220,6 +9177,7 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9220
9177
|
/**
|
|
9221
9178
|
* Formatted value based on `multiSelect` state.
|
|
9222
9179
|
* Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
9180
|
+
* @private
|
|
9223
9181
|
* @returns {String|Array<String>}
|
|
9224
9182
|
*/
|
|
9225
9183
|
get formattedValue() {
|
|
@@ -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>
|