@aurodesignsystem-dev/auro-formkit 0.0.0-pr802.0 → 0.0.0-pr805.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 (44) hide show
  1. package/components/bibtemplate/dist/index.js +1 -1
  2. package/components/bibtemplate/dist/registered.js +1 -1
  3. package/components/checkbox/demo/api.md +2 -1
  4. package/components/checkbox/demo/api.min.js +7 -0
  5. package/components/checkbox/demo/index.min.js +7 -0
  6. package/components/checkbox/dist/index.js +7 -0
  7. package/components/checkbox/dist/registered.js +7 -0
  8. package/components/combobox/demo/api.md +2 -0
  9. package/components/combobox/demo/api.min.js +11 -63
  10. package/components/combobox/demo/index.min.js +11 -63
  11. package/components/combobox/dist/auro-combobox.d.ts +2 -4
  12. package/components/combobox/dist/index.js +11 -63
  13. package/components/combobox/dist/registered.js +11 -63
  14. package/components/counter/demo/api.md +2 -0
  15. package/components/counter/demo/api.min.js +31 -61
  16. package/components/counter/demo/index.min.js +31 -61
  17. package/components/counter/dist/auro-counter-group.d.ts +10 -0
  18. package/components/counter/dist/index.js +31 -61
  19. package/components/counter/dist/registered.js +31 -61
  20. package/components/datepicker/README.md +1 -1
  21. package/components/datepicker/demo/api.md +41 -19
  22. package/components/datepicker/demo/api.min.js +242 -159
  23. package/components/datepicker/demo/index.md +4 -4
  24. package/components/datepicker/demo/index.min.js +242 -159
  25. package/components/datepicker/demo/readme.md +1 -1
  26. package/components/datepicker/dist/auro-datepicker.d.ts +73 -12
  27. package/components/datepicker/dist/index.js +242 -159
  28. package/components/datepicker/dist/registered.js +242 -159
  29. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  30. package/components/dropdown/demo/api.md +1 -1
  31. package/components/dropdown/demo/api.min.js +10 -60
  32. package/components/dropdown/demo/index.min.js +10 -60
  33. package/components/dropdown/dist/auro-dropdown.d.ts +0 -7
  34. package/components/dropdown/dist/index.js +10 -60
  35. package/components/dropdown/dist/registered.js +10 -60
  36. package/components/select/demo/api.md +46 -64
  37. package/components/select/demo/api.min.js +32 -72
  38. package/components/select/demo/index.md +1057 -137
  39. package/components/select/demo/index.min.js +32 -72
  40. package/components/select/dist/auro-select.d.ts +10 -5
  41. package/components/select/dist/index.js +32 -72
  42. package/components/select/dist/registered.js +32 -72
  43. package/package.json +1 -1
  44. /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
@@ -1556,19 +1556,21 @@ class UtilitiesCalendarRender {
1556
1556
  }
1557
1557
  }
1558
1558
 
