@aurodesignsystem-dev/auro-formkit 0.0.0-pr819.3 → 0.0.0-pr832.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 +10 -8
- package/components/bibtemplate/dist/registered.js +10 -8
- package/components/checkbox/demo/api.md +7 -6
- package/components/checkbox/demo/api.min.js +5 -8
- package/components/checkbox/demo/index.min.js +5 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -0
- package/components/checkbox/dist/index.js +5 -8
- package/components/checkbox/dist/registered.js +5 -8
- package/components/combobox/demo/api.min.js +44 -30
- package/components/combobox/demo/index.min.js +44 -30
- package/components/combobox/dist/auro-combobox.d.ts +5 -0
- package/components/combobox/dist/index.js +44 -30
- package/components/combobox/dist/registered.js +44 -30
- package/components/counter/demo/api.min.js +14 -23
- package/components/counter/demo/index.min.js +14 -23
- package/components/counter/dist/index.js +14 -23
- package/components/counter/dist/registered.js +14 -23
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/api.min.js +12 -21
- package/components/datepicker/demo/index.min.js +12 -21
- package/components/datepicker/dist/index.js +12 -21
- package/components/datepicker/dist/registered.js +12 -21
- package/components/dropdown/demo/api.min.js +0 -11
- package/components/dropdown/demo/index.min.js +0 -11
- package/components/dropdown/dist/index.js +0 -11
- package/components/dropdown/dist/registered.js +0 -11
- 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 +1 -3
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/radio/demo/api.md +2 -0
- package/components/radio/demo/api.min.js +3 -1
- package/components/radio/demo/index.min.js +3 -1
- package/components/radio/dist/auro-radio.d.ts +2 -0
- package/components/radio/dist/index.js +3 -1
- package/components/radio/dist/registered.js +3 -1
- package/components/select/demo/api.md +1 -0
- package/components/select/demo/api.min.js +50 -29
- package/components/select/demo/index.min.js +50 -29
- package/components/select/dist/auro-select.d.ts +12 -0
- package/components/select/dist/index.js +50 -29
- package/components/select/dist/registered.js +50 -29
- 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;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#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,13 +1909,15 @@ 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
|
-
|
|
1912
|
+
<div class="titleRow">
|
|
1913
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
1914
|
+
<slot name="header"></slot>
|
|
1915
|
+
</${this.headerTag}>
|
|
1916
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1917
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
1918
|
+
</${this.buttonTag}>
|
|
1919
|
+
</div>
|
|
1920
|
+
<span class="subheader">
|
|
1919
1921
|
<slot name="subheader"></slot>
|
|
1920
1922
|
</span>
|
|
1921
1923
|
</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;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#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,13 +1909,15 @@ 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
|
-
|
|
1912
|
+
<div class="titleRow">
|
|
1913
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
1914
|
+
<slot name="header"></slot>
|
|
1915
|
+
</${this.headerTag}>
|
|
1916
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1917
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
1918
|
+
</${this.buttonTag}>
|
|
1919
|
+
</div>
|
|
1920
|
+
<span class="subheader">
|
|
1919
1921
|
<slot name="subheader"></slot>
|
|
1920
1922
|
</span>
|
|
1921
1923
|
</div>` : null}
|
|
@@ -66,12 +66,13 @@ 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
|
-
| [
|
|
69
|
+
| Event | Type | Description |
|
|
70
|
+
|-------------------------|--------------------|--------------------------------------------------|
|
|
71
|
+
| `auroCheckbox-focusin` | `CustomEvent<any>` | |
|
|
72
|
+
| `auroCheckbox-focusout` | `CustomEvent<any>` | |
|
|
73
|
+
| `auroCheckbox-input` | `CustomEvent<any>` | |
|
|
74
|
+
| [change](#change) | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
|
|
75
|
+
| [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
|
|
75
76
|
|
|
76
77
|
## CSS Shadow Parts
|
|
77
78
|
|
|
@@ -142,6 +142,9 @@ 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.
|
|
145
148
|
*/
|
|
146
149
|
|
|
147
150
|
// build the component class
|
|
@@ -287,12 +290,6 @@ class AuroCheckbox extends i$2 {
|
|
|
287
290
|
handleInput(event) {
|
|
288
291
|
this.checked = event.target.checked;
|
|
289
292
|
|
|
290
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
291
|
-
bubbles: true,
|
|
292
|
-
cancelable: false,
|
|
293
|
-
composed: true,
|
|
294
|
-
}));
|
|
295
|
-
|
|
296
293
|
// Old event we need to deprecate
|
|
297
294
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
298
295
|
bubbles: true,
|
|
@@ -352,7 +349,7 @@ class AuroCheckbox extends i$2 {
|
|
|
352
349
|
}
|
|
353
350
|
|
|
354
351
|
if (!this.disabled) {
|
|
355
|
-
this.
|
|
352
|
+
this.shadowRoot.querySelector('input').click();
|
|
356
353
|
this.handleFocusin();
|
|
357
354
|
}
|
|
358
355
|
});
|
|
@@ -390,7 +387,7 @@ class AuroCheckbox extends i$2 {
|
|
|
390
387
|
@change="${this.handleChange}"
|
|
391
388
|
@input="${this.handleInput}"
|
|
392
389
|
?disabled="${this.disabled}"
|
|
393
|
-
|
|
390
|
+
?checked="${this.checked}"
|
|
394
391
|
id="${this.inputId}"
|
|
395
392
|
name="${o$1(this.name)}"
|
|
396
393
|
type="checkbox"
|
|
@@ -134,6 +134,9 @@ 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.
|
|
137
140
|
*/
|
|
138
141
|
|
|
139
142
|
// build the component class
|
|
@@ -279,12 +282,6 @@ class AuroCheckbox extends i$2 {
|
|
|
279
282
|
handleInput(event) {
|
|
280
283
|
this.checked = event.target.checked;
|
|
281
284
|
|
|
282
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
283
|
-
bubbles: true,
|
|
284
|
-
cancelable: false,
|
|
285
|
-
composed: true,
|
|
286
|
-
}));
|
|
287
|
-
|
|
288
285
|
// Old event we need to deprecate
|
|
289
286
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
290
287
|
bubbles: true,
|
|
@@ -344,7 +341,7 @@ class AuroCheckbox extends i$2 {
|
|
|
344
341
|
}
|
|
345
342
|
|
|
346
343
|
if (!this.disabled) {
|
|
347
|
-
this.
|
|
344
|
+
this.shadowRoot.querySelector('input').click();
|
|
348
345
|
this.handleFocusin();
|
|
349
346
|
}
|
|
350
347
|
});
|
|
@@ -382,7 +379,7 @@ class AuroCheckbox extends i$2 {
|
|
|
382
379
|
@change="${this.handleChange}"
|
|
383
380
|
@input="${this.handleInput}"
|
|
384
381
|
?disabled="${this.disabled}"
|
|
385
|
-
|
|
382
|
+
?checked="${this.checked}"
|
|
386
383
|
id="${this.inputId}"
|
|
387
384
|
name="${o$1(this.name)}"
|
|
388
385
|
type="checkbox"
|
|
@@ -7,6 +7,9 @@
|
|
|
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.
|
|
10
13
|
*/
|
|
11
14
|
export class AuroCheckbox extends LitElement {
|
|
12
15
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -94,6 +94,9 @@ 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.
|
|
97
100
|
*/
|
|
98
101
|
|
|
99
102
|
// build the component class
|
|
@@ -239,12 +242,6 @@ class AuroCheckbox extends LitElement {
|
|
|
239
242
|
handleInput(event) {
|
|
240
243
|
this.checked = event.target.checked;
|
|
241
244
|
|
|
242
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
-
bubbles: true,
|
|
244
|
-
cancelable: false,
|
|
245
|
-
composed: true,
|
|
246
|
-
}));
|
|
247
|
-
|
|
248
245
|
// Old event we need to deprecate
|
|
249
246
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
250
247
|
bubbles: true,
|
|
@@ -304,7 +301,7 @@ class AuroCheckbox extends LitElement {
|
|
|
304
301
|
}
|
|
305
302
|
|
|
306
303
|
if (!this.disabled) {
|
|
307
|
-
this.
|
|
304
|
+
this.shadowRoot.querySelector('input').click();
|
|
308
305
|
this.handleFocusin();
|
|
309
306
|
}
|
|
310
307
|
});
|
|
@@ -342,7 +339,7 @@ class AuroCheckbox extends LitElement {
|
|
|
342
339
|
@change="${this.handleChange}"
|
|
343
340
|
@input="${this.handleInput}"
|
|
344
341
|
?disabled="${this.disabled}"
|
|
345
|
-
|
|
342
|
+
?checked="${this.checked}"
|
|
346
343
|
id="${this.inputId}"
|
|
347
344
|
name="${ifDefined(this.name)}"
|
|
348
345
|
type="checkbox"
|
|
@@ -94,6 +94,9 @@ 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.
|
|
97
100
|
*/
|
|
98
101
|
|
|
99
102
|
// build the component class
|
|
@@ -239,12 +242,6 @@ class AuroCheckbox extends LitElement {
|
|
|
239
242
|
handleInput(event) {
|
|
240
243
|
this.checked = event.target.checked;
|
|
241
244
|
|
|
242
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
243
|
-
bubbles: true,
|
|
244
|
-
cancelable: false,
|
|
245
|
-
composed: true,
|
|
246
|
-
}));
|
|
247
|
-
|
|
248
245
|
// Old event we need to deprecate
|
|
249
246
|
this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
|
|
250
247
|
bubbles: true,
|
|
@@ -304,7 +301,7 @@ class AuroCheckbox extends LitElement {
|
|
|
304
301
|
}
|
|
305
302
|
|
|
306
303
|
if (!this.disabled) {
|
|
307
|
-
this.
|
|
304
|
+
this.shadowRoot.querySelector('input').click();
|
|
308
305
|
this.handleFocusin();
|
|
309
306
|
}
|
|
310
307
|
});
|
|
@@ -342,7 +339,7 @@ class AuroCheckbox extends LitElement {
|
|
|
342
339
|
@change="${this.handleChange}"
|
|
343
340
|
@input="${this.handleInput}"
|
|
344
341
|
?disabled="${this.disabled}"
|
|
345
|
-
|
|
342
|
+
?checked="${this.checked}"
|
|
346
343
|
id="${this.inputId}"
|
|
347
344
|
name="${ifDefined(this.name)}"
|
|
348
345
|
type="checkbox"
|
|
@@ -3023,12 +3023,6 @@ class AuroFloatingUI {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
3025
|
setupHideHandlers() {
|
|
3026
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
3027
|
-
event.preventDefault();
|
|
3028
|
-
event.stopPropagation();
|
|
3029
|
-
};
|
|
3030
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3031
|
-
|
|
3032
3026
|
// Define handlers & store references
|
|
3033
3027
|
this.focusHandler = () => this.handleFocusLoss();
|
|
3034
3028
|
|
|
@@ -3078,11 +3072,6 @@ class AuroFloatingUI {
|
|
|
3078
3072
|
cleanupHideHandlers() {
|
|
3079
3073
|
// Remove event listeners if they exist
|
|
3080
3074
|
|
|
3081
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
3082
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
3083
|
-
delete this.preventFocusLoseOnBibClick;
|
|
3084
|
-
}
|
|
3085
|
-
|
|
3086
3075
|
if (this.focusHandler) {
|
|
3087
3076
|
document.removeEventListener('focusin', this.focusHandler);
|
|
3088
3077
|
this.focusHandler = null;
|
|
@@ -5489,7 +5478,7 @@ var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
5489
5478
|
|
|
5490
5479
|
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)}`;
|
|
5491
5480
|
|
|
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, #
|
|
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-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}`;
|
|
5493
5482
|
|
|
5494
5483
|
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}`;
|
|
5495
5484
|
|
|
@@ -13824,7 +13813,7 @@ var inputVersion = '4.2.0';
|
|
|
13824
13813
|
|
|
13825
13814
|
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)}`;
|
|
13826
13815
|
|
|
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
|
|
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;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#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)}`;
|
|
13828
13817
|
|
|
13829
13818
|
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)}`;
|
|
13830
13819
|
|
|
@@ -15728,13 +15717,15 @@ class AuroBibtemplate extends i$2 {
|
|
|
15728
15717
|
<div id="bibTemplate" part="bibtemplate">
|
|
15729
15718
|
${this.isFullscreen ? u$2`
|
|
15730
15719
|
<div id="headerContainer">
|
|
15731
|
-
|
|
15732
|
-
<${this.
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15737
|
-
|
|
15720
|
+
<div class="titleRow">
|
|
15721
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15722
|
+
<slot name="header"></slot>
|
|
15723
|
+
</${this.headerTag}>
|
|
15724
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15725
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15726
|
+
</${this.buttonTag}>
|
|
15727
|
+
</div>
|
|
15728
|
+
<span class="subheader">
|
|
15738
15729
|
<slot name="subheader"></slot>
|
|
15739
15730
|
</span>
|
|
15740
15731
|
</div>` : null}
|
|
@@ -15754,7 +15745,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
15754
15745
|
|
|
15755
15746
|
var bibTemplateVersion = '1.0.0';
|
|
15756
15747
|
|
|
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}`;
|
|
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 #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15758
15749
|
|
|
15759
15750
|
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15760
15751
|
|
|
@@ -16600,6 +16591,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16600
16591
|
// Listen for the dropdown to be shown or hidden
|
|
16601
16592
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16602
16593
|
this.dropdownOpen = ev.detail.expanded;
|
|
16594
|
+
this.updateMenuShapeSize();
|
|
16603
16595
|
|
|
16604
16596
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16605
16597
|
setTimeout(() => {
|
|
@@ -16626,7 +16618,11 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16626
16618
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16627
16619
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16628
16620
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16629
|
-
|
|
16621
|
+
this.updateMenuShapeSize();
|
|
16622
|
+
|
|
16623
|
+
setTimeout(() => {
|
|
16624
|
+
this.setInputFocus();
|
|
16625
|
+
}, 0);
|
|
16630
16626
|
});
|
|
16631
16627
|
}
|
|
16632
16628
|
|
|
@@ -16641,6 +16637,30 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16641
16637
|
}
|
|
16642
16638
|
}
|
|
16643
16639
|
|
|
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
|
+
|
|
16644
16664
|
/**
|
|
16645
16665
|
* Binds all behavior needed to the menu after rendering.
|
|
16646
16666
|
* @private
|
|
@@ -16649,14 +16669,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16649
16669
|
configureMenu() {
|
|
16650
16670
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16651
16671
|
|
|
16652
|
-
|
|
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
|
-
}
|
|
16672
|
+
this.updateMenuShapeSize();
|
|
16660
16673
|
|
|
16661
16674
|
// a racing condition on custom-combobox with custom-menu
|
|
16662
16675
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -17131,6 +17144,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17131
17144
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
17132
17145
|
<slot></slot>
|
|
17133
17146
|
<${this.inputTag}
|
|
17147
|
+
id="inputInBib"
|
|
17134
17148
|
@input="${this.handleInputValueChange}"
|
|
17135
17149
|
.a11yControls="${this.dropdownId}"
|
|
17136
17150
|
.autocomplete="${this.autocomplete}"
|
|
@@ -2881,12 +2881,6 @@ class AuroFloatingUI {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
2883
|
setupHideHandlers() {
|
|
2884
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
2885
|
-
event.preventDefault();
|
|
2886
|
-
event.stopPropagation();
|
|
2887
|
-
};
|
|
2888
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2889
|
-
|
|
2890
2884
|
// Define handlers & store references
|
|
2891
2885
|
this.focusHandler = () => this.handleFocusLoss();
|
|
2892
2886
|
|
|
@@ -2936,11 +2930,6 @@ class AuroFloatingUI {
|
|
|
2936
2930
|
cleanupHideHandlers() {
|
|
2937
2931
|
// Remove event listeners if they exist
|
|
2938
2932
|
|
|
2939
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
2940
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2941
|
-
delete this.preventFocusLoseOnBibClick;
|
|
2942
|
-
}
|
|
2943
|
-
|
|
2944
2933
|
if (this.focusHandler) {
|
|
2945
2934
|
document.removeEventListener('focusin', this.focusHandler);
|
|
2946
2935
|
this.focusHandler = null;
|
|
@@ -5347,7 +5336,7 @@ var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
5347
5336
|
|
|
5348
5337
|
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)}`;
|
|
5349
5338
|
|
|
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, #
|
|
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-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}`;
|
|
5351
5340
|
|
|
5352
5341
|
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}`;
|
|
5353
5342
|
|
|
@@ -13682,7 +13671,7 @@ var inputVersion = '4.2.0';
|
|
|
13682
13671
|
|
|
13683
13672
|
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)}`;
|
|
13684
13673
|
|
|
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
|
|
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;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#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)}`;
|
|
13686
13675
|
|
|
13687
13676
|
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)}`;
|
|
13688
13677
|
|
|
@@ -15586,13 +15575,15 @@ class AuroBibtemplate extends i$2 {
|
|
|
15586
15575
|
<div id="bibTemplate" part="bibtemplate">
|
|
15587
15576
|
${this.isFullscreen ? u$2`
|
|
15588
15577
|
<div id="headerContainer">
|
|
15589
|
-
|
|
15590
|
-
<${this.
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15595
|
-
|
|
15578
|
+
<div class="titleRow">
|
|
15579
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15580
|
+
<slot name="header"></slot>
|
|
15581
|
+
</${this.headerTag}>
|
|
15582
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15583
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15584
|
+
</${this.buttonTag}>
|
|
15585
|
+
</div>
|
|
15586
|
+
<span class="subheader">
|
|
15596
15587
|
<slot name="subheader"></slot>
|
|
15597
15588
|
</span>
|
|
15598
15589
|
</div>` : null}
|
|
@@ -15612,7 +15603,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
15612
15603
|
|
|
15613
15604
|
var bibTemplateVersion = '1.0.0';
|
|
15614
15605
|
|
|
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}`;
|
|
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 #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15616
15607
|
|
|
15617
15608
|
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15618
15609
|
|
|
@@ -16458,6 +16449,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16458
16449
|
// Listen for the dropdown to be shown or hidden
|
|
16459
16450
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16460
16451
|
this.dropdownOpen = ev.detail.expanded;
|
|
16452
|
+
this.updateMenuShapeSize();
|
|
16461
16453
|
|
|
16462
16454
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16463
16455
|
setTimeout(() => {
|
|
@@ -16484,7 +16476,11 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16484
16476
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16485
16477
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16486
16478
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16487
|
-
|
|
16479
|
+
this.updateMenuShapeSize();
|
|
16480
|
+
|
|
16481
|
+
setTimeout(() => {
|
|
16482
|
+
this.setInputFocus();
|
|
16483
|
+
}, 0);
|
|
16488
16484
|
});
|
|
16489
16485
|
}
|
|
16490
16486
|
|
|
@@ -16499,6 +16495,30 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16499
16495
|
}
|
|
16500
16496
|
}
|
|
16501
16497
|
|
|
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
|
+
|
|
16502
16522
|
/**
|
|
16503
16523
|
* Binds all behavior needed to the menu after rendering.
|
|
16504
16524
|
* @private
|
|
@@ -16507,14 +16527,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16507
16527
|
configureMenu() {
|
|
16508
16528
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16509
16529
|
|
|
16510
|
-
|
|
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
|
-
}
|
|
16530
|
+
this.updateMenuShapeSize();
|
|
16518
16531
|
|
|
16519
16532
|
// a racing condition on custom-combobox with custom-menu
|
|
16520
16533
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -16989,6 +17002,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16989
17002
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
16990
17003
|
<slot></slot>
|
|
16991
17004
|
<${this.inputTag}
|
|
17005
|
+
id="inputInBib"
|
|
16992
17006
|
@input="${this.handleInputValueChange}"
|
|
16993
17007
|
.a11yControls="${this.dropdownId}"
|
|
16994
17008
|
.autocomplete="${this.autocomplete}"
|
|
@@ -339,6 +339,11 @@ 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;
|
|
342
347
|
/**
|
|
343
348
|
* Binds all behavior needed to the menu after rendering.
|
|
344
349
|
* @private
|