@aurodesignsystem-dev/auro-formkit 0.0.0-pr783.1 → 0.0.0-pr784.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 (40) hide show
  1. package/components/checkbox/demo/api.min.js +16 -5
  2. package/components/checkbox/demo/index.min.js +16 -5
  3. package/components/checkbox/dist/index.js +16 -5
  4. package/components/checkbox/dist/registered.js +16 -5
  5. package/components/combobox/demo/api.md +1 -0
  6. package/components/combobox/demo/api.min.js +69 -48
  7. package/components/combobox/demo/index.min.js +69 -48
  8. package/components/combobox/dist/auro-combobox.d.ts +5 -0
  9. package/components/combobox/dist/index.js +69 -48
  10. package/components/combobox/dist/registered.js +69 -48
  11. package/components/counter/demo/api.min.js +32 -39
  12. package/components/counter/demo/index.min.js +32 -39
  13. package/components/counter/dist/index.js +32 -39
  14. package/components/counter/dist/registered.js +32 -39
  15. package/components/datepicker/demo/api.md +2 -0
  16. package/components/datepicker/demo/api.min.js +69 -107
  17. package/components/datepicker/demo/index.min.js +69 -107
  18. package/components/datepicker/dist/auro-datepicker.d.ts +6 -19
  19. package/components/datepicker/dist/index.js +69 -107
  20. package/components/datepicker/dist/registered.js +69 -107
  21. package/components/dropdown/demo/api.min.js +16 -33
  22. package/components/dropdown/demo/index.min.js +16 -33
  23. package/components/dropdown/dist/auro-dropdown.d.ts +0 -6
  24. package/components/dropdown/dist/index.js +16 -33
  25. package/components/dropdown/dist/registered.js +16 -33
  26. package/components/input/demo/api.md +2 -1
  27. package/components/input/demo/api.min.js +25 -7
  28. package/components/input/demo/index.min.js +25 -7
  29. package/components/input/dist/base-input.d.ts +5 -1
  30. package/components/input/dist/index.js +25 -7
  31. package/components/input/dist/registered.js +25 -7
  32. package/components/radio/demo/api.min.js +16 -5
  33. package/components/radio/demo/index.min.js +16 -5
  34. package/components/radio/dist/index.js +16 -5
  35. package/components/radio/dist/registered.js +16 -5
  36. package/components/select/demo/api.min.js +32 -38
  37. package/components/select/demo/index.min.js +32 -38
  38. package/components/select/dist/index.js +32 -38
  39. package/components/select/dist/registered.js +32 -38
  40. package/package.json +2 -2