1559
- var styleCss$e = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout=classic]) [auro-input]::part(helpText){display:none}:host([layout=classic]) [auro-input]::part(wrapper):focus-within:before{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem);--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:not(:first-child)::part(wrapper)::after{position:absolute;left:50%;width:95%;height:1px;background-color:var(--ds-auro-datepicker-range-input-divider-color);content:"";transform:translateX(-50%)}:host([layout=classic]) [auro-input]::part(wrapper) .outerWrapper{position:relative;container:outerwrapper/inline-size}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(input){padding-left:0}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2):before{position:absolute;top:13px;left:calc(var(--ds-size-150, 0.75rem)*-1);display:block;width:1px;height:2rem;content:""}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked])[range] [auro-input]{max-width:50%}@media screen and (max-width: 576px){::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
1559
+ var styleCss$e = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.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)}.accents .notification:not(.util_displayHidden){display:flex;align-items:center;justify-content:center}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;margin:0 auto}.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}.dpTriggerContent{width:100%}@media screen and (max-width: 576px){::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
1560
1560
 
1561
- var colorCss$d = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host([onDark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
1561
+ var colorCss$d = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host label{color:var(--ds-auro-datepicker-label-text-color)}:host .inputDivider{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host .error{color:var(--ds-auro-datepicker-error-icon-color)}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host(:not([ondark])[disabled]){--ds-auro-datepicker-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-datepicker-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-datepicker-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-datepicker-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
1562
1562
 
1563
- var tokensCss$b = i$2`:host{--ds-auro-datepicker-placeholder-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-calendar-nav-btn-border-color: transparent;--ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-calendar-nav-btn-container-color: transparent;--ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-border-color: transparent;--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #f7f7f7);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
1563
+ var tokensCss$b = i$2`:host(:not([ondark])){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-datepicker-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-calendar-nav-btn-border-color: transparent;--ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-calendar-nav-btn-container-color: transparent;--ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-border-color: transparent;--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #f7f7f7);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-texticon-inverse-muted, v.$ds-basic-color-texticon-inverse-muted);--ds-auro-datepicker-error-icon-color: var(--ds-basic-color-status-error-subtle, v.$ds-basic-color-status-error-subtle);--ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-inverse-muted, v.$ds-basic-color-texticon-inverse-muted);--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-calendar-nav-btn-border-color: transparent;--ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-calendar-nav-btn-container-color: transparent;--ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-border-color: transparent;--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #f7f7f7);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
1564
1564
 
1565
1565
  var shapeSizeCss$2 = i$2`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
1566
1566
 
1567
+ var classicLayoutStyle = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout*=classic]) .accents{display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) [auro-input]::part(wrapper){border-width:0;box-shadow:none}:host([layout*=classic]) [auro-input].dateTo{margin-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) [auro-input].dateTo::part(accent-left){display:none}:host([layout*=classic]) .inputDivider{width:1px;height:2rem}`;
1568
+
1567
1569
  var classicLayoutColor = i$2``;
1568
1570
 
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;overflow:hidden}.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;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}: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}`;
1571
+ var snowflakeStyle = i$2`: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;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}: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}:host([layout*=snowflake]) .inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}:host([layout*=snowflake][disabled]){pointer-events:none}`;
1570
1572
 
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-input]::part(displayValue){background-color:inherit}:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus))::part(wrapper){--ds-auro-dropdown-trigger-border-color: transparent}`;
1573
+ var snowflakeColors = i$2`:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus)){--ds-auro-dropdown-trigger-border-color: transparent}`;
1572
1574
 
