@aurodesignsystem-dev/auro-formkit 0.0.0-pr832.1 → 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 -47
- package/components/combobox/demo/index.min.js +32 -47
- package/components/combobox/dist/auro-combobox.d.ts +0 -5
- package/components/combobox/dist/index.js +32 -47
- package/components/combobox/dist/registered.js +32 -47
- package/components/counter/demo/api.min.js +23 -15
- package/components/counter/demo/index.min.js +23 -15
- package/components/counter/dist/index.js +23 -15
- package/components/counter/dist/registered.js +23 -15
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/api.min.js +23 -15
- package/components/datepicker/demo/index.min.js +23 -15
- package/components/datepicker/dist/index.js +23 -15
- package/components/datepicker/dist/registered.js +23 -15
- package/components/dropdown/demo/api.md +6 -7
- package/components/dropdown/demo/api.min.js +11 -1
- package/components/dropdown/demo/index.min.js +11 -1
- package/components/dropdown/dist/index.js +11 -1
- package/components/dropdown/dist/registered.js +11 -1
- 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 +3 -7
- package/components/select/demo/api.min.js +36 -62
- package/components/select/demo/index.min.js +36 -62
- package/components/select/dist/auro-select.d.ts +1 -17
- package/components/select/dist/index.js +36 -62
- package/components/select/dist/registered.js +36 -62
- 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;
|
|
@@ -4571,7 +4582,6 @@ let AuroElement$4 = class AuroElement extends i$2 {
|
|
|
4571
4582
|
* @slot trigger - Defines the content of the trigger.
|
|
4572
4583
|
* @csspart trigger - The trigger content container.
|
|
4573
4584
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
4574
|
-
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
4575
4585
|
* @csspart helpText - The helpText content container.
|
|
4576
4586
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4577
4587
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -5479,7 +5489,7 @@ var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIc
|
|
|
5479
5489
|
|
|
5480
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)}`;
|
|
5481
5491
|
|
|
5482
|
-
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}`;
|
|
5483
5493
|
|
|
5484
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}`;
|
|
5485
5495
|
|
|
@@ -13357,7 +13367,7 @@ class AuroInput extends BaseInput {
|
|
|
13357
13367
|
/**
|
|
13358
13368
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
13359
13369
|
* @private
|
|
13360
|
-
* @returns {
|
|
13370
|
+
* @returns {Record<string, boolean>}
|
|
13361
13371
|
*/
|
|
13362
13372
|
get commonLabelClasses() {
|
|
13363
13373
|
return {
|
|
@@ -13371,7 +13381,7 @@ class AuroInput extends BaseInput {
|
|
|
13371
13381
|
/**
|
|
13372
13382
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
13373
13383
|
* @private
|
|
13374
|
-
* @returns {
|
|
13384
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
13375
13385
|
*/
|
|
13376
13386
|
get commonInputClasses() {
|
|
13377
13387
|
return {
|
|
@@ -13814,7 +13824,7 @@ var inputVersion = '4.2.0';
|
|
|
13814
13824
|
|
|
13815
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)}`;
|
|
13816
13826
|
|
|
13817
|
-
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)}`;
|
|
13818
13828
|
|
|
13819
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)}`;
|
|
13820
13830
|
|
|
@@ -15718,15 +15728,13 @@ class AuroBibtemplate extends i$2 {
|
|
|
15718
15728
|
<div id="bibTemplate" part="bibtemplate">
|
|
15719
15729
|
${this.isFullscreen ? u$2`
|
|
15720
15730
|
<div id="headerContainer">
|
|
15721
|
-
|
|
15722
|
-
<${this.
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15726
|
-
|
|
15727
|
-
|
|
15728
|
-
</div>
|
|
15729
|
-
<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">
|
|
15730
15738
|
<slot name="subheader"></slot>
|
|
15731
15739
|
</span>
|
|
15732
15740
|
</div>` : null}
|
|
@@ -15746,7 +15754,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
15746
15754
|
|
|
15747
15755
|
var bibTemplateVersion = '1.0.0';
|
|
15748
15756
|
|
|
15749
|
-
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}`;
|
|
15750
15758
|
|
|
15751
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}`;
|
|
15752
15760
|
|
|
@@ -16592,7 +16600,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16592
16600
|
// Listen for the dropdown to be shown or hidden
|
|
16593
16601
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16594
16602
|
this.dropdownOpen = ev.detail.expanded;
|
|
16595
|
-
this.updateMenuShapeSize();
|
|
16596
16603
|
|
|
16597
16604
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16598
16605
|
setTimeout(() => {
|
|
@@ -16619,11 +16626,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16619
16626
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16620
16627
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16621
16628
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16622
|
-
this.
|
|
16623
|
-
|
|
16624
|
-
setTimeout(() => {
|
|
16625
|
-
this.setInputFocus();
|
|
16626
|
-
}, 0);
|
|
16629
|
+
setTimeout(this.setInputFocus, 0);
|
|
16627
16630
|
});
|
|
16628
16631
|
}
|
|
16629
16632
|
|
|
@@ -16638,30 +16641,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16638
16641
|
}
|
|
16639
16642
|
}
|
|
16640
16643
|
|
|
16641
|
-
/**
|
|
16642
|
-
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
16643
|
-
* @private
|
|
16644
|
-
*/
|
|
16645
|
-
updateMenuShapeSize() {
|
|
16646
|
-
if (!this.menu) {
|
|
16647
|
-
return;
|
|
16648
|
-
}
|
|
16649
|
-
|
|
16650
|
-
if (this.dropdown && this.dropdown.isBibFullscreen) {
|
|
16651
|
-
this.menu.setAttribute('size', 'md');
|
|
16652
|
-
this.menu.setAttribute('shape', 'box');
|
|
16653
|
-
} else {
|
|
16654
|
-
// set menu's default size if there it's not specified.
|
|
16655
|
-
if (!this.menu.getAttribute('size')) {
|
|
16656
|
-
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16657
|
-
}
|
|
16658
|
-
|
|
16659
|
-
if (!this.getAttribute('shape')) {
|
|
16660
|
-
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16661
|
-
}
|
|
16662
|
-
}
|
|
16663
|
-
}
|
|
16664
|
-
|
|
16665
16644
|
/**
|
|
16666
16645
|
* Binds all behavior needed to the menu after rendering.
|
|
16667
16646
|
* @private
|
|
@@ -16670,7 +16649,14 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16670
16649
|
configureMenu() {
|
|
16671
16650
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16672
16651
|
|
|
16673
|
-
|
|
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
|
+
}
|
|
16674
16660
|
|
|
16675
16661
|
// a racing condition on custom-combobox with custom-menu
|
|
16676
16662
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -17145,7 +17131,6 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17145
17131
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
17146
17132
|
<slot></slot>
|
|
17147
17133
|
<${this.inputTag}
|
|
17148
|
-
id="inputInBib"
|
|
17149
17134
|
@input="${this.handleInputValueChange}"
|
|
17150
17135
|
.a11yControls="${this.dropdownId}"
|
|
17151
17136
|
.autocomplete="${this.autocomplete}"
|