@@ -989,13 +989,24 @@ let AuroFormValidation$1 = class AuroFormValidation {
989
989
  this.getInputElements(elem);
990
990
  this.getAuroInputs(elem);
991
991
 
992
- // Validate only if noValidate is not true and the input does not have focus
992
+ // Check if validation should run
993
993
  let validationShouldRun =
994
+
995
+ // If the validation was forced
994
996
  force ||
995
- (!elem.contains(document.activeElement) &&
996
- (elem.touched ||
997
- (!elem.touched && typeof elem.value !== "undefined"))) ||
998
- elem.validateOnInput;
997
+
998
+ // If the validation should run on input
999
+ elem.validateOnInput ||
1000
+
1001
+ // State-based checks
1002
+ (
1003
+ // Element is not currently focused
1004
+ !elem.contains(document.activeElement) && // native input is not focused directly
1005
+ !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
1006
+
1007
+ // And element has been touched or is untouched but has a value
1008
+ ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
1009
+ );
999
1010
 
1000
1011
  if (elem.hasAttribute('error')) {
1001
1012
  elem.validity = 'customError';
@@ -1555,9 +1566,9 @@ var shapeSizeCss$2 = i$2`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
1555
1566
 
1556
1567
  var classicLayoutColor = i$2``;
1557
1568
 
1558
- var snowflakeStyle = i$2`.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}`;
1569
+ var snowflakeStyle = i$2`.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}`;
1559
1570
 
1560
- var snowflakeColors = i$2`: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}`;
1571
+ var snowflakeColors = i$2`: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}`;
1561
1572
 
1562
1573
  var styleCss$d = i$2`: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:""}`;
1563
1574
 
@@ -16105,7 +16116,7 @@ class AuroFloatingUI {
16105
16116
  */
16106
16117
  mirrorSize() {
16107
16118
  // mirror the boxsize from bibSizer
16108
- if (this.element.bibSizer && this.element.matchWidth) {
16119
+ if (this.element.bibSizer) {
16109
16120
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
16110
16121
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
16111
16122
  if (sizerStyle.width !== '0px') {
@@ -16317,13 +16328,13 @@ class AuroFloatingUI {
16317
16328
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
16318
16329
  return;
16319
16330
  }
16320
-
16331
+
16321
16332
  // if fullscreen bib is in fullscreen mode, do not close
16322
16333
  if (this.element.bib.hasAttribute('isfullscreen')) {
16323
16334
  return;
16324
16335
  }
16325
16336
 
16326
- this.hideBib("keydown");
16337
+ this.hideBib();
16327
16338
  }
16328
16339
 
16329
16340
  setupHideHandlers() {
@@ -16348,7 +16359,7 @@ class AuroFloatingUI {
16348
16359
  document.expandedAuroFormkitDropdown = null;
16349
16360
  document.expandedAuroFloater = this;
16350
16361
  } else {
16351
- this.hideBib("click");
16362
+ this.hideBib();
16352
16363
  }
16353
16364
  }
16354
16365
  };
@@ -16361,7 +16372,7 @@ class AuroFloatingUI {
16361
16372
  // if something else is open, let it handle itself
16362
16373
  return;
16363
16374
  }
16364
- this.hideBib("keydown");
16375
+ this.hideBib();
16365
16376
  }
16366
16377
  };
16367
16378
 
@@ -16444,11 +16455,7 @@ class AuroFloatingUI {
16444
16455
  }
16445
16456
  }
16446
16457
 
16447
- /**
16448
- * Hides the floating UI element.
16449
- * @param {String} eventType - The event type that triggered the hiding action.
16450
- */
16451
- hideBib(eventType = "unknown") {
16458
+ hideBib() {
16452
16459
  if (!this.element.disabled && !this.element.noToggle) {
16453
16460
  this.lockScroll(false);
16454
16461
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -16459,7 +16466,7 @@ class AuroFloatingUI {
16459
16466
  if (this.showing) {
16460
16467
  this.cleanupHideHandlers();
16461
16468
  this.showing = false;
16462
- this.dispatchEventDropdownToggle(eventType);
16469
+ this.dispatchEventDropdownToggle();
16463
16470
  }
16464
16471
  }
16465
16472
  document.expandedAuroFloater = null;
@@ -16468,13 +16475,11 @@ class AuroFloatingUI {
16468
16475
  /**
16469
16476
  * @private
16470
16477
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
16471
- * @param {String} eventType - The event type that triggered the toggle action.
16472
16478
  */
16473
- dispatchEventDropdownToggle(eventType) {
16479
+ dispatchEventDropdownToggle() {
16474
16480
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
16475
16481
  detail: {
16476
16482
  expanded: this.showing,
16477
- eventType: eventType || "unknown",
16478
16483
  },
16479
16484
  composed: true
16480
16485
  });
@@ -16484,7 +16489,7 @@ class AuroFloatingUI {
16484
16489
 
16485
16490
  handleClick() {
16486
16491
  if (this.element.isPopoverVisible) {
16487
- this.hideBib("click");
16492
+ this.hideBib();
16488
16493
  } else {
16489
16494
  this.showBib();
16490
16495
  }
@@ -16511,7 +16516,7 @@ class AuroFloatingUI {
16511
16516
 
16512
16517
  event.preventDefault();
16513
16518
  this.handleClick();
16514
- }
16519
+ }
16515
16520
  break;
16516
16521
  case 'mouseenter':
16517
16522
  if (this.element.hoverToggle) {
@@ -16520,7 +16525,7 @@ class AuroFloatingUI {
16520
16525
  break;
16521
16526
  case 'mouseleave':
16522
16527
  if (this.element.hoverToggle) {
16523
- this.hideBib("mouseleave");
16528
+ this.hideBib();
16524
16529
  }
16525
16530
  break;
16526
16531
  case 'focus':
@@ -17908,9 +17913,6 @@ class AuroDropdown extends AuroElement$4 {
17908
17913
 
17909
17914
  this.parentBorder = false;
17910
17915
 
17911
- /** @private */
17912
- this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
17913
-
17914
17916
  this.privateDefaults();
17915
17917
  }
17916
17918
 
@@ -18344,19 +18346,12 @@ class AuroDropdown extends AuroElement$4 {
18344
18346
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
18345
18347
  this.handleTriggerContentSlotChange();
18346
18348
  }
18347
- }
18348
18349
 
18349
- /**
18350
- * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
18351
- * @private
18352
- * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
18353
- */
18354
- handleDropdownToggle(event) {
18355
- this.updateFocusTrap();
18356
- this.isPopoverVisible = event.detail.expanded;
18357
- const eventType = event.detail.eventType || "unknown";
18358
- if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
18359
- this.trigger.focus();
18350
+ if (changedProperties.has('isPopoverVisible')) {
18351
+ this.updateFocusTrap();
18352
+ if (!this.isPopoverVisible && this.hasFocus) {
18353
+ this.trigger.focus();
18354
+ }
18360
18355
  }
18361
18356
  }
18362
18357
 
@@ -18364,7 +18359,6 @@ class AuroDropdown extends AuroElement$4 {
18364
18359
 
18365
18360
  // Configure the floater to, this will generate the ID for the bib
18366
18361
  this.floater.configure(this, 'auroDropdown');
18367
- this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
18368
18362
 
18369
18363
  /**
18370
18364
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -23524,13 +23518,24 @@ class AuroFormValidation {
23524
23518
  this.getInputElements(elem);
23525
23519
  this.getAuroInputs(elem);
23526
23520
 
23527
- // Validate only if noValidate is not true and the input does not have focus
23521
+ // Check if validation should run
23528
23522
  let validationShouldRun =
23523
+
23524
+ // If the validation was forced
23529
23525
  force ||
23530
- (!elem.contains(document.activeElement) &&
23531
- (elem.touched ||
23532
- (!elem.touched && typeof elem.value !== "undefined"))) ||
23533
- elem.validateOnInput;
23526
+
23527
+ // If the validation should run on input
23528
+ elem.validateOnInput ||
23529
+
23530
+ // State-based checks
23531
+ (
23532
+ // Element is not currently focused
23533
+ !elem.contains(document.activeElement) && // native input is not focused directly
23534
+ !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
23535
+
23536
+ // And element has been touched or is untouched but has a value
23537
+ ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
23538
+ );
23534
23539
 
23535
23540
  if (elem.hasAttribute('error')) {
23536
23541
  elem.validity = 'customError';
@@ -24481,9 +24486,9 @@ class BaseInput extends AuroElement$2 {
24481
24486
  this.inputElement.value = "";
24482
24487
  this.value = "";
24483
24488
  this.labelElement.classList.remove('inputElement-label--sticky');
24489
+ this.notifyValueChanged();
24484
24490
  this.focus();
24485
24491
  this.validation.validate(this);
24486
- this.notifyValueChanged();
24487
24492
  }
24488
24493
 
24489
24494
  /**
@@ -24578,13 +24583,20 @@ class BaseInput extends AuroElement$2 {
24578
24583
  }
24579
24584
 
24580
24585
  /**
24581
- * Resets component to initial state.
24586
+ * Resets component to initial state, including resetting the touched state and validity.
24582
24587
  * @returns {void}
24583
24588
  */
24584
24589
  reset() {
24585
24590
  this.validation.reset(this);
24586
24591
  }
24587
24592
 
24593
+ /**
24594
+ * Clears the input value
24595
+ */
24596
+ clear() {
24597
+ this.value = undefined;
24598
+ }
24599
+
24588
24600
  /**
24589
24601
  * Sets configuration data used elsewhere based on the `type` attribute.
24590
24602
  * @private
@@ -27990,15 +28002,6 @@ class AuroDatePicker extends AuroElement$1 {
27990
28002
  this.layout = 'classic';
27991
28003
  this.shape = 'classic';
27992
28004
  this.size = 'lg';
27993
-
27994
- /**
27995
- * @private
27996
- * @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
27997
- */
27998
- this.constructor.shadowRootOptions = {
27999
- ...i.shadowRootOptions,
28000
- delegatesFocus: true,
28001
- };
28002
28005
  }
28003
28006
 
28004
28007
  // This function is to define props used within the scope of this component
@@ -28708,7 +28711,7 @@ class AuroDatePicker extends AuroElement$1 {
28708
28711
  */
28709
28712
  resetValues() {
28710
28713
  this.inputList.forEach((input) => {
28711
- input.reset();
28714
+ input.clear();
28712
28715
  });
28713
28716
  }
28714
28717
 
@@ -28718,10 +28721,17 @@ class AuroDatePicker extends AuroElement$1 {
28718
28721
  */
28719
28722
  reset() {
28720
28723
  this.resetValues();
28721
-
28722
28724
  this.validation.reset(this);
28723
28725
  }
28724
28726
 
28727
+ /**
28728
+ * Clears the current value(s) of the datepicker.
28729
+ * @returns {void}
28730
+ */
28731
+ clear() {
28732
+ this.resetValues();
28733
+ }
28734
+
28725
28735
  /**
28726
28736
  * Validates value.
28727
28737
  * @param {boolean} [force=false] - Whether to force validation.
@@ -28736,7 +28746,6 @@ class AuroDatePicker extends AuroElement$1 {
28736
28746
  }
28737
28747
 
28738
28748
  this.hasFocus = true;
28739
- this.dropdown.show();
28740
28749
 
28741
28750
  // shadowroot active element is null if we focus the datepicker itself
28742
28751
  if (this.shadowRoot.activeElement === null) {
@@ -29060,9 +29069,6 @@ class AuroDatePicker extends AuroElement$1 {
29060
29069
  `;
