@aurodesignsystem-dev/auro-formkit 0.0.0-pr784.0 → 0.0.0-pr785.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.
Files changed (71) hide show
  1. package/components/checkbox/demo/api.html +10 -16
  2. package/components/checkbox/demo/api.min.js +7 -18
  3. package/components/checkbox/demo/index.html +10 -16
  4. package/components/checkbox/demo/index.min.js +7 -18
  5. package/components/checkbox/demo/readme.html +9 -16
  6. package/components/checkbox/dist/index.js +7 -18
  7. package/components/checkbox/dist/registered.js +7 -18
  8. package/components/combobox/demo/api.html +10 -16
  9. package/components/combobox/demo/api.md +0 -1
  10. package/components/combobox/demo/api.min.js +20 -58
  11. package/components/combobox/demo/index.html +10 -16
  12. package/components/combobox/demo/index.min.js +20 -58
  13. package/components/combobox/demo/readme.html +9 -16
  14. package/components/combobox/dist/auro-combobox.d.ts +0 -5
  15. package/components/combobox/dist/index.js +20 -58
  16. package/components/combobox/dist/registered.js +20 -58
  17. package/components/counter/demo/api.html +10 -16
  18. package/components/counter/demo/api.min.js +8 -19
  19. package/components/counter/demo/index.html +10 -16
  20. package/components/counter/demo/index.min.js +8 -19
  21. package/components/counter/demo/readme.html +9 -16
  22. package/components/counter/dist/index.js +8 -19
  23. package/components/counter/dist/registered.js +8 -19
  24. package/components/datepicker/demo/api.html +10 -16
  25. package/components/datepicker/demo/api.md +1 -2
  26. package/components/datepicker/demo/api.min.js +68 -58
  27. package/components/datepicker/demo/index.html +10 -16
  28. package/components/datepicker/demo/index.min.js +68 -58
  29. package/components/datepicker/demo/readme.html +9 -16
  30. package/components/datepicker/dist/auro-datepicker.d.ts +18 -6
  31. package/components/datepicker/dist/index.js +68 -58
  32. package/components/datepicker/dist/registered.js +68 -58
  33. package/components/dropdown/demo/api.html +10 -16
  34. package/components/dropdown/demo/api.min.js +3 -3
  35. package/components/dropdown/demo/index.html +10 -16
  36. package/components/dropdown/demo/index.min.js +3 -3
  37. package/components/dropdown/demo/readme.html +9 -16
  38. package/components/dropdown/dist/index.js +3 -3
  39. package/components/dropdown/dist/registered.js +3 -3
  40. package/components/form/demo/api.html +9 -16
  41. package/components/form/demo/autocomplete.html +3 -19
  42. package/components/form/demo/index.html +9 -16
  43. package/components/form/demo/readme.html +9 -16
  44. package/components/form/demo/working.html +13 -19
  45. package/components/input/demo/api.html +10 -16
  46. package/components/input/demo/api.md +1 -2
  47. package/components/input/demo/api.min.js +9 -27
  48. package/components/input/demo/index.html +10 -16
  49. package/components/input/demo/index.min.js +9 -27
  50. package/components/input/demo/readme.html +9 -16
  51. package/components/input/dist/base-input.d.ts +1 -5
  52. package/components/input/dist/index.js +9 -27
  53. package/components/input/dist/registered.js +9 -27
  54. package/components/menu/demo/api.html +32 -16
  55. package/components/menu/demo/index.html +10 -16
  56. package/components/menu/demo/readme.html +9 -16
  57. package/components/radio/demo/api.html +10 -16
  58. package/components/radio/demo/api.min.js +5 -16
  59. package/components/radio/demo/index.html +10 -16
  60. package/components/radio/demo/index.min.js +5 -16
  61. package/components/radio/demo/readme.html +9 -16
  62. package/components/radio/dist/index.js +5 -16
  63. package/components/radio/dist/registered.js +5 -16
  64. package/components/select/demo/api.html +10 -16
  65. package/components/select/demo/api.min.js +8 -19
  66. package/components/select/demo/index.html +11 -16
  67. package/components/select/demo/index.min.js +8 -19
  68. package/components/select/demo/readme.html +9 -16
  69. package/components/select/dist/index.js +8 -19
  70. package/components/select/dist/registered.js +8 -19
  71. package/package.json +3 -4
