@aurodesignsystem-dev/auro-formkit 0.0.0-pr816.2 → 0.0.0-pr819.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.
@@ -5358,7 +5358,7 @@ var dropdownVersion = '3.0.0';
5358
5358
 
5359
5359
  var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
5360
5360
 
5361
- 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%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#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)}`;
5361
+ 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)}`;
5362
5362
 
5363
5363
  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)}`;
5364
5364
 
@@ -7262,15 +7262,13 @@ class AuroBibtemplate extends LitElement {
7262
7262
  <div id="bibTemplate" part="bibtemplate">
7263
7263
  ${this.isFullscreen ? html`
7264
7264
  <div id="headerContainer">
7265
- <div class="titleRow">
7266
- <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7267
- <slot name="header"></slot>
7268
- </${this.headerTag}>
7269
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7270
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7271
- </${this.buttonTag}>
7272
- </div>
7273
- <span class="subheader">
7265
+ <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7266
+ <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7267
+ </${this.buttonTag}>
7268
+ <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7269
+ <slot name="header"></slot>
7270
+ </${this.headerTag}>
7271
+ <span id="subheader">
7274
7272
  <slot name="subheader"></slot>
7275
7273
  </span>
7276
7274
  </div>` : null}
@@ -7972,7 +7970,6 @@ class AuroSelect extends AuroElement$3 {
7972
7970
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
7973
7971
 
7974
7972
  if (this.dropdown.isPopoverVisible) {
7975
- this.updateMenuShapeSize();
7976
7973
  // wait til the bib gets fully rendered
7977
7974
  setTimeout(() => {
7978
7975
  if (this.dropdown.isBibFullscreen) {
@@ -7988,10 +7985,6 @@ class AuroSelect extends AuroElement$3 {
7988
7985
  }
7989
7986
  });
7990
7987
 
7991
- this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
7992
- this.updateMenuShapeSize();
7993
- });
7994
-
7995
7988
  // setting up bibtemplate
7996
7989
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
7997
7990
 
@@ -8056,30 +8049,6 @@ class AuroSelect extends AuroElement$3 {
8056
8049
  this.dropdown.requestUpdate();
8057
8050
  }
8058
8051
 
8059
- /**
8060
- * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8061
- * @private
8062
- */
8063
- updateMenuShapeSize() {
8064
- if (!this.menu) {
8065
- return;
8066
- }
8067
-
8068
- if (this.dropdown && this.dropdown.isBibFullscreen) {
8069
- this.menu.setAttribute('size', 'md');
8070
- this.menu.setAttribute('shape', 'box');
8071
- } else {
8072
- // set menu's default size if there it's not specified.
8073
- if (!this.menu.getAttribute('size')) {
8074
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8075
- }
8076
-
8077
- if (!this.getAttribute('shape')) {
8078
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8079
- }
8080
- }
8081
- }
8082
-
8083
8052
  /**
8084
8053
  * Binds all behavior needed to the menu after rendering.
8085
8054
  * @private
@@ -8096,7 +8065,14 @@ class AuroSelect extends AuroElement$3 {
8096
8065
  return;
8097
8066
  }
8098
8067
 
8099
- this.updateMenuShapeSize();
8068
+ // set menu's default size if there it's not specified.
8069
+ if (!this.menu.getAttribute('size')) {
8070
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8071
+ }
8072
+
8073
+ if (!this.getAttribute('shape')) {
8074
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8075
+ }
8100
8076
 
8101
8077
  if (this.multiSelect) {
8102
8078
  this.menu.multiSelect = this.multiSelect;
@@ -5358,7 +5358,7 @@ var dropdownVersion = '3.0.0';
5358
5358
 
5359
5359
  var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
5360
5360
 
5361
- 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%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#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)}`;
5361
+ 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)}`;
5362
5362
 
5363
5363
  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)}`;
5364
5364
 
@@ -7262,15 +7262,13 @@ class AuroBibtemplate extends LitElement {
7262
7262
  <div id="bibTemplate" part="bibtemplate">
7263
7263
  ${this.isFullscreen ? html`
7264
7264
  <div id="headerContainer">
7265
- <div class="titleRow">
7266
- <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7267
- <slot name="header"></slot>
7268
- </${this.headerTag}>
7269
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7270
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7271
- </${this.buttonTag}>
7272
- </div>
7273
- <span class="subheader">
7265
+ <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7266
+ <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7267
+ </${this.buttonTag}>
7268
+ <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7269
+ <slot name="header"></slot>
7270
+ </${this.headerTag}>
7271
+ <span id="subheader">
7274
7272
  <slot name="subheader"></slot>
7275
7273
  </span>
7276
7274
  </div>` : null}
@@ -7972,7 +7970,6 @@ class AuroSelect extends AuroElement$3 {
7972
7970
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
7973
7971
 
7974
7972
  if (this.dropdown.isPopoverVisible) {
7975
- this.updateMenuShapeSize();
7976
7973
  // wait til the bib gets fully rendered
7977
7974
  setTimeout(() => {
7978
7975
  if (this.dropdown.isBibFullscreen) {
@@ -7988,10 +7985,6 @@ class AuroSelect extends AuroElement$3 {
7988
7985
  }
7989
7986
  });
7990
7987
 
7991
- this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
7992
- this.updateMenuShapeSize();
7993
- });
7994
-
7995
7988
  // setting up bibtemplate
7996
7989
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
7997
7990
 
@@ -8056,30 +8049,6 @@ class AuroSelect extends AuroElement$3 {
8056
8049
  this.dropdown.requestUpdate();
8057
8050
  }
8058
8051
 
8059
- /**
8060
- * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8061
- * @private
8062
- */
8063
- updateMenuShapeSize() {
8064
- if (!this.menu) {
8065
- return;
8066
- }
8067
-
8068
- if (this.dropdown && this.dropdown.isBibFullscreen) {
8069
- this.menu.setAttribute('size', 'md');
8070
- this.menu.setAttribute('shape', 'box');
8071
- } else {
8072
- // set menu's default size if there it's not specified.
8073
- if (!this.menu.getAttribute('size')) {
8074
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8075
- }
8076
-
8077
- if (!this.getAttribute('shape')) {
8078
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8079
- }
8080
- }
8081
- }
8082
-
8083
8052
  /**
8084
8053
  * Binds all behavior needed to the menu after rendering.
8085
8054
  * @private
@@ -8096,7 +8065,14 @@ class AuroSelect extends AuroElement$3 {
8096
8065
  return;
8097
8066
  }
8098
8067
 
8099
- this.updateMenuShapeSize();
8068
+ // set menu's default size if there it's not specified.
8069
+ if (!this.menu.getAttribute('size')) {
8070
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8071
+ }
8072
+
8073
+ if (!this.getAttribute('shape')) {
8074
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8075
+ }
8100
8076
 
8101
8077
  if (this.multiSelect) {
8102
8078
  this.menu.multiSelect = this.multiSelect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr816.2",
3
+ "version": "0.0.0-pr819.1",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {