@aurodesignsystem-dev/auro-formkit 0.0.0-pr835.0 → 0.0.0-pr841.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/index.js +3 -2
- package/components/bibtemplate/dist/registered.js +3 -2
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.md +6 -0
- package/components/combobox/demo/api.min.js +27 -26
- package/components/combobox/demo/index.md +12 -0
- package/components/combobox/demo/index.min.js +27 -26
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +2 -0
- package/components/combobox/dist/index.js +27 -26
- package/components/combobox/dist/registered.js +27 -26
- package/components/counter/demo/api.md +9 -0
- package/components/counter/demo/api.min.js +6 -13
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +6 -13
- package/components/counter/dist/auro-counter-group.d.ts +1 -0
- package/components/counter/dist/index.js +6 -13
- package/components/counter/dist/registered.js +6 -13
- package/components/datepicker/README.md +1 -0
- package/components/datepicker/demo/api.md +11 -0
- package/components/datepicker/demo/api.min.js +20 -18
- package/components/datepicker/demo/index.md +12 -0
- package/components/datepicker/demo/index.min.js +20 -18
- package/components/datepicker/demo/readme.md +1 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +1 -0
- package/components/datepicker/dist/index.js +20 -18
- package/components/datepicker/dist/registered.js +20 -18
- package/components/dropdown/demo/api.md +7 -6
- package/components/dropdown/demo/api.min.js +1 -11
- package/components/dropdown/demo/index.min.js +1 -11
- package/components/dropdown/dist/index.js +1 -11
- package/components/dropdown/dist/registered.js +1 -11
- package/components/input/README.md +1 -0
- package/components/input/demo/api.md +14 -6
- package/components/input/demo/api.min.js +13 -5
- package/components/input/demo/index.md +7 -0
- package/components/input/demo/index.min.js +13 -5
- package/components/input/demo/readme.md +1 -0
- package/components/input/dist/base-input.d.ts +3 -1
- package/components/input/dist/index.js +13 -5
- package/components/input/dist/registered.js +13 -5
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +1 -0
- package/components/select/demo/api.md +9 -3
- package/components/select/demo/api.min.js +12 -13
- package/components/select/demo/index.md +8 -0
- package/components/select/demo/index.min.js +12 -13
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +5 -0
- package/components/select/dist/index.js +12 -13
- package/components/select/dist/registered.js +12 -13
- package/package.json +2 -2
|
@@ -24,6 +24,7 @@ The `<auro-input>` element should be used in situations where users may:
|
|
|
24
24
|
<label slot="label">From</label>
|
|
25
25
|
</auro-input> -->
|
|
26
26
|
<auro-input id="alpha" value="lax" layout="emphasized" shape="box" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
27
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
27
28
|
<label slot="label">From</label>
|
|
28
29
|
<span slot="helpText">Example help text</span>
|
|
29
30
|
<span slot="displayValue">
|
|
@@ -34,14 +35,17 @@ The `<auro-input>` element should be used in situations where users may:
|
|
|
34
35
|
</span>
|
|
35
36
|
</auro-input>
|
|
36
37
|
<auro-input id="beta" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
38
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
37
39
|
<label slot="label">From</label>
|
|
38
40
|
<span slot="helpText">Example help text</span>
|
|
39
41
|
</auro-input>
|
|
40
42
|
<auro-input id="charlie" layout="emphasized-left" shape="pill-left" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
43
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
41
44
|
<label slot="label">From</label>
|
|
42
45
|
<span slot="helpText">Example help text</span>
|
|
43
46
|
</auro-input>
|
|
44
47
|
<auro-input id="delta" layout="emphasized-right" shape="pill-right" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
48
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
45
49
|
<label slot="label">From</label>
|
|
46
50
|
<span slot="helpText">Example help text</span>
|
|
47
51
|
</auro-input>
|
|
@@ -54,6 +58,7 @@ The `<auro-input>` element should be used in situations where users may:
|
|
|
54
58
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
55
59
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
56
60
|
<auro-input id="snowflakePill" layout="snowflake" shape="snowflake" size="lg" placeholder="Departure" style="width: 249px;" ondark required>
|
|
61
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
57
62
|
<label slot="label">From</label>
|
|
58
63
|
<span slot="helpText">Example help text</span>
|
|
59
64
|
</auro-input>
|
|
@@ -68,6 +73,7 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
68
73
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
69
74
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
70
75
|
<auro-input>
|
|
76
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
71
77
|
<span slot="label">Label</span>
|
|
72
78
|
<span slot="helpText">Help Text</span>
|
|
73
79
|
</auro-input>
|
|
@@ -89,6 +95,7 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
89
95
|
|
|
90
96
|
```html
|
|
91
97
|
<auro-input>
|
|
98
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
92
99
|
<span slot="label">Label</span>
|
|
93
100
|
<span slot="helpText">Help Text</span>
|
|
94
101
|
</auro-input>
|
|
@@ -47,7 +47,7 @@ var styleCss$4 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
47
47
|
|
|
48
48
|
var styleDefaultCss = i$5`.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}`;
|
|
49
49
|
|
|
50
|
-
var colorBaseCss = i$5`.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)}: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);--ds-auro-input-placeholder-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);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
50
|
+
var colorBaseCss = i$5`.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)}: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);--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-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);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
51
51
|
|
|
52
52
|
var tokensCss$4 = i$5`: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-muted, #ccd2db);--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}`;
|
|
53
53
|
|
|
@@ -5030,6 +5030,9 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
5030
5030
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
5031
5031
|
* @attr id
|
|
5032
5032
|
*
|
|
5033
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
5034
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
5035
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
5033
5036
|
* @slot helpText - Sets the help text displayed below the input.
|
|
5034
5037
|
* @slot label - Sets the label text for the input.
|
|
5035
5038
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -5457,8 +5460,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5457
5460
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5458
5461
|
*/
|
|
5459
5462
|
value: {
|
|
5460
|
-
type: String
|
|
5461
|
-
reflect: true
|
|
5463
|
+
type: String
|
|
5462
5464
|
},
|
|
5463
5465
|
|
|
5464
5466
|
/**
|
|
@@ -8170,12 +8172,13 @@ class AuroInput extends BaseInput {
|
|
|
8170
8172
|
<${this.buttonTag}
|
|
8171
8173
|
@click="${this.handleClickClear}"
|
|
8172
8174
|
?onDark="${this.onDark}"
|
|
8173
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
8174
8175
|
class="notificationBtn clearBtn"
|
|
8175
8176
|
shape="circle"
|
|
8176
8177
|
size="sm"
|
|
8177
8178
|
variant="ghost">
|
|
8179
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8178
8180
|
<${this.iconTag}
|
|
8181
|
+
aria-hidden="true"
|
|
8179
8182
|
?customColor="${this.onDark}"
|
|
8180
8183
|
category="interface"
|
|
8181
8184
|
name="x-lg"
|
|
@@ -8198,18 +8201,23 @@ class AuroInput extends BaseInput {
|
|
|
8198
8201
|
@click="${this.handleClickShowPassword}"
|
|
8199
8202
|
?onDark="${this.onDark}"
|
|
8200
8203
|
class="notificationBtn passwordBtn"
|
|
8201
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8202
8204
|
shape="circle"
|
|
8203
8205
|
size="sm"
|
|
8204
8206
|
variant="ghost">
|
|
8207
|
+
<span>
|
|
8208
|
+
${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8209
|
+
: u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8210
|
+
</span>
|
|
8205
8211
|
<${this.iconTag}
|
|
8206
8212
|
?customColor="${this.onDark}"
|
|
8213
|
+
aria-hidden="true"
|
|
8207
8214
|
?hidden=${!this.showPassword}
|
|
8208
8215
|
category="interface"
|
|
8209
8216
|
name="hide-password-stroke">
|
|
8210
8217
|
</${this.iconTag}>
|
|
8211
8218
|
<${this.iconTag}
|
|
8212
8219
|
?customColor="${this.onDark}"
|
|
8220
|
+
aria-hidden="true"
|
|
8213
8221
|
?hidden=${this.showPassword}
|
|
8214
8222
|
category="interface"
|
|
8215
8223
|
name="view-password-stroke">
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
5
5
|
* @attr id
|
|
6
6
|
*
|
|
7
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
8
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
9
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
7
10
|
* @slot helpText - Sets the help text displayed below the input.
|
|
8
11
|
* @slot label - Sets the label text for the input.
|
|
9
12
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -292,7 +295,6 @@ export default class BaseInput extends AuroElement {
|
|
|
292
295
|
*/
|
|
293
296
|
value: {
|
|
294
297
|
type: StringConstructor;
|
|
295
|
-
reflect: boolean;
|
|
296
298
|
};
|
|
297
299
|
/**
|
|
298
300
|
* Sets validation mode to re-eval with each input.
|
|
@@ -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)}: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);--ds-auro-input-placeholder-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);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
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)}: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);--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-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);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-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-muted, #ccd2db);--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
|
|
|
@@ -4954,6 +4954,9 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
4954
4954
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4955
4955
|
* @attr id
|
|
4956
4956
|
*
|
|
4957
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
4958
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
4959
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
4957
4960
|
* @slot helpText - Sets the help text displayed below the input.
|
|
4958
4961
|
* @slot label - Sets the label text for the input.
|
|
4959
4962
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -5381,8 +5384,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5381
5384
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5382
5385
|
*/
|
|
5383
5386
|
value: {
|
|
5384
|
-
type: String
|
|
5385
|
-
reflect: true
|
|
5387
|
+
type: String
|
|
5386
5388
|
},
|
|
5387
5389
|
|
|
5388
5390
|
/**
|
|
@@ -8094,12 +8096,13 @@ class AuroInput extends BaseInput {
|
|
|
8094
8096
|
<${this.buttonTag}
|
|
8095
8097
|
@click="${this.handleClickClear}"
|
|
8096
8098
|
?onDark="${this.onDark}"
|
|
8097
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
8098
8099
|
class="notificationBtn clearBtn"
|
|
8099
8100
|
shape="circle"
|
|
8100
8101
|
size="sm"
|
|
8101
8102
|
variant="ghost">
|
|
8103
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8102
8104
|
<${this.iconTag}
|
|
8105
|
+
aria-hidden="true"
|
|
8103
8106
|
?customColor="${this.onDark}"
|
|
8104
8107
|
category="interface"
|
|
8105
8108
|
name="x-lg"
|
|
@@ -8122,18 +8125,23 @@ class AuroInput extends BaseInput {
|
|
|
8122
8125
|
@click="${this.handleClickShowPassword}"
|
|
8123
8126
|
?onDark="${this.onDark}"
|
|
8124
8127
|
class="notificationBtn passwordBtn"
|
|
8125
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8126
8128
|
shape="circle"
|
|
8127
8129
|
size="sm"
|
|
8128
8130
|
variant="ghost">
|
|
8131
|
+
<span>
|
|
8132
|
+
${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8133
|
+
: html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8134
|
+
</span>
|
|
8129
8135
|
<${this.iconTag}
|
|
8130
8136
|
?customColor="${this.onDark}"
|
|
8137
|
+
aria-hidden="true"
|
|
8131
8138
|
?hidden=${!this.showPassword}
|
|
8132
8139
|
category="interface"
|
|
8133
8140
|
name="hide-password-stroke">
|
|
8134
8141
|
</${this.iconTag}>
|
|
8135
8142
|
<${this.iconTag}
|
|
8136
8143
|
?customColor="${this.onDark}"
|
|
8144
|
+
aria-hidden="true"
|
|
8137
8145
|
?hidden=${this.showPassword}
|
|
8138
8146
|
category="interface"
|
|
8139
8147
|
name="view-password-stroke">
|
|
@@ -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)}: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);--ds-auro-input-placeholder-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);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
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)}: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);--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-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);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-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-muted, #ccd2db);--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
|
|
|
@@ -4954,6 +4954,9 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
4954
4954
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4955
4955
|
* @attr id
|
|
4956
4956
|
*
|
|
4957
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
4958
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
4959
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
4957
4960
|
* @slot helpText - Sets the help text displayed below the input.
|
|
4958
4961
|
* @slot label - Sets the label text for the input.
|
|
4959
4962
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -5381,8 +5384,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5381
5384
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5382
5385
|
*/
|
|
5383
5386
|
value: {
|
|
5384
|
-
type: String
|
|
5385
|
-
reflect: true
|
|
5387
|
+
type: String
|
|
5386
5388
|
},
|
|
5387
5389
|
|
|
5388
5390
|
/**
|
|
@@ -8094,12 +8096,13 @@ class AuroInput extends BaseInput {
|
|
|
8094
8096
|
<${this.buttonTag}
|
|
8095
8097
|
@click="${this.handleClickClear}"
|
|
8096
8098
|
?onDark="${this.onDark}"
|
|
8097
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
8098
8099
|
class="notificationBtn clearBtn"
|
|
8099
8100
|
shape="circle"
|
|
8100
8101
|
size="sm"
|
|
8101
8102
|
variant="ghost">
|
|
8103
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8102
8104
|
<${this.iconTag}
|
|
8105
|
+
aria-hidden="true"
|
|
8103
8106
|
?customColor="${this.onDark}"
|
|
8104
8107
|
category="interface"
|
|
8105
8108
|
name="x-lg"
|
|
@@ -8122,18 +8125,23 @@ class AuroInput extends BaseInput {
|
|
|
8122
8125
|
@click="${this.handleClickShowPassword}"
|
|
8123
8126
|
?onDark="${this.onDark}"
|
|
8124
8127
|
class="notificationBtn passwordBtn"
|
|
8125
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8126
8128
|
shape="circle"
|
|
8127
8129
|
size="sm"
|
|
8128
8130
|
variant="ghost">
|
|
8131
|
+
<span>
|
|
8132
|
+
${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8133
|
+
: html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8134
|
+
</span>
|
|
8129
8135
|
<${this.iconTag}
|
|
8130
8136
|
?customColor="${this.onDark}"
|
|
8137
|
+
aria-hidden="true"
|
|
8131
8138
|
?hidden=${!this.showPassword}
|
|
8132
8139
|
category="interface"
|
|
8133
8140
|
name="hide-password-stroke">
|
|
8134
8141
|
</${this.iconTag}>
|
|
8135
8142
|
<${this.iconTag}
|
|
8136
8143
|
?customColor="${this.onDark}"
|
|
8144
|
+
aria-hidden="true"
|
|
8137
8145
|
?hidden=${this.showPassword}
|
|
8138
8146
|
category="interface"
|
|
8139
8147
|
name="view-password-stroke">
|
|
@@ -420,7 +420,7 @@ class AuroRadio extends i$2 {
|
|
|
420
420
|
@input="${this.handleInput}"
|
|
421
421
|
@change="${this.handleChange}"
|
|
422
422
|
?disabled="${this.disabled}"
|
|
423
|
-
|
|
423
|
+
.checked="${this.checked}"
|
|
424
424
|
id="${this.inputId}"
|
|
425
425
|
name="${o$1(this.name)}"
|
|
426
426
|
type="radio"
|
|
@@ -395,7 +395,7 @@ class AuroRadio extends i$2 {
|
|
|
395
395
|
@input="${this.handleInput}"
|
|
396
396
|
@change="${this.handleChange}"
|
|
397
397
|
?disabled="${this.disabled}"
|
|
398
|
-
|
|
398
|
+
.checked="${this.checked}"
|
|
399
399
|
id="${this.inputId}"
|
|
400
400
|
name="${o$1(this.name)}"
|
|
401
401
|
type="radio"
|
|
@@ -355,7 +355,7 @@ class AuroRadio extends LitElement {
|
|
|
355
355
|
@input="${this.handleInput}"
|
|
356
356
|
@change="${this.handleChange}"
|
|
357
357
|
?disabled="${this.disabled}"
|
|
358
|
-
|
|
358
|
+
.checked="${this.checked}"
|
|
359
359
|
id="${this.inputId}"
|
|
360
360
|
name="${ifDefined(this.name)}"
|
|
361
361
|
type="radio"
|
|
@@ -355,7 +355,7 @@ class AuroRadio extends LitElement {
|
|
|
355
355
|
@input="${this.handleInput}"
|
|
356
356
|
@change="${this.handleChange}"
|
|
357
357
|
?disabled="${this.disabled}"
|
|
358
|
-
|
|
358
|
+
.checked="${this.checked}"
|
|
359
359
|
id="${this.inputId}"
|
|
360
360
|
name="${ifDefined(this.name)}"
|
|
361
361
|
type="radio"
|
|
@@ -84,6 +84,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
86
|
<auro-select>
|
|
87
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
87
88
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
88
89
|
<span slot="label">Select Example</span>
|
|
89
90
|
<auro-menu>
|
|
@@ -65,6 +65,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
65
65
|
| Name | Description |
|
|
66
66
|
|---------------------------|--------------------------------------------------|
|
|
67
67
|
| | Default slot for the menu content. |
|
|
68
|
+
| `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
|
|
68
69
|
| `bib.fullscreen.headline` | Defines the headline to display above menu-options |
|
|
69
70
|
| [displayValue](#displayValue) | Allows custom HTML content to display the selected value when select is not focused. |
|
|
70
71
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
@@ -74,9 +75,12 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
74
75
|
|
|
75
76
|
## CSS Shadow Parts
|
|
76
77
|
|
|
77
|
-
| Part
|
|
78
|
-
|
|
79
|
-
| [
|
|
78
|
+
| Part | Description |
|
|
79
|
+
|-------------------|--------------------------------------------------|
|
|
80
|
+
| [dropdownChevron](#dropdownChevron) | Apply CSS to the collapsed/expanded state icon container. |
|
|
81
|
+
| [dropdownSize](#dropdownSize) | Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only) |
|
|
82
|
+
| [dropdownTrigger](#dropdownTrigger) | Apply CSS to the trigger content container. |
|
|
83
|
+
| [helpText](#helpText) | Apply CSS to the help text. |
|
|
80
84
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
81
85
|
|
|
82
86
|
## API Examples
|
|
@@ -89,6 +93,7 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
89
93
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
90
94
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
91
95
|
<auro-select>
|
|
96
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
92
97
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
93
98
|
<span slot="label">Select Example</span>
|
|
94
99
|
<auro-menu>
|
|
@@ -126,6 +131,7 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
126
131
|
|
|
127
132
|
```html
|
|
128
133
|
<auro-select>
|
|
134
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
129
135
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
130
136
|
<span slot="label">Select Example</span>
|
|
131
137
|
<auro-menu>
|
|
@@ -3049,12 +3049,6 @@ class AuroFloatingUI {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
|
|
3051
3051
|
setupHideHandlers() {
|
|
3052
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
3053
|
-
event.preventDefault();
|
|
3054
|
-
event.stopPropagation();
|
|
3055
|
-
};
|
|
3056
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3057
|
-
|
|
3058
3052
|
// Define handlers & store references
|
|
3059
3053
|
this.focusHandler = () => this.handleFocusLoss();
|
|
3060
3054
|
|
|
@@ -3104,11 +3098,6 @@ class AuroFloatingUI {
|
|
|
3104
3098
|
cleanupHideHandlers() {
|
|
3105
3099
|
// Remove event listeners if they exist
|
|
3106
3100
|
|
|
3107
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
3108
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3109
|
-
delete this.preventFocusLoseOnBibClick;
|
|
3110
|
-
}
|
|
3111
|
-
|
|
3112
3101
|
if (this.focusHandler) {
|
|
3113
3102
|
document.removeEventListener('focusin', this.focusHandler);
|
|
3114
3103
|
this.focusHandler = null;
|
|
@@ -4608,6 +4597,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
4608
4597
|
* @slot trigger - Defines the content of the trigger.
|
|
4609
4598
|
* @csspart trigger - The trigger content container.
|
|
4610
4599
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
4600
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
4611
4601
|
* @csspart helpText - The helpText content container.
|
|
4612
4602
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4613
4603
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -7404,8 +7394,9 @@ class AuroBibtemplate extends i$2 {
|
|
|
7404
7394
|
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
7405
7395
|
<slot name="header"></slot>
|
|
7406
7396
|
</${this.headerTag}>
|
|
7407
|
-
<${this.buttonTag} id="closeButton"
|
|
7408
|
-
|
|
7397
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7398
|
+
<span><slot name="ariaLabel.close">Close</slot></span>
|
|
7399
|
+
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
7409
7400
|
</${this.buttonTag}>
|
|
7410
7401
|
</div>
|
|
7411
7402
|
<span class="subheader">
|
|
@@ -7645,6 +7636,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7645
7636
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
7646
7637
|
*
|
|
7647
7638
|
* @slot - Default slot for the menu content.
|
|
7639
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
7648
7640
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
7649
7641
|
* @slot label - Defines the content of the label.
|
|
7650
7642
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -7654,6 +7646,10 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7654
7646
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
7655
7647
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
7656
7648
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
7649
|
+
*
|
|
7650
|
+
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
7651
|
+
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
7652
|
+
* @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
7657
7653
|
* @csspart helpText - Apply CSS to the help text.
|
|
7658
7654
|
*/
|
|
7659
7655
|
|
|
@@ -8830,6 +8826,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8830
8826
|
</div>
|
|
8831
8827
|
<div class="menuWrapper"></div>
|
|
8832
8828
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8829
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8833
8830
|
<slot></slot>
|
|
8834
8831
|
</${this.bibtemplateTag}>
|
|
8835
8832
|
<div slot="helpText">
|
|
@@ -8907,6 +8904,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8907
8904
|
</div>
|
|
8908
8905
|
<div class="menuWrapper"></div>
|
|
8909
8906
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8907
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8910
8908
|
<slot></slot>
|
|
8911
8909
|
</${this.bibtemplateTag}>
|
|
8912
8910
|
<div slot="helpText">
|
|
@@ -8990,6 +8988,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8990
8988
|
</div>
|
|
8991
8989
|
<div class="menuWrapper"></div>
|
|
8992
8990
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
8991
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
8993
8992
|
<slot></slot>
|
|
8994
8993
|
</${this.bibtemplateTag}>
|
|
8995
8994
|
<div slot="helpText">
|
|
@@ -21,6 +21,7 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
|
|
|
21
21
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
22
22
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
23
23
|
<auro-select>
|
|
24
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
24
25
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
25
26
|
<span slot="label">Select Example</span>
|
|
26
27
|
<auro-menu>
|
|
@@ -58,6 +59,7 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
|
|
|
58
59
|
|
|
59
60
|
```html
|
|
60
61
|
<auro-select>
|
|
62
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
61
63
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
62
64
|
<span slot="label">Select Example</span>
|
|
63
65
|
<auro-menu>
|
|
@@ -102,6 +104,7 @@ The `classic` layout is default for `auro-select`. No customization is needed to
|
|
|
102
104
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
103
105
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
104
106
|
<auro-select>
|
|
107
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
105
108
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
106
109
|
<span slot="label">Select Example</span>
|
|
107
110
|
<auro-menu>
|
|
@@ -122,6 +125,7 @@ The `classic` layout is default for `auro-select`. No customization is needed to
|
|
|
122
125
|
|
|
123
126
|
```html
|
|
124
127
|
<auro-select>
|
|
128
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
125
129
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
126
130
|
<span slot="label">Select Example</span>
|
|
127
131
|
<auro-menu>
|
|
@@ -154,6 +158,7 @@ The `emphasized` layout supports the following sizes:
|
|
|
154
158
|
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic-ondark.html -->
|
|
155
159
|
<div>
|
|
156
160
|
<auro-select layout="emphasized" shape="pill" size="xl" ondark required style="width:300px;">
|
|
161
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
157
162
|
<span slot="label">Label</span>
|
|
158
163
|
<span slot="helpText">Help Text</span>
|
|
159
164
|
<auro-menu nocheckmark>
|
|
@@ -229,6 +234,7 @@ The `emphasized` layout supports the following sizes:
|
|
|
229
234
|
```html
|
|
230
235
|
<div>
|
|
231
236
|
<auro-select layout="emphasized" shape="pill" size="xl" ondark required style="width:300px;">
|
|
237
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
232
238
|
<span slot="label">Label</span>
|
|
233
239
|
<span slot="helpText">Help Text</span>
|
|
234
240
|
<auro-menu nocheckmark>
|
|
@@ -306,6 +312,7 @@ The `snowflake` layout is a unique, one off layout that does not follow the norm
|
|
|
306
312
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic-ondark.html) -->
|
|
307
313
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic-ondark.html -->
|
|
308
314
|
<auro-select layout="snowflake" shape="snowflake" ondark required style="width:300px;">
|
|
315
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
309
316
|
<span slot="label">Label</span>
|
|
310
317
|
<span slot="helpText">Help Text</span>
|
|
311
318
|
<auro-menu nocheckmark>
|
|
@@ -335,6 +342,7 @@ The `snowflake` layout is a unique, one off layout that does not follow the norm
|
|
|
335
342
|
|
|
336
343
|
```html
|
|
337
344
|
<auro-select layout="snowflake" shape="snowflake" ondark required style="width:300px;">
|
|
345
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
338
346
|
<span slot="label">Label</span>
|
|
339
347
|
<span slot="helpText">Help Text</span>
|
|
340
348
|
<auro-menu nocheckmark>
|