@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.
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.md +2 -1
- package/components/checkbox/demo/api.min.js +7 -0
- package/components/checkbox/demo/index.min.js +7 -0
- package/components/checkbox/dist/index.js +7 -0
- package/components/checkbox/dist/registered.js +7 -0
- package/components/combobox/demo/api.md +2 -0
- package/components/combobox/demo/api.min.js +11 -63
- package/components/combobox/demo/index.min.js +11 -63
- package/components/combobox/dist/auro-combobox.d.ts +2 -4
- package/components/combobox/dist/index.js +11 -63
- package/components/combobox/dist/registered.js +11 -63
- package/components/counter/demo/api.md +2 -0
- package/components/counter/demo/api.min.js +31 -61
- package/components/counter/demo/index.min.js +31 -61
- package/components/counter/dist/auro-counter-group.d.ts +10 -0
- package/components/counter/dist/index.js +31 -61
- package/components/counter/dist/registered.js +31 -61
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +41 -19
- package/components/datepicker/demo/api.min.js +242 -159
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +242 -159
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +73 -12
- package/components/datepicker/dist/index.js +242 -159
- package/components/datepicker/dist/registered.js +242 -159
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +10 -60
- package/components/dropdown/demo/index.min.js +10 -60
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -7
- package/components/dropdown/dist/index.js +10 -60
- package/components/dropdown/dist/registered.js +10 -60
- package/components/select/demo/api.md +46 -64
- package/components/select/demo/api.min.js +32 -72
- package/components/select/demo/index.md +1057 -137
- package/components/select/demo/index.min.js +32 -72
- package/components/select/dist/auro-select.d.ts +10 -5
- package/components/select/dist/index.js +32 -72
- package/components/select/dist/registered.js +32 -72
- package/package.json +1 -1
- /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
|
@@ -1297,19 +1297,21 @@ class UtilitiesCalendarRender {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
|
-
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}:
|
|
1300
|
+
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}}`;
|
|
1301
1301
|
|
|
1302
|
-
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([
|
|
1302
|
+
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)}`;
|
|
1303
1303
|
|
|
1304
|
-
var tokensCss$b = i$2`:host{--ds-auro-datepicker-
|
|
1304
|
+
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)}`;
|
|
1305
1305
|
|
|
1306
1306
|
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}`;
|
|
1307
1307
|
|
|
1308
|
+
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}`;
|
|
1309
|
+
|
|
1308
1310
|
var classicLayoutColor = i$2``;
|
|
1309
1311
|
|
|
1310
|
-
var snowflakeStyle = i$2
|
|
1312
|
+
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}`;
|
|
1311
1313
|
|
|
1312
|
-
var snowflakeColors = i$2`:host([layout=snowflake])
|
|
1314
|
+
var snowflakeColors = i$2`:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus)){--ds-auro-dropdown-trigger-border-color: transparent}`;
|
|
1313
1315
|
|
|
1314
1316
|
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:""}`;
|
|
1315
1317
|
|
|
@@ -12749,7 +12751,7 @@ class AuroBibtemplate extends i {
|
|
|
12749
12751
|
/**
|
|
12750
12752
|
* @private
|
|
12751
12753
|
*/
|
|
12752
|
-
this.buttonTag = versioning.generateTag('auro-formkit-
|
|
12754
|
+
this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion$2, AuroButton$2);
|
|
12753
12755
|
}
|
|
12754
12756
|
|
|
12755
12757
|
static get styles() {
|
|
@@ -17778,6 +17780,7 @@ let AuroElement$4 = class AuroElement extends i {
|
|
|
17778
17780
|
// See LICENSE in the project root for license information.
|
|
17779
17781
|
|
|
17780
17782
|
|
|
17783
|
+
|
|
17781
17784
|
/*
|
|
17782
17785
|
* @slot - Default slot for the popover content.
|
|
17783
17786
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -18281,6 +18284,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18281
18284
|
|
|
18282
18285
|
// Add the tag name as an attribute if it is different than the component name
|
|
18283
18286
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
18287
|
+
|
|
18288
|
+
this.trigger.addEventListener('click', () => {
|
|
18289
|
+
this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
|
|
18290
|
+
bubbles: true,
|
|
18291
|
+
composed: true
|
|
18292
|
+
}));
|
|
18293
|
+
});
|
|
18284
18294
|
}
|
|
18285
18295
|
|
|
18286
18296
|
/**
|
|
@@ -18353,64 +18363,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18353
18363
|
this.hasFocus = false;
|
|
18354
18364
|
}
|
|
18355
18365
|
|
|
18356
|
-
/**
|
|
18357
|
-
* Determines if the element or any children are focusable.
|
|
18358
|
-
* @private
|
|
18359
|
-
* @param {HTMLElement} element - Element to check.
|
|
18360
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
18361
|
-
*/
|
|
18362
|
-
containsFocusableElement(element) {
|
|
18363
|
-
this.showTriggerBorders = true;
|
|
18364
|
-
|
|
18365
|
-
const nodes = [
|
|
18366
|
-
element,
|
|
18367
|
-
...element.children
|
|
18368
|
-
];
|
|
18369
|
-
|
|
18370
|
-
const focusableElements = [
|
|
18371
|
-
'a',
|
|
18372
|
-
'auro-hyperlink',
|
|
18373
|
-
'button',
|
|
18374
|
-
'auro-button',
|
|
18375
|
-
'input',
|
|
18376
|
-
'auro-input',
|
|
18377
|
-
];
|
|
18378
|
-
|
|
18379
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
18380
|
-
|
|
18381
|
-
const result = nodes.some((node) => {
|
|
18382
|
-
const tagName = node.tagName.toLowerCase();
|
|
18383
|
-
|
|
18384
|
-
if (node.tabIndex > -1) {
|
|
18385
|
-
return true;
|
|
18386
|
-
}
|
|
18387
|
-
|
|
18388
|
-
if (focusableElements.includes(tagName)) {
|
|
18389
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
18390
|
-
return true;
|
|
18391
|
-
}
|
|
18392
|
-
if (!node.hasAttribute('disabled')) {
|
|
18393
|
-
return true;
|
|
18394
|
-
}
|
|
18395
|
-
}
|
|
18396
|
-
|
|
18397
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
18398
|
-
return true;
|
|
18399
|
-
}
|
|
18400
|
-
|
|
18401
|
-
return false;
|
|
18402
|
-
});
|
|
18403
|
-
|
|
18404
|
-
if (result) {
|
|
18405
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
18406
|
-
const tagName = node.tagName.toLowerCase();
|
|
18407
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
18408
|
-
});
|
|
18409
|
-
}
|
|
18410
|
-
|
|
18411
|
-
return result;
|
|
18412
|
-
}
|
|
18413
|
-
|
|
18414
18366
|
/**
|
|
18415
18367
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
18416
18368
|
* @private
|
|
@@ -18522,7 +18474,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18522
18474
|
if (triggerContentNodes) {
|
|
18523
18475
|
|
|
18524
18476
|
// See if any of them are focusable elements
|
|
18525
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
18477
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
18526
18478
|
|
|
18527
18479
|
// If any of them are focusable elements
|
|
18528
18480
|
if (this.triggerContentFocusable) {
|
|
@@ -18594,7 +18546,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18594
18546
|
<div
|
|
18595
18547
|
id="trigger"
|
|
18596
18548
|
class="${e$2(this.commonWrapperClasses)}" part="wrapper"
|
|
18597
|
-
tabindex="${this.tabIndex}"
|
|
18549
|
+
tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
18598
18550
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
18599
18551
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
18600
18552
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -27942,6 +27894,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27942
27894
|
*/
|
|
27943
27895
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
27944
27896
|
|
|
27897
|
+
/** @private */
|
|
27898
|
+
this.handleClick = this.handleClick.bind(this);
|
|
27899
|
+
|
|
27945
27900
|
// Layout Config
|
|
27946
27901
|
this.layout = 'classic';
|
|
27947
27902
|
this.shape = 'classic';
|
|
@@ -28272,6 +28227,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28272
28227
|
shapeSizeCss$2,
|
|
28273
28228
|
|
|
28274
28229
|
// layouts
|
|
28230
|
+
classicLayoutStyle,
|
|
28275
28231
|
classicLayoutColor,
|
|
28276
28232
|
snowflakeStyle,
|
|
28277
28233
|
snowflakeColors
|
|
@@ -28339,15 +28295,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28339
28295
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
28340
28296
|
* @returns {void}
|
|
28341
28297
|
*/
|
|
28342
|
-
focus(focusInput) {
|
|
28343
|
-
|
|
28344
|
-
return;
|
|
28345
|
-
}
|
|
28346
|
-
|
|
28298
|
+
focus(focusInput = '') {
|
|
28299
|
+
this.hasFocus = true;
|
|
28347
28300
|
this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
|
|
28348
28301
|
}
|
|
28349
28302
|
|
|
28350
|
-
|
|
28351
28303
|
/**
|
|
28352
28304
|
* Converts valid time number to format used by wc-date-range API.
|
|
28353
28305
|
* @private
|
|
@@ -28546,16 +28498,21 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28546
28498
|
configureDatepicker() {
|
|
28547
28499
|
this.addEventListener('focusin', () => {
|
|
28548
28500
|
this.touched = true;
|
|
28501
|
+
this.hasFocus = true;
|
|
28549
28502
|
});
|
|
28550
28503
|
|
|
28551
|
-
this.addEventListener('focusout', (
|
|
28552
|
-
|
|
28553
|
-
if (!this.contains(document.activeElement)) {
|
|
28554
|
-
this.validation.validate(this.inputList[0]);
|
|
28504
|
+
this.addEventListener('focusout', () => {
|
|
28505
|
+
this.hasFocus = false;
|
|
28555
28506
|
|
|
28556
|
-
|
|
28557
|
-
|
|
28558
|
-
|
|
28507
|
+
if (this.noValidate) {
|
|
28508
|
+
return;
|
|
28509
|
+
}
|
|
28510
|
+
|
|
28511
|
+
if (!this.contains(document.activeElement)) {
|
|
28512
|
+
this.validation.validate(this.inputList[0]);
|
|
28513
|
+
|
|
28514
|
+
if (this.inputList[1]) {
|
|
28515
|
+
this.validation.validate(this.inputList[1]);
|
|
28559
28516
|
}
|
|
28560
28517
|
}
|
|
28561
28518
|
});
|
|
@@ -28569,6 +28526,26 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28569
28526
|
}
|
|
28570
28527
|
}
|
|
28571
28528
|
|
|
28529
|
+
/**
|
|
28530
|
+
* Hides the dropdown bib if its open.
|
|
28531
|
+
* @returns {void}
|
|
28532
|
+
*/
|
|
28533
|
+
hideBib() {
|
|
28534
|
+
if (this.dropdown && this.dropdown.isPopoverVisible) {
|
|
28535
|
+
this.dropdown.hide();
|
|
28536
|
+
}
|
|
28537
|
+
}
|
|
28538
|
+
|
|
28539
|
+
/**
|
|
28540
|
+
* Shows the dropdown bib if there are options to show.
|
|
28541
|
+
* @returns {void}
|
|
28542
|
+
*/
|
|
28543
|
+
showBib() {
|
|
28544
|
+
if (this.dropdown && !this.dropdown.isPopoverVisible) {
|
|
28545
|
+
this.dropdown.show();
|
|
28546
|
+
}
|
|
28547
|
+
}
|
|
28548
|
+
|
|
28572
28549
|
/**
|
|
28573
28550
|
* Sets the readonly attribute on the inputs based on the window width.
|
|
28574
28551
|
* @private
|
|
@@ -28614,9 +28591,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28614
28591
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28615
28592
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28616
28593
|
|
|
28617
|
-
console.log(newDate);
|
|
28618
|
-
console.log(this.util.validDateStr(newDate, this.format));
|
|
28619
|
-
|
|
28620
28594
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28621
28595
|
if (this.inputList.length > 1) {
|
|
28622
28596
|
if (!this.value || !this.util.validDateStr(this.value, this.format)) {
|
|
@@ -28655,7 +28629,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28655
28629
|
handleKeydownReset(event) {
|
|
28656
28630
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
28657
28631
|
this.resetValues();
|
|
28658
|
-
this.
|
|
28632
|
+
this.focus();
|
|
28659
28633
|
}
|
|
28660
28634
|
}
|
|
28661
28635
|
|
|
@@ -28693,22 +28667,10 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28693
28667
|
this.validation.validate(this, force);
|
|
28694
28668
|
}
|
|
28695
28669
|
|
|
28696
|
-
|
|
28697
|
-
|
|
28698
|
-
|
|
28699
|
-
|
|
28700
|
-
|
|
28701
|
-
this.hasFocus = true;
|
|
28702
|
-
this.dropdown.show();
|
|
28703
|
-
|
|
28704
|
-
// shadowroot active element is null if we focus the datepicker itself
|
|
28705
|
-
if (this.shadowRoot.activeElement === null) {
|
|
28706
|
-
// If the shadowRoot.activeElement is null, we can assume that the datepicker itself has focus
|
|
28707
|
-
// and we should focus the first input in the inputList
|
|
28708
|
-
this.inputList[0].focus();
|
|
28709
|
-
}
|
|
28710
|
-
}
|
|
28711
|
-
|
|
28670
|
+
/**
|
|
28671
|
+
* Private method for interacting with the `hasValue` property.
|
|
28672
|
+
* @private
|
|
28673
|
+
*/
|
|
28712
28674
|
setHasValue() {
|
|
28713
28675
|
if (!this.range) {
|
|
28714
28676
|
this.hasValue = this.value && this.value.length > 0;
|
|
@@ -28728,6 +28690,17 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28728
28690
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28729
28691
|
}
|
|
28730
28692
|
|
|
28693
|
+
if (changedProperties.has('disabled')) {
|
|
28694
|
+
if (this.disabled) {
|
|
28695
|
+
this.previousTabIndex = this.getAttribute('tabindex');
|
|
28696
|
+
this.setAttribute('tabindex', '-1');
|
|
28697
|
+
} else if (!this.disabled && this.previousTabIndex > -1) {
|
|
28698
|
+
this.tabIndex = this.previousTabIndex;
|
|
28699
|
+
} else {
|
|
28700
|
+
this.removeAttribute('tabindex');
|
|
28701
|
+
}
|
|
28702
|
+
}
|
|
28703
|
+
|
|
28731
28704
|
if (changedProperties.has('calendarFocusDate')) {
|
|
28732
28705
|
this.formattedFocusDate = this.util.toNorthAmericanFormat(this.calendarFocusDate, this.format);
|
|
28733
28706
|
|
|
@@ -28791,8 +28764,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28791
28764
|
this.calendarRenderUtil.updateCentralDate(this, this.formattedValue);
|
|
28792
28765
|
}
|
|
28793
28766
|
|
|
28794
|
-
this.validate();
|
|
28795
28767
|
this.setHasValue();
|
|
28768
|
+
this.validate();
|
|
28796
28769
|
}
|
|
28797
28770
|
|
|
28798
28771
|
if (changedProperties.has('valueEnd') && this.inputList[1]) {
|
|
@@ -28893,6 +28866,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28893
28866
|
this.calendarFocusDate = this.minDate;
|
|
28894
28867
|
}
|
|
28895
28868
|
}
|
|
28869
|
+
|
|
28870
|
+
this.calendar.requestUpdate();
|
|
28896
28871
|
}
|
|
28897
28872
|
|
|
28898
28873
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
@@ -28924,6 +28899,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28924
28899
|
}
|
|
28925
28900
|
}
|
|
28926
28901
|
}
|
|
28902
|
+
|
|
28903
|
+
this.calendar.requestUpdate();
|
|
28927
28904
|
}
|
|
28928
28905
|
|
|
28929
28906
|
if (changedProperties.has('centralDate')) {
|
|
@@ -28944,6 +28921,39 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28944
28921
|
this.calendar.injectSlot(event.target.name, slot.cloneNode(true));
|
|
28945
28922
|
}
|
|
28946
28923
|
|
|
28924
|
+
/**
|
|
28925
|
+
* Handles click events on the datepicker.
|
|
28926
|
+
* @param {PointerEvent} event - The pointer event object.
|
|
28927
|
+
* @private
|
|
28928
|
+
* @returns {void}
|
|
28929
|
+
*/
|
|
28930
|
+
handleClick(event) {
|
|
28931
|
+
|
|
28932
|
+
// Get the initial target of the click event
|
|
28933
|
+
const [initTarget] = event.composedPath();
|
|
28934
|
+
|
|
28935
|
+
// Determine if the current layout requires special handling
|
|
28936
|
+
const layoutRequiresHandling = ['snowflake'].includes(this.layout);
|
|
28937
|
+
|
|
28938
|
+
// Determine if the target is an input element
|
|
28939
|
+
const targetIsInput = initTarget.tagName === 'INPUT';
|
|
28940
|
+
|
|
28941
|
+
if (layoutRequiresHandling && !targetIsInput) {
|
|
28942
|
+
|
|
28943
|
+
// Focus the first input
|
|
28944
|
+
this.inputList[0].focus();
|
|
28945
|
+
}
|
|
28946
|
+
}
|
|
28947
|
+
|
|
28948
|
+
/**
|
|
28949
|
+
* Set up click handling for the datepicker.
|
|
28950
|
+
* @private
|
|
28951
|
+
* @returns {void}
|
|
28952
|
+
*/
|
|
28953
|
+
configureClickHandler() {
|
|
28954
|
+
this.addEventListener('click', this.handleClick);
|
|
28955
|
+
}
|
|
28956
|
+
|
|
28947
28957
|
firstUpdated() {
|
|
28948
28958
|
// Add the tag name as an attribute if it is different than the component name
|
|
28949
28959
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-datepicker');
|
|
@@ -28952,6 +28962,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28952
28962
|
this.configureInput();
|
|
28953
28963
|
this.configureCalendar();
|
|
28954
28964
|
this.configureDatepicker();
|
|
28965
|
+
this.configureClickHandler();
|
|
28955
28966
|
|
|
28956
28967
|
window.addEventListener('resize', () => {
|
|
28957
28968
|
this.handleReadOnly();
|
|
@@ -28962,15 +28973,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28962
28973
|
super.connectedCallback();
|
|
28963
28974
|
|
|
28964
28975
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28965
|
-
|
|
28966
|
-
// setup focus/blur event listeners
|
|
28967
|
-
this.addEventListener('focus', () => {
|
|
28968
|
-
this.setHasFocus();
|
|
28969
|
-
}, true);
|
|
28970
|
-
|
|
28971
|
-
this.addEventListener('blur', () => {
|
|
28972
|
-
this.hasFocus = false;
|
|
28973
|
-
}, true);
|
|
28974
28976
|
}
|
|
28975
28977
|
|
|
28976
28978
|
// layout render methods
|
|
@@ -29015,26 +29017,72 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29015
29017
|
</div>
|
|
29016
29018
|
<div class="accents right ${e$2(accentsClassMap)}">
|
|
29017
29019
|
${this.hasError
|
|
29018
|
-
|
|
29019
|
-
|
|
29020
|
-
|
|
29020
|
+
? this.renderHtmlIconError()
|
|
29021
|
+
: this.renderHtmlActionClear()
|
|
29022
|
+
}
|
|
29023
|
+
</div>
|
|
29024
|
+
</div>
|
|
29025
|
+
`;
|
|
29026
|
+
}
|
|
29027
|
+
|
|
29028
|
+
/**
|
|
29029
|
+
* Renders the snowflake layout for the datepicker.
|
|
29030
|
+
* @private
|
|
29031
|
+
* @returns {import("lit").TemplateResult}
|
|
29032
|
+
*/
|
|
29033
|
+
renderClassicLayout() {
|
|
29034
|
+
const accentsClassMap = {
|
|
29035
|
+
error: this.hasError
|
|
29036
|
+
};
|
|
29037
|
+
|
|
29038
|
+
const inputSectionClassMap = {
|
|
29039
|
+
inputSection: true,
|
|
29040
|
+
|
|
29041
|
+
hasValue: this.hasValue,
|
|
29042
|
+
hasFocus: this.hasFocus,
|
|
29043
|
+
};
|
|
29044
|
+
|
|
29045
|
+
const labelClassMap = {
|
|
29046
|
+
hasValue: this.hasValue,
|
|
29047
|
+
hasFocus: this.hasFocus,
|
|
29048
|
+
};
|
|
29049
|
+
|
|
29050
|
+
return u$3`
|
|
29051
|
+
<div
|
|
29052
|
+
class="wrapper trigger"
|
|
29053
|
+
part="wrapper">
|
|
29054
|
+
<div class="accents left">
|
|
29055
|
+
${this.renderHtmlIconCalendar()}
|
|
29056
|
+
</div>
|
|
29057
|
+
<div class="mainContent">
|
|
29058
|
+
<label class="${e$2(labelClassMap)}" part="mainLabel">
|
|
29059
|
+
<slot name="label"></slot>
|
|
29060
|
+
</label>
|
|
29061
|
+
<div class="${e$2(inputSectionClassMap)}" part="inputSection">
|
|
29062
|
+
${this.renderHtmlInputs()}
|
|
29063
|
+
</div>
|
|
29064
|
+
</div>
|
|
29065
|
+
<div class="accents right ${e$2(accentsClassMap)}">
|
|
29066
|
+
${this.hasError
|
|
29067
|
+
? this.renderHtmlIconError()
|
|
29068
|
+
: this.renderHtmlActionClear()
|
|
29069
|
+
}
|
|
29021
29070
|
</div>
|
|
29022
29071
|
</div>
|
|
29023
29072
|
`;
|
|
29024
29073
|
}
|
|
29025
29074
|
|
|
29026
29075
|
/**
|
|
29076
|
+
* Renders the layout based on the `layout` attribute.
|
|
29027
29077
|
* @private
|
|
29078
|
+
* @returns {import('lit').TemplateResult}
|
|
29028
29079
|
*/
|
|
29029
29080
|
renderLayoutFromAttributes() {
|
|
29030
29081
|
switch (this.layout) {
|
|
29031
29082
|
case 'snowflake':
|
|
29032
29083
|
return this.renderSnowflakeLayout();
|
|
29033
29084
|
default:
|
|
29034
|
-
|
|
29035
|
-
return u$3`
|
|
29036
|
-
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
29037
|
-
`;
|
|
29085
|
+
return this.renderClassicLayout();
|
|
29038
29086
|
}
|
|
29039
29087
|
}
|
|
29040
29088
|
|
|
@@ -29045,7 +29093,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29045
29093
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
29046
29094
|
* @private
|
|
29047
29095
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
29048
|
-
* @
|
|
29096
|
+
* @returns {string}
|
|
29049
29097
|
*/
|
|
29050
29098
|
formatShortDate(date) {
|
|
29051
29099
|
// should render like Apr 21
|
|
@@ -29060,25 +29108,31 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29060
29108
|
/**
|
|
29061
29109
|
* Format and render the provided date value.
|
|
29062
29110
|
* @private
|
|
29063
|
-
* @param dateValue
|
|
29064
|
-
* @
|
|
29111
|
+
* @param {string} dateValue - The date value to format and render.
|
|
29112
|
+
* @returns {import('lit').TemplateResult}
|
|
29065
29113
|
*/
|
|
29066
29114
|
renderDisplayTextDate(dateValue) {
|
|
29067
29115
|
return u$3`
|
|
29068
29116
|
<div>
|
|
29069
29117
|
<div class="displayValueText">
|
|
29070
29118
|
${dateValue && this.util.validDateStr(dateValue, this.format)
|
|
29071
|
-
|
|
29072
|
-
|
|
29073
|
-
|
|
29119
|
+
? this.formatShortDate(dateValue)
|
|
29120
|
+
: undefined
|
|
29121
|
+
}
|
|
29074
29122
|
</div>
|
|
29075
29123
|
</div>
|
|
29076
29124
|
`;
|
|
29077
29125
|
}
|
|
29078
29126
|
|
|
29127
|
+
/**
|
|
29128
|
+
* Renders the HTML inputs for the datepicker.
|
|
29129
|
+
* @private
|
|
29130
|
+
* @returns {import('lit').TemplateResult}
|
|
29131
|
+
*/
|
|
29079
29132
|
renderHtmlInputs() {
|
|
29080
29133
|
const inputClasses = {
|
|
29081
|
-
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
29134
|
+
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus && this.layout !== "classic",
|
|
29135
|
+
"parentBorder": this.layout === "classic"
|
|
29082
29136
|
};
|
|
29083
29137
|
|
|
29084
29138
|
return u$3`
|
|
@@ -29092,14 +29146,12 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29092
29146
|
.min="${this.minDate}"
|
|
29093
29147
|
id="${this.generateRandomString(12)}"
|
|
29094
29148
|
.placeholder="${this.placeholder}"
|
|
29095
|
-
|
|
29096
|
-
|
|
29149
|
+
.size="${this.size}"
|
|
29150
|
+
.shape="${this.shape}"
|
|
29097
29151
|
noValidate
|
|
29098
29152
|
class="dateFrom ${e$2(inputClasses)}"
|
|
29099
29153
|
type="date"
|
|
29100
29154
|
part="input"
|
|
29101
|
-
shape="box"
|
|
29102
|
-
size="xl"
|
|
29103
29155
|
setCustomValidity="${this.setCustomValidity}"
|
|
29104
29156
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
29105
29157
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
@@ -29107,9 +29159,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29107
29159
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
29108
29160
|
inputmode="${o(this.inputmode)}"
|
|
29109
29161
|
>
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29162
|
+
${this.layout !== "classic"
|
|
29163
|
+
? u$3`
|
|
29164
|
+
<span slot="displayValue">
|
|
29165
|
+
${this.renderDisplayTextDate(this.value)}
|
|
29166
|
+
</span>
|
|
29167
|
+
`
|
|
29168
|
+
: undefined
|
|
29169
|
+
}
|
|
29113
29170
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
29114
29171
|
</${this.inputTag}>
|
|
29115
29172
|
</div>
|
|
@@ -29129,7 +29186,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29129
29186
|
.min="${this.minDate}"
|
|
29130
29187
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
29131
29188
|
id="${this.generateRandomString(12)}"
|
|
29132
|
-
bordered
|
|
29133
29189
|
class="dateTo ${e$2(inputClasses)}"
|
|
29134
29190
|
noValidate
|
|
29135
29191
|
type="date"
|
|
@@ -29140,9 +29196,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29140
29196
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
29141
29197
|
?disabled="${this.disabled}"
|
|
29142
29198
|
part="input">
|
|
29143
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29199
|
+
${this.layout !== "classic"
|
|
29200
|
+
? u$3`
|
|
29201
|
+
<span slot="displayValue">
|
|
29202
|
+
${this.renderDisplayTextDate(this.valueEnd)}
|
|
29203
|
+
</span>
|
|
29204
|
+
`
|
|
29205
|
+
: undefined
|
|
29206
|
+
}
|
|
29146
29207
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
29147
29208
|
</${this.inputTag}>
|
|
29148
29209
|
</div>
|
|
@@ -29156,6 +29217,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29156
29217
|
// icons/actions
|
|
29157
29218
|
// ------------------------------------
|
|
29158
29219
|
|
|
29220
|
+
/**
|
|
29221
|
+
* Renders the clear action button.
|
|
29222
|
+
* @private
|
|
29223
|
+
* @returns {import('lit').TemplateResult}
|
|
29224
|
+
*/
|
|
29159
29225
|
renderHtmlActionClear() {
|
|
29160
29226
|
const clearActionClassMap = {
|
|
29161
29227
|
'notification': true,
|
|
@@ -29177,7 +29243,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29177
29243
|
?customColor="${this.onDark}"
|
|
29178
29244
|
category="interface"
|
|
29179
29245
|
name="x-lg"
|
|
29180
|
-
slot="icon"
|
|
29181
29246
|
>
|
|
29182
29247
|
</${this.iconTag}>
|
|
29183
29248
|
</${this.buttonTag}>
|
|
@@ -29185,6 +29250,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29185
29250
|
`;
|
|
29186
29251
|
}
|
|
29187
29252
|
|
|
29253
|
+
/**
|
|
29254
|
+
* Renders the error icon.
|
|
29255
|
+
* @private
|
|
29256
|
+
* @returns {import('lit').TemplateResult}
|
|
29257
|
+
*/
|
|
29188
29258
|
renderHtmlIconError() {
|
|
29189
29259
|
const clearActionClassMap = {
|
|
29190
29260
|
'notification': true,
|
|
@@ -29204,6 +29274,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29204
29274
|
`;
|
|
29205
29275
|
}
|
|
29206
29276
|
|
|
29277
|
+
/**
|
|
29278
|
+
* Renders the calendar icon.
|
|
29279
|
+
* @private
|
|
29280
|
+
* @returns {import('lit').TemplateResult}
|
|
29281
|
+
*/
|
|
29207
29282
|
renderHtmlIconCalendar() {
|
|
29208
29283
|
return u$3`
|
|
29209
29284
|
<${this.iconTag}
|
|
@@ -29219,26 +29294,53 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29219
29294
|
/**
|
|
29220
29295
|
* Returns HTML for the help text and error message.
|
|
29221
29296
|
* @private
|
|
29222
|
-
* @returns {
|
|
29297
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
29223
29298
|
*/
|
|
29224
29299
|
renderHtmlHelpText() {
|
|
29225
29300
|
return u$3`
|
|
29226
29301
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
29227
|
-
|
|
29302
|
+
? u$3`
|
|
29228
29303
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
29229
29304
|
<p id="${this.uniqueId}" part="helpText">
|
|
29230
29305
|
<slot name="helpText"></slot>
|
|
29231
29306
|
</p>
|
|
29232
29307
|
</${this.helpTextTag}>
|
|
29233
29308
|
`
|
|
29234
|
-
|
|
29309
|
+
: u$3`
|
|
29235
29310
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
29236
29311
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
29237
29312
|
${this.errorMessage}
|
|
29238
29313
|
</p>
|
|
29239
29314
|
</${this.helpTextTag}>
|
|
29240
29315
|
`
|
|
29241
|
-
|
|
29316
|
+
}
|
|
29317
|
+
`;
|
|
29318
|
+
}
|
|
29319
|
+
|
|
29320
|
+
/**
|
|
29321
|
+
* Separate method for rendering the calendar.
|
|
29322
|
+
* @private
|
|
29323
|
+
* @returns {import('lit').TemplateResult}
|
|
29324
|
+
*/
|
|
29325
|
+
renderCalendar() {
|
|
29326
|
+
return u$3`
|
|
29327
|
+
<auro-formkit-calendar
|
|
29328
|
+
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29329
|
+
?noRange="${!this.range}"
|
|
29330
|
+
.format="${this.format}"
|
|
29331
|
+
.monthFirst="${this.monthFirst}"
|
|
29332
|
+
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29333
|
+
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29334
|
+
.maxDate="${this.maxDate}"
|
|
29335
|
+
.minDate="${this.minDate}"
|
|
29336
|
+
.monthNames="${this.monthNames}"
|
|
29337
|
+
part="calendar"
|
|
29338
|
+
>
|
|
29339
|
+
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29340
|
+
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29341
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29342
|
+
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29343
|
+
</auro-formkit-calendar>
|
|
29242
29344
|
`;
|
|
29243
29345
|
}
|
|
29244
29346
|
|
|
@@ -29263,37 +29365,18 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29263
29365
|
.placement="${this.placement}"
|
|
29264
29366
|
.shape="${this.shape}"
|
|
29265
29367
|
.size="${this.size}"
|
|
29266
|
-
bordered
|
|
29267
29368
|
class="${e$2(dropdownElementClassMap)}"
|
|
29268
29369
|
disableEventShow
|
|
29269
29370
|
disableFocusTrap
|
|
29270
|
-
fluid
|
|
29271
29371
|
for="dropdownMenu"
|
|
29272
29372
|
part="dropdown"
|
|
29273
|
-
rounded
|
|
29274
29373
|
>
|
|
29275
29374
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
29276
29375
|
${this.renderLayoutFromAttributes()}
|
|
29277
29376
|
</div>
|
|
29278
29377
|
|
|
29279
29378
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
29280
|
-
|
|
29281
|
-
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29282
|
-
?noRange="${!this.range}"
|
|
29283
|
-
.format="${this.format}"
|
|
29284
|
-
.monthFirst="${this.monthFirst}"
|
|
29285
|
-
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29286
|
-
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29287
|
-
.maxDate="${this.maxDate}"
|
|
29288
|
-
.minDate="${this.minDate}"
|
|
29289
|
-
.monthNames="${this.monthNames}"
|
|
29290
|
-
part="calendar"
|
|
29291
|
-
>
|
|
29292
|
-
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29293
|
-
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29294
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29295
|
-
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29296
|
-
</auro-formkit-calendar>
|
|
29379
|
+
${this.renderCalendar()}
|
|
29297
29380
|
</div>
|
|
29298
29381
|
<div slot="helpText" part="helpTextSpan">
|
|
29299
29382
|
${this.renderHtmlHelpText()}
|