1573
1575
  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:""}`;
1574
1576
 
@@ -13008,7 +13010,7 @@ class AuroBibtemplate extends i {
13008
13010
  /**
13009
13011
  * @private
13010
13012
  */
13011
- this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion$2, AuroButton$2);
13013
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion$2, AuroButton$2);
13012
13014
  }
13013
13015
 
13014
13016
  static get styles() {
@@ -18037,6 +18039,7 @@ let AuroElement$4 = class AuroElement extends i {
18037
18039
  // See LICENSE in the project root for license information.
18038
18040
 
18039
18041
 
18042
+
18040
18043
  /*
18041
18044
  * @slot - Default slot for the popover content.
18042
18045
  * @slot helpText - Defines the content of the helpText.
@@ -18540,6 +18543,13 @@ class AuroDropdown extends AuroElement$4 {
18540
18543
 
18541
18544
  // Add the tag name as an attribute if it is different than the component name
18542
18545
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
18546
+
18547
+ this.trigger.addEventListener('click', () => {
18548
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
18549
+ bubbles: true,
18550
+ composed: true
18551
+ }));
18552
+ });
18543
18553
  }
18544
18554
 
18545
18555
  /**
@@ -18612,64 +18622,6 @@ class AuroDropdown extends AuroElement$4 {
18612
18622
  this.hasFocus = false;
18613
18623
  }
18614
18624
 
18615
- /**
18616
- * Determines if the element or any children are focusable.
18617
- * @private
18618
- * @param {HTMLElement} element - Element to check.
18619
- * @returns {Boolean} - True if the element or any children are focusable.
18620
- */
18621
- containsFocusableElement(element) {
18622
- this.showTriggerBorders = true;
18623
-
18624
- const nodes = [
18625
- element,
18626
- ...element.children
18627
- ];
18628
-
18629
- const focusableElements = [
18630
- 'a',
18631
- 'auro-hyperlink',
18632
- 'button',
18633
- 'auro-button',
18634
- 'input',
18635
- 'auro-input',
18636
- ];
18637
-
18638
- const focusableElementsThatNeedBorders = ['auro-input'];
18639
-
18640
- const result = nodes.some((node) => {
18641
- const tagName = node.tagName.toLowerCase();
18642
-
18643
- if (node.tabIndex > -1) {
18644
- return true;
18645
- }
18646
-
18647
- if (focusableElements.includes(tagName)) {
18648
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
18649
- return true;
18650
- }
18651
- if (!node.hasAttribute('disabled')) {
18652
- return true;
18653
- }
18654
- }
18655
-
18656
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
18657
- return true;
18658
- }
18659
-
18660
- return false;
18661
- });
18662
-
18663
- if (result) {
18664
- this.showTriggerBorders = !nodes.some((node) => {
18665
- const tagName = node.tagName.toLowerCase();
18666
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
18667
- });
18668
- }
18669
-
18670
- return result;
18671
- }
18672
-
18673
18625
  /**
18674
18626
  * Creates and dispatches a duplicate focus event on the trigger element.
18675
18627
  * @private
@@ -18781,7 +18733,7 @@ class AuroDropdown extends AuroElement$4 {
18781
18733
  if (triggerContentNodes) {
18782
18734
 
18783
18735
  // See if any of them are focusable elements
18784
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
18736
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
18785
18737
 
18786
18738
  // If any of them are focusable elements
18787
18739
  if (this.triggerContentFocusable) {
@@ -18853,7 +18805,7 @@ class AuroDropdown extends AuroElement$4 {
18853
18805
  <div
18854
18806
  id="trigger"
18855
18807
  class="${e$2(this.commonWrapperClasses)}" part="wrapper"
18856
- tabindex="${this.tabIndex}"
18808
+ tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
18857
18809
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
18858
18810
  aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
18859
18811
  aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
@@ -28201,6 +28153,9 @@ class AuroDatePicker extends AuroElement$1 {
28201
28153
  */
28202
28154
  this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
28203
28155
 
28156
+ /** @private */
28157
+ this.handleClick = this.handleClick.bind(this);
28158
+
28204
28159
  // Layout Config
28205
28160
  this.layout = 'classic';
28206
28161
  this.shape = 'classic';
@@ -28531,6 +28486,7 @@ class AuroDatePicker extends AuroElement$1 {
28531
28486
  shapeSizeCss$2,
28532
28487
 
28533
28488
  // layouts
28489
+ classicLayoutStyle,
28534
28490
  classicLayoutColor,
28535
28491
  snowflakeStyle,
28536
28492
  snowflakeColors
@@ -28598,15 +28554,11 @@ class AuroDatePicker extends AuroElement$1 {
28598
28554
  * @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
28599
28555
  * @returns {void}
28600
28556
  */
28601
- focus(focusInput) {
28602
- if (this.disabled) {
28603
- return;
28604
- }
28605
-
28557
+ focus(focusInput = '') {
28558
+ this.hasFocus = true;
28606
28559
  this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
28607
28560
  }
28608
28561
 
28609
-
28610
28562
  /**
28611
28563
  * Converts valid time number to format used by wc-date-range API.
28612
28564
  * @private
@@ -28805,16 +28757,21 @@ class AuroDatePicker extends AuroElement$1 {
28805
28757
  configureDatepicker() {
28806
28758
  this.addEventListener('focusin', () => {
28807
28759
  this.touched = true;
28760
+ this.hasFocus = true;
28808
28761
  });
28809
28762
 
28810
- this.addEventListener('focusout', (evt) => {
28811
- if (!this.noValidate && !evt.detail.expanded && this.touched) {
28812
- if (!this.contains(document.activeElement)) {
28813
- this.validation.validate(this.inputList[0]);
28763
+ this.addEventListener('focusout', () => {
28764
+ this.hasFocus = false;
28814
28765
 
28815
- if (this.inputList[1] && this.inputList[1].touched) {
28816
- this.validation.validate(this.inputList[1]);
28817
- }
28766
+ if (this.noValidate) {
28767
+ return;
28768
+ }
28769
+
28770
+ if (!this.contains(document.activeElement)) {
28771
+ this.validation.validate(this.inputList[0]);
28772
+
28773
+ if (this.inputList[1]) {
28774
+ this.validation.validate(this.inputList[1]);
28818
28775
  }
28819
28776
  }
28820
28777
  });
@@ -28828,6 +28785,26 @@ class AuroDatePicker extends AuroElement$1 {
28828
28785
  }
28829
28786
  }
28830
28787
 
28788
+ /**
28789
+ * Hides the dropdown bib if its open.
28790
+ * @returns {void}
28791
+ */
28792
+ hideBib() {
28793
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
28794
+ this.dropdown.hide();
28795
+ }
28796
+ }
28797
+
28798
+ /**
28799
+ * Shows the dropdown bib if there are options to show.
28800
+ * @returns {void}
28801
+ */
28802
+ showBib() {
28803
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
28804
+ this.dropdown.show();
28805
+ }
28806
+ }
28807
+
28831
28808
  /**
28832
28809
  * Sets the readonly attribute on the inputs based on the window width.
28833
28810
  * @private
@@ -28873,9 +28850,6 @@ class AuroDatePicker extends AuroElement$1 {
28873
28850
  const convertedDate = this.convertWcTimeToDate(time);
28874
28851
  const newDate = this.util.toCustomFormat(convertedDate, this.format);
28875
28852
 
28876
- console.log(newDate);
28877
- console.log(this.util.validDateStr(newDate, this.format));
28878
-
28879
28853
  if (this.util.validDateStr(newDate, this.format)) {
28880
28854
  if (this.inputList.length > 1) {
28881
28855
  if (!this.value || !this.util.validDateStr(this.value, this.format)) {
@@ -28914,7 +28888,7 @@ class AuroDatePicker extends AuroElement$1 {
28914
28888
  handleKeydownReset(event) {
28915
28889
  if (event.key === 'Enter' || event.key === ' ') {
28916
28890
  this.resetValues();
28917
- this.setHasFocus();
28891
+ this.focus();
28918
28892
  }
28919
28893
  }
28920
28894
 
@@ -28952,22 +28926,10 @@ class AuroDatePicker extends AuroElement$1 {
28952
28926
  this.validation.validate(this, force);
28953
28927
  }
28954
28928
 
28955
- setHasFocus() {
28956
- if (this.disabled) {
28957
- return;
28958
- }
28959
-
28960
- this.hasFocus = true;
28961
- this.dropdown.show();
28962
-
28963
- // shadowroot active element is null if we focus the datepicker itself
28964
- if (this.shadowRoot.activeElement === null) {
28965
- // If the shadowRoot.activeElement is null, we can assume that the datepicker itself has focus
28966
- // and we should focus the first input in the inputList
28967
- this.inputList[0].focus();
28968
- }
28969
- }
28970
-
28929
+ /**
28930
+ * Private method for interacting with the `hasValue` property.
28931
+ * @private
28932
+ */
28971
28933
  setHasValue() {
28972
28934
  if (!this.range) {
28973
28935
  this.hasValue = this.value && this.value.length > 0;
@@ -28987,6 +28949,17 @@ class AuroDatePicker extends AuroElement$1 {
28987
28949
  this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
28988
28950
  }
28989
28951
 
28952
+ if (changedProperties.has('disabled')) {
28953
+ if (this.disabled) {
28954
+ this.previousTabIndex = this.getAttribute('tabindex');
28955
+ this.setAttribute('tabindex', '-1');
28956
+ } else if (!this.disabled && this.previousTabIndex > -1) {
28957
+ this.tabIndex = this.previousTabIndex;
28958
+ } else {
28959
+ this.removeAttribute('tabindex');
28960
+ }
28961
+ }
28962
+
28990
28963
  if (changedProperties.has('calendarFocusDate')) {
28991
28964
  this.formattedFocusDate = this.util.toNorthAmericanFormat(this.calendarFocusDate, this.format);
28992
28965
 
@@ -29050,8 +29023,8 @@ class AuroDatePicker extends AuroElement$1 {
29050
29023
  this.calendarRenderUtil.updateCentralDate(this, this.formattedValue);
29051
29024
  }
29052
29025
 
29053
- this.validate();
29054
29026
  this.setHasValue();
29027
+ this.validate();
29055
29028
  }
29056
29029
 
29057
29030
  if (changedProperties.has('valueEnd') && this.inputList[1]) {
@@ -29152,6 +29125,8 @@ class AuroDatePicker extends AuroElement$1 {
29152
29125
  this.calendarFocusDate = this.minDate;
29153
29126
  }
29154
29127
  }
29128
+
29129
+ this.calendar.requestUpdate();
29155
29130
  }
29156
29131
 
29157
29132
  // This resets the datepicker when the maxDate is set to a new value that is
@@ -29183,6 +29158,8 @@ class AuroDatePicker extends AuroElement$1 {
29183
29158
  }
29184
29159
  }
29185
29160
  }
29161
+
29162
+ this.calendar.requestUpdate();
29186
29163
  }
29187
29164
 
29188
29165
  if (changedProperties.has('centralDate')) {
@@ -29203,6 +29180,39 @@ class AuroDatePicker extends AuroElement$1 {
29203
29180
  this.calendar.injectSlot(event.target.name, slot.cloneNode(true));
29204
29181
  }
29205
29182
 
29183
+ /**
29184
+ * Handles click events on the datepicker.
29185
+ * @param {PointerEvent} event - The pointer event object.
29186
+ * @private
29187
+ * @returns {void}
29188
+ */
29189
+ handleClick(event) {
29190
+
29191
+ // Get the initial target of the click event
29192
+ const [initTarget] = event.composedPath();
29193
+
29194
+ // Determine if the current layout requires special handling
29195
+ const layoutRequiresHandling = ['snowflake'].includes(this.layout);
29196
+
29197
+ // Determine if the target is an input element
29198
+ const targetIsInput = initTarget.tagName === 'INPUT';
29199
+
29200
+ if (layoutRequiresHandling && !targetIsInput) {
29201
+
29202
+ // Focus the first input
29203
+ this.inputList[0].focus();
29204
+ }
29205
+ }
29206
+
29207
+ /**
29208
+ * Set up click handling for the datepicker.
29209
+ * @private
29210
+ * @returns {void}
29211
+ */
29212
+ configureClickHandler() {
29213
+ this.addEventListener('click', this.handleClick);
29214
+ }
29215
+
29206
29216
  firstUpdated() {
29207
29217
  // Add the tag name as an attribute if it is different than the component name
29208
29218
  this.runtimeUtils.handleComponentTagRename(this, 'auro-datepicker');
@@ -29211,6 +29221,7 @@ class AuroDatePicker extends AuroElement$1 {
29211
29221
  this.configureInput();
29212
29222
  this.configureCalendar();
29213
29223
  this.configureDatepicker();
29224
+ this.configureClickHandler();
29214
29225
 
29215
29226
  window.addEventListener('resize', () => {
29216
29227
  this.handleReadOnly();
@@ -29221,15 +29232,6 @@ class AuroDatePicker extends AuroElement$1 {
29221
29232
  super.connectedCallback();
29222
29233
 
29223
29234
  this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
29224
-
29225
- // setup focus/blur event listeners
29226
- this.addEventListener('focus', () => {
29227
- this.setHasFocus();
29228
- }, true);
29229
-
29230
- this.addEventListener('blur', () => {
29231
- this.hasFocus = false;
29232
- }, true);
29233
29235
  }
29234
29236
 
29235
29237
  // layout render methods
@@ -29274,26 +29276,72 @@ class AuroDatePicker extends AuroElement$1 {
29274
29276
  </div>
29275
29277
  <div class="accents right ${e$2(accentsClassMap)}">
29276
29278
  ${this.hasError
29277
- ? this.renderHtmlIconError()
29278
- : this.renderHtmlActionClear()
29279
- }
29279
+ ? this.renderHtmlIconError()
29280
+ : this.renderHtmlActionClear()
29281
+ }
29282
+ </div>
29283
+ </div>
29284
+ `;
29285
+ }
29286
+
29287
+ /**
29288
+ * Renders the snowflake layout for the datepicker.
29289
+ * @private
29290
+ * @returns {import("lit").TemplateResult}
29291
+ */
29292
+ renderClassicLayout() {
29293
+ const accentsClassMap = {
29294
+ error: this.hasError
29295
+ };
29296
+
29297
+ const inputSectionClassMap = {
29298
+ inputSection: true,
29299
+
29300
+ hasValue: this.hasValue,
29301
+ hasFocus: this.hasFocus,
29302
+ };
29303
+
29304
+ const labelClassMap = {
29305
+ hasValue: this.hasValue,
29306
+ hasFocus: this.hasFocus,
29307
+ };
29308
+
29309
+ return u$3`
29310
+ <div
29311
+ class="wrapper trigger"
29312
+ part="wrapper">
29313
+ <div class="accents left">
29314
+ ${this.renderHtmlIconCalendar()}
29315
+ </div>
29316
+ <div class="mainContent">
29317
+ <label class="${e$2(labelClassMap)}" part="mainLabel">
29318
+ <slot name="label"></slot>
29319
+ </label>
29320
+ <div class="${e$2(inputSectionClassMap)}" part="inputSection">
29321
+ ${this.renderHtmlInputs()}
29322
+ </div>
29323
+ </div>
29324
+ <div class="accents right ${e$2(accentsClassMap)}">
29325
+ ${this.hasError
29326
+ ? this.renderHtmlIconError()
29327
+ : this.renderHtmlActionClear()
29328
+ }
29280
29329
  </div>
29281
29330
  </div>
29282
29331
  `;
29283
29332
  }
