@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.89 → 0.0.0-pr624.90

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}#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)}`;
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)}`;
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,13 +7262,15 @@ class AuroBibtemplate extends LitElement {
7262
7262
  <div id="bibTemplate" part="bibtemplate">
7263
7263
  ${this.isFullscreen ? html`
7264
7264
  <div id="headerContainer">
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">
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">
7272
7274
  <slot name="subheader"></slot>
7273
7275
  </span>
7274
7276
  </div>` : null}
@@ -7970,6 +7972,7 @@ class AuroSelect extends AuroElement$3 {
7970
7972
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
7971
7973
 
7972
7974
  if (this.dropdown.isPopoverVisible) {
7975
+ this.updateMenuShapeSize();
7973
7976
  // wait til the bib gets fully rendered
7974
7977
  setTimeout(() => {
7975
7978
  if (this.dropdown.isBibFullscreen) {
@@ -7985,6 +7988,10 @@ class AuroSelect extends AuroElement$3 {
7985
7988
  }
7986
7989
  });
7987
7990
 
7991
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
7992
+ this.updateMenuShapeSize();
7993
+ });
7994
+
7988
7995
  // setting up bibtemplate
7989
7996
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
7990
7997
 
@@ -8049,6 +8056,30 @@ class AuroSelect extends AuroElement$3 {
8049
8056
  this.dropdown.requestUpdate();
8050
8057
  }
8051
8058
 
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
+
8052
8083
  /**
8053
8084
  * Binds all behavior needed to the menu after rendering.
8054
8085
  * @private
@@ -8065,14 +8096,7 @@ class AuroSelect extends AuroElement$3 {
8065
8096
  return;
8066
8097
  }
8067
8098
 
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
- }
8099
+ this.updateMenuShapeSize();
8076
8100
 
8077
8101
  if (this.multiSelect) {
8078
8102
  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}#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)}`;
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)}`;
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,13 +7262,15 @@ class AuroBibtemplate extends LitElement {
7262
7262
  <div id="bibTemplate" part="bibtemplate">
7263
7263
  ${this.isFullscreen ? html`
7264
7264
  <div id="headerContainer">
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">
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">
7272
7274
  <slot name="subheader"></slot>
7273
7275
  </span>
7274
7276
  </div>` : null}
@@ -7970,6 +7972,7 @@ class AuroSelect extends AuroElement$3 {
7970
7972
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
7971
7973
 
7972
7974
  if (this.dropdown.isPopoverVisible) {
7975
+ this.updateMenuShapeSize();
7973
7976
  // wait til the bib gets fully rendered
7974
7977
  setTimeout(() => {
7975
7978
  if (this.dropdown.isBibFullscreen) {
@@ -7985,6 +7988,10 @@ class AuroSelect extends AuroElement$3 {
7985
7988
  }
7986
7989
  });
7987
7990
 
7991
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
7992
+ this.updateMenuShapeSize();
7993
+ });
7994
+
7988
7995
  // setting up bibtemplate
7989
7996
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
7990
7997
 
@@ -8049,6 +8056,30 @@ class AuroSelect extends AuroElement$3 {
8049
8056
  this.dropdown.requestUpdate();
8050
8057
  }
8051
8058
 
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
+
8052
8083
  /**
8053
8084
  * Binds all behavior needed to the menu after rendering.
8054
8085
  * @private
@@ -8065,14 +8096,7 @@ class AuroSelect extends AuroElement$3 {
8065
8096
  return;
8066
8097
  }
8067
8098
 
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
- }
8099
+ this.updateMenuShapeSize();
8076
8100
 
8077
8101
  if (this.multiSelect) {
8078
8102
  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-pr624.89",
3
+ "version": "0.0.0-pr624.90",
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": {
@@ -82,8 +82,8 @@
82
82
  "concurrently": "^9.2.0",
83
83
  "copyfiles": "^2.4.1",
84
84
  "core-js": "^3.43.0",
85
- "eslint": "^9.30.1",
86
- "eslint-plugin-jsdoc": "^51.3.4",
85
+ "eslint": "^9.31.0",
86
+ "eslint-plugin-jsdoc": "^51.4.0",
87
87
  "husky": "^9.1.7",
88
88
  "lodash": "^4.17.21",
89
89
  "markdown-magic": "^3.4.1",
@@ -94,7 +94,7 @@
94
94
  "postcss-discard-comments": "^7.0.4",
95
95
  "prettier": "^3.6.2",
96
96
  "sass": "^1.89.2",
97
- "semantic-release": "^24.2.6",
97
+ "semantic-release": "^24.2.7",
98
98
  "stylelint": "^16.21.1",
99
99
  "stylelint-config-idiomatic-order": "^10.0.0",
100
100
  "stylelint-config-standard": "^38.0.0",