@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.75 → 0.0.0-pr624.77
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.
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +1 -1
- package/components/combobox/demo/index.min.js +1 -1
- package/components/combobox/dist/index.js +1 -1
- package/components/combobox/dist/registered.js +1 -1
- package/components/counter/demo/api.min.js +1 -1
- package/components/counter/demo/index.min.js +1 -1
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +39 -19
- package/components/datepicker/demo/api.min.js +155 -76
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +155 -76
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +50 -12
- package/components/datepicker/dist/index.js +155 -76
- package/components/datepicker/dist/registered.js +155 -76
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/radio/demo/api.md +32 -1
- package/components/radio/demo/api.min.js +2 -2
- package/components/radio/demo/index.min.js +2 -2
- package/components/radio/dist/index.js +2 -2
- package/components/radio/dist/registered.js +2 -2
- package/components/select/demo/api.min.js +1 -1
- package/components/select/demo/index.min.js +1 -1
- package/components/select/dist/index.js +1 -1
- package/components/select/dist/registered.js +1 -1
- package/package.json +1 -1
- /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}:
|
|
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)}.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([
|
|
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-
|
|
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
|
|
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])
|
|
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-
|
|
13013
|
+
this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion$2, AuroButton$2);
|
|
13012
13014
|
}
|
|
13013
13015
|
|
|
13014
13016
|
static get styles() {
|
|
@@ -28538,6 +28540,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28538
28540
|
shapeSizeCss$2,
|
|
28539
28541
|
|
|
28540
28542
|
// layouts
|
|
28543
|
+
classicLayoutStyle,
|
|
28541
28544
|
classicLayoutColor,
|
|
28542
28545
|
snowflakeStyle,
|
|
28543
28546
|
snowflakeColors
|
|
@@ -28605,11 +28608,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28605
28608
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
28606
28609
|
* @returns {void}
|
|
28607
28610
|
*/
|
|
28608
|
-
focus(focusInput) {
|
|
28609
|
-
if (this.disabled) {
|
|
28610
|
-
return;
|
|
28611
|
-
}
|
|
28612
|
-
|
|
28611
|
+
focus(focusInput = '') {
|
|
28613
28612
|
this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
|
|
28614
28613
|
}
|
|
28615
28614
|
|
|
@@ -28812,9 +28811,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28812
28811
|
configureDatepicker() {
|
|
28813
28812
|
this.addEventListener('focusin', () => {
|
|
28814
28813
|
this.touched = true;
|
|
28814
|
+
this.hasFocus = true;
|
|
28815
28815
|
});
|
|
28816
28816
|
|
|
28817
28817
|
this.addEventListener('focusout', (evt) => {
|
|
28818
|
+
this.hasFocus = false;
|
|
28818
28819
|
if (!this.noValidate && !evt.detail.expanded && this.touched) {
|
|
28819
28820
|
if (!this.contains(document.activeElement)) {
|
|
28820
28821
|
this.validation.validate(this.inputList[0]);
|
|
@@ -28900,9 +28901,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28900
28901
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28901
28902
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28902
28903
|
|
|
28903
|
-
console.log(newDate);
|
|
28904
|
-
console.log(this.util.validDateStr(newDate, this.format));
|
|
28905
|
-
|
|
28906
28904
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28907
28905
|
if (this.inputList.length > 1) {
|
|
28908
28906
|
if (!this.value || !this.util.validDateStr(this.value, this.format)) {
|
|
@@ -28941,7 +28939,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28941
28939
|
handleKeydownReset(event) {
|
|
28942
28940
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
28943
28941
|
this.resetValues();
|
|
28944
|
-
this.
|
|
28942
|
+
this.focus();
|
|
28945
28943
|
}
|
|
28946
28944
|
}
|
|
28947
28945
|
|
|
@@ -28979,22 +28977,10 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28979
28977
|
this.validation.validate(this, force);
|
|
28980
28978
|
}
|
|
28981
28979
|
|
|
28982
|
-
|
|
28983
|
-
|
|
28984
|
-
|
|
28985
|
-
|
|
28986
|
-
|
|
28987
|
-
this.hasFocus = true;
|
|
28988
|
-
this.dropdown.show();
|
|
28989
|
-
|
|
28990
|
-
// shadowroot active element is null if we focus the datepicker itself
|
|
28991
|
-
if (this.shadowRoot.activeElement === null) {
|
|
28992
|
-
// If the shadowRoot.activeElement is null, we can assume that the datepicker itself has focus
|
|
28993
|
-
// and we should focus the first input in the inputList
|
|
28994
|
-
this.inputList[0].focus();
|
|
28995
|
-
}
|
|
28996
|
-
}
|
|
28997
|
-
|
|
28980
|
+
/**
|
|
28981
|
+
* Private method for interacting with the `hasValue` property.
|
|
28982
|
+
* @private
|
|
28983
|
+
*/
|
|
28998
28984
|
setHasValue() {
|
|
28999
28985
|
if (!this.range) {
|
|
29000
28986
|
this.hasValue = this.value && this.value.length > 0;
|
|
@@ -29014,6 +29000,17 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29014
29000
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
29015
29001
|
}
|
|
29016
29002
|
|
|
29003
|
+
if (changedProperties.has('disabled')) {
|
|
29004
|
+
if (this.disabled) {
|
|
29005
|
+
this.previousTabIndex = this.getAttribute('tabindex');
|
|
29006
|
+
this.setAttribute('tabindex', '-1');
|
|
29007
|
+
} else if (!this.disabled && this.previousTabIndex > -1) {
|
|
29008
|
+
this.tabIndex = this.previousTabIndex;
|
|
29009
|
+
} else {
|
|
29010
|
+
this.removeAttribute('tabindex');
|
|
29011
|
+
}
|
|
29012
|
+
}
|
|
29013
|
+
|
|
29017
29014
|
if (changedProperties.has('calendarFocusDate')) {
|
|
29018
29015
|
this.formattedFocusDate = this.util.toNorthAmericanFormat(this.calendarFocusDate, this.format);
|
|
29019
29016
|
|
|
@@ -29179,6 +29176,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29179
29176
|
this.calendarFocusDate = this.minDate;
|
|
29180
29177
|
}
|
|
29181
29178
|
}
|
|
29179
|
+
|
|
29180
|
+
this.calendar.requestUpdate();
|
|
29182
29181
|
}
|
|
29183
29182
|
|
|
29184
29183
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
@@ -29210,6 +29209,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29210
29209
|
}
|
|
29211
29210
|
}
|
|
29212
29211
|
}
|
|
29212
|
+
|
|
29213
|
+
this.calendar.requestUpdate();
|
|
29213
29214
|
}
|
|
29214
29215
|
|
|
29215
29216
|
if (changedProperties.has('centralDate')) {
|
|
@@ -29251,11 +29252,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29251
29252
|
|
|
29252
29253
|
// setup focus/blur event listeners
|
|
29253
29254
|
this.addEventListener('focus', () => {
|
|
29254
|
-
this.
|
|
29255
|
-
}, true);
|
|
29256
|
-
|
|
29257
|
-
this.addEventListener('blur', () => {
|
|
29258
|
-
this.hasFocus = false;
|
|
29255
|
+
this.focus();
|
|
29259
29256
|
}, true);
|
|
29260
29257
|
}
|
|
29261
29258
|
|
|
@@ -29310,17 +29307,63 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29310
29307
|
}
|
|
29311
29308
|
|
|
29312
29309
|
/**
|
|
29310
|
+
* Renders the snowflake layout for the datepicker.
|
|
29313
29311
|
* @private
|
|
29312
|
+
* @returns {import("lit").TemplateResult}
|
|
29313
|
+
*/
|
|
29314
|
+
renderClassicLayout() {
|
|
29315
|
+
const accentsClassMap = {
|
|
29316
|
+
error: this.hasError
|
|
29317
|
+
};
|
|
29318
|
+
|
|
29319
|
+
const inputSectionClassMap = {
|
|
29320
|
+
inputSection: true,
|
|
29321
|
+
|
|
29322
|
+
hasValue: this.hasValue,
|
|
29323
|
+
hasFocus: this.hasFocus,
|
|
29324
|
+
};
|
|
29325
|
+
|
|
29326
|
+
const labelClassMap = {
|
|
29327
|
+
hasValue: this.hasValue,
|
|
29328
|
+
hasFocus: this.hasFocus,
|
|
29329
|
+
};
|
|
29330
|
+
|
|
29331
|
+
return u$3`
|
|
29332
|
+
<div
|
|
29333
|
+
class="wrapper trigger"
|
|
29334
|
+
part="wrapper">
|
|
29335
|
+
<div class="accents left">
|
|
29336
|
+
${this.renderHtmlIconCalendar()}
|
|
29337
|
+
</div>
|
|
29338
|
+
<div class="mainContent">
|
|
29339
|
+
<label class="${e$2(labelClassMap)}" part="mainLabel">
|
|
29340
|
+
<slot name="label"></slot>
|
|
29341
|
+
</label>
|
|
29342
|
+
<div class="${e$2(inputSectionClassMap)}" part="inputSection">
|
|
29343
|
+
${this.renderHtmlInputs()}
|
|
29344
|
+
</div>
|
|
29345
|
+
</div>
|
|
29346
|
+
<div class="accents right ${e$2(accentsClassMap)}">
|
|
29347
|
+
${this.hasError
|
|
29348
|
+
? this.renderHtmlIconError()
|
|
29349
|
+
: this.renderHtmlActionClear()
|
|
29350
|
+
}
|
|
29351
|
+
</div>
|
|
29352
|
+
</div>
|
|
29353
|
+
`;
|
|
29354
|
+
}
|
|
29355
|
+
|
|
29356
|
+
/**
|
|
29357
|
+
* Renders the layout based on the `layout` attribute.
|
|
29358
|
+
* @private
|
|
29359
|
+
* @returns {import('lit').TemplateResult}
|
|
29314
29360
|
*/
|
|
29315
29361
|
renderLayoutFromAttributes() {
|
|
29316
29362
|
switch (this.layout) {
|
|
29317
29363
|
case 'snowflake':
|
|
29318
29364
|
return this.renderSnowflakeLayout();
|
|
29319
29365
|
default:
|
|
29320
|
-
|
|
29321
|
-
return u$3`
|
|
29322
|
-
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
29323
|
-
`;
|
|
29366
|
+
return this.renderClassicLayout();
|
|
29324
29367
|
}
|
|
29325
29368
|
}
|
|
29326
29369
|
|
|
@@ -29331,7 +29374,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29331
29374
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
29332
29375
|
* @private
|
|
29333
29376
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
29334
|
-
* @
|
|
29377
|
+
* @returns {string}
|
|
29335
29378
|
*/
|
|
29336
29379
|
formatShortDate(date) {
|
|
29337
29380
|
// should render like Apr 21
|
|
@@ -29346,8 +29389,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29346
29389
|
/**
|
|
29347
29390
|
* Format and render the provided date value.
|
|
29348
29391
|
* @private
|
|
29349
|
-
* @param dateValue
|
|
29350
|
-
* @
|
|
29392
|
+
* @param {string} dateValue - The date value to format and render.
|
|
29393
|
+
* @returns {import('lit').TemplateResult}
|
|
29351
29394
|
*/
|
|
29352
29395
|
renderDisplayTextDate(dateValue) {
|
|
29353
29396
|
return u$3`
|
|
@@ -29362,9 +29405,15 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29362
29405
|
`;
|
|
29363
29406
|
}
|
|
29364
29407
|
|
|
29408
|
+
/**
|
|
29409
|
+
* Renders the HTML inputs for the datepicker.
|
|
29410
|
+
* @private
|
|
29411
|
+
* @returns {import('lit').TemplateResult}
|
|
29412
|
+
*/
|
|
29365
29413
|
renderHtmlInputs() {
|
|
29366
29414
|
const inputClasses = {
|
|
29367
|
-
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
29415
|
+
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus && this.layout !== "classic",
|
|
29416
|
+
"parentBorder": this.layout === "classic"
|
|
29368
29417
|
};
|
|
29369
29418
|
|
|
29370
29419
|
return u$3`
|
|
@@ -29378,14 +29427,12 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29378
29427
|
.min="${this.minDate}"
|
|
29379
29428
|
id="${this.generateRandomString(12)}"
|
|
29380
29429
|
.placeholder="${this.placeholder}"
|
|
29381
|
-
|
|
29382
|
-
|
|
29430
|
+
.size="${this.size}"
|
|
29431
|
+
.shape="${this.shape}"
|
|
29383
29432
|
noValidate
|
|
29384
29433
|
class="dateFrom ${e$2(inputClasses)}"
|
|
29385
29434
|
type="date"
|
|
29386
29435
|
part="input"
|
|
29387
|
-
shape="box"
|
|
29388
|
-
size="xl"
|
|
29389
29436
|
setCustomValidity="${this.setCustomValidity}"
|
|
29390
29437
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
29391
29438
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
@@ -29393,9 +29440,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29393
29440
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
29394
29441
|
inputmode="${o(this.inputmode)}"
|
|
29395
29442
|
>
|
|
29396
|
-
|
|
29397
|
-
$
|
|
29398
|
-
|
|
29443
|
+
${this.layout !== "classic"
|
|
29444
|
+
? u$3`
|
|
29445
|
+
<span slot="displayValue">
|
|
29446
|
+
${this.renderDisplayTextDate(this.value)}
|
|
29447
|
+
</span>
|
|
29448
|
+
`
|
|
29449
|
+
: undefined
|
|
29450
|
+
}
|
|
29399
29451
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
29400
29452
|
</${this.inputTag}>
|
|
29401
29453
|
</div>
|
|
@@ -29415,7 +29467,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29415
29467
|
.min="${this.minDate}"
|
|
29416
29468
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
29417
29469
|
id="${this.generateRandomString(12)}"
|
|
29418
|
-
bordered
|
|
29419
29470
|
class="dateTo ${e$2(inputClasses)}"
|
|
29420
29471
|
noValidate
|
|
29421
29472
|
type="date"
|
|
@@ -29426,9 +29477,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29426
29477
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
29427
29478
|
?disabled="${this.disabled}"
|
|
29428
29479
|
part="input">
|
|
29429
|
-
|
|
29430
|
-
$
|
|
29431
|
-
|
|
29480
|
+
${this.layout !== "classic"
|
|
29481
|
+
? u$3`
|
|
29482
|
+
<span slot="displayValue">
|
|
29483
|
+
${this.renderDisplayTextDate(this.valueEnd)}
|
|
29484
|
+
</span>
|
|
29485
|
+
`
|
|
29486
|
+
: undefined
|
|
29487
|
+
}
|
|
29432
29488
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
29433
29489
|
</${this.inputTag}>
|
|
29434
29490
|
</div>
|
|
@@ -29442,6 +29498,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29442
29498
|
// icons/actions
|
|
29443
29499
|
// ------------------------------------
|
|
29444
29500
|
|
|
29501
|
+
/**
|
|
29502
|
+
* Renders the clear action button.
|
|
29503
|
+
* @private
|
|
29504
|
+
* @returns {import('lit').TemplateResult}
|
|
29505
|
+
*/
|
|
29445
29506
|
renderHtmlActionClear() {
|
|
29446
29507
|
const clearActionClassMap = {
|
|
29447
29508
|
'notification': true,
|
|
@@ -29471,6 +29532,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29471
29532
|
`;
|
|
29472
29533
|
}
|
|
29473
29534
|
|
|
29535
|
+
/**
|
|
29536
|
+
* Renders the error icon.
|
|
29537
|
+
* @private
|
|
29538
|
+
* @returns {import('lit').TemplateResult}
|
|
29539
|
+
*/
|
|
29474
29540
|
renderHtmlIconError() {
|
|
29475
29541
|
const clearActionClassMap = {
|
|
29476
29542
|
'notification': true,
|
|
@@ -29490,6 +29556,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29490
29556
|
`;
|
|
29491
29557
|
}
|
|
29492
29558
|
|
|
29559
|
+
/**
|
|
29560
|
+
* Renders the calendar icon.
|
|
29561
|
+
* @private
|
|
29562
|
+
* @returns {import('lit').TemplateResult}
|
|
29563
|
+
*/
|
|
29493
29564
|
renderHtmlIconCalendar() {
|
|
29494
29565
|
return u$3`
|
|
29495
29566
|
<${this.iconTag}
|
|
@@ -29505,7 +29576,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29505
29576
|
/**
|
|
29506
29577
|
* Returns HTML for the help text and error message.
|
|
29507
29578
|
* @private
|
|
29508
|
-
* @returns {
|
|
29579
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
29509
29580
|
*/
|
|
29510
29581
|
renderHtmlHelpText() {
|
|
29511
29582
|
return u$3`
|
|
@@ -29528,6 +29599,33 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29528
29599
|
`;
|
|
29529
29600
|
}
|
|
29530
29601
|
|
|
29602
|
+
/**
|
|
29603
|
+
* Separate method for rendering the calendar.
|
|
29604
|
+
* @private
|
|
29605
|
+
* @returns {import('lit').TemplateResult}
|
|
29606
|
+
*/
|
|
29607
|
+
renderCalendar() {
|
|
29608
|
+
return u$3`
|
|
29609
|
+
<auro-formkit-calendar
|
|
29610
|
+
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29611
|
+
?noRange="${!this.range}"
|
|
29612
|
+
.format="${this.format}"
|
|
29613
|
+
.monthFirst="${this.monthFirst}"
|
|
29614
|
+
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29615
|
+
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29616
|
+
.maxDate="${this.maxDate}"
|
|
29617
|
+
.minDate="${this.minDate}"
|
|
29618
|
+
.monthNames="${this.monthNames}"
|
|
29619
|
+
part="calendar"
|
|
29620
|
+
>
|
|
29621
|
+
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29622
|
+
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29623
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29624
|
+
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29625
|
+
</auro-formkit-calendar>
|
|
29626
|
+
`;
|
|
29627
|
+
}
|
|
29628
|
+
|
|
29531
29629
|
// function that renders the HTML and CSS into the scope of the component
|
|
29532
29630
|
render() {
|
|
29533
29631
|
const dropdownElementClassMap = {
|
|
@@ -29549,37 +29647,18 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29549
29647
|
.placement="${this.placement}"
|
|
29550
29648
|
.shape="${this.shape}"
|
|
29551
29649
|
.size="${this.size}"
|
|
29552
|
-
bordered
|
|
29553
29650
|
class="${e$2(dropdownElementClassMap)}"
|
|
29554
29651
|
disableEventShow
|
|
29555
29652
|
disableFocusTrap
|
|
29556
|
-
fluid
|
|
29557
29653
|
for="dropdownMenu"
|
|
29558
29654
|
part="dropdown"
|
|
29559
|
-
rounded
|
|
29560
29655
|
>
|
|
29561
29656
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
29562
29657
|
${this.renderLayoutFromAttributes()}
|
|
29563
29658
|
</div>
|
|
29564
29659
|
|
|
29565
29660
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
29566
|
-
|
|
29567
|
-
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29568
|
-
?noRange="${!this.range}"
|
|
29569
|
-
.format="${this.format}"
|
|
29570
|
-
.monthFirst="${this.monthFirst}"
|
|
29571
|
-
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29572
|
-
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29573
|
-
.maxDate="${this.maxDate}"
|
|
29574
|
-
.minDate="${this.minDate}"
|
|
29575
|
-
.monthNames="${this.monthNames}"
|
|
29576
|
-
part="calendar"
|
|
29577
|
-
>
|
|
29578
|
-
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29579
|
-
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29580
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29581
|
-
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29582
|
-
</auro-formkit-calendar>
|
|
29661
|
+
${this.renderCalendar()}
|
|
29583
29662
|
</div>
|
|
29584
29663
|
<div slot="helpText" part="helpTextSpan">
|
|
29585
29664
|
${this.renderHtmlHelpText()}
|
|
@@ -102,7 +102,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
102
102
|
<div class="exampleWrapper">
|
|
103
103
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
104
104
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
105
|
-
<auro-datepicker>
|
|
105
|
+
<auro-datepicker required="">
|
|
106
106
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
107
107
|
<span slot="fromLabel">Choose a date</span>
|
|
108
108
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -125,7 +125,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
125
125
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
126
126
|
|
|
127
127
|
```html
|
|
128
|
-
<auro-datepicker>
|
|
128
|
+
<auro-datepicker required="">
|
|
129
129
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
130
130
|
<span slot="fromLabel">Choose a date</span>
|
|
131
131
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -147,7 +147,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
147
147
|
<div class="exampleWrapper">
|
|
148
148
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
|
|
149
149
|
<!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
|
|
150
|
-
<auro-datepicker range>
|
|
150
|
+
<auro-datepicker range minDate="07/08/2025">
|
|
151
151
|
<span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
|
|
152
152
|
<span slot="fromLabel">Departure</span>
|
|
153
153
|
<span slot="toLabel">Return</span>
|
|
@@ -172,7 +172,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
172
172
|
<!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
|
|
173
173
|
|
|
174
174
|
```html
|
|
175
|
-
<auro-datepicker range>
|
|
175
|
+
<auro-datepicker range minDate="07/08/2025">
|
|
176
176
|
<span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
|
|
177
177
|
<span slot="fromLabel">Departure</span>
|
|
178
178
|
<span slot="toLabel">Return</span>
|