@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
|
@@ -1258,19 +1258,21 @@ class UtilitiesCalendarRender {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
|
-
var styleCss$e = css`.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}:
|
|
1261
|
+
var styleCss$e = css`.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}}`;
|
|
1262
1262
|
|
|
1263
|
-
var colorCss$d = css`.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([
|
|
1263
|
+
var colorCss$d = css`.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)}`;
|
|
1264
1264
|
|
|
1265
|
-
var tokensCss$b = css`:host{--ds-auro-datepicker-
|
|
1265
|
+
var tokensCss$b = css`: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)}`;
|
|
1266
1266
|
|
|
1267
1267
|
var shapeSizeCss$2 = css`.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}`;
|
|
1268
1268
|
|
|
1269
|
+
var classicLayoutStyle = css`.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}`;
|
|
1270
|
+
|
|
1269
1271
|
var classicLayoutColor = css``;
|
|
1270
1272
|
|
|
1271
|
-
var snowflakeStyle = css
|
|
1273
|
+
var snowflakeStyle = css`: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}`;
|
|
1272
1274
|
|
|
1273
|
-
var snowflakeColors = css`:host([layout=snowflake])
|
|
1275
|
+
var snowflakeColors = css`:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus)){--ds-auro-dropdown-trigger-border-color: transparent}`;
|
|
1274
1276
|
|
|
1275
1277
|
var styleCss$d = css`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
|
|
1276
1278
|
|
|
@@ -12698,7 +12700,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
12698
12700
|
/**
|
|
12699
12701
|
* @private
|
|
12700
12702
|
*/
|
|
12701
|
-
this.buttonTag = versioning.generateTag('auro-formkit-
|
|
12703
|
+
this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion$2, AuroButton$2);
|
|
12702
12704
|
}
|
|
12703
12705
|
|
|
12704
12706
|
static get styles() {
|
|
@@ -17727,6 +17729,7 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
17727
17729
|
// See LICENSE in the project root for license information.
|
|
17728
17730
|
|
|
17729
17731
|
|
|
17732
|
+
|
|
17730
17733
|
/*
|
|
17731
17734
|
* @slot - Default slot for the popover content.
|
|
17732
17735
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -18230,6 +18233,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18230
18233
|
|
|
18231
18234
|
// Add the tag name as an attribute if it is different than the component name
|
|
18232
18235
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
18236
|
+
|
|
18237
|
+
this.trigger.addEventListener('click', () => {
|
|
18238
|
+
this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
|
|
18239
|
+
bubbles: true,
|
|
18240
|
+
composed: true
|
|
18241
|
+
}));
|
|
18242
|
+
});
|
|
18233
18243
|
}
|
|
18234
18244
|
|
|
18235
18245
|
/**
|
|
@@ -18302,64 +18312,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18302
18312
|
this.hasFocus = false;
|
|
18303
18313
|
}
|
|
18304
18314
|
|
|
18305
|
-
/**
|
|
18306
|
-
* Determines if the element or any children are focusable.
|
|
18307
|
-
* @private
|
|
18308
|
-
* @param {HTMLElement} element - Element to check.
|
|
18309
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
18310
|
-
*/
|
|
18311
|
-
containsFocusableElement(element) {
|
|
18312
|
-
this.showTriggerBorders = true;
|
|
18313
|
-
|
|
18314
|
-
const nodes = [
|
|
18315
|
-
element,
|
|
18316
|
-
...element.children
|
|
18317
|
-
];
|
|
18318
|
-
|
|
18319
|
-
const focusableElements = [
|
|
18320
|
-
'a',
|
|
18321
|
-
'auro-hyperlink',
|
|
18322
|
-
'button',
|
|
18323
|
-
'auro-button',
|
|
18324
|
-
'input',
|
|
18325
|
-
'auro-input',
|
|
18326
|
-
];
|
|
18327
|
-
|
|
18328
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
18329
|
-
|
|
18330
|
-
const result = nodes.some((node) => {
|
|
18331
|
-
const tagName = node.tagName.toLowerCase();
|
|
18332
|
-
|
|
18333
|
-
if (node.tabIndex > -1) {
|
|
18334
|
-
return true;
|
|
18335
|
-
}
|
|
18336
|
-
|
|
18337
|
-
if (focusableElements.includes(tagName)) {
|
|
18338
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
18339
|
-
return true;
|
|
18340
|
-
}
|
|
18341
|
-
if (!node.hasAttribute('disabled')) {
|
|
18342
|
-
return true;
|
|
18343
|
-
}
|
|
18344
|
-
}
|
|
18345
|
-
|
|
18346
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
18347
|
-
return true;
|
|
18348
|
-
}
|
|
18349
|
-
|
|
18350
|
-
return false;
|
|
18351
|
-
});
|
|
18352
|
-
|
|
18353
|
-
if (result) {
|
|
18354
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
18355
|
-
const tagName = node.tagName.toLowerCase();
|
|
18356
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
18357
|
-
});
|
|
18358
|
-
}
|
|
18359
|
-
|
|
18360
|
-
return result;
|
|
18361
|
-
}
|
|
18362
|
-
|
|
18363
18315
|
/**
|
|
18364
18316
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
18365
18317
|
* @private
|
|
@@ -18471,7 +18423,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18471
18423
|
if (triggerContentNodes) {
|
|
18472
18424
|
|
|
18473
18425
|
// See if any of them are focusable elements
|
|
18474
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
18426
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
18475
18427
|
|
|
18476
18428
|
// If any of them are focusable elements
|
|
18477
18429
|
if (this.triggerContentFocusable) {
|
|
@@ -18543,7 +18495,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18543
18495
|
<div
|
|
18544
18496
|
id="trigger"
|
|
18545
18497
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
18546
|
-
tabindex="${this.tabIndex}"
|
|
18498
|
+
tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
18547
18499
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
18548
18500
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
18549
18501
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -27878,6 +27830,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27878
27830
|
*/
|
|
27879
27831
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
27880
27832
|
|
|
27833
|
+
/** @private */
|
|
27834
|
+
this.handleClick = this.handleClick.bind(this);
|
|
27835
|
+
|
|
27881
27836
|
// Layout Config
|
|
27882
27837
|
this.layout = 'classic';
|
|
27883
27838
|
this.shape = 'classic';
|
|
@@ -28208,6 +28163,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28208
28163
|
shapeSizeCss$2,
|
|
28209
28164
|
|
|
28210
28165
|
// layouts
|
|
28166
|
+
classicLayoutStyle,
|
|
28211
28167
|
classicLayoutColor,
|
|
28212
28168
|
snowflakeStyle,
|
|
28213
28169
|
snowflakeColors
|
|
@@ -28275,15 +28231,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28275
28231
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
28276
28232
|
* @returns {void}
|
|
28277
28233
|
*/
|
|
28278
|
-
focus(focusInput) {
|
|
28279
|
-
|
|
28280
|
-
return;
|
|
28281
|
-
}
|
|
28282
|
-
|
|
28234
|
+
focus(focusInput = '') {
|
|
28235
|
+
this.hasFocus = true;
|
|
28283
28236
|
this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
|
|
28284
28237
|
}
|
|
28285
28238
|
|
|
28286
|
-
|
|
28287
28239
|
/**
|
|
28288
28240
|
* Converts valid time number to format used by wc-date-range API.
|
|
28289
28241
|
* @private
|
|
@@ -28482,16 +28434,21 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28482
28434
|
configureDatepicker() {
|
|
28483
28435
|
this.addEventListener('focusin', () => {
|
|
28484
28436
|
this.touched = true;
|
|
28437
|
+
this.hasFocus = true;
|
|
28485
28438
|
});
|
|
28486
28439
|
|
|
28487
|
-
this.addEventListener('focusout', (
|
|
28488
|
-
|
|
28489
|
-
if (!this.contains(document.activeElement)) {
|
|
28490
|
-
this.validation.validate(this.inputList[0]);
|
|
28440
|
+
this.addEventListener('focusout', () => {
|
|
28441
|
+
this.hasFocus = false;
|
|
28491
28442
|
|
|
28492
|
-
|
|
28493
|
-
|
|
28494
|
-
|
|
28443
|
+
if (this.noValidate) {
|
|
28444
|
+
return;
|
|
28445
|
+
}
|
|
28446
|
+
|
|
28447
|
+
if (!this.contains(document.activeElement)) {
|
|
28448
|
+
this.validation.validate(this.inputList[0]);
|
|
28449
|
+
|
|
28450
|
+
if (this.inputList[1]) {
|
|
28451
|
+
this.validation.validate(this.inputList[1]);
|
|
28495
28452
|
}
|
|
28496
28453
|
}
|
|
28497
28454
|
});
|
|
@@ -28505,6 +28462,26 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28505
28462
|
}
|
|
28506
28463
|
}
|
|
28507
28464
|
|
|
28465
|
+
/**
|
|
28466
|
+
* Hides the dropdown bib if its open.
|
|
28467
|
+
* @returns {void}
|
|
28468
|
+
*/
|
|
28469
|
+
hideBib() {
|
|
28470
|
+
if (this.dropdown && this.dropdown.isPopoverVisible) {
|
|
28471
|
+
this.dropdown.hide();
|
|
28472
|
+
}
|
|
28473
|
+
}
|
|
28474
|
+
|
|
28475
|
+
/**
|
|
28476
|
+
* Shows the dropdown bib if there are options to show.
|
|
28477
|
+
* @returns {void}
|
|
28478
|
+
*/
|
|
28479
|
+
showBib() {
|
|
28480
|
+
if (this.dropdown && !this.dropdown.isPopoverVisible) {
|
|
28481
|
+
this.dropdown.show();
|
|
28482
|
+
}
|
|
28483
|
+
}
|
|
28484
|
+
|
|
28508
28485
|
/**
|
|
28509
28486
|
* Sets the readonly attribute on the inputs based on the window width.
|
|
28510
28487
|
* @private
|
|
@@ -28550,9 +28527,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28550
28527
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28551
28528
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28552
28529
|
|
|
28553
|
-
console.log(newDate);
|
|
28554
|
-
console.log(this.util.validDateStr(newDate, this.format));
|
|
28555
|
-
|
|
28556
28530
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28557
28531
|
if (this.inputList.length > 1) {
|
|
28558
28532
|
if (!this.value || !this.util.validDateStr(this.value, this.format)) {
|
|
@@ -28591,7 +28565,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28591
28565
|
handleKeydownReset(event) {
|
|
28592
28566
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
28593
28567
|
this.resetValues();
|
|
28594
|
-
this.
|
|
28568
|
+
this.focus();
|
|
28595
28569
|
}
|
|
28596
28570
|
}
|
|
28597
28571
|
|
|
@@ -28629,22 +28603,10 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28629
28603
|
this.validation.validate(this, force);
|
|
28630
28604
|
}
|
|
28631
28605
|
|
|
28632
|
-
|
|
28633
|
-
|
|
28634
|
-
|
|
28635
|
-
|
|
28636
|
-
|
|
28637
|
-
this.hasFocus = true;
|
|
28638
|
-
this.dropdown.show();
|
|
28639
|
-
|
|
28640
|
-
// shadowroot active element is null if we focus the datepicker itself
|
|
28641
|
-
if (this.shadowRoot.activeElement === null) {
|
|
28642
|
-
// If the shadowRoot.activeElement is null, we can assume that the datepicker itself has focus
|
|
28643
|
-
// and we should focus the first input in the inputList
|
|
28644
|
-
this.inputList[0].focus();
|
|
28645
|
-
}
|
|
28646
|
-
}
|
|
28647
|
-
|
|
28606
|
+
/**
|
|
28607
|
+
* Private method for interacting with the `hasValue` property.
|
|
28608
|
+
* @private
|
|
28609
|
+
*/
|
|
28648
28610
|
setHasValue() {
|
|
28649
28611
|
if (!this.range) {
|
|
28650
28612
|
this.hasValue = this.value && this.value.length > 0;
|
|
@@ -28664,6 +28626,17 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28664
28626
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28665
28627
|
}
|
|
28666
28628
|
|
|
28629
|
+
if (changedProperties.has('disabled')) {
|
|
28630
|
+
if (this.disabled) {
|
|
28631
|
+
this.previousTabIndex = this.getAttribute('tabindex');
|
|
28632
|
+
this.setAttribute('tabindex', '-1');
|
|
28633
|
+
} else if (!this.disabled && this.previousTabIndex > -1) {
|
|
28634
|
+
this.tabIndex = this.previousTabIndex;
|
|
28635
|
+
} else {
|
|
28636
|
+
this.removeAttribute('tabindex');
|
|
28637
|
+
}
|
|
28638
|
+
}
|
|
28639
|
+
|
|
28667
28640
|
if (changedProperties.has('calendarFocusDate')) {
|
|
28668
28641
|
this.formattedFocusDate = this.util.toNorthAmericanFormat(this.calendarFocusDate, this.format);
|
|
28669
28642
|
|
|
@@ -28727,8 +28700,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28727
28700
|
this.calendarRenderUtil.updateCentralDate(this, this.formattedValue);
|
|
28728
28701
|
}
|
|
28729
28702
|
|
|
28730
|
-
this.validate();
|
|
28731
28703
|
this.setHasValue();
|
|
28704
|
+
this.validate();
|
|
28732
28705
|
}
|
|
28733
28706
|
|
|
28734
28707
|
if (changedProperties.has('valueEnd') && this.inputList[1]) {
|
|
@@ -28829,6 +28802,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28829
28802
|
this.calendarFocusDate = this.minDate;
|
|
28830
28803
|
}
|
|
28831
28804
|
}
|
|
28805
|
+
|
|
28806
|
+
this.calendar.requestUpdate();
|
|
28832
28807
|
}
|
|
28833
28808
|
|
|
28834
28809
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
@@ -28860,6 +28835,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28860
28835
|
}
|
|
28861
28836
|
}
|
|
28862
28837
|
}
|
|
28838
|
+
|
|
28839
|
+
this.calendar.requestUpdate();
|
|
28863
28840
|
}
|
|
28864
28841
|
|
|
28865
28842
|
if (changedProperties.has('centralDate')) {
|
|
@@ -28880,6 +28857,39 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28880
28857
|
this.calendar.injectSlot(event.target.name, slot.cloneNode(true));
|
|
28881
28858
|
}
|
|
28882
28859
|
|
|
28860
|
+
/**
|
|
28861
|
+
* Handles click events on the datepicker.
|
|
28862
|
+
* @param {PointerEvent} event - The pointer event object.
|
|
28863
|
+
* @private
|
|
28864
|
+
* @returns {void}
|
|
28865
|
+
*/
|
|
28866
|
+
handleClick(event) {
|
|
28867
|
+
|
|
28868
|
+
// Get the initial target of the click event
|
|
28869
|
+
const [initTarget] = event.composedPath();
|
|
28870
|
+
|
|
28871
|
+
// Determine if the current layout requires special handling
|
|
28872
|
+
const layoutRequiresHandling = ['snowflake'].includes(this.layout);
|
|
28873
|
+
|
|
28874
|
+
// Determine if the target is an input element
|
|
28875
|
+
const targetIsInput = initTarget.tagName === 'INPUT';
|
|
28876
|
+
|
|
28877
|
+
if (layoutRequiresHandling && !targetIsInput) {
|
|
28878
|
+
|
|
28879
|
+
// Focus the first input
|
|
28880
|
+
this.inputList[0].focus();
|
|
28881
|
+
}
|
|
28882
|
+
}
|
|
28883
|
+
|
|
28884
|
+
/**
|
|
28885
|
+
* Set up click handling for the datepicker.
|
|
28886
|
+
* @private
|
|
28887
|
+
* @returns {void}
|
|
28888
|
+
*/
|
|
28889
|
+
configureClickHandler() {
|
|
28890
|
+
this.addEventListener('click', this.handleClick);
|
|
28891
|
+
}
|
|
28892
|
+
|
|
28883
28893
|
firstUpdated() {
|
|
28884
28894
|
// Add the tag name as an attribute if it is different than the component name
|
|
28885
28895
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-datepicker');
|
|
@@ -28888,6 +28898,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28888
28898
|
this.configureInput();
|
|
28889
28899
|
this.configureCalendar();
|
|
28890
28900
|
this.configureDatepicker();
|
|
28901
|
+
this.configureClickHandler();
|
|
28891
28902
|
|
|
28892
28903
|
window.addEventListener('resize', () => {
|
|
28893
28904
|
this.handleReadOnly();
|
|
@@ -28898,15 +28909,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28898
28909
|
super.connectedCallback();
|
|
28899
28910
|
|
|
28900
28911
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28901
|
-
|
|
28902
|
-
// setup focus/blur event listeners
|
|
28903
|
-
this.addEventListener('focus', () => {
|
|
28904
|
-
this.setHasFocus();
|
|
28905
|
-
}, true);
|
|
28906
|
-
|
|
28907
|
-
this.addEventListener('blur', () => {
|
|
28908
|
-
this.hasFocus = false;
|
|
28909
|
-
}, true);
|
|
28910
28912
|
}
|
|
28911
28913
|
|
|
28912
28914
|
// layout render methods
|
|
@@ -28951,26 +28953,72 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28951
28953
|
</div>
|
|
28952
28954
|
<div class="accents right ${classMap(accentsClassMap)}">
|
|
28953
28955
|
${this.hasError
|
|
28954
|
-
|
|
28955
|
-
|
|
28956
|
-
|
|
28956
|
+
? this.renderHtmlIconError()
|
|
28957
|
+
: this.renderHtmlActionClear()
|
|
28958
|
+
}
|
|
28959
|
+
</div>
|
|
28960
|
+
</div>
|
|
28961
|
+
`;
|
|
28962
|
+
}
|
|
28963
|
+
|
|
28964
|
+
/**
|
|
28965
|
+
* Renders the snowflake layout for the datepicker.
|
|
28966
|
+
* @private
|
|
28967
|
+
* @returns {import("lit").TemplateResult}
|
|
28968
|
+
*/
|
|
28969
|
+
renderClassicLayout() {
|
|
28970
|
+
const accentsClassMap = {
|
|
28971
|
+
error: this.hasError
|
|
28972
|
+
};
|
|
28973
|
+
|
|
28974
|
+
const inputSectionClassMap = {
|
|
28975
|
+
inputSection: true,
|
|
28976
|
+
|
|
28977
|
+
hasValue: this.hasValue,
|
|
28978
|
+
hasFocus: this.hasFocus,
|
|
28979
|
+
};
|
|
28980
|
+
|
|
28981
|
+
const labelClassMap = {
|
|
28982
|
+
hasValue: this.hasValue,
|
|
28983
|
+
hasFocus: this.hasFocus,
|
|
28984
|
+
};
|
|
28985
|
+
|
|
28986
|
+
return html$1`
|
|
28987
|
+
<div
|
|
28988
|
+
class="wrapper trigger"
|
|
28989
|
+
part="wrapper">
|
|
28990
|
+
<div class="accents left">
|
|
28991
|
+
${this.renderHtmlIconCalendar()}
|
|
28992
|
+
</div>
|
|
28993
|
+
<div class="mainContent">
|
|
28994
|
+
<label class="${classMap(labelClassMap)}" part="mainLabel">
|
|
28995
|
+
<slot name="label"></slot>
|
|
28996
|
+
</label>
|
|
28997
|
+
<div class="${classMap(inputSectionClassMap)}" part="inputSection">
|
|
28998
|
+
${this.renderHtmlInputs()}
|
|
28999
|
+
</div>
|
|
29000
|
+
</div>
|
|
29001
|
+
<div class="accents right ${classMap(accentsClassMap)}">
|
|
29002
|
+
${this.hasError
|
|
29003
|
+
? this.renderHtmlIconError()
|
|
29004
|
+
: this.renderHtmlActionClear()
|
|
29005
|
+
}
|
|
28957
29006
|
</div>
|
|
28958
29007
|
</div>
|
|
28959
29008
|
`;
|
|
28960
29009
|
}
|
|
28961
29010
|
|
|
28962
29011
|
/**
|
|
29012
|
+
* Renders the layout based on the `layout` attribute.
|
|
28963
29013
|
* @private
|
|
29014
|
+
* @returns {import('lit').TemplateResult}
|
|
28964
29015
|
*/
|
|
28965
29016
|
renderLayoutFromAttributes() {
|
|
28966
29017
|
switch (this.layout) {
|
|
28967
29018
|
case 'snowflake':
|
|
28968
29019
|
return this.renderSnowflakeLayout();
|
|
28969
29020
|
default:
|
|
28970
|
-
|
|
28971
|
-
return html$1`
|
|
28972
|
-
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
28973
|
-
`;
|
|
29021
|
+
return this.renderClassicLayout();
|
|
28974
29022
|
}
|
|
28975
29023
|
}
|
|
28976
29024
|
|
|
@@ -28981,7 +29029,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28981
29029
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
28982
29030
|
* @private
|
|
28983
29031
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
28984
|
-
* @
|
|
29032
|
+
* @returns {string}
|
|
28985
29033
|
*/
|
|
28986
29034
|
formatShortDate(date) {
|
|
28987
29035
|
// should render like Apr 21
|
|
@@ -28996,25 +29044,31 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28996
29044
|
/**
|
|
28997
29045
|
* Format and render the provided date value.
|
|
28998
29046
|
* @private
|
|
28999
|
-
* @param dateValue
|
|
29000
|
-
* @
|
|
29047
|
+
* @param {string} dateValue - The date value to format and render.
|
|
29048
|
+
* @returns {import('lit').TemplateResult}
|
|
29001
29049
|
*/
|
|
29002
29050
|
renderDisplayTextDate(dateValue) {
|
|
29003
29051
|
return html$1`
|
|
29004
29052
|
<div>
|
|
29005
29053
|
<div class="displayValueText">
|
|
29006
29054
|
${dateValue && this.util.validDateStr(dateValue, this.format)
|
|
29007
|
-
|
|
29008
|
-
|
|
29009
|
-
|
|
29055
|
+
? this.formatShortDate(dateValue)
|
|
29056
|
+
: undefined
|
|
29057
|
+
}
|
|
29010
29058
|
</div>
|
|
29011
29059
|
</div>
|
|
29012
29060
|
`;
|
|
29013
29061
|
}
|
|
29014
29062
|
|
|
29063
|
+
/**
|
|
29064
|
+
* Renders the HTML inputs for the datepicker.
|
|
29065
|
+
* @private
|
|
29066
|
+
* @returns {import('lit').TemplateResult}
|
|
29067
|
+
*/
|
|
29015
29068
|
renderHtmlInputs() {
|
|
29016
29069
|
const inputClasses = {
|
|
29017
|
-
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
29070
|
+
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus && this.layout !== "classic",
|
|
29071
|
+
"parentBorder": this.layout === "classic"
|
|
29018
29072
|
};
|
|
29019
29073
|
|
|
29020
29074
|
return html$1`
|
|
@@ -29028,14 +29082,12 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29028
29082
|
.min="${this.minDate}"
|
|
29029
29083
|
id="${this.generateRandomString(12)}"
|
|
29030
29084
|
.placeholder="${this.placeholder}"
|
|
29031
|
-
|
|
29032
|
-
|
|
29085
|
+
.size="${this.size}"
|
|
29086
|
+
.shape="${this.shape}"
|
|
29033
29087
|
noValidate
|
|
29034
29088
|
class="dateFrom ${classMap(inputClasses)}"
|
|
29035
29089
|
type="date"
|
|
29036
29090
|
part="input"
|
|
29037
|
-
shape="box"
|
|
29038
|
-
size="xl"
|
|
29039
29091
|
setCustomValidity="${this.setCustomValidity}"
|
|
29040
29092
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
29041
29093
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
@@ -29043,9 +29095,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29043
29095
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
29044
29096
|
inputmode="${ifDefined(this.inputmode)}"
|
|
29045
29097
|
>
|
|
29046
|
-
|
|
29047
|
-
|
|
29048
|
-
|
|
29098
|
+
${this.layout !== "classic"
|
|
29099
|
+
? html$1`
|
|
29100
|
+
<span slot="displayValue">
|
|
29101
|
+
${this.renderDisplayTextDate(this.value)}
|
|
29102
|
+
</span>
|
|
29103
|
+
`
|
|
29104
|
+
: undefined
|
|
29105
|
+
}
|
|
29049
29106
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
29050
29107
|
</${this.inputTag}>
|
|
29051
29108
|
</div>
|
|
@@ -29065,7 +29122,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29065
29122
|
.min="${this.minDate}"
|
|
29066
29123
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
29067
29124
|
id="${this.generateRandomString(12)}"
|
|
29068
|
-
bordered
|
|
29069
29125
|
class="dateTo ${classMap(inputClasses)}"
|
|
29070
29126
|
noValidate
|
|
29071
29127
|
type="date"
|
|
@@ -29076,9 +29132,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29076
29132
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
29077
29133
|
?disabled="${this.disabled}"
|
|
29078
29134
|
part="input">
|
|
29079
|
-
|
|
29080
|
-
|
|
29081
|
-
|
|
29135
|
+
${this.layout !== "classic"
|
|
29136
|
+
? html$1`
|
|
29137
|
+
<span slot="displayValue">
|
|
29138
|
+
${this.renderDisplayTextDate(this.valueEnd)}
|
|
29139
|
+
</span>
|
|
29140
|
+
`
|
|
29141
|
+
: undefined
|
|
29142
|
+
}
|
|
29082
29143
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
29083
29144
|
</${this.inputTag}>
|
|
29084
29145
|
</div>
|
|
@@ -29092,6 +29153,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29092
29153
|
// icons/actions
|
|
29093
29154
|
// ------------------------------------
|
|
29094
29155
|
|
|
29156
|
+
/**
|
|
29157
|
+
* Renders the clear action button.
|
|
29158
|
+
* @private
|
|
29159
|
+
* @returns {import('lit').TemplateResult}
|
|
29160
|
+
*/
|
|
29095
29161
|
renderHtmlActionClear() {
|
|
29096
29162
|
const clearActionClassMap = {
|
|
29097
29163
|
'notification': true,
|
|
@@ -29113,7 +29179,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29113
29179
|
?customColor="${this.onDark}"
|
|
29114
29180
|
category="interface"
|
|
29115
29181
|
name="x-lg"
|
|
29116
|
-
slot="icon"
|
|
29117
29182
|
>
|
|
29118
29183
|
</${this.iconTag}>
|
|
29119
29184
|
</${this.buttonTag}>
|
|
@@ -29121,6 +29186,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29121
29186
|
`;
|
|
29122
29187
|
}
|
|
29123
29188
|
|
|
29189
|
+
/**
|
|
29190
|
+
* Renders the error icon.
|
|
29191
|
+
* @private
|
|
29192
|
+
* @returns {import('lit').TemplateResult}
|
|
29193
|
+
*/
|
|
29124
29194
|
renderHtmlIconError() {
|
|
29125
29195
|
const clearActionClassMap = {
|
|
29126
29196
|
'notification': true,
|
|
@@ -29140,6 +29210,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29140
29210
|
`;
|
|
29141
29211
|
}
|
|
29142
29212
|
|
|
29213
|
+
/**
|
|
29214
|
+
* Renders the calendar icon.
|
|
29215
|
+
* @private
|
|
29216
|
+
* @returns {import('lit').TemplateResult}
|
|
29217
|
+
*/
|
|
29143
29218
|
renderHtmlIconCalendar() {
|
|
29144
29219
|
return html$1`
|
|
29145
29220
|
<${this.iconTag}
|
|
@@ -29155,26 +29230,53 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29155
29230
|
/**
|
|
29156
29231
|
* Returns HTML for the help text and error message.
|
|
29157
29232
|
* @private
|
|
29158
|
-
* @returns {
|
|
29233
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
29159
29234
|
*/
|
|
29160
29235
|
renderHtmlHelpText() {
|
|
29161
29236
|
return html$1`
|
|
29162
29237
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
29163
|
-
|
|
29238
|
+
? html$1`
|
|
29164
29239
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
29165
29240
|
<p id="${this.uniqueId}" part="helpText">
|
|
29166
29241
|
<slot name="helpText"></slot>
|
|
29167
29242
|
</p>
|
|
29168
29243
|
</${this.helpTextTag}>
|
|
29169
29244
|
`
|
|
29170
|
-
|
|
29245
|
+
: html$1`
|
|
29171
29246
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
29172
29247
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
29173
29248
|
${this.errorMessage}
|
|
29174
29249
|
</p>
|
|
29175
29250
|
</${this.helpTextTag}>
|
|
29176
29251
|
`
|
|
29177
|
-
|
|
29252
|
+
}
|
|
29253
|
+
`;
|
|
29254
|
+
}
|
|
29255
|
+
|
|
29256
|
+
/**
|
|
29257
|
+
* Separate method for rendering the calendar.
|
|
29258
|
+
* @private
|
|
29259
|
+
* @returns {import('lit').TemplateResult}
|
|
29260
|
+
*/
|
|
29261
|
+
renderCalendar() {
|
|
29262
|
+
return html$1`
|
|
29263
|
+
<auro-formkit-calendar
|
|
29264
|
+
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29265
|
+
?noRange="${!this.range}"
|
|
29266
|
+
.format="${this.format}"
|
|
29267
|
+
.monthFirst="${this.monthFirst}"
|
|
29268
|
+
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29269
|
+
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29270
|
+
.maxDate="${this.maxDate}"
|
|
29271
|
+
.minDate="${this.minDate}"
|
|
29272
|
+
.monthNames="${this.monthNames}"
|
|
29273
|
+
part="calendar"
|
|
29274
|
+
>
|
|
29275
|
+
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29276
|
+
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29277
|
+
<span slot="bib.fullscreen.fromStr">${this.value || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29278
|
+
${this.range ? html$1`<span slot="mobileDateToStr">${this.valueEnd || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29279
|
+
</auro-formkit-calendar>
|
|
29178
29280
|
`;
|
|
29179
29281
|
}
|
|
29180
29282
|
|
|
@@ -29199,37 +29301,18 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29199
29301
|
.placement="${this.placement}"
|
|
29200
29302
|
.shape="${this.shape}"
|
|
29201
29303
|
.size="${this.size}"
|
|
29202
|
-
bordered
|
|
29203
29304
|
class="${classMap(dropdownElementClassMap)}"
|
|
29204
29305
|
disableEventShow
|
|
29205
29306
|
disableFocusTrap
|
|
29206
|
-
fluid
|
|
29207
29307
|
for="dropdownMenu"
|
|
29208
29308
|
part="dropdown"
|
|
29209
|
-
rounded
|
|
29210
29309
|
>
|
|
29211
29310
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
29212
29311
|
${this.renderLayoutFromAttributes()}
|
|
29213
29312
|
</div>
|
|
29214
29313
|
|
|
29215
29314
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
29216
|
-
|
|
29217
|
-
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29218
|
-
?noRange="${!this.range}"
|
|
29219
|
-
.format="${this.format}"
|
|
29220
|
-
.monthFirst="${this.monthFirst}"
|
|
29221
|
-
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29222
|
-
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29223
|
-
.maxDate="${this.maxDate}"
|
|
29224
|
-
.minDate="${this.minDate}"
|
|
29225
|
-
.monthNames="${this.monthNames}"
|
|
29226
|
-
part="calendar"
|
|
29227
|
-
>
|
|
29228
|
-
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29229
|
-
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29230
|
-
<span slot="bib.fullscreen.fromStr">${this.value || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29231
|
-
${this.range ? html$1`<span slot="mobileDateToStr">${this.valueEnd || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29232
|
-
</auro-formkit-calendar>
|
|
29315
|
+
${this.renderCalendar()}
|
|
29233
29316
|
</div>
|
|
29234
29317
|
<div slot="helpText" part="helpTextSpan">
|
|
29235
29318
|
${this.renderHtmlHelpText()}
|