@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
|
@@ -1297,21 +1297,19 @@ class UtilitiesCalendarRender {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
|
-
var styleCss$e = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}
|
|
1300
|
+
var styleCss$e = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}: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}}`;
|
|
1301
1301
|
|
|
1302
|
-
var colorCss$d = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}
|
|
1302
|
+
var colorCss$d = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host([onDark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
1303
1303
|
|
|
1304
|
-
var tokensCss$b = i$2`:host
|
|
1304
|
+
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)}`;
|
|
1305
1305
|
|
|
1306
1306
|
var shapeSizeCss$2 = i$2`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
1307
1307
|
|
|
1308
|
-
var classicLayoutStyle = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout*=classic]) .accents{display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) [auro-input]::part(wrapper){border-width:0;box-shadow:none}:host([layout*=classic]) [auro-input].dateTo{margin-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) [auro-input].dateTo::part(accent-left){display:none}:host([layout*=classic]) .inputDivider{width:1px;height:2rem}`;
|
|
1309
|
-
|
|
1310
1308
|
var classicLayoutColor = i$2``;
|
|
1311
1309
|
|
|
1312
|
-
var snowflakeStyle = i$2
|
|
1310
|
+
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}`;
|
|
1313
1311
|
|
|
1314
|
-
var snowflakeColors = i$2`:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus)){--ds-auro-dropdown-trigger-border-color: transparent}`;
|
|
1312
|
+
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}`;
|
|
1315
1313
|
|
|
1316
1314
|
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:""}`;
|
|
1317
1315
|
|
|
@@ -12701,7 +12699,7 @@ class AuroBibtemplate extends i {
|
|
|
12701
12699
|
/**
|
|
12702
12700
|
* @private
|
|
12703
12701
|
*/
|
|
12704
|
-
this.buttonTag = versioning.generateTag('auro-formkit-
|
|
12702
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion$2, AuroButton$2);
|
|
12705
12703
|
}
|
|
12706
12704
|
|
|
12707
12705
|
static get styles() {
|
|
@@ -17328,7 +17326,7 @@ var styleSnowflakeCss = i$2`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
17328
17326
|
|
|
17329
17327
|
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)}`;
|
|
17330
17328
|
|
|
17331
|
-
var styleCss$6 = i$2
|
|
17329
|
+
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}`;
|
|
17332
17330
|
|
|
17333
17331
|
var tokensCss$6 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
17334
17332
|
|
|
@@ -17408,8 +17406,6 @@ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
|
17408
17406
|
|
|
17409
17407
|
/**
|
|
17410
17408
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
17411
|
-
*
|
|
17412
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
17413
17409
|
*/
|
|
17414
17410
|
let AuroHelpText$2 = class AuroHelpText extends i {
|
|
17415
17411
|
|
|
@@ -17525,7 +17521,7 @@ let AuroHelpText$2 = class AuroHelpText extends i {
|
|
|
17525
17521
|
// function that renders the HTML and CSS into the scope of the component
|
|
17526
17522
|
render() {
|
|
17527
17523
|
return x`
|
|
17528
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
17524
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
17529
17525
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
17530
17526
|
</div>
|
|
17531
17527
|
`;
|
|
@@ -26089,7 +26085,7 @@ var buttonVersion = '11.0.0';
|
|
|
26089
26085
|
|
|
26090
26086
|
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)}`;
|
|
26091
26087
|
|
|
26092
|
-
var styleCss$5 = i$2
|
|
26088
|
+
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}`;
|
|
26093
26089
|
|
|
26094
26090
|
var tokensCss$5 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26095
26091
|
|
|
@@ -26169,8 +26165,6 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
26169
26165
|
|
|
26170
26166
|
/**
|
|
26171
26167
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
26172
|
-
*
|
|
26173
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
26174
26168
|
*/
|
|
26175
26169
|
let AuroHelpText$1 = class AuroHelpText extends i {
|
|
26176
26170
|
|
|
@@ -26286,7 +26280,7 @@ let AuroHelpText$1 = class AuroHelpText extends i {
|
|
|
26286
26280
|
// function that renders the HTML and CSS into the scope of the component
|
|
26287
26281
|
render() {
|
|
26288
26282
|
return x`
|
|
26289
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
26283
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
26290
26284
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
26291
26285
|
</div>
|
|
26292
26286
|
`;
|
|
@@ -26804,7 +26798,7 @@ var inputVersion = '4.2.0';
|
|
|
26804
26798
|
|
|
26805
26799
|
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)}`;
|
|
26806
26800
|
|
|
26807
|
-
var styleCss$1 = i$2
|
|
26801
|
+
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}`;
|
|
26808
26802
|
|
|
26809
26803
|
var tokensCss$1 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26810
26804
|
|
|
@@ -26884,8 +26878,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
26884
26878
|
|
|
26885
26879
|
/**
|
|
26886
26880
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
26887
|
-
*
|
|
26888
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
26889
26881
|
*/
|
|
26890
26882
|
class AuroHelpText extends i {
|
|
26891
26883
|
|
|
@@ -27001,7 +26993,7 @@ class AuroHelpText extends i {
|
|
|
27001
26993
|
// function that renders the HTML and CSS into the scope of the component
|
|
27002
26994
|
render() {
|
|
27003
26995
|
return x`
|
|
27004
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
26996
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
27005
26997
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
27006
26998
|
</div>
|
|
27007
26999
|
`;
|
|
@@ -28077,7 +28069,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28077
28069
|
shapeSizeCss$2,
|
|
28078
28070
|
|
|
28079
28071
|
// layouts
|
|
28080
|
-
classicLayoutStyle,
|
|
28081
28072
|
classicLayoutColor,
|
|
28082
28073
|
snowflakeStyle,
|
|
28083
28074
|
snowflakeColors
|
|
@@ -28145,7 +28136,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28145
28136
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
28146
28137
|
* @returns {void}
|
|
28147
28138
|
*/
|
|
28148
|
-
focus(focusInput
|
|
28139
|
+
focus(focusInput) {
|
|
28140
|
+
if (this.disabled) {
|
|
28141
|
+
return;
|
|
28142
|
+
}
|
|
28143
|
+
|
|
28149
28144
|
this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
|
|
28150
28145
|
}
|
|
28151
28146
|
|
|
@@ -28348,11 +28343,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28348
28343
|
configureDatepicker() {
|
|
28349
28344
|
this.addEventListener('focusin', () => {
|
|
28350
28345
|
this.touched = true;
|
|
28351
|
-
this.hasFocus = true;
|
|
28352
28346
|
});
|
|
28353
28347
|
|
|
28354
28348
|
this.addEventListener('focusout', (evt) => {
|
|
28355
|
-
this.hasFocus = false;
|
|
28356
28349
|
if (!this.noValidate && !evt.detail.expanded && this.touched) {
|
|
28357
28350
|
if (!this.contains(document.activeElement)) {
|
|
28358
28351
|
this.validation.validate(this.inputList[0]);
|
|
@@ -28418,6 +28411,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28418
28411
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28419
28412
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28420
28413
|
|
|
28414
|
+
console.log(newDate);
|
|
28415
|
+
console.log(this.util.validDateStr(newDate, this.format));
|
|
28416
|
+
|
|
28421
28417
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28422
28418
|
if (this.inputList.length > 1) {
|
|
28423
28419
|
if (!this.value || !this.util.validDateStr(this.value, this.format)) {
|
|
@@ -28456,7 +28452,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28456
28452
|
handleKeydownReset(event) {
|
|
28457
28453
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
28458
28454
|
this.resetValues();
|
|
28459
|
-
this.
|
|
28455
|
+
this.setHasFocus();
|
|
28460
28456
|
}
|
|
28461
28457
|
}
|
|
28462
28458
|
|
|
@@ -28494,10 +28490,22 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28494
28490
|
this.validation.validate(this, force);
|
|
28495
28491
|
}
|
|
28496
28492
|
|
|
28497
|
-
|
|
28498
|
-
|
|
28499
|
-
|
|
28500
|
-
|
|
28493
|
+
setHasFocus() {
|
|
28494
|
+
if (this.disabled) {
|
|
28495
|
+
return;
|
|
28496
|
+
}
|
|
28497
|
+
|
|
28498
|
+
this.hasFocus = true;
|
|
28499
|
+
this.dropdown.show();
|
|
28500
|
+
|
|
28501
|
+
// shadowroot active element is null if we focus the datepicker itself
|
|
28502
|
+
if (this.shadowRoot.activeElement === null) {
|
|
28503
|
+
// If the shadowRoot.activeElement is null, we can assume that the datepicker itself has focus
|
|
28504
|
+
// and we should focus the first input in the inputList
|
|
28505
|
+
this.inputList[0].focus();
|
|
28506
|
+
}
|
|
28507
|
+
}
|
|
28508
|
+
|
|
28501
28509
|
setHasValue() {
|
|
28502
28510
|
if (!this.range) {
|
|
28503
28511
|
this.hasValue = this.value && this.value.length > 0;
|
|
@@ -28517,17 +28525,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28517
28525
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28518
28526
|
}
|
|
28519
28527
|
|
|
28520
|
-
if (changedProperties.has('disabled')) {
|
|
28521
|
-
if (this.disabled) {
|
|
28522
|
-
this.previousTabIndex = this.getAttribute('tabindex');
|
|
28523
|
-
this.setAttribute('tabindex', '-1');
|
|
28524
|
-
} else if (!this.disabled && this.previousTabIndex > -1) {
|
|
28525
|
-
this.tabIndex = this.previousTabIndex;
|
|
28526
|
-
} else {
|
|
28527
|
-
this.removeAttribute('tabindex');
|
|
28528
|
-
}
|
|
28529
|
-
}
|
|
28530
|
-
|
|
28531
28528
|
if (changedProperties.has('calendarFocusDate')) {
|
|
28532
28529
|
this.formattedFocusDate = this.util.toNorthAmericanFormat(this.calendarFocusDate, this.format);
|
|
28533
28530
|
|
|
@@ -28693,8 +28690,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28693
28690
|
this.calendarFocusDate = this.minDate;
|
|
28694
28691
|
}
|
|
28695
28692
|
}
|
|
28696
|
-
|
|
28697
|
-
this.calendar.requestUpdate();
|
|
28698
28693
|
}
|
|
28699
28694
|
|
|
28700
28695
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
@@ -28726,8 +28721,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28726
28721
|
}
|
|
28727
28722
|
}
|
|
28728
28723
|
}
|
|
28729
|
-
|
|
28730
|
-
this.calendar.requestUpdate();
|
|
28731
28724
|
}
|
|
28732
28725
|
|
|
28733
28726
|
if (changedProperties.has('centralDate')) {
|
|
@@ -28769,7 +28762,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28769
28762
|
|
|
28770
28763
|
// setup focus/blur event listeners
|
|
28771
28764
|
this.addEventListener('focus', () => {
|
|
28772
|
-
this.
|
|
28765
|
+
this.setHasFocus();
|
|
28766
|
+
}, true);
|
|
28767
|
+
|
|
28768
|
+
this.addEventListener('blur', () => {
|
|
28769
|
+
this.hasFocus = false;
|
|
28773
28770
|
}, true);
|
|
28774
28771
|
}
|
|
28775
28772
|
|
|
@@ -28824,63 +28821,17 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28824
28821
|
}
|
|
28825
28822
|
|
|
28826
28823
|
/**
|
|
28827
|
-
* Renders the snowflake layout for the datepicker.
|
|
28828
|
-
* @private
|
|
28829
|
-
* @returns {import("lit").TemplateResult}
|
|
28830
|
-
*/
|
|
28831
|
-
renderClassicLayout() {
|
|
28832
|
-
const accentsClassMap = {
|
|
28833
|
-
error: this.hasError
|
|
28834
|
-
};
|
|
28835
|
-
|
|
28836
|
-
const inputSectionClassMap = {
|
|
28837
|
-
inputSection: true,
|
|
28838
|
-
|
|
28839
|
-
hasValue: this.hasValue,
|
|
28840
|
-
hasFocus: this.hasFocus,
|
|
28841
|
-
};
|
|
28842
|
-
|
|
28843
|
-
const labelClassMap = {
|
|
28844
|
-
hasValue: this.hasValue,
|
|
28845
|
-
hasFocus: this.hasFocus,
|
|
28846
|
-
};
|
|
28847
|
-
|
|
28848
|
-
return u$3`
|
|
28849
|
-
<div
|
|
28850
|
-
class="wrapper trigger"
|
|
28851
|
-
part="wrapper">
|
|
28852
|
-
<div class="accents left">
|
|
28853
|
-
${this.renderHtmlIconCalendar()}
|
|
28854
|
-
</div>
|
|
28855
|
-
<div class="mainContent">
|
|
28856
|
-
<label class="${e$2(labelClassMap)}" part="mainLabel">
|
|
28857
|
-
<slot name="label"></slot>
|
|
28858
|
-
</label>
|
|
28859
|
-
<div class="${e$2(inputSectionClassMap)}" part="inputSection">
|
|
28860
|
-
${this.renderHtmlInputs()}
|
|
28861
|
-
</div>
|
|
28862
|
-
</div>
|
|
28863
|
-
<div class="accents right ${e$2(accentsClassMap)}">
|
|
28864
|
-
${this.hasError
|
|
28865
|
-
? this.renderHtmlIconError()
|
|
28866
|
-
: this.renderHtmlActionClear()
|
|
28867
|
-
}
|
|
28868
|
-
</div>
|
|
28869
|
-
</div>
|
|
28870
|
-
`;
|
|
28871
|
-
}
|
|
28872
|
-
|
|
28873
|
-
/**
|
|
28874
|
-
* Renders the layout based on the `layout` attribute.
|
|
28875
28824
|
* @private
|
|
28876
|
-
* @returns {import('lit').TemplateResult}
|
|
28877
28825
|
*/
|
|
28878
28826
|
renderLayoutFromAttributes() {
|
|
28879
28827
|
switch (this.layout) {
|
|
28880
28828
|
case 'snowflake':
|
|
28881
28829
|
return this.renderSnowflakeLayout();
|
|
28882
28830
|
default:
|
|
28883
|
-
return
|
|
28831
|
+
// TODO: remove when all base layouts are implemented and instead return classic
|
|
28832
|
+
return u$3`
|
|
28833
|
+
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
28834
|
+
`;
|
|
28884
28835
|
}
|
|
28885
28836
|
}
|
|
28886
28837
|
|
|
@@ -28891,7 +28842,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28891
28842
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
28892
28843
|
* @private
|
|
28893
28844
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
28894
|
-
* @
|
|
28845
|
+
* @return {string}
|
|
28895
28846
|
*/
|
|
28896
28847
|
formatShortDate(date) {
|
|
28897
28848
|
// should render like Apr 21
|
|
@@ -28906,8 +28857,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28906
28857
|
/**
|
|
28907
28858
|
* Format and render the provided date value.
|
|
28908
28859
|
* @private
|
|
28909
|
-
* @param
|
|
28910
|
-
* @
|
|
28860
|
+
* @param dateValue
|
|
28861
|
+
* @return {TemplateResult}
|
|
28911
28862
|
*/
|
|
28912
28863
|
renderDisplayTextDate(dateValue) {
|
|
28913
28864
|
return u$3`
|
|
@@ -28922,15 +28873,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28922
28873
|
`;
|
|
28923
28874
|
}
|
|
28924
28875
|
|
|
28925
|
-
/**
|
|
28926
|
-
* Renders the HTML inputs for the datepicker.
|
|
28927
|
-
* @private
|
|
28928
|
-
* @returns {import('lit').TemplateResult}
|
|
28929
|
-
*/
|
|
28930
28876
|
renderHtmlInputs() {
|
|
28931
28877
|
const inputClasses = {
|
|
28932
|
-
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
28933
|
-
"parentBorder": this.layout === "classic"
|
|
28878
|
+
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
28934
28879
|
};
|
|
28935
28880
|
|
|
28936
28881
|
return u$3`
|
|
@@ -28944,12 +28889,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28944
28889
|
.min="${this.minDate}"
|
|
28945
28890
|
id="${this.generateRandomString(12)}"
|
|
28946
28891
|
.placeholder="${this.placeholder}"
|
|
28947
|
-
|
|
28948
|
-
|
|
28892
|
+
simple
|
|
28893
|
+
bordered
|
|
28949
28894
|
noValidate
|
|
28950
28895
|
class="dateFrom ${e$2(inputClasses)}"
|
|
28951
28896
|
type="date"
|
|
28952
28897
|
part="input"
|
|
28898
|
+
shape="box"
|
|
28899
|
+
size="xl"
|
|
28953
28900
|
setCustomValidity="${this.setCustomValidity}"
|
|
28954
28901
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
28955
28902
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
@@ -28957,14 +28904,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28957
28904
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
28958
28905
|
inputmode="${o(this.inputmode)}"
|
|
28959
28906
|
>
|
|
28960
|
-
|
|
28961
|
-
|
|
28962
|
-
|
|
28963
|
-
${this.renderDisplayTextDate(this.value)}
|
|
28964
|
-
</span>
|
|
28965
|
-
`
|
|
28966
|
-
: undefined
|
|
28967
|
-
}
|
|
28907
|
+
<span slot="displayValue">
|
|
28908
|
+
${this.renderDisplayTextDate(this.value)}
|
|
28909
|
+
</span>
|
|
28968
28910
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
28969
28911
|
</${this.inputTag}>
|
|
28970
28912
|
</div>
|
|
@@ -28984,6 +28926,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28984
28926
|
.min="${this.minDate}"
|
|
28985
28927
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
28986
28928
|
id="${this.generateRandomString(12)}"
|
|
28929
|
+
bordered
|
|
28987
28930
|
class="dateTo ${e$2(inputClasses)}"
|
|
28988
28931
|
noValidate
|
|
28989
28932
|
type="date"
|
|
@@ -28994,14 +28937,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28994
28937
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
28995
28938
|
?disabled="${this.disabled}"
|
|
28996
28939
|
part="input">
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
${this.renderDisplayTextDate(this.valueEnd)}
|
|
29001
|
-
</span>
|
|
29002
|
-
`
|
|
29003
|
-
: undefined
|
|
29004
|
-
}
|
|
28940
|
+
<span slot="displayValue">
|
|
28941
|
+
${this.renderDisplayTextDate(this.valueEnd)}
|
|
28942
|
+
</span>
|
|
29005
28943
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
29006
28944
|
</${this.inputTag}>
|
|
29007
28945
|
</div>
|
|
@@ -29015,11 +28953,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29015
28953
|
// icons/actions
|
|
29016
28954
|
// ------------------------------------
|
|
29017
28955
|
|
|
29018
|
-
/**
|
|
29019
|
-
* Renders the clear action button.
|
|
29020
|
-
* @private
|
|
29021
|
-
* @returns {import('lit').TemplateResult}
|
|
29022
|
-
*/
|
|
29023
28956
|
renderHtmlActionClear() {
|
|
29024
28957
|
const clearActionClassMap = {
|
|
29025
28958
|
'notification': true,
|
|
@@ -29049,11 +28982,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29049
28982
|
`;
|
|
29050
28983
|
}
|
|
29051
28984
|
|
|
29052
|
-
/**
|
|
29053
|
-
* Renders the error icon.
|
|
29054
|
-
* @private
|
|
29055
|
-
* @returns {import('lit').TemplateResult}
|
|
29056
|
-
*/
|
|
29057
28985
|
renderHtmlIconError() {
|
|
29058
28986
|
const clearActionClassMap = {
|
|
29059
28987
|
'notification': true,
|
|
@@ -29073,11 +29001,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29073
29001
|
`;
|
|
29074
29002
|
}
|
|
29075
29003
|
|
|
29076
|
-
/**
|
|
29077
|
-
* Renders the calendar icon.
|
|
29078
|
-
* @private
|
|
29079
|
-
* @returns {import('lit').TemplateResult}
|
|
29080
|
-
*/
|
|
29081
29004
|
renderHtmlIconCalendar() {
|
|
29082
29005
|
return u$3`
|
|
29083
29006
|
<${this.iconTag}
|
|
@@ -29093,7 +29016,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29093
29016
|
/**
|
|
29094
29017
|
* Returns HTML for the help text and error message.
|
|
29095
29018
|
* @private
|
|
29096
|
-
* @returns {
|
|
29019
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
29097
29020
|
*/
|
|
29098
29021
|
renderHtmlHelpText() {
|
|
29099
29022
|
return u$3`
|
|
@@ -29116,33 +29039,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29116
29039
|
`;
|
|
29117
29040
|
}
|
|
29118
29041
|
|
|
29119
|
-
/**
|
|
29120
|
-
* Separate method for rendering the calendar.
|
|
29121
|
-
* @private
|
|
29122
|
-
* @returns {import('lit').TemplateResult}
|
|
29123
|
-
*/
|
|
29124
|
-
renderCalendar() {
|
|
29125
|
-
return u$3`
|
|
29126
|
-
<auro-formkit-calendar
|
|
29127
|
-
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29128
|
-
?noRange="${!this.range}"
|
|
29129
|
-
.format="${this.format}"
|
|
29130
|
-
.monthFirst="${this.monthFirst}"
|
|
29131
|
-
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29132
|
-
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29133
|
-
.maxDate="${this.maxDate}"
|
|
29134
|
-
.minDate="${this.minDate}"
|
|
29135
|
-
.monthNames="${this.monthNames}"
|
|
29136
|
-
part="calendar"
|
|
29137
|
-
>
|
|
29138
|
-
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29139
|
-
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29140
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29141
|
-
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29142
|
-
</auro-formkit-calendar>
|
|
29143
|
-
`;
|
|
29144
|
-
}
|
|
29145
|
-
|
|
29146
29042
|
// function that renders the HTML and CSS into the scope of the component
|
|
29147
29043
|
render() {
|
|
29148
29044
|
const dropdownElementClassMap = {
|
|
@@ -29164,18 +29060,37 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29164
29060
|
.placement="${this.placement}"
|
|
29165
29061
|
.shape="${this.shape}"
|
|
29166
29062
|
.size="${this.size}"
|
|
29063
|
+
bordered
|
|
29167
29064
|
class="${e$2(dropdownElementClassMap)}"
|
|
29168
29065
|
disableEventShow
|
|
29169
29066
|
disableFocusTrap
|
|
29067
|
+
fluid
|
|
29170
29068
|
for="dropdownMenu"
|
|
29171
29069
|
part="dropdown"
|
|
29070
|
+
rounded
|
|
29172
29071
|
>
|
|
29173
29072
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
29174
29073
|
${this.renderLayoutFromAttributes()}
|
|
29175
29074
|
</div>
|
|
29176
29075
|
|
|
29177
29076
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
29178
|
-
|
|
29077
|
+
<auro-formkit-calendar
|
|
29078
|
+
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29079
|
+
?noRange="${!this.range}"
|
|
29080
|
+
.format="${this.format}"
|
|
29081
|
+
.monthFirst="${this.monthFirst}"
|
|
29082
|
+
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29083
|
+
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29084
|
+
.maxDate="${this.maxDate}"
|
|
29085
|
+
.minDate="${this.minDate}"
|
|
29086
|
+
.monthNames="${this.monthNames}"
|
|
29087
|
+
part="calendar"
|
|
29088
|
+
>
|
|
29089
|
+
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29090
|
+
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29091
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29092
|
+
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29093
|
+
</auro-formkit-calendar>
|
|
29179
29094
|
</div>
|
|
29180
29095
|
<div slot="helpText" part="helpTextSpan">
|
|
29181
29096
|
${this.renderHtmlHelpText()}
|
|
@@ -83,7 +83,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
83
83
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
|
-
<auro-datepicker
|
|
86
|
+
<auro-datepicker>
|
|
87
87
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
88
88
|
<span slot="fromLabel">Choose a date</span>
|
|
89
89
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|