@aurodesignsystem-dev/auro-formkit 0.0.0-pr832.0 → 0.0.0-pr833.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 +8 -10
- package/components/bibtemplate/dist/registered.js +8 -10
- package/components/checkbox/demo/api.md +6 -7
- package/components/checkbox/demo/api.min.js +8 -5
- package/components/checkbox/demo/index.min.js +8 -5
- package/components/checkbox/dist/auro-checkbox.d.ts +0 -3
- package/components/checkbox/dist/index.js +8 -5
- package/components/checkbox/dist/registered.js +8 -5
- package/components/combobox/demo/api.min.js +32 -46
- package/components/combobox/demo/index.min.js +32 -46
- package/components/combobox/dist/auro-combobox.d.ts +0 -5
- package/components/combobox/dist/index.js +32 -46
- package/components/combobox/dist/registered.js +32 -46
- package/components/counter/demo/api.min.js +23 -14
- package/components/counter/demo/index.min.js +23 -14
- package/components/counter/dist/index.js +23 -14
- package/components/counter/dist/registered.js +23 -14
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/api.min.js +23 -14
- package/components/datepicker/demo/index.min.js +23 -14
- package/components/datepicker/dist/index.js +23 -14
- package/components/datepicker/dist/registered.js +23 -14
- package/components/dropdown/demo/api.min.js +11 -0
- package/components/dropdown/demo/index.min.js +11 -0
- package/components/dropdown/dist/index.js +11 -0
- package/components/dropdown/dist/registered.js +11 -0
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/input/demo/api.md +3 -1
- package/components/input/demo/api.min.js +3 -3
- package/components/input/demo/index.min.js +3 -3
- package/components/input/dist/auro-input.d.ts +2 -2
- package/components/input/dist/index.js +3 -3
- package/components/input/dist/registered.js +3 -3
- package/components/radio/demo/api.md +0 -2
- package/components/radio/demo/api.min.js +1 -3
- package/components/radio/demo/index.min.js +1 -3
- package/components/radio/dist/auro-radio.d.ts +0 -2
- package/components/radio/dist/index.js +1 -3
- package/components/radio/dist/registered.js +1 -3
- package/components/select/demo/api.md +0 -1
- package/components/select/demo/api.min.js +36 -57
- package/components/select/demo/index.min.js +36 -57
- package/components/select/dist/auro-select.d.ts +1 -13
- package/components/select/dist/index.js +36 -57
- package/components/select/dist/registered.js +36 -57
- package/package.json +5 -5
|
@@ -5,7 +5,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
|
|
6
6
|
var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
7
7
|
|
|
8
|
-
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;
|
|
8
|
+
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){box-sizing:border-box;padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
9
9
|
|
|
10
10
|
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11
11
|
|
|
@@ -1909,15 +1909,13 @@ class AuroBibtemplate extends LitElement {
|
|
|
1909
1909
|
<div id="bibTemplate" part="bibtemplate">
|
|
1910
1910
|
${this.isFullscreen ? html$1`
|
|
1911
1911
|
<div id="headerContainer">
|
|
1912
|
-
|
|
1913
|
-
<${this.
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
</div>
|
|
1920
|
-
<span class="subheader">
|
|
1912
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1913
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
1914
|
+
</${this.buttonTag}>
|
|
1915
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
1916
|
+
<slot name="header"></slot>
|
|
1917
|
+
</${this.headerTag}>
|
|
1918
|
+
<span id="subheader">
|
|
1921
1919
|
<slot name="subheader"></slot>
|
|
1922
1920
|
</span>
|
|
1923
1921
|
</div>` : null}
|
|
@@ -5,7 +5,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
|
|
6
6
|
var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
7
7
|
|
|
8
|
-
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;
|
|
8
|
+
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){box-sizing:border-box;padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
9
9
|
|
|
10
10
|
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11
11
|
|
|
@@ -1909,15 +1909,13 @@ class AuroBibtemplate extends LitElement {
|
|
|
1909
1909
|
<div id="bibTemplate" part="bibtemplate">
|
|
1910
1910
|
${this.isFullscreen ? html$1`
|
|
1911
1911
|
<div id="headerContainer">
|
|
1912
|
-
|
|
1913
|
-
<${this.
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
</div>
|
|
1920
|
-
<span class="subheader">
|
|
1912
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1913
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
1914
|
+
</${this.buttonTag}>
|
|
1915
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
1916
|
+
<slot name="header"></slot>
|
|
1917
|
+
</${this.headerTag}>
|
|
1918
|
+
<span id="subheader">
|
|
1921
1919
|
<slot name="subheader"></slot>
|
|
1922
1920
|
</span>
|
|
1923
1921
|
</div>` : null}
|
|
@@ -66,13 +66,12 @@ Custom element for the purpose of allowing users to select one or more options o
|
|
|
66
66
|
|
|
67
67
|
## Events
|
|
68
68
|
|
|
69
|
-
| Event | Type |
|
|
70
|
-
|
|
71
|
-
| `auroCheckbox-focusin` | `CustomEvent<any>` |
|
|
72
|
-
| `auroCheckbox-focusout` | `CustomEvent<any>` |
|
|
73
|
-
| `auroCheckbox-input` | `CustomEvent<any>` |
|
|
74
|
-
| [
|
|
75
|
-
| [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
|
|
69
|
+
| Event | Type |
|
|
70
|
+
|-------------------------|--------------------|
|
|
71
|
+
| `auroCheckbox-focusin` | `CustomEvent<any>` |
|
|
72
|
+
| `auroCheckbox-focusout` | `CustomEvent<any>` |
|
|
73
|
+
| `auroCheckbox-input` | `CustomEvent<any>` |
|
|
74
|
+
| [input](#input) | `CustomEvent<any>` |
|
|
76
75
|
|
|
77
76
|
## CSS Shadow Parts
|
|
78
77
|
|
|
@@ -142,9 +142,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
142
142
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
143
143
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
144
144
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
145
|
-
*
|
|
146
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
147
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
148
145
|
*/
|
|
149
146
|
|
|
150
147
|
// build the component class
|
|
@@ -290,6 +287,12 @@ class AuroCheckbox extends i$2 {
|
|
|
290
287
|
handleInput(event) {
|
|
291
288
|
this.checked = event.target.checked;
|
|
292
289
|
|
|
290
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
291
|
+
bubbles: true,
|
|
292
|
+
cancelable: false,
|
|
293
|
+
composed: true,
|
|
294
|
+
}));
|
|
295
|
+
|
|
293
296
|
// Old event we need to deprecate
|
|
294
297
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
295
298
|
bubbles: true,
|
|
@@ -349,7 +352,7 @@ class AuroCheckbox extends i$2 {
|
|
|
349
352
|
}
|
|
350
353
|
|
|
351
354
|
if (!this.disabled) {
|
|
352
|
-
this.
|
|
355
|
+
this.checked = !this.checked;
|
|
353
356
|
this.handleFocusin();
|
|
354
357
|
}
|
|
355
358
|
});
|
|
@@ -387,7 +390,7 @@ class AuroCheckbox extends i$2 {
|
|
|
387
390
|
@change="${this.handleChange}"
|
|
388
391
|
@input="${this.handleInput}"
|
|
389
392
|
?disabled="${this.disabled}"
|
|
390
|
-
|
|
393
|
+
.checked="${this.checked}"
|
|
391
394
|
id="${this.inputId}"
|
|
392
395
|
name="${o$1(this.name)}"
|
|
393
396
|
type="checkbox"
|
|
@@ -134,9 +134,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
134
134
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
135
135
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
136
136
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
137
|
-
*
|
|
138
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
139
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
140
137
|
*/
|
|
141
138
|
|
|
142
139
|
// build the component class
|
|
@@ -282,6 +279,12 @@ class AuroCheckbox extends i$2 {
|
|
|
282
279
|
handleInput(event) {
|
|
283
280
|
this.checked = event.target.checked;
|
|
284
281
|
|
|
282
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
283
|
+
bubbles: true,
|
|
284
|
+
cancelable: false,
|
|
285
|
+
composed: true,
|
|
286
|
+
}));
|
|
287
|
+
|
|
285
288
|
// Old event we need to deprecate
|
|
286
289
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
287
290
|
bubbles: true,
|
|
@@ -341,7 +344,7 @@ class AuroCheckbox extends i$2 {
|
|
|
341
344
|
}
|
|
342
345
|
|
|
343
346
|
if (!this.disabled) {
|
|
344
|
-
this.
|
|
347
|
+
this.checked = !this.checked;
|
|
345
348
|
this.handleFocusin();
|
|
346
349
|
}
|
|
347
350
|
});
|
|
@@ -379,7 +382,7 @@ class AuroCheckbox extends i$2 {
|
|
|
379
382
|
@change="${this.handleChange}"
|
|
380
383
|
@input="${this.handleInput}"
|
|
381
384
|
?disabled="${this.disabled}"
|
|
382
|
-
|
|
385
|
+
.checked="${this.checked}"
|
|
383
386
|
id="${this.inputId}"
|
|
384
387
|
name="${o$1(this.name)}"
|
|
385
388
|
type="checkbox"
|
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
8
8
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
9
9
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
10
|
-
*
|
|
11
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
12
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
13
10
|
*/
|
|
14
11
|
export class AuroCheckbox extends LitElement {
|
|
15
12
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -94,9 +94,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
95
95
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
96
96
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
97
|
-
*
|
|
98
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
99
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
100
97
|
*/
|
|
101
98
|
|
|
102
99
|
// build the component class
|
|
@@ -242,6 +239,12 @@ class AuroCheckbox extends LitElement {
|
|
|
242
239
|
handleInput(event) {
|
|
243
240
|
this.checked = event.target.checked;
|
|
244
241
|
|
|
242
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
+
bubbles: true,
|
|
244
|
+
cancelable: false,
|
|
245
|
+
composed: true,
|
|
246
|
+
}));
|
|
247
|
+
|
|
245
248
|
// Old event we need to deprecate
|
|
246
249
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
247
250
|
bubbles: true,
|
|
@@ -301,7 +304,7 @@ class AuroCheckbox extends LitElement {
|
|
|
301
304
|
}
|
|
302
305
|
|
|
303
306
|
if (!this.disabled) {
|
|
304
|
-
this.
|
|
307
|
+
this.checked = !this.checked;
|
|
305
308
|
this.handleFocusin();
|
|
306
309
|
}
|
|
307
310
|
});
|
|
@@ -339,7 +342,7 @@ class AuroCheckbox extends LitElement {
|
|
|
339
342
|
@change="${this.handleChange}"
|
|
340
343
|
@input="${this.handleInput}"
|
|
341
344
|
?disabled="${this.disabled}"
|
|
342
|
-
|
|
345
|
+
.checked="${this.checked}"
|
|
343
346
|
id="${this.inputId}"
|
|
344
347
|
name="${ifDefined(this.name)}"
|
|
345
348
|
type="checkbox"
|
|
@@ -94,9 +94,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
95
95
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
96
96
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
97
|
-
*
|
|
98
|
-
* @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
99
|
-
* @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
100
97
|
*/
|
|
101
98
|
|
|
102
99
|
// build the component class
|
|
@@ -242,6 +239,12 @@ class AuroCheckbox extends LitElement {
|
|
|
242
239
|
handleInput(event) {
|
|
243
240
|
this.checked = event.target.checked;
|
|
244
241
|
|
|
242
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
+
bubbles: true,
|
|
244
|
+
cancelable: false,
|
|
245
|
+
composed: true,
|
|
246
|
+
}));
|
|
247
|
+
|
|
245
248
|
// Old event we need to deprecate
|
|
246
249
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
247
250
|
bubbles: true,
|
|
@@ -301,7 +304,7 @@ class AuroCheckbox extends LitElement {
|
|
|
301
304
|
}
|
|
302
305
|
|
|
303
306
|
if (!this.disabled) {
|
|
304
|
-
this.
|
|
307
|
+
this.checked = !this.checked;
|
|
305
308
|
this.handleFocusin();
|
|
306
309
|
}
|
|
307
310
|
});
|
|
@@ -339,7 +342,7 @@ class AuroCheckbox extends LitElement {
|
|
|
339
342
|
@change="${this.handleChange}"
|
|
340
343
|
@input="${this.handleInput}"
|
|
341
344
|
?disabled="${this.disabled}"
|
|
342
|
-
|
|
345
|
+
.checked="${this.checked}"
|
|
343
346
|
id="${this.inputId}"
|
|
344
347
|
name="${ifDefined(this.name)}"
|
|
345
348
|
type="checkbox"
|
|
@@ -3023,6 +3023,12 @@ class AuroFloatingUI {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
3025
|
setupHideHandlers() {
|
|
3026
|
+
this.preventFocusLoseOnBibClick = (event) => {
|
|
3027
|
+
event.preventDefault();
|
|
3028
|
+
event.stopPropagation();
|
|
3029
|
+
};
|
|
3030
|
+
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3031
|
+
|
|
3026
3032
|
// Define handlers & store references
|
|
3027
3033
|
this.focusHandler = () => this.handleFocusLoss();
|
|
3028
3034
|
|
|
@@ -3072,6 +3078,11 @@ class AuroFloatingUI {
|
|
|
3072
3078
|
cleanupHideHandlers() {
|
|
3073
3079
|
// Remove event listeners if they exist
|
|
3074
3080
|
|
|
3081
|
+
if (this.preventFocusLoseOnBibClick) {
|
|
3082
|
+
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3083
|
+
delete this.preventFocusLoseOnBibClick;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3075
3086
|
if (this.focusHandler) {
|
|
3076
3087
|
document.removeEventListener('focusin', this.focusHandler);
|
|
3077
3088
|
this.focusHandler = null;
|
|
@@ -5478,7 +5489,7 @@ var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
5478
5489
|
|
|
5479
5490
|
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)}`;
|
|
5480
5491
|
|
|
5481
|
-
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
|
|
5492
|
+
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, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
5482
5493
|
|
|
5483
5494
|
var classicStyleCss = i$5`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
5484
5495
|
|
|
@@ -13356,7 +13367,7 @@ class AuroInput extends BaseInput {
|
|
|
13356
13367
|
/**
|
|
13357
13368
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
13358
13369
|
* @private
|
|
13359
|
-
* @returns {
|
|
13370
|
+
* @returns {Record<string, boolean>}
|
|
13360
13371
|
*/
|
|
13361
13372
|
get commonLabelClasses() {
|
|
13362
13373
|
return {
|
|
@@ -13370,7 +13381,7 @@ class AuroInput extends BaseInput {
|
|
|
13370
13381
|
/**
|
|
13371
13382
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
13372
13383
|
* @private
|
|
13373
|
-
* @returns {
|
|
13384
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
13374
13385
|
*/
|
|
13375
13386
|
get commonInputClasses() {
|
|
13376
13387
|
return {
|
|
@@ -13813,7 +13824,7 @@ var inputVersion = '4.2.0';
|
|
|
13813
13824
|
|
|
13814
13825
|
var colorCss$3$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
13815
13826
|
|
|
13816
|
-
var styleCss$4$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;
|
|
13827
|
+
var styleCss$4$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){box-sizing:border-box;padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
13817
13828
|
|
|
13818
13829
|
var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
13819
13830
|
|
|
@@ -15717,15 +15728,13 @@ class AuroBibtemplate extends i$2 {
|
|
|
15717
15728
|
<div id="bibTemplate" part="bibtemplate">
|
|
15718
15729
|
${this.isFullscreen ? u$2`
|
|
15719
15730
|
<div id="headerContainer">
|
|
15720
|
-
|
|
15721
|
-
<${this.
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15726
|
-
|
|
15727
|
-
</div>
|
|
15728
|
-
<span class="subheader">
|
|
15731
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15732
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15733
|
+
</${this.buttonTag}>
|
|
15734
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15735
|
+
<slot name="header"></slot>
|
|
15736
|
+
</${this.headerTag}>
|
|
15737
|
+
<span id="subheader">
|
|
15729
15738
|
<slot name="subheader"></slot>
|
|
15730
15739
|
</span>
|
|
15731
15740
|
</div>` : null}
|
|
@@ -15745,7 +15754,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
15745
15754
|
|
|
15746
15755
|
var bibTemplateVersion = '1.0.0';
|
|
15747
15756
|
|
|
15748
|
-
var styleCss$4 = 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}:host{display:block}:host [auro-input]{--ds-auro-input-background-color: transparent}:host
|
|
15757
|
+
var styleCss$4 = 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}:host{display:block}:host [auro-input]{--ds-auro-input-background-color: transparent}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15749
15758
|
|
|
15750
15759
|
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15751
15760
|
|
|
@@ -16591,7 +16600,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16591
16600
|
// Listen for the dropdown to be shown or hidden
|
|
16592
16601
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16593
16602
|
this.dropdownOpen = ev.detail.expanded;
|
|
16594
|
-
this.updateMenuShapeSize();
|
|
16595
16603
|
|
|
16596
16604
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16597
16605
|
setTimeout(() => {
|
|
@@ -16618,11 +16626,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16618
16626
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16619
16627
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16620
16628
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16621
|
-
this.
|
|
16622
|
-
|
|
16623
|
-
setTimeout(() => {
|
|
16624
|
-
this.setInputFocus();
|
|
16625
|
-
}, 0);
|
|
16629
|
+
setTimeout(this.setInputFocus, 0);
|
|
16626
16630
|
});
|
|
16627
16631
|
}
|
|
16628
16632
|
|
|
@@ -16637,30 +16641,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16637
16641
|
}
|
|
16638
16642
|
}
|
|
16639
16643
|
|
|
16640
|
-
/**
|
|
16641
|
-
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
16642
|
-
* @private
|
|
16643
|
-
*/
|
|
16644
|
-
updateMenuShapeSize() {
|
|
16645
|
-
if (!this.menu) {
|
|
16646
|
-
return;
|
|
16647
|
-
}
|
|
16648
|
-
|
|
16649
|
-
if (this.dropdown && this.dropdown.isBibFullscreen) {
|
|
16650
|
-
this.menu.setAttribute('size', 'md');
|
|
16651
|
-
this.menu.setAttribute('shape', 'box');
|
|
16652
|
-
} else {
|
|
16653
|
-
// set menu's default size if there it's not specified.
|
|
16654
|
-
if (!this.menu.getAttribute('size')) {
|
|
16655
|
-
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16656
|
-
}
|
|
16657
|
-
|
|
16658
|
-
if (!this.getAttribute('shape')) {
|
|
16659
|
-
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16660
|
-
}
|
|
16661
|
-
}
|
|
16662
|
-
}
|
|
16663
|
-
|
|
16664
16644
|
/**
|
|
16665
16645
|
* Binds all behavior needed to the menu after rendering.
|
|
16666
16646
|
* @private
|
|
@@ -16669,7 +16649,14 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16669
16649
|
configureMenu() {
|
|
16670
16650
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16671
16651
|
|
|
16672
|
-
|
|
16652
|
+
// set menu's default size if there it's not specified.
|
|
16653
|
+
if (!this.menu.getAttribute('size')) {
|
|
16654
|
+
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16655
|
+
}
|
|
16656
|
+
|
|
16657
|
+
if (!this.getAttribute('shape')) {
|
|
16658
|
+
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16659
|
+
}
|
|
16673
16660
|
|
|
16674
16661
|
// a racing condition on custom-combobox with custom-menu
|
|
16675
16662
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -17144,7 +17131,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17144
17131
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
17145
17132
|
<slot></slot>
|
|
17146
17133
|
<${this.inputTag}
|
|
17147
|
-
id="inputInBib"
|
|
17148
17134
|
@input="${this.handleInputValueChange}"
|
|
17149
17135
|
.a11yControls="${this.dropdownId}"
|
|
17150
17136
|
.autocomplete="${this.autocomplete}"
|
|
@@ -2881,6 +2881,12 @@ class AuroFloatingUI {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
2883
|
setupHideHandlers() {
|
|
2884
|
+
this.preventFocusLoseOnBibClick = (event) => {
|
|
2885
|
+
event.preventDefault();
|
|
2886
|
+
event.stopPropagation();
|
|
2887
|
+
};
|
|
2888
|
+
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2889
|
+
|
|
2884
2890
|
// Define handlers & store references
|
|
2885
2891
|
this.focusHandler = () => this.handleFocusLoss();
|
|
2886
2892
|
|
|
@@ -2930,6 +2936,11 @@ class AuroFloatingUI {
|
|
|
2930
2936
|
cleanupHideHandlers() {
|
|
2931
2937
|
// Remove event listeners if they exist
|
|
2932
2938
|
|
|
2939
|
+
if (this.preventFocusLoseOnBibClick) {
|
|
2940
|
+
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2941
|
+
delete this.preventFocusLoseOnBibClick;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2933
2944
|
if (this.focusHandler) {
|
|
2934
2945
|
document.removeEventListener('focusin', this.focusHandler);
|
|
2935
2946
|
this.focusHandler = null;
|
|
@@ -5336,7 +5347,7 @@ var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
5336
5347
|
|
|
5337
5348
|
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)}`;
|
|
5338
5349
|
|
|
5339
|
-
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
|
|
5350
|
+
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, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
5340
5351
|
|
|
5341
5352
|
var classicStyleCss = i$5`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
5342
5353
|
|
|
@@ -13214,7 +13225,7 @@ class AuroInput extends BaseInput {
|
|
|
13214
13225
|
/**
|
|
13215
13226
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
13216
13227
|
* @private
|
|
13217
|
-
* @returns {
|
|
13228
|
+
* @returns {Record<string, boolean>}
|
|
13218
13229
|
*/
|
|
13219
13230
|
get commonLabelClasses() {
|
|
13220
13231
|
return {
|
|
@@ -13228,7 +13239,7 @@ class AuroInput extends BaseInput {
|
|
|
13228
13239
|
/**
|
|
13229
13240
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
13230
13241
|
* @private
|
|
13231
|
-
* @returns {
|
|
13242
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
13232
13243
|
*/
|
|
13233
13244
|
get commonInputClasses() {
|
|
13234
13245
|
return {
|
|
@@ -13671,7 +13682,7 @@ var inputVersion = '4.2.0';
|
|
|
13671
13682
|
|
|
13672
13683
|
var colorCss$3$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
13673
13684
|
|
|
13674
|
-
var styleCss$4$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;
|
|
13685
|
+
var styleCss$4$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){box-sizing:border-box;padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
13675
13686
|
|
|
13676
13687
|
var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
13677
13688
|
|
|
@@ -15575,15 +15586,13 @@ class AuroBibtemplate extends i$2 {
|
|
|
15575
15586
|
<div id="bibTemplate" part="bibtemplate">
|
|
15576
15587
|
${this.isFullscreen ? u$2`
|
|
15577
15588
|
<div id="headerContainer">
|
|
15578
|
-
|
|
15579
|
-
<${this.
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
15585
|
-
</div>
|
|
15586
|
-
<span class="subheader">
|
|
15589
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15590
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15591
|
+
</${this.buttonTag}>
|
|
15592
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15593
|
+
<slot name="header"></slot>
|
|
15594
|
+
</${this.headerTag}>
|
|
15595
|
+
<span id="subheader">
|
|
15587
15596
|
<slot name="subheader"></slot>
|
|
15588
15597
|
</span>
|
|
15589
15598
|
</div>` : null}
|
|
@@ -15603,7 +15612,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
15603
15612
|
|
|
15604
15613
|
var bibTemplateVersion = '1.0.0';
|
|
15605
15614
|
|
|
15606
|
-
var styleCss$4 = 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}:host{display:block}:host [auro-input]{--ds-auro-input-background-color: transparent}:host
|
|
15615
|
+
var styleCss$4 = 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}:host{display:block}:host [auro-input]{--ds-auro-input-background-color: transparent}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15607
15616
|
|
|
15608
15617
|
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15609
15618
|
|
|
@@ -16449,7 +16458,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16449
16458
|
// Listen for the dropdown to be shown or hidden
|
|
16450
16459
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16451
16460
|
this.dropdownOpen = ev.detail.expanded;
|
|
16452
|
-
this.updateMenuShapeSize();
|
|
16453
16461
|
|
|
16454
16462
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16455
16463
|
setTimeout(() => {
|
|
@@ -16476,11 +16484,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16476
16484
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16477
16485
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16478
16486
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16479
|
-
this.
|
|
16480
|
-
|
|
16481
|
-
setTimeout(() => {
|
|
16482
|
-
this.setInputFocus();
|
|
16483
|
-
}, 0);
|
|
16487
|
+
setTimeout(this.setInputFocus, 0);
|
|
16484
16488
|
});
|
|
16485
16489
|
}
|
|
16486
16490
|
|
|
@@ -16495,30 +16499,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16495
16499
|
}
|
|
16496
16500
|
}
|
|
16497
16501
|
|
|
16498
|
-
/**
|
|
16499
|
-
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
16500
|
-
* @private
|
|
16501
|
-
*/
|
|
16502
|
-
updateMenuShapeSize() {
|
|
16503
|
-
if (!this.menu) {
|
|
16504
|
-
return;
|
|
16505
|
-
}
|
|
16506
|
-
|
|
16507
|
-
if (this.dropdown && this.dropdown.isBibFullscreen) {
|
|
16508
|
-
this.menu.setAttribute('size', 'md');
|
|
16509
|
-
this.menu.setAttribute('shape', 'box');
|
|
16510
|
-
} else {
|
|
16511
|
-
// set menu's default size if there it's not specified.
|
|
16512
|
-
if (!this.menu.getAttribute('size')) {
|
|
16513
|
-
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16514
|
-
}
|
|
16515
|
-
|
|
16516
|
-
if (!this.getAttribute('shape')) {
|
|
16517
|
-
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16518
|
-
}
|
|
16519
|
-
}
|
|
16520
|
-
}
|
|
16521
|
-
|
|
16522
16502
|
/**
|
|
16523
16503
|
* Binds all behavior needed to the menu after rendering.
|
|
16524
16504
|
* @private
|
|
@@ -16527,7 +16507,14 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16527
16507
|
configureMenu() {
|
|
16528
16508
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16529
16509
|
|
|
16530
|
-
|
|
16510
|
+
// set menu's default size if there it's not specified.
|
|
16511
|
+
if (!this.menu.getAttribute('size')) {
|
|
16512
|
+
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16513
|
+
}
|
|
16514
|
+
|
|
16515
|
+
if (!this.getAttribute('shape')) {
|
|
16516
|
+
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16517
|
+
}
|
|
16531
16518
|
|
|
16532
16519
|
// a racing condition on custom-combobox with custom-menu
|
|
16533
16520
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -17002,7 +16989,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17002
16989
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
17003
16990
|
<slot></slot>
|
|
17004
16991
|
<${this.inputTag}
|
|
17005
|
-
id="inputInBib"
|
|
17006
16992
|
@input="${this.handleInputValueChange}"
|
|
17007
16993
|
.a11yControls="${this.dropdownId}"
|
|
17008
16994
|
.autocomplete="${this.autocomplete}"
|
|
@@ -339,11 +339,6 @@ export class AuroCombobox extends AuroElement {
|
|
|
339
339
|
* @private
|
|
340
340
|
*/
|
|
341
341
|
private setInputFocus;
|
|
342
|
-
/**
|
|
343
|
-
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
344
|
-
* @private
|
|
345
|
-
*/
|
|
346
|
-
private updateMenuShapeSize;
|
|
347
342
|
/**
|
|
348
343
|
* Binds all behavior needed to the menu after rendering.
|
|
349
344
|
* @private
|