@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
|
@@ -1258,21 +1258,19 @@ class UtilitiesCalendarRender {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
|
-
var styleCss$e = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}
|
|
1261
|
+
var styleCss$e = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}: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}}`;
|
|
1262
1262
|
|
|
1263
|
-
var colorCss$d = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}
|
|
1263
|
+
var colorCss$d = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host([onDark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
1264
1264
|
|
|
1265
|
-
var tokensCss$b = css`:host
|
|
1265
|
+
var tokensCss$b = css`: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)}`;
|
|
1266
1266
|
|
|
1267
1267
|
var shapeSizeCss$2 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
1268
1268
|
|
|
1269
|
-
var classicLayoutStyle = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout*=classic]) .accents{display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) [auro-input]::part(wrapper){border-width:0;box-shadow:none}:host([layout*=classic]) [auro-input].dateTo{margin-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) [auro-input].dateTo::part(accent-left){display:none}:host([layout*=classic]) .inputDivider{width:1px;height:2rem}`;
|
|
1270
|
-
|
|
1271
1269
|
var classicLayoutColor = css``;
|
|
1272
1270
|
|
|
1273
|
-
var snowflakeStyle = css
|
|
1271
|
+
var snowflakeStyle = css`.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}`;
|
|
1274
1272
|
|
|
1275
|
-
var snowflakeColors = css`:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus)){--ds-auro-dropdown-trigger-border-color: transparent}`;
|
|
1273
|
+
var snowflakeColors = css`: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}`;
|
|
1276
1274
|
|
|
1277
1275
|
var styleCss$d = css`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
|
|
1278
1276
|
|
|
@@ -12650,7 +12648,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
12650
12648
|
/**
|
|
12651
12649
|
* @private
|
|
12652
12650
|
*/
|
|
12653
|
-
this.buttonTag = versioning.generateTag('auro-formkit-
|
|
12651
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion$2, AuroButton$2);
|
|
12654
12652
|
}
|
|
12655
12653
|
|
|
12656
12654
|
static get styles() {
|
|
@@ -17277,7 +17275,7 @@ var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
17277
17275
|
|
|
17278
17276
|
var colorCss$5 = css`: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)}`;
|
|
17279
17277
|
|
|
17280
|
-
var styleCss$6 = css
|
|
17278
|
+
var styleCss$6 = css`.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}`;
|
|
17281
17279
|
|
|
17282
17280
|
var tokensCss$6 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
17283
17281
|
|
|
@@ -17357,8 +17355,6 @@ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
|
17357
17355
|
|
|
17358
17356
|
/**
|
|
17359
17357
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
17360
|
-
*
|
|
17361
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
17362
17358
|
*/
|
|
17363
17359
|
let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
17364
17360
|
|
|
@@ -17474,7 +17470,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
17474
17470
|
// function that renders the HTML and CSS into the scope of the component
|
|
17475
17471
|
render() {
|
|
17476
17472
|
return html`
|
|
17477
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
17473
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
17478
17474
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
17479
17475
|
</div>
|
|
17480
17476
|
`;
|
|
@@ -26025,7 +26021,7 @@ var buttonVersion = '11.0.0';
|
|
|
26025
26021
|
|
|
26026
26022
|
var colorCss$4 = css`: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)}`;
|
|
26027
26023
|
|
|
26028
|
-
var styleCss$5 = css
|
|
26024
|
+
var styleCss$5 = css`.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}`;
|
|
26029
26025
|
|
|
26030
26026
|
var tokensCss$5 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26031
26027
|
|
|
@@ -26105,8 +26101,6 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
26105
26101
|
|
|
26106
26102
|
/**
|
|
26107
26103
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
26108
|
-
*
|
|
26109
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
26110
26104
|
*/
|
|
26111
26105
|
let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
26112
26106
|
|
|
@@ -26222,7 +26216,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
26222
26216
|
// function that renders the HTML and CSS into the scope of the component
|
|
26223
26217
|
render() {
|
|
26224
26218
|
return html`
|
|
26225
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
26219
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
26226
26220
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
26227
26221
|
</div>
|
|
26228
26222
|
`;
|
|
@@ -26740,7 +26734,7 @@ var inputVersion = '4.2.0';
|
|
|
26740
26734
|
|
|
26741
26735
|
var colorCss$1 = css`: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)}`;
|
|
26742
26736
|
|
|
26743
|
-
var styleCss$1 = css
|
|
26737
|
+
var styleCss$1 = css`.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}`;
|
|
26744
26738
|
|
|
26745
26739
|
var tokensCss$1 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26746
26740
|
|
|
@@ -26820,8 +26814,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
26820
26814
|
|
|
26821
26815
|
/**
|
|
26822
26816
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
26823
|
-
*
|
|
26824
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
26825
26817
|
*/
|
|
26826
26818
|
class AuroHelpText extends LitElement {
|
|
26827
26819
|
|
|
@@ -26937,7 +26929,7 @@ class AuroHelpText extends LitElement {
|
|
|
26937
26929
|
// function that renders the HTML and CSS into the scope of the component
|
|
26938
26930
|
render() {
|
|
26939
26931
|
return html`
|
|
26940
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
26932
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
26941
26933
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
26942
26934
|
</div>
|
|
26943
26935
|
`;
|
|
@@ -28013,7 +28005,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28013
28005
|
shapeSizeCss$2,
|
|
28014
28006
|
|
|
28015
28007
|
// layouts
|
|
28016
|
-
classicLayoutStyle,
|
|
28017
28008
|
classicLayoutColor,
|
|
28018
28009
|
snowflakeStyle,
|
|
28019
28010
|
snowflakeColors
|
|
@@ -28081,7 +28072,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28081
28072
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
28082
28073
|
* @returns {void}
|
|
28083
28074
|
*/
|
|
28084
|
-
focus(focusInput
|
|
28075
|
+
focus(focusInput) {
|
|
28076
|
+
if (this.disabled) {
|
|
28077
|
+
return;
|
|
28078
|
+
}
|
|
28079
|
+
|
|
28085
28080
|
this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
|
|
28086
28081
|
}
|
|
28087
28082
|
|
|
@@ -28284,11 +28279,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28284
28279
|
configureDatepicker() {
|
|
28285
28280
|
this.addEventListener('focusin', () => {
|
|
28286
28281
|
this.touched = true;
|
|
28287
|
-
this.hasFocus = true;
|
|
28288
28282
|
});
|
|
28289
28283
|
|
|
28290
28284
|
this.addEventListener('focusout', (evt) => {
|
|
28291
|
-
this.hasFocus = false;
|
|
28292
28285
|
if (!this.noValidate && !evt.detail.expanded && this.touched) {
|
|
28293
28286
|
if (!this.contains(document.activeElement)) {
|
|
28294
28287
|
this.validation.validate(this.inputList[0]);
|
|
@@ -28354,6 +28347,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28354
28347
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28355
28348
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28356
28349
|
|
|
28350
|
+
console.log(newDate);
|
|
28351
|
+
console.log(this.util.validDateStr(newDate, this.format));
|
|
28352
|
+
|
|
28357
28353
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28358
28354
|
if (this.inputList.length > 1) {
|
|
28359
28355
|
if (!this.value || !this.util.validDateStr(this.value, this.format)) {
|
|
@@ -28392,7 +28388,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28392
28388
|
handleKeydownReset(event) {
|
|
28393
28389
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
28394
28390
|
this.resetValues();
|
|
28395
|
-
this.
|
|
28391
|
+
this.setHasFocus();
|
|
28396
28392
|
}
|
|
28397
28393
|
}
|
|
28398
28394
|
|
|
@@ -28430,10 +28426,22 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28430
28426
|
this.validation.validate(this, force);
|
|
28431
28427
|
}
|
|
28432
28428
|
|
|
28433
|
-
|
|
28434
|
-
|
|
28435
|
-
|
|
28436
|
-
|
|
28429
|
+
setHasFocus() {
|
|
28430
|
+
if (this.disabled) {
|
|
28431
|
+
return;
|
|
28432
|
+
}
|
|
28433
|
+
|
|
28434
|
+
this.hasFocus = true;
|
|
28435
|
+
this.dropdown.show();
|
|
28436
|
+
|
|
28437
|
+
// shadowroot active element is null if we focus the datepicker itself
|
|
28438
|
+
if (this.shadowRoot.activeElement === null) {
|
|
28439
|
+
// If the shadowRoot.activeElement is null, we can assume that the datepicker itself has focus
|
|
28440
|
+
// and we should focus the first input in the inputList
|
|
28441
|
+
this.inputList[0].focus();
|
|
28442
|
+
}
|
|
28443
|
+
}
|
|
28444
|
+
|
|
28437
28445
|
setHasValue() {
|
|
28438
28446
|
if (!this.range) {
|
|
28439
28447
|
this.hasValue = this.value && this.value.length > 0;
|
|
@@ -28453,17 +28461,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28453
28461
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28454
28462
|
}
|
|
28455
28463
|
|
|
28456
|
-
if (changedProperties.has('disabled')) {
|
|
28457
|
-
if (this.disabled) {
|
|
28458
|
-
this.previousTabIndex = this.getAttribute('tabindex');
|
|
28459
|
-
this.setAttribute('tabindex', '-1');
|
|
28460
|
-
} else if (!this.disabled && this.previousTabIndex > -1) {
|
|
28461
|
-
this.tabIndex = this.previousTabIndex;
|
|
28462
|
-
} else {
|
|
28463
|
-
this.removeAttribute('tabindex');
|
|
28464
|
-
}
|
|
28465
|
-
}
|
|
28466
|
-
|
|
28467
28464
|
if (changedProperties.has('calendarFocusDate')) {
|
|
28468
28465
|
this.formattedFocusDate = this.util.toNorthAmericanFormat(this.calendarFocusDate, this.format);
|
|
28469
28466
|
|
|
@@ -28629,8 +28626,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28629
28626
|
this.calendarFocusDate = this.minDate;
|
|
28630
28627
|
}
|
|
28631
28628
|
}
|
|
28632
|
-
|
|
28633
|
-
this.calendar.requestUpdate();
|
|
28634
28629
|
}
|
|
28635
28630
|
|
|
28636
28631
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
@@ -28662,8 +28657,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28662
28657
|
}
|
|
28663
28658
|
}
|
|
28664
28659
|
}
|
|
28665
|
-
|
|
28666
|
-
this.calendar.requestUpdate();
|
|
28667
28660
|
}
|
|
28668
28661
|
|
|
28669
28662
|
if (changedProperties.has('centralDate')) {
|
|
@@ -28705,7 +28698,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28705
28698
|
|
|
28706
28699
|
// setup focus/blur event listeners
|
|
28707
28700
|
this.addEventListener('focus', () => {
|
|
28708
|
-
this.
|
|
28701
|
+
this.setHasFocus();
|
|
28702
|
+
}, true);
|
|
28703
|
+
|
|
28704
|
+
this.addEventListener('blur', () => {
|
|
28705
|
+
this.hasFocus = false;
|
|
28709
28706
|
}, true);
|
|
28710
28707
|
}
|
|
28711
28708
|
|
|
@@ -28760,63 +28757,17 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28760
28757
|
}
|
|
28761
28758
|
|
|
28762
28759
|
/**
|
|
28763
|
-
* Renders the snowflake layout for the datepicker.
|
|
28764
|
-
* @private
|
|
28765
|
-
* @returns {import("lit").TemplateResult}
|
|
28766
|
-
*/
|
|
28767
|
-
renderClassicLayout() {
|
|
28768
|
-
const accentsClassMap = {
|
|
28769
|
-
error: this.hasError
|
|
28770
|
-
};
|
|
28771
|
-
|
|
28772
|
-
const inputSectionClassMap = {
|
|
28773
|
-
inputSection: true,
|
|
28774
|
-
|
|
28775
|
-
hasValue: this.hasValue,
|
|
28776
|
-
hasFocus: this.hasFocus,
|
|
28777
|
-
};
|
|
28778
|
-
|
|
28779
|
-
const labelClassMap = {
|
|
28780
|
-
hasValue: this.hasValue,
|
|
28781
|
-
hasFocus: this.hasFocus,
|
|
28782
|
-
};
|
|
28783
|
-
|
|
28784
|
-
return html$1`
|
|
28785
|
-
<div
|
|
28786
|
-
class="wrapper trigger"
|
|
28787
|
-
part="wrapper">
|
|
28788
|
-
<div class="accents left">
|
|
28789
|
-
${this.renderHtmlIconCalendar()}
|
|
28790
|
-
</div>
|
|
28791
|
-
<div class="mainContent">
|
|
28792
|
-
<label class="${classMap(labelClassMap)}" part="mainLabel">
|
|
28793
|
-
<slot name="label"></slot>
|
|
28794
|
-
</label>
|
|
28795
|
-
<div class="${classMap(inputSectionClassMap)}" part="inputSection">
|
|
28796
|
-
${this.renderHtmlInputs()}
|
|
28797
|
-
</div>
|
|
28798
|
-
</div>
|
|
28799
|
-
<div class="accents right ${classMap(accentsClassMap)}">
|
|
28800
|
-
${this.hasError
|
|
28801
|
-
? this.renderHtmlIconError()
|
|
28802
|
-
: this.renderHtmlActionClear()
|
|
28803
|
-
}
|
|
28804
|
-
</div>
|
|
28805
|
-
</div>
|
|
28806
|
-
`;
|
|
28807
|
-
}
|
|
28808
|
-
|
|
28809
|
-
/**
|
|
28810
|
-
* Renders the layout based on the `layout` attribute.
|
|
28811
28760
|
* @private
|
|
28812
|
-
* @returns {import('lit').TemplateResult}
|
|
28813
28761
|
*/
|
|
28814
28762
|
renderLayoutFromAttributes() {
|
|
28815
28763
|
switch (this.layout) {
|
|
28816
28764
|
case 'snowflake':
|
|
28817
28765
|
return this.renderSnowflakeLayout();
|
|
28818
28766
|
default:
|
|
28819
|
-
return
|
|
28767
|
+
// TODO: remove when all base layouts are implemented and instead return classic
|
|
28768
|
+
return html$1`
|
|
28769
|
+
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
28770
|
+
`;
|
|
28820
28771
|
}
|
|
28821
28772
|
}
|
|
28822
28773
|
|
|
@@ -28827,7 +28778,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28827
28778
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
28828
28779
|
* @private
|
|
28829
28780
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
28830
|
-
* @
|
|
28781
|
+
* @return {string}
|
|
28831
28782
|
*/
|
|
28832
28783
|
formatShortDate(date) {
|
|
28833
28784
|
// should render like Apr 21
|
|
@@ -28842,8 +28793,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28842
28793
|
/**
|
|
28843
28794
|
* Format and render the provided date value.
|
|
28844
28795
|
* @private
|
|
28845
|
-
* @param
|
|
28846
|
-
* @
|
|
28796
|
+
* @param dateValue
|
|
28797
|
+
* @return {TemplateResult}
|
|
28847
28798
|
*/
|
|
28848
28799
|
renderDisplayTextDate(dateValue) {
|
|
28849
28800
|
return html$1`
|
|
@@ -28858,15 +28809,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28858
28809
|
`;
|
|
28859
28810
|
}
|
|
28860
28811
|
|
|
28861
|
-
/**
|
|
28862
|
-
* Renders the HTML inputs for the datepicker.
|
|
28863
|
-
* @private
|
|
28864
|
-
* @returns {import('lit').TemplateResult}
|
|
28865
|
-
*/
|
|
28866
28812
|
renderHtmlInputs() {
|
|
28867
28813
|
const inputClasses = {
|
|
28868
|
-
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
28869
|
-
"parentBorder": this.layout === "classic"
|
|
28814
|
+
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
28870
28815
|
};
|
|
28871
28816
|
|
|
28872
28817
|
return html$1`
|
|
@@ -28880,12 +28825,14 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28880
28825
|
.min="${this.minDate}"
|
|
28881
28826
|
id="${this.generateRandomString(12)}"
|
|
28882
28827
|
.placeholder="${this.placeholder}"
|
|
28883
|
-
|
|
28884
|
-
|
|
28828
|
+
simple
|
|
28829
|
+
bordered
|
|
28885
28830
|
noValidate
|
|
28886
28831
|
class="dateFrom ${classMap(inputClasses)}"
|
|
28887
28832
|
type="date"
|
|
28888
28833
|
part="input"
|
|
28834
|
+
shape="box"
|
|
28835
|
+
size="xl"
|
|
28889
28836
|
setCustomValidity="${this.setCustomValidity}"
|
|
28890
28837
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
28891
28838
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
@@ -28893,14 +28840,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28893
28840
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
28894
28841
|
inputmode="${ifDefined(this.inputmode)}"
|
|
28895
28842
|
>
|
|
28896
|
-
|
|
28897
|
-
|
|
28898
|
-
|
|
28899
|
-
${this.renderDisplayTextDate(this.value)}
|
|
28900
|
-
</span>
|
|
28901
|
-
`
|
|
28902
|
-
: undefined
|
|
28903
|
-
}
|
|
28843
|
+
<span slot="displayValue">
|
|
28844
|
+
${this.renderDisplayTextDate(this.value)}
|
|
28845
|
+
</span>
|
|
28904
28846
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
28905
28847
|
</${this.inputTag}>
|
|
28906
28848
|
</div>
|
|
@@ -28920,6 +28862,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28920
28862
|
.min="${this.minDate}"
|
|
28921
28863
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
28922
28864
|
id="${this.generateRandomString(12)}"
|
|
28865
|
+
bordered
|
|
28923
28866
|
class="dateTo ${classMap(inputClasses)}"
|
|
28924
28867
|
noValidate
|
|
28925
28868
|
type="date"
|
|
@@ -28930,14 +28873,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28930
28873
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
28931
28874
|
?disabled="${this.disabled}"
|
|
28932
28875
|
part="input">
|
|
28933
|
-
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
${this.renderDisplayTextDate(this.valueEnd)}
|
|
28937
|
-
</span>
|
|
28938
|
-
`
|
|
28939
|
-
: undefined
|
|
28940
|
-
}
|
|
28876
|
+
<span slot="displayValue">
|
|
28877
|
+
${this.renderDisplayTextDate(this.valueEnd)}
|
|
28878
|
+
</span>
|
|
28941
28879
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
28942
28880
|
</${this.inputTag}>
|
|
28943
28881
|
</div>
|
|
@@ -28951,11 +28889,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28951
28889
|
// icons/actions
|
|
28952
28890
|
// ------------------------------------
|
|
28953
28891
|
|
|
28954
|
-
/**
|
|
28955
|
-
* Renders the clear action button.
|
|
28956
|
-
* @private
|
|
28957
|
-
* @returns {import('lit').TemplateResult}
|
|
28958
|
-
*/
|
|
28959
28892
|
renderHtmlActionClear() {
|
|
28960
28893
|
const clearActionClassMap = {
|
|
28961
28894
|
'notification': true,
|
|
@@ -28985,11 +28918,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28985
28918
|
`;
|
|
28986
28919
|
}
|
|
28987
28920
|
|
|
28988
|
-
/**
|
|
28989
|
-
* Renders the error icon.
|
|
28990
|
-
* @private
|
|
28991
|
-
* @returns {import('lit').TemplateResult}
|
|
28992
|
-
*/
|
|
28993
28921
|
renderHtmlIconError() {
|
|
28994
28922
|
const clearActionClassMap = {
|
|
28995
28923
|
'notification': true,
|
|
@@ -29009,11 +28937,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29009
28937
|
`;
|
|
29010
28938
|
}
|
|
29011
28939
|
|
|
29012
|
-
/**
|
|
29013
|
-
* Renders the calendar icon.
|
|
29014
|
-
* @private
|
|
29015
|
-
* @returns {import('lit').TemplateResult}
|
|
29016
|
-
*/
|
|
29017
28940
|
renderHtmlIconCalendar() {
|
|
29018
28941
|
return html$1`
|
|
29019
28942
|
<${this.iconTag}
|
|
@@ -29029,7 +28952,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29029
28952
|
/**
|
|
29030
28953
|
* Returns HTML for the help text and error message.
|
|
29031
28954
|
* @private
|
|
29032
|
-
* @returns {
|
|
28955
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
29033
28956
|
*/
|
|
29034
28957
|
renderHtmlHelpText() {
|
|
29035
28958
|
return html$1`
|
|
@@ -29052,33 +28975,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29052
28975
|
`;
|
|
29053
28976
|
}
|
|
29054
28977
|
|
|
29055
|
-
/**
|
|
29056
|
-
* Separate method for rendering the calendar.
|
|
29057
|
-
* @private
|
|
29058
|
-
* @returns {import('lit').TemplateResult}
|
|
29059
|
-
*/
|
|
29060
|
-
renderCalendar() {
|
|
29061
|
-
return html$1`
|
|
29062
|
-
<auro-formkit-calendar
|
|
29063
|
-
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29064
|
-
?noRange="${!this.range}"
|
|
29065
|
-
.format="${this.format}"
|
|
29066
|
-
.monthFirst="${this.monthFirst}"
|
|
29067
|
-
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29068
|
-
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29069
|
-
.maxDate="${this.maxDate}"
|
|
29070
|
-
.minDate="${this.minDate}"
|
|
29071
|
-
.monthNames="${this.monthNames}"
|
|
29072
|
-
part="calendar"
|
|
29073
|
-
>
|
|
29074
|
-
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29075
|
-
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29076
|
-
<span slot="bib.fullscreen.fromStr">${this.value || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29077
|
-
${this.range ? html$1`<span slot="mobileDateToStr">${this.valueEnd || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29078
|
-
</auro-formkit-calendar>
|
|
29079
|
-
`;
|
|
29080
|
-
}
|
|
29081
|
-
|
|
29082
28978
|
// function that renders the HTML and CSS into the scope of the component
|
|
29083
28979
|
render() {
|
|
29084
28980
|
const dropdownElementClassMap = {
|
|
@@ -29100,18 +28996,37 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29100
28996
|
.placement="${this.placement}"
|
|
29101
28997
|
.shape="${this.shape}"
|
|
29102
28998
|
.size="${this.size}"
|
|
28999
|
+
bordered
|
|
29103
29000
|
class="${classMap(dropdownElementClassMap)}"
|
|
29104
29001
|
disableEventShow
|
|
29105
29002
|
disableFocusTrap
|
|
29003
|
+
fluid
|
|
29106
29004
|
for="dropdownMenu"
|
|
29107
29005
|
part="dropdown"
|
|
29006
|
+
rounded
|
|
29108
29007
|
>
|
|
29109
29008
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
29110
29009
|
${this.renderLayoutFromAttributes()}
|
|
29111
29010
|
</div>
|
|
29112
29011
|
|
|
29113
29012
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
29114
|
-
|
|
29013
|
+
<auro-formkit-calendar
|
|
29014
|
+
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
29015
|
+
?noRange="${!this.range}"
|
|
29016
|
+
.format="${this.format}"
|
|
29017
|
+
.monthFirst="${this.monthFirst}"
|
|
29018
|
+
.min="${this.convertToWcValidTime(new Date(this.formattedMinDate))}"
|
|
29019
|
+
.max="${this.convertToWcValidTime(new Date(this.formattedMaxDate))}"
|
|
29020
|
+
.maxDate="${this.maxDate}"
|
|
29021
|
+
.minDate="${this.minDate}"
|
|
29022
|
+
.monthNames="${this.monthNames}"
|
|
29023
|
+
part="calendar"
|
|
29024
|
+
>
|
|
29025
|
+
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29026
|
+
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29027
|
+
<span slot="bib.fullscreen.fromStr">${this.value || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
29028
|
+
${this.range ? html$1`<span slot="mobileDateToStr">${this.valueEnd || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
29029
|
+
</auro-formkit-calendar>
|
|
29115
29030
|
</div>
|
|
29116
29031
|
<div slot="helpText" part="helpTextSpan">
|
|
29117
29032
|
${this.renderHtmlHelpText()}
|