29284
29333
 
29285
29334
  /**
29335
+ * Renders the layout based on the `layout` attribute.
29286
29336
  * @private
29337
+ * @returns {import('lit').TemplateResult}
29287
29338
  */
29288
29339
  renderLayoutFromAttributes() {
29289
29340
  switch (this.layout) {
29290
29341
  case 'snowflake':
29291
29342
  return this.renderSnowflakeLayout();
29292
29343
  default:
29293
- // TODO: remove when all base layouts are implemented and instead return classic
29294
- return u$3`
29295
- <p>Please implement layout "${this.layout}" for datepicker</p>
29296
- `;
29344
+ return this.renderClassicLayout();
29297
29345
  }
29298
29346
  }
29299
29347
 
@@ -29304,7 +29352,7 @@ class AuroDatePicker extends AuroElement$1 {
29304
29352
  * Returns formatted date like Apr 21 or Dec 25.
29305
29353
  * @private
29306
29354
  * @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
29307
- * @return {string}
29355
+ * @returns {string}
29308
29356
  */
29309
29357
  formatShortDate(date) {
29310
29358
  // should render like Apr 21
@@ -29319,25 +29367,31 @@ class AuroDatePicker extends AuroElement$1 {
29319
29367
  /**
29320
29368
  * Format and render the provided date value.
29321
29369
  * @private
29322
- * @param dateValue
29323
- * @return {TemplateResult}
29370
+ * @param {string} dateValue - The date value to format and render.
29371
+ * @returns {import('lit').TemplateResult}
29324
29372
  */
29325
29373
  renderDisplayTextDate(dateValue) {
29326
29374
  return u$3`
29327
29375
  <div>
29328
29376
  <div class="displayValueText">
29329
29377
  ${dateValue && this.util.validDateStr(dateValue, this.format)
29330
- ? this.formatShortDate(dateValue)
29331
- : undefined
29332
- }
29378
+ ? this.formatShortDate(dateValue)
29379
+ : undefined
29380
+ }
29333
29381
  </div>
29334
29382
  </div>
29335
29383
  `;
29336
29384
  }
29337
29385
 
29386
+ /**
29387
+ * Renders the HTML inputs for the datepicker.
29388
+ * @private
29389
+ * @returns {import('lit').TemplateResult}
29390
+ */
29338
29391
  renderHtmlInputs() {
29339
29392
  const inputClasses = {
29340
- "util_displayHiddenVisually": !this.hasValue && !this.hasFocus
29393
+ "util_displayHiddenVisually": !this.hasValue && !this.hasFocus && this.layout !== "classic",
29394
+ "parentBorder": this.layout === "classic"
29341
29395
  };
29342
29396
 
29343
29397
  return u$3`
@@ -29351,14 +29405,12 @@ class AuroDatePicker extends AuroElement$1 {
29351
29405
  .min="${this.minDate}"
29352
29406
  id="${this.generateRandomString(12)}"
29353
29407
  .placeholder="${this.placeholder}"
29354
- simple
29355
- bordered
29408
+ .size="${this.size}"
29409
+ .shape="${this.shape}"
29356
29410
  noValidate
29357
29411
  class="dateFrom ${e$2(inputClasses)}"
29358
29412
  type="date"
29359
29413
  part="input"
29360
- shape="box"
29361
- size="xl"
29362
29414
  setCustomValidity="${this.setCustomValidity}"
29363
29415
  setCustomValidityCustomError="${this.setCustomValidityCustomError}"
29364
29416
  setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
@@ -29366,9 +29418,14 @@ class AuroDatePicker extends AuroElement$1 {
29366
29418
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
29367
29419
  inputmode="${o(this.inputmode)}"
29368
29420
  >
29369
- <span slot="displayValue">
29370
- ${this.renderDisplayTextDate(this.value)}
29371
- </span>
29421
+ ${this.layout !== "classic"
29422
+ ? u$3`
29423
+ <span slot="displayValue">
29424
+ ${this.renderDisplayTextDate(this.value)}
29425
+ </span>
29426
+ `
29427
+ : undefined
29428
+ }
29372
29429
  <span slot="label"><slot name="fromLabel"></slot></span>
29373
29430
  </${this.inputTag}>
29374
29431
  </div>
@@ -29388,7 +29445,6 @@ class AuroDatePicker extends AuroElement$1 {
29388
29445
  .min="${this.minDate}"
29389
29446
  .placeholder="${this.placeholderEndDate || this.placeholder}"
29390
29447
  id="${this.generateRandomString(12)}"
29391
- bordered
29392
29448
  class="dateTo ${e$2(inputClasses)}"
29393
29449
  noValidate
29394
29450
  type="date"
@@ -29399,9 +29455,14 @@ class AuroDatePicker extends AuroElement$1 {
29399
29455
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
29400
29456
  ?disabled="${this.disabled}"
29401
29457
  part="input">
29402
- <span slot="displayValue">
29403
- ${this.renderDisplayTextDate(this.valueEnd)}
29404
- </span>
29458
+ ${this.layout !== "classic"
29459
+ ? u$3`
29460
+ <span slot="displayValue">
29461
+ ${this.renderDisplayTextDate(this.valueEnd)}
29462
+ </span>
29463
+ `
29464
+ : undefined
29465
+ }
29405
29466
  <span slot="label"><slot name="toLabel"></slot></span>
29406
29467
  </${this.inputTag}>
29407
29468
  </div>
@@ -29415,6 +29476,11 @@ class AuroDatePicker extends AuroElement$1 {
29415
29476
  // icons/actions
29416
29477
  // ------------------------------------
29417
29478
 
29479
+ /**
29480
+ * Renders the clear action button.
29481
+ * @private
29482
+ * @returns {import('lit').TemplateResult}
29483
+ */
29418
29484
  renderHtmlActionClear() {
29419
29485
  const clearActionClassMap = {
29420
29486
  'notification': true,
@@ -29436,7 +29502,6 @@ class AuroDatePicker extends AuroElement$1 {
29436
29502
  ?customColor="${this.onDark}"
29437
29503
  category="interface"
29438
29504
  name="x-lg"
29439
- slot="icon"
29440
29505
  >
29441
29506
  </${this.iconTag}>
29442
29507
  </${this.buttonTag}>
@@ -29444,6 +29509,11 @@ class AuroDatePicker extends AuroElement$1 {
29444
29509
  `;
29445
29510
  }
29446
29511
 
29512
+ /**
29513
+ * Renders the error icon.
29514
+ * @private
29515
+ * @returns {import('lit').TemplateResult}
29516
+ */
29447
29517
  renderHtmlIconError() {
29448
29518
  const clearActionClassMap = {
29449
29519
  'notification': true,
@@ -29463,6 +29533,11 @@ class AuroDatePicker extends AuroElement$1 {
29463
29533
  `;
29464
29534
  }
29465
29535
 
29536
+ /**
29537
+ * Renders the calendar icon.
29538
+ * @private
29539
+ * @returns {import('lit').TemplateResult}
29540
+ */
29466
29541
  renderHtmlIconCalendar() {
29467
29542
  return u$3`
29468
29543
  <${this.iconTag}
@@ -29478,26 +29553,53 @@ class AuroDatePicker extends AuroElement$1 {
29478
29553
  /**
29479
29554
  * Returns HTML for the help text and error message.
29480
29555
  * @private
29481
- * @returns {html} - Returns HTML for the help text and error message.
29556
+ * @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
29482
29557
  */
29483
29558
  renderHtmlHelpText() {
29484
29559
  return u$3`
29485
29560
  ${!this.validity || this.validity === undefined || this.validity === 'valid'
29486
- ? u$3`
29561
+ ? u$3`
29487
29562
  <${this.helpTextTag} ?onDark="${this.onDark}">
29488
29563
  <p id="${this.uniqueId}" part="helpText">
29489
29564
  <slot name="helpText"></slot>
29490
29565
  </p>
29491
29566
  </${this.helpTextTag}>
29492
29567
  `
29493
- : u$3`
29568
+ : u$3`
29494
29569
  <${this.helpTextTag} error ?onDark="${this.onDark}">
29495
29570
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
29496
29571
  ${this.errorMessage}
29497
29572
  </p>
29498
29573
  </${this.helpTextTag}>
29499
29574
  `
29500
- }
29575
+ }
29576
+ `;
29577
+ }
29578
+
29579
+ /**
29580
+ * Separate method for rendering the calendar.
29581
+ * @private
29582
+ * @returns {import('lit').TemplateResult}
29583
+ */
29584
+ renderCalendar() {
29585
+ return u$3`
29586
+ <auro-formkit-calendar
29587
+ ?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
29588
+ ?noRange="${!this.range}"
29589
+ .format="${this.format}"
29590
+ .monthFirst="${this.monthFirst}"
29591
+ .min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
29592
+ .max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
29593
+ .maxDate="${this.maxDate}"
29594
+ .minDate="${this.minDate}"
29595
+ .monthNames="${this.monthNames}"
29596
+ part="calendar"
29597
+ >
29598
+ <slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
29599
+ <slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
29600
+ <span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
29601
+ ${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
29602
+ </auro-formkit-calendar>
29501
29603
  `;
29502
29604
  }
29503
29605
 
@@ -29522,37 +29624,18 @@ class AuroDatePicker extends AuroElement$1 {
29522
29624
  .placement="${this.placement}"
29523
29625
  .shape="${this.shape}"
29524
29626
  .size="${this.size}"
29525
- bordered
29526
29627
  class="${e$2(dropdownElementClassMap)}"
29527
29628
  disableEventShow
29528
29629
  disableFocusTrap
29529
- fluid
29530
29630
  for="dropdownMenu"
29531
29631
  part="dropdown"
29532
- rounded
29533
29632
  >
29534
29633
  <div slot="trigger" class="dpTriggerContent" part="trigger">
29535
29634
  ${this.renderLayoutFromAttributes()}
29536
29635
  </div>
29537
29636
 
29538
29637
  <div class="calendarWrapper" part="calendarWrapper">
29539
- <auro-formkit-calendar
29540
- ?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
29541
- ?noRange="${!this.range}"
29542
- .format="${this.format}"
29543
- .monthFirst="${this.monthFirst}"
29544
- .min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
29545
- .max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
29546
- .maxDate="${this.maxDate}"
29547
- .minDate="${this.minDate}"
29548
- .monthNames="${this.monthNames}"
29549
- part="calendar"
29550
- >
29551
- <slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
29552
- <slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
29553
- <span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
29554
- ${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
29555
- </auro-formkit-calendar>
29638
+ ${this.renderCalendar()}
29556
29639
  </div>
29557
29640
  <div slot="helpText" part="helpTextSpan">
29558
29641
  ${this.renderHtmlHelpText()}