@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.
@@ -5404,7 +5404,7 @@ var dropdownVersion = '3.0.0';
5404
5404
 
5405
5405
  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)}`;
5406
5406
 
5407
- 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)}`;
5407
+ 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)}`;
5408
5408
 
5409
5409
  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)}`;
5410
5410
 
@@ -7308,13 +7308,15 @@ class AuroBibtemplate extends i$2 {
7308
7308
  <div id="bibTemplate" part="bibtemplate">
7309
7309
  ${this.isFullscreen ? u`
7310
7310
  <div id="headerContainer">
7311
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7312
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7313
- </${this.buttonTag}>
7314
- <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7315
- <slot name="header"></slot>
7316
- </${this.headerTag}>
7317
- <span id="subheader">
7311
+ <div class="titleRow">
7312
+ <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7313
+ <slot name="header"></slot>
7314
+ </${this.headerTag}>
7315
+ <${this.buttonTag} class="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7316
+ <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7317
+ </${this.buttonTag}>
7318
+ </div>
7319
+ <span class="subheader">
7318
7320
  <slot name="subheader"></slot>
7319
7321
  </span>
7320
7322
  </div>` : null}
@@ -8016,6 +8018,7 @@ class AuroSelect extends AuroElement$4 {
8016
8018
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8017
8019
 
8018
8020
  if (this.dropdown.isPopoverVisible) {
8021
+ this.updateMenuShapeSize();
8019
8022
  // wait til the bib gets fully rendered
8020
8023
  setTimeout(() => {
8021
8024
  if (this.dropdown.isBibFullscreen) {
@@ -8031,6 +8034,10 @@ class AuroSelect extends AuroElement$4 {
8031
8034
  }
8032
8035
  });
8033
8036
 
8037
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
8038
+ this.updateMenuShapeSize();
8039
+ });
8040
+
8034
8041
  // setting up bibtemplate
8035
8042
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
8036
8043
 
@@ -8095,6 +8102,30 @@ class AuroSelect extends AuroElement$4 {
8095
8102
  this.dropdown.requestUpdate();
8096
8103
  }
8097
8104
 
8105
+ /**
8106
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8107
+ * @private
8108
+ */
8109
+ updateMenuShapeSize() {
8110
+ if (!this.menu) {
8111
+ return;
8112
+ }
8113
+
8114
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8115
+ this.menu.setAttribute('size', 'md');
8116
+ this.menu.setAttribute('shape', 'box');
8117
+ } else {
8118
+ // set menu's default size if there it's not specified.
8119
+ if (!this.menu.getAttribute('size')) {
8120
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8121
+ }
8122
+
8123
+ if (!this.getAttribute('shape')) {
8124
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8125
+ }
8126
+ }
8127
+ }
8128
+
8098
8129
  /**
8099
8130
  * Binds all behavior needed to the menu after rendering.
8100
8131
  * @private
@@ -8111,14 +8142,7 @@ class AuroSelect extends AuroElement$4 {
8111
8142
  return;
8112
8143
  }
8113
8144
 
8114
- // set menu's default size if there it's not specified.
8115
- if (!this.menu.getAttribute('size')) {
8116
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8117
- }
8118
-
8119
- if (!this.getAttribute('shape')) {
8120
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8121
- }
8145
+ this.updateMenuShapeSize();
8122
8146
 
8123
8147
  if (this.multiSelect) {
8124
8148
  this.menu.multiSelect = this.multiSelect;
@@ -344,6 +344,11 @@ export class AuroSelect extends AuroElement {
344
344
  * @returns {void}
345
345
  */
346
346
  private updateDisplayedValue;
347
+ /**
348
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
349
+ * @private
350
+ */
351
+ private updateMenuShapeSize;
347
352
  /**
348
353
  * Binds all behavior needed to the menu after rendering.
349
354
  * @private
@@ -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)}#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)}`;
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} class="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)}#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)}`;
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} class="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-pr815.0",
3
+ "version": "0.0.0-pr816.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": {