@@ -710,24 +710,13 @@ let AuroFormValidation$1 = class AuroFormValidation {
710
710
  this.getInputElements(elem);
711
711
  this.getAuroInputs(elem);
712
712
 
713
- // Check if validation should run
713
+ // Validate only if noValidate is not true and the input does not have focus
714
714
  let validationShouldRun =
715
-
716
- // If the validation was forced
717
715
  force ||
718
-
719
- // If the validation should run on input
720
- elem.validateOnInput ||
721
-
722
- // State-based checks
723
- (
724
- // Element is not currently focused
725
- !elem.contains(document.activeElement) && // native input is not focused directly
726
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
727
-
728
- // And element has been touched or is untouched but has a value
729
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
730
- );
716
+ (!elem.contains(document.activeElement) &&
717
+ (elem.touched ||
718
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
719
+ elem.validateOnInput;
731
720
 
732
721
  if (elem.hasAttribute('error')) {
733
722
  elem.validity = 'customError';
@@ -1268,9 +1257,9 @@ var shapeSizeCss$2 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
1268
1257
 
1269
1258
  var classicLayoutColor = css``;
1270
1259
 
1271
- var snowflakeStyle = css`.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;max-width:250px;margin:0 auto}.inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}:host([disabled]) .inputSection{display:none}:host([layout*=snowflake]) [auro-input]{flex:1;text-align:center}:host([layout*=snowflake]) [auro-input]::part(label),:host([layout*=snowflake]) [auro-input]::part(accent-left),:host([layout*=snowflake]) [auro-input]::part(accent-right){display:none}:host([layout*=snowflake]) [auro-input]::part(input){padding-bottom:unset;text-align:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);transition:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper){min-height:unset;max-height:unset;box-shadow:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper) .mainContent{padding-bottom:unset}:host([layout*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake]) [auro-dropdown]::part(trigger){width:100%}:host([layout*=snowflake]) .dpTriggerContent{width:100%}:host([layout*=snowflake]) .wrapper{height:60px;width:calc(100% - 48px);display:flex;flex-direction:row;justify-content:space-between;padding-left:24px;padding-right:24px}:host([layout*=snowflake]) label{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);font-weight:450;letter-spacing:0}:host([layout*=snowflake]) label.hasFocus,:host([layout*=snowflake]) label.hasValue{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-height-xs, 1rem)}:host([layout*=snowflake]) .inputDivider{height:18px;margin:4px 12px;width:2px}`;
1260
+ var snowflakeStyle = css`.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;max-width:250px;margin:0 auto}.inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}:host([disabled]) .inputSection{display:none}:host([layout*=snowflake]) [auro-input]{flex:1;text-align:center}:host([layout*=snowflake]) [auro-input]::part(label),:host([layout*=snowflake]) [auro-input]::part(accent-left),:host([layout*=snowflake]) [auro-input]::part(accent-right){display:none}:host([layout*=snowflake]) [auro-input]::part(input){padding-bottom:unset;text-align:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);transition:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper){min-height:unset;max-height:unset;box-shadow:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper) .mainContent{padding-bottom:unset}:host([layout*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake]) [auro-input]::part(displayValue){justify-content:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem)}:host([layout*=snowflake]) [auro-dropdown]::part(trigger){width:100%}:host([layout*=snowflake]) .dpTriggerContent{width:100%}:host([layout*=snowflake]) .wrapper{height:60px;width:calc(100% - 48px);display:flex;flex-direction:row;justify-content:space-between;padding-left:24px;padding-right:24px}:host([layout*=snowflake]) label{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);font-weight:450;letter-spacing:0}:host([layout*=snowflake]) label.hasFocus,:host([layout*=snowflake]) label.hasValue{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-height-xs, 1rem)}:host([layout*=snowflake]) .inputDivider{height:18px;margin:4px 12px;width:2px}`;
1272
1261
 
1273
- var snowflakeColors = css`:host([layout=snowflake])[disabled] .mainContent label ::slotted(*){color:var(--ds-auro-icon-color)}:host([layout=snowflake]) label{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .inputDivider{background-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .error{color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout=snowflake]) [auro-input]::part(input)::placeholder{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus))::part(wrapper){--ds-auro-dropdown-trigger-border-color: transparent}`;
1262
+ var snowflakeColors = css`:host([layout=snowflake])[disabled] .mainContent label ::slotted(*){color:var(--ds-auro-icon-color)}:host([layout=snowflake]) label{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .inputDivider{background-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .error{color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout=snowflake]) [auro-input]::part(input)::placeholder{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) [auro-input]::part(displayValue){background-color:inherit}:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus))::part(wrapper){--ds-auro-dropdown-trigger-border-color: transparent}`;
1274
1263
 
1275
1264
  var styleCss$d = css`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
1276
1265
 
@@ -15806,7 +15795,7 @@ class AuroFloatingUI {
15806
15795
  */
15807
15796
  mirrorSize() {
15808
15797
  // mirror the boxsize from bibSizer
15809
- if (this.element.bibSizer) {
15798
+ if (this.element.bibSizer && this.element.matchWidth) {
15810
15799
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
15811
15800
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
15812
15801
  if (sizerStyle.width !== '0px') {
@@ -16018,7 +16007,7 @@ class AuroFloatingUI {
16018
16007
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
16019
16008
  return;
16020
16009
  }
16021
-
16010
+
16022
16011
  // if fullscreen bib is in fullscreen mode, do not close
16023
16012
  if (this.element.bib.hasAttribute('isfullscreen')) {
16024
16013
  return;
@@ -16206,7 +16195,7 @@ class AuroFloatingUI {
16206
16195
 
16207
16196
  event.preventDefault();
16208
16197
  this.handleClick();
16209
- }
16198
+ }
16210
16199
  break;
16211
16200
  case 'mouseenter':
16212
16201
  if (this.element.hoverToggle) {
@@ -23195,24 +23184,13 @@ class AuroFormValidation {
23195
23184
  this.getInputElements(elem);
23196
23185
  this.getAuroInputs(elem);
23197
23186
 
23198
- // Check if validation should run
23187
+ // Validate only if noValidate is not true and the input does not have focus
23199
23188
  let validationShouldRun =
23200
-
23201
- // If the validation was forced
23202
23189
  force ||
23203
-
23204
- // If the validation should run on input
23205
- elem.validateOnInput ||
23206
-
23207
- // State-based checks
23208
- (
23209
- // Element is not currently focused
23210
- !elem.contains(document.activeElement) && // native input is not focused directly
23211
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
23212
-
23213
- // And element has been touched or is untouched but has a value
23214
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
23215
- );
23190
+ (!elem.contains(document.activeElement) &&
23191
+ (elem.touched ||
23192
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
23193
+ elem.validateOnInput;
23216
23194
 
23217
23195
  if (elem.hasAttribute('error')) {
23218
23196
  elem.validity = 'customError';
@@ -24036,9 +24014,9 @@ class BaseInput extends AuroElement$2 {
24036
24014
  if (!this.shadowRoot.contains(this.getActiveElement())) {
24037
24015
  this.validation.validate(this);
24038
24016
  }
24039
- }
24040
24017
 
24041
- this.notifyValueChanged();
24018
+ this.notifyValueChanged();
24019
+ }
24042
24020
  }
24043
24021
 
24044
24022
  if (changedProperties.has('error')) {
@@ -24163,9 +24141,9 @@ class BaseInput extends AuroElement$2 {
24163
24141
  this.inputElement.value = "";
24164
24142
  this.value = "";
24165
24143
  this.labelElement.classList.remove('inputElement-label--sticky');
24166
- this.notifyValueChanged();
24167
24144
  this.focus();
24168
24145
  this.validation.validate(this);
24146
+ this.notifyValueChanged();
24169
24147
  }
24170
24148
 
24171
24149
  /**
@@ -24260,20 +24238,13 @@ class BaseInput extends AuroElement$2 {
24260
24238
  }
24261
24239
 
24262
24240
  /**
24263
- * Resets component to initial state, including resetting the touched state and validity.
24241
+ * Resets component to initial state.
24264
24242
  * @returns {void}
24265
24243
  */
24266
24244
  reset() {
24267
24245
  this.validation.reset(this);
24268
24246
  }
24269
24247
 
24270
- /**
24271
- * Clears the input value
24272
- */
24273
- clear() {
24274
- this.value = undefined;
24275
- }
24276
-
24277
24248
  /**
24278
24249
  * Sets configuration data used elsewhere based on the `type` attribute.
24279
24250
  * @private
@@ -28388,7 +28359,7 @@ class AuroDatePicker extends AuroElement$1 {
28388
28359
  */
28389
28360
  resetValues() {
28390
28361
  this.inputList.forEach((input) => {
28391
- input.clear();
28362
+ input.reset();
28392
28363
  });
28393
28364
  }
28394
28365
 
@@ -28398,15 +28369,8 @@ class AuroDatePicker extends AuroElement$1 {
28398
28369
  */
28399
28370
  reset() {
28400
28371
  this.resetValues();
28401
- this.validation.reset(this);
28402
- }
28403
28372
 
28404
- /**
28405
- * Clears the current value(s) of the datepicker.
28406
- * @returns {void}
28407
- */
28408
- clear() {
28409
- this.resetValues();
28373
+ this.validation.reset(this);
28410
28374
  }
28411
28375
 
28412
28376
  /**
@@ -28746,6 +28710,9 @@ class AuroDatePicker extends AuroElement$1 {
28746
28710
  `;
28747
28711
  }
28748
28712
 
28713
+ /**
28714
+ * @private
28715
+ */
28749
28716
  renderLayoutFromAttributes() {
28750
28717
  switch (this.layout) {
28751
28718
  case 'snowflake':
@@ -28758,6 +28725,43 @@ class AuroDatePicker extends AuroElement$1 {
28758
28725
  }
28759
28726
  }
28760
28727
 
28728
+ // eslint-disable-next-line no-warning-comments
28729
+ // TODO: move this to date utility when time allows :(
28730
+ /**
28731
+ * Simple formatter that ONLY WORKS FOR US DATES.
28732
+ * Returns formatted date like Apr 21 or Dec 25.
28733
+ * @param date
28734
+ * @return {string}
28735
+ */
28736
+ formatShortDate(date) {
28737
+ // should render like Apr 21
28738
+ const options = {
28739
+ month: 'short',
28740
+ day: '2-digit'
28741
+ };
28742
+
28743
+ return new Date(date).toLocaleDateString('en-US', options).replace(',', '');
28744
+ }
28745
+
28746
+ /**
28747
+ * Format and render the provided date value.
28748
+ * @private
28749
+ * @param dateValue
28750
+ * @return {TemplateResult}
28751
+ */
28752
+ renderDisplayTextDate(dateValue) {
28753
+ return html$1`
28754
+ <div>
28755
+ <div class="displayValueText">
28756
+ ${dateValue && this.util.validDateStr(dateValue, this.format)
28757
+ ? this.formatShortDate(dateValue)
28758
+ : undefined
28759
+ }
28760
+ </div>
28761
+ </div>
28762
+ `;
28763
+ }
28764
+
28761
28765
  renderHtmlInputs() {
28762
28766
  const inputClasses = {
28763
28767
  "util_displayHiddenVisually": !this.hasValue && !this.hasFocus
@@ -28773,7 +28777,7 @@ class AuroDatePicker extends AuroElement$1 {
28773
28777
  .max="${this.maxDate}"
28774
28778
  .min="${this.minDate}"
28775
28779
  id="${this.generateRandomString(12)}"
28776
- placeholder="MM/DD"
28780
+ .placeholder="${this.placeholder}"
28777
28781
  simple
28778
28782
  bordered
28779
28783
  noValidate
@@ -28789,6 +28793,9 @@ class AuroDatePicker extends AuroElement$1 {
28789
28793
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
28790
28794
  inputmode="${ifDefined(this.inputmode)}"
28791
28795
  >
28796
+ <span slot="displayValue">
28797
+ ${this.renderDisplayTextDate(this.value)}
28798
+ </span>
28792
28799
  <span slot="label"><slot name="fromLabel"></slot></span>
28793
28800
  </${this.inputTag}>
28794
28801
  </div>
@@ -28819,6 +28826,9 @@ class AuroDatePicker extends AuroElement$1 {
28819
28826
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
28820
28827
  ?disabled="${this.disabled}"
28821
28828
  part="input">
28829
+ <span slot="displayValue">
28830
+ ${this.renderDisplayTextDate(this.valueEnd)}
28831
+ </span>
28822
28832
  <span slot="label"><slot name="toLabel"></slot></span>
28823
28833
  </${this.inputTag}>
28824
28834
  </div>
@@ -710,24 +710,13 @@ let AuroFormValidation$1 = class AuroFormValidation {
710
710
  this.getInputElements(elem);
711
711
  this.getAuroInputs(elem);
712
712
 
713
- // Check if validation should run
713
+ // Validate only if noValidate is not true and the input does not have focus
714
714
  let validationShouldRun =
715
-
716
- // If the validation was forced
717
715
  force ||
718
-
719
- // If the validation should run on input
720
- elem.validateOnInput ||
721
-
722
- // State-based checks
723
- (
724
- // Element is not currently focused
725
- !elem.contains(document.activeElement) && // native input is not focused directly
726
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
727
-
728
- // And element has been touched or is untouched but has a value
729
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
730
- );
716
+ (!elem.contains(document.activeElement) &&
717
+ (elem.touched ||
718
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
719
+ elem.validateOnInput;
731
720
 
732
721
  if (elem.hasAttribute('error')) {
733
722
  elem.validity = 'customError';
@@ -1268,9 +1257,9 @@ var shapeSizeCss$2 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
1268
1257
 
1269
1258
  var classicLayoutColor = css``;
1270
1259
 
1271
- var snowflakeStyle = css`.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;max-width:250px;margin:0 auto}.inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}:host([disabled]) .inputSection{display:none}:host([layout*=snowflake]) [auro-input]{flex:1;text-align:center}:host([layout*=snowflake]) [auro-input]::part(label),:host([layout*=snowflake]) [auro-input]::part(accent-left),:host([layout*=snowflake]) [auro-input]::part(accent-right){display:none}:host([layout*=snowflake]) [auro-input]::part(input){padding-bottom:unset;text-align:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);transition:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper){min-height:unset;max-height:unset;box-shadow:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper) .mainContent{padding-bottom:unset}:host([layout*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake]) [auro-dropdown]::part(trigger){width:100%}:host([layout*=snowflake]) .dpTriggerContent{width:100%}:host([layout*=snowflake]) .wrapper{height:60px;width:calc(100% - 48px);display:flex;flex-direction:row;justify-content:space-between;padding-left:24px;padding-right:24px}:host([layout*=snowflake]) label{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);font-weight:450;letter-spacing:0}:host([layout*=snowflake]) label.hasFocus,:host([layout*=snowflake]) label.hasValue{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-height-xs, 1rem)}:host([layout*=snowflake]) .inputDivider{height:18px;margin:4px 12px;width:2px}`;
1260
+ var snowflakeStyle = css`.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;max-width:250px;margin:0 auto}.inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}:host([disabled]) .inputSection{display:none}:host([layout*=snowflake]) [auro-input]{flex:1;text-align:center}:host([layout*=snowflake]) [auro-input]::part(label),:host([layout*=snowflake]) [auro-input]::part(accent-left),:host([layout*=snowflake]) [auro-input]::part(accent-right){display:none}:host([layout*=snowflake]) [auro-input]::part(input){padding-bottom:unset;text-align:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);transition:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper){min-height:unset;max-height:unset;box-shadow:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper) .mainContent{padding-bottom:unset}:host([layout*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake]) [auro-input]::part(displayValue){justify-content:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem)}:host([layout*=snowflake]) [auro-dropdown]::part(trigger){width:100%}:host([layout*=snowflake]) .dpTriggerContent{width:100%}:host([layout*=snowflake]) .wrapper{height:60px;width:calc(100% - 48px);display:flex;flex-direction:row;justify-content:space-between;padding-left:24px;padding-right:24px}:host([layout*=snowflake]) label{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);font-weight:450;letter-spacing:0}:host([layout*=snowflake]) label.hasFocus,:host([layout*=snowflake]) label.hasValue{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-height-xs, 1rem)}:host([layout*=snowflake]) .inputDivider{height:18px;margin:4px 12px;width:2px}`;
1272
1261
 
1273
- var snowflakeColors = css`:host([layout=snowflake])[disabled] .mainContent label ::slotted(*){color:var(--ds-auro-icon-color)}:host([layout=snowflake]) label{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .inputDivider{background-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .error{color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout=snowflake]) [auro-input]::part(input)::placeholder{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus))::part(wrapper){--ds-auro-dropdown-trigger-border-color: transparent}`;
1262
+ var snowflakeColors = css`:host([layout=snowflake])[disabled] .mainContent label ::slotted(*){color:var(--ds-auro-icon-color)}:host([layout=snowflake]) label{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .inputDivider{background-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .error{color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout=snowflake]) [auro-input]::part(input)::placeholder{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) [auro-input]::part(displayValue){background-color:inherit}:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus))::part(wrapper){--ds-auro-dropdown-trigger-border-color: transparent}`;
1274
1263
 
1275
1264
  var styleCss$d = css`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
1276
1265
 
@@ -15806,7 +15795,7 @@ class AuroFloatingUI {
15806
15795
  */
15807
15796
  mirrorSize() {
15808
15797
  // mirror the boxsize from bibSizer
15809
- if (this.element.bibSizer) {
15798
+ if (this.element.bibSizer && this.element.matchWidth) {
15810
15799
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
15811
15800
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
15812
15801
  if (sizerStyle.width !== '0px') {
@@ -16018,7 +16007,7 @@ class AuroFloatingUI {
16018
16007
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
16019
16008
  return;
16020
16009
  }
16021
-
16010
+
16022
16011
  // if fullscreen bib is in fullscreen mode, do not close
16023
16012
  if (this.element.bib.hasAttribute('isfullscreen')) {
16024
16013
  return;
@@ -16206,7 +16195,7 @@ class AuroFloatingUI {
16206
16195
 
16207
16196
  event.preventDefault();
16208
16197
  this.handleClick();
16209
- }
16198
+ }
16210
16199
  break;
16211
16200
  case 'mouseenter':
16212
16201
  if (this.element.hoverToggle) {
@@ -23195,24 +23184,13 @@ class AuroFormValidation {
23195
23184
  this.getInputElements(elem);
23196
23185
  this.getAuroInputs(elem);
23197
23186
 
23198
- // Check if validation should run
23187
+ // Validate only if noValidate is not true and the input does not have focus
23199
23188
  let validationShouldRun =
23200
-
23201
- // If the validation was forced
23202
23189
  force ||
23203
-
23204
- // If the validation should run on input
23205
- elem.validateOnInput ||
23206
-
23207
- // State-based checks
23208
- (
23209
- // Element is not currently focused
23210
- !elem.contains(document.activeElement) && // native input is not focused directly
23211
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
23212
-
23213
- // And element has been touched or is untouched but has a value
23214
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
23215
- );
23190
+ (!elem.contains(document.activeElement) &&
23191
+ (elem.touched ||
23192
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
23193
+ elem.validateOnInput;
23216
23194
 
23217
23195
  if (elem.hasAttribute('error')) {
23218
23196
  elem.validity = 'customError';
@@ -24036,9 +24014,9 @@ class BaseInput extends AuroElement$2 {
24036
24014
  if (!this.shadowRoot.contains(this.getActiveElement())) {
24037
24015
  this.validation.validate(this);
24038
24016
  }
24039
- }
24040
24017
 
24041
- this.notifyValueChanged();
24018
+ this.notifyValueChanged();
24019
+ }
24042
24020
  }
24043
24021
 
24044
24022
  if (changedProperties.has('error')) {
@@ -24163,9 +24141,9 @@ class BaseInput extends AuroElement$2 {
24163
24141
  this.inputElement.value = "";
24164
24142
  this.value = "";
24165
24143
  this.labelElement.classList.remove('inputElement-label--sticky');
24166
- this.notifyValueChanged();
24167
24144
  this.focus();
24168
24145
  this.validation.validate(this);
24146
+ this.notifyValueChanged();
24169
24147
  }
24170
24148
 
24171
24149
  /**
@@ -24260,20 +24238,13 @@ class BaseInput extends AuroElement$2 {
24260
24238
  }
24261
24239
 
24262
24240
  /**
24263
- * Resets component to initial state, including resetting the touched state and validity.
24241
+ * Resets component to initial state.
24264
24242
  * @returns {void}
24265
24243
  */
24266
24244
  reset() {
24267
24245
  this.validation.reset(this);
24268
24246
  }
24269
24247
 
24270
- /**
24271
- * Clears the input value
24272
- */
24273
- clear() {
24274
- this.value = undefined;
24275
- }
24276
-
24277
24248
  /**
24278
24249
  * Sets configuration data used elsewhere based on the `type` attribute.
24279
24250
  * @private
@@ -28388,7 +28359,7 @@ class AuroDatePicker extends AuroElement$1 {
28388
28359
  */
28389
28360
  resetValues() {
28390
28361
  this.inputList.forEach((input) => {
28391
- input.clear();
28362
+ input.reset();
28392
28363
  });
28393
28364
  }
28394
28365
 
@@ -28398,15 +28369,8 @@ class AuroDatePicker extends AuroElement$1 {
28398
28369
  */
28399
28370
  reset() {
28400
28371
  this.resetValues();
28401
- this.validation.reset(this);
28402
- }
28403
28372
 
28404
- /**
28405
- * Clears the current value(s) of the datepicker.
28406
- * @returns {void}
28407
- */
28408
- clear() {
28409
- this.resetValues();
28373
+ this.validation.reset(this);
28410
28374
  }
28411
28375
 
28412
28376
  /**
@@ -28746,6 +28710,9 @@ class AuroDatePicker extends AuroElement$1 {
28746
28710
  `;
28747
28711
  }
28748
28712
 
28713
+ /**
28714
+ * @private
28715
+ */
28749
28716
  renderLayoutFromAttributes() {
28750
28717
  switch (this.layout) {
28751
28718
  case 'snowflake':
@@ -28758,6 +28725,43 @@ class AuroDatePicker extends AuroElement$1 {
28758
28725
  }
28759
28726
  }
28760
28727
 
28728
+ // eslint-disable-next-line no-warning-comments
28729
+ // TODO: move this to date utility when time allows :(
28730
+ /**
28731
+ * Simple formatter that ONLY WORKS FOR US DATES.
28732
+ * Returns formatted date like Apr 21 or Dec 25.
28733
+ * @param date
28734
+ * @return {string}
28735
+ */
28736
+ formatShortDate(date) {
28737
+ // should render like Apr 21
28738
+ const options = {
28739
+ month: 'short',
28740
+ day: '2-digit'
28741
+ };
28742
+
28743
+ return new Date(date).toLocaleDateString('en-US', options).replace(',', '');
28744
+ }
28745
+
28746
+ /**
28747
+ * Format and render the provided date value.
28748
+ * @private
28749
+ * @param dateValue
28750
+ * @return {TemplateResult}
28751
+ */
28752
+ renderDisplayTextDate(dateValue) {
28753
+ return html$1`
28754
+ <div>
28755
+ <div class="displayValueText">
28756
+ ${dateValue && this.util.validDateStr(dateValue, this.format)
28757
+ ? this.formatShortDate(dateValue)
28758
+ : undefined
28759
+ }
28760
+ </div>
28761
+ </div>
28762
+ `;
28763
+ }
28764
+
28761
28765
  renderHtmlInputs() {
28762
28766
  const inputClasses = {
28763
28767
  "util_displayHiddenVisually": !this.hasValue && !this.hasFocus
@@ -28773,7 +28777,7 @@ class AuroDatePicker extends AuroElement$1 {
28773
28777
  .max="${this.maxDate}"
28774
28778
  .min="${this.minDate}"
28775
28779
  id="${this.generateRandomString(12)}"
28776
- placeholder="MM/DD"
28780
+ .placeholder="${this.placeholder}"
28777
28781
  simple
28778
28782
  bordered
28779
28783
  noValidate
@@ -28789,6 +28793,9 @@ class AuroDatePicker extends AuroElement$1 {
28789
28793
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
28790
28794
  inputmode="${ifDefined(this.inputmode)}"
28791
28795
  >
28796
+ <span slot="displayValue">
28797
+ ${this.renderDisplayTextDate(this.value)}
28798
+ </span>
28792
28799
  <span slot="label"><slot name="fromLabel"></slot></span>
28793
28800
  </${this.inputTag}>
28794
28801
  </div>
@@ -28819,6 +28826,9 @@ class AuroDatePicker extends AuroElement$1 {
28819
28826
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
28820
28827
  ?disabled="${this.disabled}"
28821
28828
  part="input">
28829
+ <span slot="displayValue">
28830
+ ${this.renderDisplayTextDate(this.valueEnd)}
28831
+ </span>
28822
28832
  <span slot="label"><slot name="toLabel"></slot></span>
28823
28833
  </${this.inputTag}>
28824
28834
  </div>
@@ -16,24 +16,18 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-dropdown</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-dropdown's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-dropdown custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials-as.css" />
30
+ </head>
37
31
  <body class="auro-markdown">
38
32
  <main></main>
39
33
 
@@ -1755,7 +1755,7 @@ class AuroFloatingUI {
1755
1755
  */
1756
1756
  mirrorSize() {
1757
1757
  // mirror the boxsize from bibSizer
1758
- if (this.element.bibSizer) {
1758
+ if (this.element.bibSizer && this.element.matchWidth) {
1759
1759
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
1760
1760
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
1761
1761
  if (sizerStyle.width !== '0px') {
@@ -1967,7 +1967,7 @@ class AuroFloatingUI {
1967
1967
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
1968
1968
  return;
1969
1969
  }
1970
-
1970
+
1971
1971
  // if fullscreen bib is in fullscreen mode, do not close
1972
1972
  if (this.element.bib.hasAttribute('isfullscreen')) {
1973
1973
  return;
@@ -2155,7 +2155,7 @@ class AuroFloatingUI {
2155
2155
 
2156
2156
  event.preventDefault();
2157
2157
  this.handleClick();
2158
- }
2158
+ }
2159
2159
  break;
2160
2160
  case 'mouseenter':
2161
2161
  if (this.element.hoverToggle) {
@@ -16,24 +16,18 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-dropdown</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-dropdown's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-dropdown custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials-as.css" />
30
+ </head>
37
31
  <body class="auro-markdown">
38
32
  <main></main>
39
33
 
@@ -1730,7 +1730,7 @@ class AuroFloatingUI {
1730
1730
  */
1731
1731
  mirrorSize() {
1732
1732
  // mirror the boxsize from bibSizer
1733
- if (this.element.bibSizer) {
1733
+ if (this.element.bibSizer && this.element.matchWidth) {
1734
1734
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
1735
1735
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
1736
1736
  if (sizerStyle.width !== '0px') {
@@ -1942,7 +1942,7 @@ class AuroFloatingUI {
1942
1942
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
1943
1943
  return;
1944
1944
  }
1945
-
1945
+
1946
1946
  // if fullscreen bib is in fullscreen mode, do not close
1947
1947
  if (this.element.bib.hasAttribute('isfullscreen')) {
1948
1948
  return;
@@ -2130,7 +2130,7 @@ class AuroFloatingUI {
2130
2130
 
2131
2131
  event.preventDefault();
2132
2132
  this.handleClick();
2133
- }
2133
+ }
2134
2134
  break;
2135
2135
  case 'mouseenter':
2136
2136
  if (this.element.hoverToggle) {