@aurodesignsystem-dev/auro-formkit 0.0.0-pr792.0 → 0.0.0-pr794.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.min.js +2 -4
- package/components/checkbox/demo/index.min.js +2 -4
- package/components/checkbox/dist/index.js +2 -4
- package/components/checkbox/dist/registered.js +2 -4
- package/components/combobox/demo/api.min.js +29 -21
- package/components/combobox/demo/index.min.js +29 -21
- package/components/combobox/dist/index.js +7 -13
- package/components/combobox/dist/registered.js +7 -13
- package/components/counter/demo/api.min.js +6 -10
- package/components/counter/demo/index.md +4 -4
- package/components/counter/demo/index.min.js +6 -10
- package/components/counter/dist/index.js +6 -10
- package/components/counter/dist/registered.js +6 -10
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +19 -39
- package/components/datepicker/demo/api.min.js +82 -167
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +82 -167
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +12 -50
- package/components/datepicker/dist/index.js +82 -167
- package/components/datepicker/dist/registered.js +82 -167
- package/components/dropdown/demo/api.min.js +2 -4
- package/components/dropdown/demo/index.min.js +2 -4
- package/components/dropdown/dist/index.js +2 -4
- package/components/dropdown/dist/registered.js +2 -4
- package/components/helptext/dist/auro-helptext.d.ts +0 -2
- package/components/helptext/dist/index.js +2 -4
- package/components/helptext/dist/registered.js +2 -4
- package/components/input/demo/api.min.js +2 -4
- package/components/input/demo/index.min.js +2 -4
- package/components/input/dist/index.js +2 -4
- package/components/input/dist/registered.js +2 -4
- package/components/menu/demo/api.html +0 -15
- package/components/menu/demo/api.md +12 -12
- package/components/menu/demo/api.min.js +22 -8
- package/components/menu/demo/index.min.js +22 -8
- package/components/menu/dist/auro-menu.d.ts +2 -2
- package/components/menu/dist/auro-menuoption.d.ts +2 -2
- package/components/menu/dist/index.js +22 -8
- package/components/menu/dist/registered.js +22 -8
- package/components/radio/demo/api.min.js +2 -4
- package/components/radio/demo/index.min.js +2 -4
- package/components/radio/dist/index.js +2 -4
- package/components/radio/dist/registered.js +2 -4
- package/components/select/demo/api.min.js +27 -17
- package/components/select/demo/index.min.js +27 -17
- package/components/select/dist/index.js +5 -9
- package/components/select/dist/registered.js +5 -9
- package/package.json +1 -1
- package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
- /package/components/datepicker/dist/styles/{classic → default}/color-css.d.ts +0 -0
|
@@ -1556,21 +1556,19 @@ class UtilitiesCalendarRender {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
|
-
var styleCss$e = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}
|
|
1559
|
+
var styleCss$e = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout=classic]) [auro-input]::part(helpText){display:none}:host([layout=classic]) [auro-input]::part(wrapper):focus-within:before{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem);--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:not(:first-child)::part(wrapper)::after{position:absolute;left:50%;width:95%;height:1px;background-color:var(--ds-auro-datepicker-range-input-divider-color);content:"";transform:translateX(-50%)}:host([layout=classic]) [auro-input]::part(wrapper) .outerWrapper{position:relative;container:outerwrapper/inline-size}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(input){padding-left:0}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2):before{position:absolute;top:13px;left:calc(var(--ds-size-150, 0.75rem)*-1);display:block;width:1px;height:2rem;content:""}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked])[range] [auro-input]{max-width:50%}@media screen and (max-width: 576px){::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
1560
1560
|
|
|
1561
|
-
var colorCss$d = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}
|
|
1561
|
+
var colorCss$d = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host([onDark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
1562
1562
|
|
|
1563
|
-
var tokensCss$b = i$2`:host
|
|
1563
|
+
var tokensCss$b = i$2`:host{--ds-auro-datepicker-placeholder-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-calendar-nav-btn-border-color: transparent;--ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-calendar-nav-btn-container-color: transparent;--ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-border-color: transparent;--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #f7f7f7);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
1564
1564
|
|
|
1565
1565
|
var shapeSizeCss$2 = i$2`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
1566
1566
|
|
|
1567
|
-
var classicLayoutStyle = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout*=classic]) .accents{display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) [auro-input]::part(wrapper){border-width:0;box-shadow:none}:host([layout*=classic]) [auro-input].dateTo{margin-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) [auro-input].dateTo::part(accent-left){display:none}:host([layout*=classic]) .inputDivider{width:1px;height:2rem}`;
|
|
1568
|
-
|
|
1569
1567
|
var classicLayoutColor = i$2``;
|
|
1570
1568
|
|
|
1571
|
-
var snowflakeStyle = i$2
|
|
1569
|
+
var snowflakeStyle = i$2`.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;max-width:250px;margin:0 auto}.inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}:host([disabled]) .inputSection{display:none}:host([layout*=snowflake]) [auro-input]{flex:1;text-align:center}:host([layout*=snowflake]) [auro-input]::part(label),:host([layout*=snowflake]) [auro-input]::part(accent-left),:host([layout*=snowflake]) [auro-input]::part(accent-right){display:none}:host([layout*=snowflake]) [auro-input]::part(input){padding-bottom:unset;text-align:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);transition:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper){min-height:unset;max-height:unset;box-shadow:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper) .mainContent{padding-bottom:unset}:host([layout*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake]) [auro-input]::part(displayValue){justify-content:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem)}:host([layout*=snowflake]) [auro-dropdown]::part(trigger){width:100%}:host([layout*=snowflake]) .dpTriggerContent{width:100%}:host([layout*=snowflake]) .wrapper{height:60px;width:calc(100% - 48px);display:flex;flex-direction:row;justify-content:space-between;padding-left:24px;padding-right:24px}:host([layout*=snowflake]) label{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);font-weight:450;letter-spacing:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host([layout*=snowflake]) label.hasFocus,:host([layout*=snowflake]) label.hasValue{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-height-xs, 1rem)}:host([layout*=snowflake]) .inputDivider{height:18px;margin:4px 12px;width:2px}`;
|
|
1572
1570
|
|
|
1573
|
-
var snowflakeColors = i$2`:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus)){--ds-auro-dropdown-trigger-border-color: transparent}`;
|
|
1571
|
+
var snowflakeColors = i$2`:host([layout=snowflake])[disabled] .mainContent label ::slotted(*){color:var(--ds-auro-icon-color)}:host([layout=snowflake]) label{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .inputDivider{background-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .error{color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout=snowflake]) [auro-input]::part(input)::placeholder{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) [auro-input]::part(displayValue){background-color:inherit}:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus))::part(wrapper){--ds-auro-dropdown-trigger-border-color: transparent}`;
|
|
1574
1572
|
|
|
1575
1573
|
var styleCss$d = i$2`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
|
|
1576
1574
|
|
|
@@ -12960,7 +12958,7 @@ class AuroBibtemplate extends i {
|
|
|
12960
12958
|
/**
|
|
12961
12959
|
* @private
|
|
12962
12960
|
*/
|
|
12963
|
-
this.buttonTag = versioning.generateTag('auro-formkit-
|
|
12961
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion$2, AuroButton$2);
|
|
12964
12962
|
}
|
|
12965
12963
|
|
|
12966
12964
|
static get styles() {
|
|
@@ -17587,7 +17585,7 @@ var styleSnowflakeCss = i$2`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
17587
17585
|
|
|
17588
17586
|
var colorCss$5 = i$2`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
17589
17587
|
|
|
17590
|
-
var styleCss$6 = i$2
|
|
17588
|
+
var styleCss$6 = i$2`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
17591
17589
|
|
|
17592
17590
|
var tokensCss$6 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
17593
17591
|
|
|
@@ -17667,8 +17665,6 @@ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
|
17667
17665
|
|
|
17668
17666
|
/**
|
|
17669
17667
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
17670
|
-
*
|
|
17671
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
17672
17668
|
*/
|
|
17673
17669
|
let AuroHelpText$2 = class AuroHelpText extends i {
|
|
17674
17670
|
|
|
@@ -17784,7 +17780,7 @@ let AuroHelpText$2 = class AuroHelpText extends i {
|
|
|
17784
17780
|
// function that renders the HTML and CSS into the scope of the component
|
|
17785
17781
|
render() {
|
|
17786
17782
|
return x`
|
|
17787
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
17783
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
17788
17784
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
17789
17785
|
</div>
|
|
17790
17786
|
`;
|
|
@@ -26348,7 +26344,7 @@ var buttonVersion = '11.0.0';
|
|
|
26348
26344
|
|
|
26349
26345
|
var colorCss$4 = i$2`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
26350
26346
|
|
|
26351
|
-
var styleCss$5 = i$2
|
|
26347
|
+
var styleCss$5 = i$2`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
26352
26348
|
|
|
26353
26349
|
var tokensCss$5 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26354
26350
|
|
|
@@ -26428,8 +26424,6 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
26428
26424
|
|
|
26429
26425
|
/**
|
|
26430
26426
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
26431
|
-
*
|
|
26432
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
26433
26427
|
*/
|
|
26434
26428
|
let AuroHelpText$1 = class AuroHelpText extends i {
|
|
26435
26429
|
|
|
@@ -26545,7 +26539,7 @@ let AuroHelpText$1 = class AuroHelpText extends i {
|
|
|
26545
26539
|
// function that renders the HTML and CSS into the scope of the component
|
|
26546
26540
|
render() {
|
|
26547
26541
|
return x`
|
|
26548
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
26542
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
26549
26543
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
26550
26544
|
</div>
|
|
26551
26545
|
`;
|
|
@@ -27063,7 +27057,7 @@ var inputVersion = '4.2.0';
|
|
|
27063
27057
|
|
|
27064
27058
|
var colorCss$1 = i$2`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
27065
27059
|
|
|
27066
|
-
var styleCss$1 = i$2
|
|
27060
|
+
var styleCss$1 = i$2`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
27067
27061
|
|
|
27068
27062
|
var tokensCss$1 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
27069
27063
|
|
|
@@ -27143,8 +27137,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
27143
27137
|
|
|
27144
27138
|
/**
|
|
27145
27139
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
27146
|
-
*
|
|
27147
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
27148
27140
|
*/
|
|
27149
27141
|
class AuroHelpText extends i {
|
|
27150
27142
|
|
|
@@ -27260,7 +27252,7 @@ class AuroHelpText extends i {
|
|
|
27260
27252
|
// function that renders the HTML and CSS into the scope of the component
|
|
27261
27253
|
render() {
|
|
27262
27254
|
return x`
|
|
27263
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
27255
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
27264
27256
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
27265
27257
|
</div>
|
|
27266
27258
|
`;
|
|
@@ -28336,7 +28328,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28336
28328
|
shapeSizeCss$2,
|
|
28337
28329
|
|
|
28338
28330
|
// layouts
|
|
28339
|
-
classicLayoutStyle,
|
|
28340
28331
|
classicLayoutColor,
|
|
28341
28332
|
snowflakeStyle,
|
|
28342
28333
|
snowflakeColors
|
|
@@ -28404,7 +28395,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28404
28395
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
28405
28396
|
* @returns {void}
|
|
28406
28397
|
*/
|
|
28407
|
-
focus(focusInput
|
|
28398
|
+
focus(focusInput) {
|
|
28399
|
+
if (this.disabled) {
|
|
28400
|
+
return;
|
|
28401
|
+
}
|
|
28402
|
+
|
|
28408
28403
|
this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
|
|
28409
28404
|
}
|
|
28410
28405
|
|
|
@@ -28607,11 +28602,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28607
28602
|
configureDatepicker() {
|
|
28608
28603
|
this.addEventListener('focusin', () => {
|
|
28609
28604
|
this.touched = true;
|
|
28610
|
-
this.hasFocus = true;
|
|
28611
28605
|
});
|
|
28612
28606
|
|
|
28613
28607
|
this.addEventListener('focusout', (evt) => {
|
|
28614
|
-
this.hasFocus = false;
|
|
28615
28608
|
if (!this.noValidate && !evt.detail.expanded && this.touched) {
|
|
28616
28609
|
if (!this.contains(document.activeElement)) {
|
|
28617
28610
|
this.validation.validate(this.inputList[0]);
|
|
@@ -28677,6 +28670,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28677
28670
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28678
28671
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28679
28672
|
|
|
28673
|
+
console.log(newDate);
|
|
28674
|
+
console.log(this.util.validDateStr(newDate, this.format));
|
|
28675
|
+
|
|
28680
28676
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28681
28677
|
if (this.inputList.length > 1) {
|
|
28682
28678
|
if (!this.value || !this.util.validDateStr(this.value, this.format)) {
|
|
@@ -28715,7 +28711,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28715
28711
|
handleKeydownReset(event) {
|
|
28716
28712
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
28717
28713
|
this.resetValues();
|
|
28718
|
-
this.
|
|
28714
|
+
this.setHasFocus();
|
|
28719
28715
|
}
|
|
28720
28716
|
}
|
|
28721
28717
|
|
|
@@ -28753,10 +28749,22 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28753
28749
|
this.validation.validate(this, force);
|
|
28754
28750
|
}
|
|
28755
28751
|
|
|
28756
|
-
|
|
28757
|
-
|
|
28758
|
-
|
|
28759
|
-
|
|
28752
|
+
setHasFocus() {
|
|
28753
|
+
if (this.disabled) {
|
|
28754
|
+
return;
|
|
28755
|
+
}
|
|
28756
|
+
|
|
28757
|
+
this.hasFocus = true;
|
|
28758
|
+
this.dropdown.show();
|
|
28759
|
+
|
|
28760
|
+
// shadowroot active element is null if we focus the datepicker itself
|
|
28761
|
+
if (this.shadowRoot.activeElement === null) {
|
|
28762
|
+
// If the shadowRoot.activeElement is null, we can assume that the datepicker itself has focus
|
|
28763
|
+
// and we should focus the first input in the inputList
|
|
28764
|
+
this.inputList[0].focus();
|
|
28765
|
+
}
|
|
28766
|
+
}
|
|
28767
|
+
|
|
28760
28768
|
setHasValue() {
|
|
28761
28769
|
if (!this.range) {
|
|
28762
28770
|
this.hasValue = this.value && this.value.length > 0;
|
|
@@ -28776,17 +28784,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28776
28784
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28777
28785
|
}
|
|
28778
28786
|
|
|
28779
|
-
if (changedProperties.has('disabled')) {
|
|
28780
|
-
if (this.disabled) {
|
|
28781
|
-
this.previousTabIndex = this.getAttribute('tabindex');
|
|
28782
|
-
this.setAttribute('tabindex', '-1');
|
|
28783
|
-
} else if (!this.disabled && this.previousTabIndex > -1) {
|
|
28784
|
-
this.tabIndex = this.previousTabIndex;
|
|
28785
|
-
} else {
|
|
28786
|
-
this.removeAttribute('tabindex');
|
|
28787
|
-
}
|
|
28788
|
-
}
|
|
28789
|
-
|
|
28790
28787
|
if (changedProperties.has('calendarFocusDate')) {
|
|
28791
28788
|
this.formattedFocusDate = this.util.toNorthAmericanFormat(this.calendarFocusDate, this.format);
|
|
28792
28789
|
|
|
@@ -28952,8 +28949,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28952
28949
|
this.calendarFocusDate = this.minDate;
|
|
28953
28950
|
}
|
|
28954
28951
|
}
|
|
28955
|
-
|
|
28956
|
-
this.calendar.requestUpdate();
|
|
28957
28952
|
}
|
|
28958
28953
|
|
|
28959
28954
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
@@ -28985,8 +28980,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28985
28980
|
}
|
|
28986
28981
|
}
|
|
28987
28982
|
}
|
|
28988
|
-
|
|
28989
|
-
this.calendar.requestUpdate();
|
|
28990
28983
|
}
|
|
28991
28984
|
|
|
28992
28985
|
if (changedProperties.has('centralDate')) {
|
|
@@ -29028,7 +29021,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29028
29021
|
|
|
29029
29022
|
// setup focus/blur event listeners
|
|
29030
29023
|
this.addEventListener('focus', () => {
|
|
29031
|
-
this.
|
|
29024
|
+
this.setHasFocus();
|
|
29025
|
+
}, true);
|
|
29026
|
+
|
|
29027
|
+
this.addEventListener('blur', () => {
|
|
29028
|
+
this.hasFocus = false;
|
|
29032
29029
|
}, true);
|
|
29033
29030
|
}
|
|
29034
29031
|
|
|
@@ -29083,63 +29080,17 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29083
29080
|
}
|
|
29084
29081
|
|
|
29085
29082
|
/**
|
|
29086
|
-
* Renders the snowflake layout for the datepicker.
|
|
29087
|
-
* @private
|
|
29088
|
-
* @returns {import("lit").TemplateResult}
|
|
29089
|
-
*/
|
|
29090
|
-
renderClassicLayout() {
|
|
29091
|
-
const accentsClassMap = {
|
|
29092
|
-
error: this.hasError
|
|
29093
|
-
};
|
|
29094
|
-
|
|
29095
|
-
const inputSectionClassMap = {
|
|
29096
|
-
inputSection: true,
|
|
29097
|
-
|
|
29098
|
-
hasValue: this.hasValue,
|
|
29099
|
-
hasFocus: this.hasFocus,
|
|
29100
|
-
};
|
|
29101
|
-
|
|
29102
|
-
const labelClassMap = {
|
|
29103
|
-
hasValue: this.hasValue,
|
|
29104
|
-
hasFocus: this.hasFocus,
|
|
29105
|
-
};
|
|
29106
|
-
|
|
29107
|
-
return u$3`
|
|
29108
|
-
<div
|
|
29109
|
-
class="wrapper trigger"
|
|
29110
|
-
part="wrapper">
|
|
29111
|
-
<div class="accents left">
|
|
29112
|
-
${this.renderHtmlIconCalendar()}
|
|
29113
|
-
</div>
|
|
29114
|
-
<div class="mainContent">
|
|
29115
|
-
<label class="${e$2(labelClassMap)}" part="mainLabel">
|
|
29116
|
-
<slot name="label"></slot>
|
|
29117
|
-
</label>
|
|
29118
|
-
<div class="${e$2(inputSectionClassMap)}" part="inputSection">
|
|
29119
|
-
${this.renderHtmlInputs()}
|
|
29120
|
-
</div>
|
|
29121
|
-
</div>
|
|
29122
|
-
<div class="accents right ${e$2(accentsClassMap)}">
|
|
29123
|
-
${this.hasError
|
|
29124
|
-
? this.renderHtmlIconError()
|
|
29125
|
-
: this.renderHtmlActionClear()
|
|
29126
|
-
}
|
|
29127
|
-
</div>
|
|
29128
|
-
</div>
|
|
29129
|
-
`;
|
|
29130
|
-
}
|
|
29131
|
-
|
|
29132
|
-
/**
|
|
29133
|
-
* Renders the layout based on the `layout` attribute.
|
|
29134
29083
|
* @private
|
|
29135
|
-
* @returns {import('lit').TemplateResult}
|
|
29136
29084
|
*/
|
|
29137
29085
|
renderLayoutFromAttributes() {
|
|
29138
29086
|
switch (this.layout) {
|
|
29139
29087
|
case 'snowflake':
|
|
29140
29088
|
return this.renderSnowflakeLayout();
|
|
29141
29089
|
default:
|
|
29142
|
-
return
|
|
29090
|
+
// TODO: remove when all base layouts are implemented and instead return classic
|
|
29091
|
+
return u$3`
|
|
29092
|
+
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
29093
|
+
`;
|
|
29143
29094
|
}
|
|
29144
29095
|
}
|
|
29145
29096
|
|
|
@@ -29150,7 +29101,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29150
29101
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
29151
29102
|
* @private
|
|
29152
29103
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
29153
|
-
* @
|
|
29104
|
+
* @return {string}
|
|
29154
29105
|
*/
|
|
29155
29106
|
formatShortDate(date) {
|
|
29156
29107
|
// should render like Apr 21
|
|
@@ -29165,8 +29116,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29165
29116
|
/**
|
|
29166
29117
|
* Format and render the provided date value.
|
|
29167
29118
|
* @private
|
|
29168
|
-
* @param
|
|
29169
|
-
* @
|
|
29119
|
+
* @param dateValue
|
|
29120
|
+
* @return {TemplateResult}
|
|
29170
29121
|
*/
|
|
29171
29122
|
renderDisplayTextDate(dateValue) {
|
|
29172
29123
|
return u$3`
|
|
@@ -29181,15 +29132,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29181
29132
|
`;
|
|
29182
29133
|
}
|
|
29183
29134
|
|
|
29184
|
-
/**
|
|
29185
|
-
* Renders the HTML inputs for the datepicker.
|
|
29186
|
-
* @private
|
|
29187
|
-
* @returns {import('lit').TemplateResult}
|
|
29188
|
-
*/
|
|
29189
29135
|
renderHtmlInputs() {
|
|
29190
29136
|
const inputClasses = {
|
|
29191
|
-
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
29192
|
-
"parentBorder": this.layout === "classic"
|
|
29137
|
+
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
29193
29138
|
};
|
|
29194
29139
|
|
|
29195
29140
|
return u$3`
|
|
@@ -29203,12 +29148,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29203
29148
|
.min="${this.minDate}"
|
|
29204
29149
|
id="${this.generateRandomString(12)}"
|
|
29205
29150
|
.placeholder="${this.placeholder}"
|
|
29206
|
-
|
|
29207
|
-
|
|
29151
|
+
simple
|
|
29152
|
+
bordered
|
|
29208
29153
|
noValidate
|
|
29209
29154
|
class="dateFrom ${e$2(inputClasses)}"
|
|
29210
29155
|
type="date"
|
|
29211
29156
|
part="input"
|
|
29157
|
+
shape="box"
|
|
29158
|
+
size="xl"
|
|
29212
29159
|
setCustomValidity="${this.setCustomValidity}"
|
|
29213
29160
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
29214
29161
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
@@ -29216,14 +29163,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29216
29163
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
29217
29164
|
inputmode="${o(this.inputmode)}"
|
|
29218
29165
|
>
|
|
29219
|
-
|
|
29220
|
-
|
|
29221
|
-
|
|
29222
|
-
${this.renderDisplayTextDate(this.value)}
|
|
29223
|
-
</span>
|
|
29224
|
-
`
|
|
29225
|
-
: undefined
|
|
29226
|
-
}
|
|
29166
|
+
<span slot="displayValue">
|
|
29167
|
+
${this.renderDisplayTextDate(this.value)}
|
|
29168
|
+
</span>
|
|
29227
29169
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
29228
29170
|
</${this.inputTag}>
|
|
29229
29171
|
</div>
|
|
@@ -29243,6 +29185,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29243
29185
|
.min="${this.minDate}"
|
|
29244
29186
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
29245
29187
|
id="${this.generateRandomString(12)}"
|
|
29188
|
+
bordered
|
|
29246
29189
|
class="dateTo ${e$2(inputClasses)}"
|
|
29247
29190
|
noValidate
|
|
29248
29191
|
type="date"
|
|
@@ -29253,14 +29196,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29253
29196
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
29254
29197
|
?disabled="${this.disabled}"
|
|
29255
29198
|
part="input">
|
|
29256
|
-
|
|
29257
|
-
|
|
29258
|
-
|
|
29259
|
-
${this.renderDisplayTextDate(this.valueEnd)}
|
|
29260
|
-
</span>
|
|
29261
|
-
`
|
|
29262
|
-
: undefined
|
|
29263
|
-
}
|
|
29199
|
+
<span slot="displayValue">
|
|
29200
|
+
${this.renderDisplayTextDate(this.valueEnd)}
|
|
29201
|
+
</span>
|
|
29264
29202
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
29265
29203
|
</${this.inputTag}>
|
|
29266
29204
|
</div>
|
|
@@ -29274,11 +29212,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29274
29212
|
// icons/actions
|
|
29275
29213
|
// ------------------------------------
|
|
29276
29214
|
|
|
29277
|
-
/**
|
|
29278
|
-
* Renders the clear action button.
|
|
29279
|
-
* @private
|
|
29280
|
-
* @returns {import('lit').TemplateResult}
|
|
29281
|
-
*/
|
|
29282
29215
|
renderHtmlActionClear() {
|
|
29283
29216
|
const clearActionClassMap = {
|
|
29284
29217
|
'notification': true,
|
|
@@ -29308,11 +29241,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29308
29241
|
`;
|
|
29309
29242
|
}
|
|
29310
29243
|
|
|
29311
|
-
/**
|
|
29312
|
-
* Renders the error icon.
|
|
29313
|
-
* @private
|
|
29314
|
-
* @returns {import('lit').TemplateResult}
|
|
29315
|
-
*/
|
|
29316
29244
|
renderHtmlIconError() {
|
|
29317
29245
|
const clearActionClassMap = {
|
|
29318
29246
|
'notification': true,
|
|
@@ -29332,11 +29260,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29332
29260
|
`;
|
|
29333
29261
|
}
|
|
29334
29262
|
|
|
29335
|
-
/**
|
|
29336
|
-
* Renders the calendar icon.
|
|
29337
|
-
* @private
|
|
29338
|
-
* @returns {import('lit').TemplateResult}
|
|
29339
|
-
*/
|
|
29340
29263
|
renderHtmlIconCalendar() {
|
|
29341
29264
|
return u$3`
|
|
29342
29265
|
<${this.iconTag}
|
|
@@ -29352,7 +29275,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29352
29275
|
/**
|
|
29353
29276
|
* Returns HTML for the help text and error message.
|
|
29354
29277
|
* @private
|
|
29355
|
-
* @returns {
|
|
29278
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
29356
29279
|
*/
|
|
29357
29280
|
renderHtmlHelpText() {
|
|
29358
29281
|
return u$3`
|
|
@@ -29375,33 +29298,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29375
29298
|
`;
|
|
29376
29299
|
}
|
|
29377
29300
|
|
|
29378
|
-
/**
|
|
29379
|
-
* Separate method for rendering the calendar.
|
|
29380
|
-
* @private
|
|
29381
|
-
* @returns {import('lit').TemplateResult}
|
|
29382
|
-
*/
|
|
29383
|
-
renderCalendar() {
|
|
29384
|
-
return u$3`
|
|
29385
|
-
<auro-formkit-calendar
|
|
29386
|
-
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29387
|
-
?noRange="${!this.range}"
|
|
29388
|
-
.format="${this.format}"
|
|
29389
|
-
.monthFirst="${this.monthFirst}"
|
|
29390
|
-
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29391
|
-
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29392
|
-
.maxDate="${this.maxDate}"
|
|
29393
|
-
.minDate="${this.minDate}"
|
|
29394
|
-
.monthNames="${this.monthNames}"
|
|
29395
|
-
part="calendar"
|
|
29396
|
-
>
|
|
29397
|
-
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29398
|
-
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29399
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29400
|
-
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29401
|
-
</auro-formkit-calendar>
|
|
29402
|
-
`;
|
|
29403
|
-
}
|
|
29404
|
-
|
|
29405
29301
|
// function that renders the HTML and CSS into the scope of the component
|
|
29406
29302
|
render() {
|
|
29407
29303
|
const dropdownElementClassMap = {
|
|
@@ -29423,18 +29319,37 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29423
29319
|
.placement="${this.placement}"
|
|
29424
29320
|
.shape="${this.shape}"
|
|
29425
29321
|
.size="${this.size}"
|
|
29322
|
+
bordered
|
|
29426
29323
|
class="${e$2(dropdownElementClassMap)}"
|
|
29427
29324
|
disableEventShow
|
|
29428
29325
|
disableFocusTrap
|
|
29326
|
+
fluid
|
|
29429
29327
|
for="dropdownMenu"
|
|
29430
29328
|
part="dropdown"
|
|
29329
|
+
rounded
|
|
29431
29330
|
>
|
|
29432
29331
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
29433
29332
|
${this.renderLayoutFromAttributes()}
|
|
29434
29333
|
</div>
|
|
29435
29334
|
|
|
29436
29335
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
29437
|
-
|
|
29336
|
+
<auro-formkit-calendar
|
|
29337
|
+
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29338
|
+
?noRange="${!this.range}"
|
|
29339
|
+
.format="${this.format}"
|
|
29340
|
+
.monthFirst="${this.monthFirst}"
|
|
29341
|
+
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29342
|
+
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29343
|
+
.maxDate="${this.maxDate}"
|
|
29344
|
+
.minDate="${this.minDate}"
|
|
29345
|
+
.monthNames="${this.monthNames}"
|
|
29346
|
+
part="calendar"
|
|
29347
|
+
>
|
|
29348
|
+
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29349
|
+
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29350
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29351
|
+
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29352
|
+
</auro-formkit-calendar>
|
|
29438
29353
|
</div>
|
|
29439
29354
|
<div slot="helpText" part="helpTextSpan">
|
|
29440
29355
|
${this.renderHtmlHelpText()}
|