@aurodesignsystem-dev/auro-formkit 0.0.0-pr815.0 → 0.0.0-pr816.1
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/combobox/demo/api.min.js +43 -23
- package/components/combobox/demo/index.min.js +43 -23
- package/components/combobox/dist/auro-combobox.d.ts +5 -0
- package/components/combobox/dist/index.js +43 -23
- package/components/combobox/dist/registered.js +43 -23
- package/components/counter/demo/api.min.js +10 -8
- package/components/counter/demo/index.min.js +10 -8
- package/components/counter/dist/index.js +10 -8
- package/components/counter/dist/registered.js +10 -8
- package/components/datepicker/demo/api.min.js +12 -14
- package/components/datepicker/demo/index.min.js +12 -14
- package/components/datepicker/dist/index.js +12 -14
- package/components/datepicker/dist/registered.js +12 -14
- package/components/input/demo/api.min.js +2 -6
- package/components/input/demo/index.min.js +2 -6
- package/components/input/dist/index.js +2 -6
- package/components/input/dist/registered.js +2 -6
- package/components/select/demo/api.min.js +40 -16
- package/components/select/demo/index.min.js +40 -16
- package/components/select/dist/auro-select.d.ts +5 -0
- package/components/select/dist/index.js +40 -16
- package/components/select/dist/registered.js +40 -16
- package/package.json +1 -1
|
@@ -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)}#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} class="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)}#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} class="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}
|
|
@@ -10479,6 +10479,8 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10479
10479
|
* @private
|
|
10480
10480
|
*/
|
|
10481
10481
|
this.size = 'lg';
|
|
10482
|
+
|
|
10483
|
+
this.privateDefaults();
|
|
10482
10484
|
}
|
|
10483
10485
|
|
|
10484
10486
|
/**
|
|
@@ -10497,10 +10499,6 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10497
10499
|
this.label = 'Input label is undefined';
|
|
10498
10500
|
this.placeholderStr = '';
|
|
10499
10501
|
|
|
10500
|
-
this.layout = 'classic';
|
|
10501
|
-
this.shape = 'classic';
|
|
10502
|
-
this.size = 'lg';
|
|
10503
|
-
|
|
10504
10502
|
this.allowedInputTypes = [
|
|
10505
10503
|
"text",
|
|
10506
10504
|
"number",
|
|
@@ -10906,8 +10904,6 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10906
10904
|
connectedCallback() {
|
|
10907
10905
|
super.connectedCallback();
|
|
10908
10906
|
|
|
10909
|
-
this.privateDefaults();
|
|
10910
|
-
|
|
10911
10907
|
notifyOnLangChange(this);
|
|
10912
10908
|
}
|
|
10913
10909
|
|
|
@@ -13828,7 +13824,7 @@ var inputVersion = '4.2.0';
|
|
|
13828
13824
|
|
|
13829
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)}`;
|
|
13830
13826
|
|
|
13831
|
-
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;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem)}#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)}`;
|
|
13832
13828
|
|
|
13833
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)}`;
|
|
13834
13830
|
|
|
@@ -15732,13 +15728,15 @@ class AuroBibtemplate extends i$2 {
|
|
|
15732
15728
|
<div id="bibTemplate" part="bibtemplate">
|
|
15733
15729
|
${this.isFullscreen ? u$2`
|
|
15734
15730
|
<div id="headerContainer">
|
|
15735
|
-
|
|
15736
|
-
<${this.
|
|
15737
|
-
|
|
15738
|
-
|
|
15739
|
-
|
|
15740
|
-
|
|
15741
|
-
|
|
15731
|
+
<div class="titleRow">
|
|
15732
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15733
|
+
<slot name="header"></slot>
|
|
15734
|
+
</${this.headerTag}>
|
|
15735
|
+
<${this.buttonTag} class="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15736
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15737
|
+
</${this.buttonTag}>
|
|
15738
|
+
</div>
|
|
15739
|
+
<span class="subheader">
|
|
15742
15740
|
<slot name="subheader"></slot>
|
|
15743
15741
|
</span>
|
|
15744
15742
|
</div>` : null}
|
|
@@ -16604,6 +16602,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16604
16602
|
// Listen for the dropdown to be shown or hidden
|
|
16605
16603
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16606
16604
|
this.dropdownOpen = ev.detail.expanded;
|
|
16605
|
+
this.updateMenuShapeSize();
|
|
16607
16606
|
|
|
16608
16607
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16609
16608
|
setTimeout(() => {
|
|
@@ -16630,7 +16629,11 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16630
16629
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16631
16630
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16632
16631
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16633
|
-
|
|
16632
|
+
this.updateMenuShapeSize();
|
|
16633
|
+
|
|
16634
|
+
setTimeout(() => {
|
|
16635
|
+
this.setInputFocus();
|
|
16636
|
+
}, 0);
|
|
16634
16637
|
});
|
|
16635
16638
|
}
|
|
16636
16639
|
|
|
@@ -16645,6 +16648,30 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16645
16648
|
}
|
|
16646
16649
|
}
|
|
16647
16650
|
|
|
16651
|
+
/**
|
|
16652
|
+
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
16653
|
+
* @private
|
|
16654
|
+
*/
|
|
16655
|
+
updateMenuShapeSize() {
|
|
16656
|
+
if (!this.menu) {
|
|
16657
|
+
return;
|
|
16658
|
+
}
|
|
16659
|
+
|
|
16660
|
+
if (this.dropdown && this.dropdown.isBibFullscreen) {
|
|
16661
|
+
this.menu.setAttribute('size', 'md');
|
|
16662
|
+
this.menu.setAttribute('shape', 'box');
|
|
16663
|
+
} else {
|
|
16664
|
+
// set menu's default size if there it's not specified.
|
|
16665
|
+
if (!this.menu.getAttribute('size')) {
|
|
16666
|
+
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16667
|
+
}
|
|
16668
|
+
|
|
16669
|
+
if (!this.getAttribute('shape')) {
|
|
16670
|
+
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16671
|
+
}
|
|
16672
|
+
}
|
|
16673
|
+
}
|
|
16674
|
+
|
|
16648
16675
|
/**
|
|
16649
16676
|
* Binds all behavior needed to the menu after rendering.
|
|
16650
16677
|
* @private
|
|
@@ -16653,14 +16680,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16653
16680
|
configureMenu() {
|
|
16654
16681
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16655
16682
|
|
|
16656
|
-
|
|
16657
|
-
if (!this.menu.getAttribute('size')) {
|
|
16658
|
-
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16659
|
-
}
|
|
16660
|
-
|
|
16661
|
-
if (!this.getAttribute('shape')) {
|
|
16662
|
-
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16663
|
-
}
|
|
16683
|
+
this.updateMenuShapeSize();
|
|
16664
16684
|
|
|
16665
16685
|
// a racing condition on custom-combobox with custom-menu
|
|
16666
16686
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -10337,6 +10337,8 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10337
10337
|
* @private
|
|
10338
10338
|
*/
|
|
10339
10339
|
this.size = 'lg';
|
|
10340
|
+
|
|
10341
|
+
this.privateDefaults();
|
|
10340
10342
|
}
|
|
10341
10343
|
|
|
10342
10344
|
/**
|
|
@@ -10355,10 +10357,6 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10355
10357
|
this.label = 'Input label is undefined';
|
|
10356
10358
|
this.placeholderStr = '';
|
|
10357
10359
|
|
|
10358
|
-
this.layout = 'classic';
|
|
10359
|
-
this.shape = 'classic';
|
|
10360
|
-
this.size = 'lg';
|
|
10361
|
-
|
|
10362
10360
|
this.allowedInputTypes = [
|
|
10363
10361
|
"text",
|
|
10364
10362
|
"number",
|
|
@@ -10764,8 +10762,6 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10764
10762
|
connectedCallback() {
|
|
10765
10763
|
super.connectedCallback();
|
|
10766
10764
|
|
|
10767
|
-
this.privateDefaults();
|
|
10768
|
-
|
|
10769
10765
|
notifyOnLangChange(this);
|
|
10770
10766
|
}
|
|
10771
10767
|
|
|
@@ -13686,7 +13682,7 @@ var inputVersion = '4.2.0';
|
|
|
13686
13682
|
|
|
13687
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)}`;
|
|
13688
13684
|
|
|
13689
|
-
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;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem)}#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)}`;
|
|
13690
13686
|
|
|
13691
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)}`;
|
|
13692
13688
|
|
|
@@ -15590,13 +15586,15 @@ class AuroBibtemplate extends i$2 {
|
|
|
15590
15586
|
<div id="bibTemplate" part="bibtemplate">
|
|
15591
15587
|
${this.isFullscreen ? u$2`
|
|
15592
15588
|
<div id="headerContainer">
|
|
15593
|
-
|
|
15594
|
-
<${this.
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15589
|
+
<div class="titleRow">
|
|
15590
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15591
|
+
<slot name="header"></slot>
|
|
15592
|
+
</${this.headerTag}>
|
|
15593
|
+
<${this.buttonTag} class="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15594
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15595
|
+
</${this.buttonTag}>
|
|
15596
|
+
</div>
|
|
15597
|
+
<span class="subheader">
|
|
15600
15598
|
<slot name="subheader"></slot>
|
|
15601
15599
|
</span>
|
|
15602
15600
|
</div>` : null}
|
|
@@ -16462,6 +16460,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16462
16460
|
// Listen for the dropdown to be shown or hidden
|
|
16463
16461
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16464
16462
|
this.dropdownOpen = ev.detail.expanded;
|
|
16463
|
+
this.updateMenuShapeSize();
|
|
16465
16464
|
|
|
16466
16465
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16467
16466
|
setTimeout(() => {
|
|
@@ -16488,7 +16487,11 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16488
16487
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16489
16488
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16490
16489
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16491
|
-
|
|
16490
|
+
this.updateMenuShapeSize();
|
|
16491
|
+
|
|
16492
|
+
setTimeout(() => {
|
|
16493
|
+
this.setInputFocus();
|
|
16494
|
+
}, 0);
|
|
16492
16495
|
});
|
|
16493
16496
|
}
|
|
16494
16497
|
|
|
@@ -16503,6 +16506,30 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16503
16506
|
}
|
|
16504
16507
|
}
|
|
16505
16508
|
|
|
16509
|
+
/**
|
|
16510
|
+
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
16511
|
+
* @private
|
|
16512
|
+
*/
|
|
16513
|
+
updateMenuShapeSize() {
|
|
16514
|
+
if (!this.menu) {
|
|
16515
|
+
return;
|
|
16516
|
+
}
|
|
16517
|
+
|
|
16518
|
+
if (this.dropdown && this.dropdown.isBibFullscreen) {
|
|
16519
|
+
this.menu.setAttribute('size', 'md');
|
|
16520
|
+
this.menu.setAttribute('shape', 'box');
|
|
16521
|
+
} else {
|
|
16522
|
+
// set menu's default size if there it's not specified.
|
|
16523
|
+
if (!this.menu.getAttribute('size')) {
|
|
16524
|
+
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16525
|
+
}
|
|
16526
|
+
|
|
16527
|
+
if (!this.getAttribute('shape')) {
|
|
16528
|
+
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16529
|
+
}
|
|
16530
|
+
}
|
|
16531
|
+
}
|
|
16532
|
+
|
|
16506
16533
|
/**
|
|
16507
16534
|
* Binds all behavior needed to the menu after rendering.
|
|
16508
16535
|
* @private
|
|
@@ -16511,14 +16538,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16511
16538
|
configureMenu() {
|
|
16512
16539
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16513
16540
|
|
|
16514
|
-
|
|
16515
|
-
if (!this.menu.getAttribute('size')) {
|
|
16516
|
-
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16517
|
-
}
|
|
16518
|
-
|
|
16519
|
-
if (!this.getAttribute('shape')) {
|
|
16520
|
-
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16521
|
-
}
|
|
16541
|
+
this.updateMenuShapeSize();
|
|
16522
16542
|
|
|
16523
16543
|
// a racing condition on custom-combobox with custom-menu
|
|
16524
16544
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -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
|
|
@@ -10255,6 +10255,8 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10255
10255
|
* @private
|
|
10256
10256
|
*/
|
|
10257
10257
|
this.size = 'lg';
|
|
10258
|
+
|
|
10259
|
+
this.privateDefaults();
|
|
10258
10260
|
}
|
|
10259
10261
|
|
|
10260
10262
|
/**
|
|
@@ -10273,10 +10275,6 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10273
10275
|
this.label = 'Input label is undefined';
|
|
10274
10276
|
this.placeholderStr = '';
|
|
10275
10277
|
|
|
10276
|
-
this.layout = 'classic';
|
|
10277
|
-
this.shape = 'classic';
|
|
10278
|
-
this.size = 'lg';
|
|
10279
|
-
|
|
10280
10278
|
this.allowedInputTypes = [
|
|
10281
10279
|
"text",
|
|
10282
10280
|
"number",
|
|
@@ -10682,8 +10680,6 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10682
10680
|
connectedCallback() {
|
|
10683
10681
|
super.connectedCallback();
|
|
10684
10682
|
|
|
10685
|
-
this.privateDefaults();
|
|
10686
|
-
|
|
10687
10683
|
notifyOnLangChange(this);
|
|
10688
10684
|
}
|
|
10689
10685
|
|
|
@@ -13604,7 +13600,7 @@ var inputVersion = '4.2.0';
|
|
|
13604
13600
|
|
|
13605
13601
|
var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
13606
13602
|
|
|
13607
|
-
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column
|
|
13603
|
+
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)}#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)}`;
|
|
13608
13604
|
|
|
13609
13605
|
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)}`;
|
|
13610
13606
|
|
|
@@ -15508,13 +15504,15 @@ class AuroBibtemplate extends LitElement {
|
|
|
15508
15504
|
<div id="bibTemplate" part="bibtemplate">
|
|
15509
15505
|
${this.isFullscreen ? html`
|
|
15510
15506
|
<div id="headerContainer">
|
|
15511
|
-
|
|
15512
|
-
<${this.
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
|
|
15516
|
-
|
|
15517
|
-
|
|
15507
|
+
<div class="titleRow">
|
|
15508
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15509
|
+
<slot name="header"></slot>
|
|
15510
|
+
</${this.headerTag}>
|
|
15511
|
+
<${this.buttonTag} class="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15512
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15513
|
+
</${this.buttonTag}>
|
|
15514
|
+
</div>
|
|
15515
|
+
<span class="subheader">
|
|
15518
15516
|
<slot name="subheader"></slot>
|
|
15519
15517
|
</span>
|
|
15520
15518
|
</div>` : null}
|
|
@@ -16380,6 +16378,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16380
16378
|
// Listen for the dropdown to be shown or hidden
|
|
16381
16379
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16382
16380
|
this.dropdownOpen = ev.detail.expanded;
|
|
16381
|
+
this.updateMenuShapeSize();
|
|
16383
16382
|
|
|
16384
16383
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16385
16384
|
setTimeout(() => {
|
|
@@ -16406,7 +16405,11 @@ class AuroCombobox extends AuroElement {
|
|
|
16406
16405
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16407
16406
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16408
16407
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16409
|
-
|
|
16408
|
+
this.updateMenuShapeSize();
|
|
16409
|
+
|
|
16410
|
+
setTimeout(() => {
|
|
16411
|
+
this.setInputFocus();
|
|
16412
|
+
}, 0);
|
|
16410
16413
|
});
|
|
16411
16414
|
}
|
|
16412
16415
|
|
|
@@ -16421,6 +16424,30 @@ class AuroCombobox extends AuroElement {
|
|
|
16421
16424
|
}
|
|
16422
16425
|
}
|
|
16423
16426
|
|
|
16427
|
+
/**
|
|
16428
|
+
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
16429
|
+
* @private
|
|
16430
|
+
*/
|
|
16431
|
+
updateMenuShapeSize() {
|
|
16432
|
+
if (!this.menu) {
|
|
16433
|
+
return;
|
|
16434
|
+
}
|
|
16435
|
+
|
|
16436
|
+
if (this.dropdown && this.dropdown.isBibFullscreen) {
|
|
16437
|
+
this.menu.setAttribute('size', 'md');
|
|
16438
|
+
this.menu.setAttribute('shape', 'box');
|
|
16439
|
+
} else {
|
|
16440
|
+
// set menu's default size if there it's not specified.
|
|
16441
|
+
if (!this.menu.getAttribute('size')) {
|
|
16442
|
+
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16443
|
+
}
|
|
16444
|
+
|
|
16445
|
+
if (!this.getAttribute('shape')) {
|
|
16446
|
+
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16447
|
+
}
|
|
16448
|
+
}
|
|
16449
|
+
}
|
|
16450
|
+
|
|
16424
16451
|
/**
|
|
16425
16452
|
* Binds all behavior needed to the menu after rendering.
|
|
16426
16453
|
* @private
|
|
@@ -16429,14 +16456,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16429
16456
|
configureMenu() {
|
|
16430
16457
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16431
16458
|
|
|
16432
|
-
|
|
16433
|
-
if (!this.menu.getAttribute('size')) {
|
|
16434
|
-
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16435
|
-
}
|
|
16436
|
-
|
|
16437
|
-
if (!this.getAttribute('shape')) {
|
|
16438
|
-
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16439
|
-
}
|
|
16459
|
+
this.updateMenuShapeSize();
|
|
16440
16460
|
|
|
16441
16461
|
// a racing condition on custom-combobox with custom-menu
|
|
16442
16462
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -10255,6 +10255,8 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10255
10255
|
* @private
|
|
10256
10256
|
*/
|
|
10257
10257
|
this.size = 'lg';
|
|
10258
|
+
|
|
10259
|
+
this.privateDefaults();
|
|
10258
10260
|
}
|
|
10259
10261
|
|
|
10260
10262
|
/**
|
|
@@ -10273,10 +10275,6 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10273
10275
|
this.label = 'Input label is undefined';
|
|
10274
10276
|
this.placeholderStr = '';
|
|
10275
10277
|
|
|
10276
|
-
this.layout = 'classic';
|
|
10277
|
-
this.shape = 'classic';
|
|
10278
|
-
this.size = 'lg';
|
|
10279
|
-
|
|
10280
10278
|
this.allowedInputTypes = [
|
|
10281
10279
|
"text",
|
|
10282
10280
|
"number",
|
|
@@ -10682,8 +10680,6 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10682
10680
|
connectedCallback() {
|
|
10683
10681
|
super.connectedCallback();
|
|
10684
10682
|
|
|
10685
|
-
this.privateDefaults();
|
|
10686
|
-
|
|
10687
10683
|
notifyOnLangChange(this);
|
|
10688
10684
|
}
|
|
10689
10685
|
|
|
@@ -13604,7 +13600,7 @@ var inputVersion = '4.2.0';
|
|
|
13604
13600
|
|
|
13605
13601
|
var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
13606
13602
|
|
|
13607
|
-
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column
|
|
13603
|
+
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)}#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)}`;
|
|
13608
13604
|
|
|
13609
13605
|
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)}`;
|
|
13610
13606
|
|
|
@@ -15508,13 +15504,15 @@ class AuroBibtemplate extends LitElement {
|
|
|
15508
15504
|
<div id="bibTemplate" part="bibtemplate">
|
|
15509
15505
|
${this.isFullscreen ? html`
|
|
15510
15506
|
<div id="headerContainer">
|
|
15511
|
-
|
|
15512
|
-
<${this.
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
|
|
15516
|
-
|
|
15517
|
-
|
|
15507
|
+
<div class="titleRow">
|
|
15508
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
15509
|
+
<slot name="header"></slot>
|
|
15510
|
+
</${this.headerTag}>
|
|
15511
|
+
<${this.buttonTag} class="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15512
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15513
|
+
</${this.buttonTag}>
|
|
15514
|
+
</div>
|
|
15515
|
+
<span class="subheader">
|
|
15518
15516
|
<slot name="subheader"></slot>
|
|
15519
15517
|
</span>
|
|
15520
15518
|
</div>` : null}
|
|
@@ -16380,6 +16378,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16380
16378
|
// Listen for the dropdown to be shown or hidden
|
|
16381
16379
|
this.dropdown.addEventListener("auroDropdown-toggled", (ev) => {
|
|
16382
16380
|
this.dropdownOpen = ev.detail.expanded;
|
|
16381
|
+
this.updateMenuShapeSize();
|
|
16383
16382
|
|
|
16384
16383
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16385
16384
|
setTimeout(() => {
|
|
@@ -16406,7 +16405,11 @@ class AuroCombobox extends AuroElement {
|
|
|
16406
16405
|
this.setInputFocus = this.setInputFocus.bind(this);
|
|
16407
16406
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
16408
16407
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
16409
|
-
|
|
16408
|
+
this.updateMenuShapeSize();
|
|
16409
|
+
|
|
16410
|
+
setTimeout(() => {
|
|
16411
|
+
this.setInputFocus();
|
|
16412
|
+
}, 0);
|
|
16410
16413
|
});
|
|
16411
16414
|
}
|
|
16412
16415
|
|
|
@@ -16421,6 +16424,30 @@ class AuroCombobox extends AuroElement {
|
|
|
16421
16424
|
}
|
|
16422
16425
|
}
|
|
16423
16426
|
|
|
16427
|
+
/**
|
|
16428
|
+
* Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
|
|
16429
|
+
* @private
|
|
16430
|
+
*/
|
|
16431
|
+
updateMenuShapeSize() {
|
|
16432
|
+
if (!this.menu) {
|
|
16433
|
+
return;
|
|
16434
|
+
}
|
|
16435
|
+
|
|
16436
|
+
if (this.dropdown && this.dropdown.isBibFullscreen) {
|
|
16437
|
+
this.menu.setAttribute('size', 'md');
|
|
16438
|
+
this.menu.setAttribute('shape', 'box');
|
|
16439
|
+
} else {
|
|
16440
|
+
// set menu's default size if there it's not specified.
|
|
16441
|
+
if (!this.menu.getAttribute('size')) {
|
|
16442
|
+
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16443
|
+
}
|
|
16444
|
+
|
|
16445
|
+
if (!this.getAttribute('shape')) {
|
|
16446
|
+
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16447
|
+
}
|
|
16448
|
+
}
|
|
16449
|
+
}
|
|
16450
|
+
|
|
16424
16451
|
/**
|
|
16425
16452
|
* Binds all behavior needed to the menu after rendering.
|
|
16426
16453
|
* @private
|
|
@@ -16429,14 +16456,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16429
16456
|
configureMenu() {
|
|
16430
16457
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16431
16458
|
|
|
16432
|
-
|
|
16433
|
-
if (!this.menu.getAttribute('size')) {
|
|
16434
|
-
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16435
|
-
}
|
|
16436
|
-
|
|
16437
|
-
if (!this.getAttribute('shape')) {
|
|
16438
|
-
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16439
|
-
}
|
|
16459
|
+
this.updateMenuShapeSize();
|
|
16440
16460
|
|
|
16441
16461
|
// a racing condition on custom-combobox with custom-menu
|
|
16442
16462
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
@@ -7481,7 +7481,7 @@ var dropdownVersion = '3.0.0';
|
|
|
7481
7481
|
|
|
7482
7482
|
var colorCss$3 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
7483
7483
|
|
|
7484
|
-
var styleCss$4 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column
|
|
7484
|
+
var styleCss$4 = 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)}#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)}`;
|
|
7485
7485
|
|
|
7486
7486
|
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)}`;
|
|
7487
7487
|
|
|
@@ -9385,13 +9385,15 @@ class AuroBibtemplate extends i$2 {
|
|
|
9385
9385
|
<div id="bibTemplate" part="bibtemplate">
|
|
9386
9386
|
${this.isFullscreen ? u`
|
|
9387
9387
|
<div id="headerContainer">
|
|
9388
|
-
|
|
9389
|
-
<${this.
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9388
|
+
<div class="titleRow">
|
|
9389
|
+
<${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
9390
|
+
<slot name="header"></slot>
|
|
9391
|
+
</${this.headerTag}>
|
|
9392
|
+
<${this.buttonTag} class="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
9393
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
9394
|
+
</${this.buttonTag}>
|
|
9395
|
+
</div>
|
|
9396
|
+
<span class="subheader">
|
|
9395
9397
|
<slot name="subheader"></slot>
|
|
9396
9398
|
</span>
|
|
9397
9399
|
</div>` : null}
|