29061
29070
  }
29062
29071
 
29063
- /**
29064
- * @private
29065
- */
29066
29072
  renderLayoutFromAttributes() {
29067
29073
  switch (this.layout) {
29068
29074
  case 'snowflake':
@@ -29075,44 +29081,6 @@ class AuroDatePicker extends AuroElement$1 {
29075
29081
  }
29076
29082
  }
29077
29083
 
29078
- // eslint-disable-next-line no-warning-comments
29079
- // TODO: move this to date utility when time allows :(
29080
- /**
29081
- * Simple formatter that ONLY WORKS FOR US DATES.
29082
- * Returns formatted date like Apr 21 or Dec 25.
29083
- * @private
29084
- * @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
29085
- * @return {string}
29086
- */
29087
- formatShortDate(date) {
29088
- // should render like Apr 21
29089
- const options = {
29090
- month: 'short',
29091
- day: '2-digit'
29092
- };
29093
-
29094
- return new Date(date).toLocaleDateString('en-US', options).replace(',', '');
29095
- }
29096
-
29097
- /**
29098
- * Format and render the provided date value.
29099
- * @private
29100
- * @param dateValue
29101
- * @return {TemplateResult}
29102
- */
29103
- renderDisplayTextDate(dateValue) {
29104
- return u$3`
29105
- <div>
29106
- <div class="displayValueText">
29107
- ${dateValue && this.util.validDateStr(dateValue, this.format)
29108
- ? this.formatShortDate(dateValue)
29109
- : undefined
29110
- }
29111
- </div>
29112
- </div>
29113
- `;
29114
- }
29115
-
29116
29084
  renderHtmlInputs() {
29117
29085
  const inputClasses = {
29118
29086
  "util_displayHiddenVisually": !this.hasValue && !this.hasFocus
@@ -29128,7 +29096,7 @@ class AuroDatePicker extends AuroElement$1 {
29128
29096
  .max="${this.maxDate}"
29129
29097
  .min="${this.minDate}"
29130
29098
  id="${this.generateRandomString(12)}"
29131
- .placeholder="${this.placeholder}"
29099
+ placeholder="MM/DD"
29132
29100
  simple
29133
29101
  bordered
29134
29102
  noValidate
@@ -29144,9 +29112,6 @@ class AuroDatePicker extends AuroElement$1 {
29144
29112
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
29145
29113
  inputmode="${o(this.inputmode)}"
29146
29114
  >
29147
- <span slot="displayValue">
29148
- ${this.renderDisplayTextDate(this.value)}
29149
- </span>
29150
29115
  <span slot="label"><slot name="fromLabel"></slot></span>
29151
29116
  </${this.inputTag}>
29152
29117
  </div>
@@ -29177,9 +29142,6 @@ class AuroDatePicker extends AuroElement$1 {
29177
29142
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
29178
29143
  ?disabled="${this.disabled}"
29179
29144
  part="input">
29180
- <span slot="displayValue">
29181
- ${this.renderDisplayTextDate(this.valueEnd)}
29182
- </span>
29183
29145
  <span slot="label"><slot name="toLabel"></slot></span>
29184
29146
  </${this.inputTag}>
29185
29147
  </div>