@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.13 → 0.0.0-pr1628.15
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/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.md +39 -38
- package/components/combobox/demo/css-only.md +2 -2
- package/components/combobox/demo/customize.md +50 -2
- package/components/combobox/demo/customize.min.js +13 -4
- package/components/combobox/demo/design.md +2 -0
- package/components/combobox/demo/getting-started.md +9 -7
- package/components/combobox/demo/getting-started.min.js +13 -4
- package/components/combobox/demo/index.md +4 -0
- package/components/combobox/demo/index.min.js +13 -4
- package/components/combobox/dist/auro-combobox.d.ts +10 -1
- package/components/combobox/dist/index.js +13 -4
- package/components/combobox/dist/registered.js +13 -4
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/getting-started.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/accessibility.md +3 -3
- package/components/datepicker/demo/api.md +7 -8
- package/components/datepicker/demo/css-only.md +1 -1
- package/components/datepicker/demo/customize.md +2 -2
- package/components/datepicker/demo/customize.min.js +24 -24
- package/components/datepicker/demo/getting-started.md +6 -3
- package/components/datepicker/demo/getting-started.min.js +24 -24
- package/components/datepicker/demo/index.min.js +24 -24
- package/components/datepicker/demo/voiceover.md +2 -2
- package/components/datepicker/dist/auro-calendar-cell.d.ts +3 -2
- package/components/datepicker/dist/auro-calendar-month.d.ts +2 -1
- package/components/datepicker/dist/auro-calendar.d.ts +8 -7
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -9
- package/components/datepicker/dist/index.js +24 -24
- package/components/datepicker/dist/registered.js +24 -24
- package/components/datepicker/dist/utilities.d.ts +1 -1
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +1 -1
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +2 -2
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/css-only.md +2 -2
- package/components/form/demo/customize.md +24 -12
- package/components/form/demo/customize.min.js +47 -37
- package/components/form/demo/getting-started.md +23 -11
- package/components/form/demo/getting-started.min.js +47 -37
- package/components/form/demo/index.min.js +47 -37
- package/components/form/demo/registerDemoDeps.min.js +44 -35
- package/components/form/demo/why-form.md +2 -2
- package/components/form/dist/auro-form.d.ts +3 -2
- package/components/form/dist/index.js +3 -2
- package/components/form/dist/registered.js +3 -2
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +2 -2
- package/components/select/demo/getting-started.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +27 -2208
- package/package.json +1 -1
|
@@ -10678,7 +10678,7 @@ class AuroDatepickerUtilities {
|
|
|
10678
10678
|
* Creates an SVG element from an icon's markup.
|
|
10679
10679
|
* @private
|
|
10680
10680
|
* @param {Object} icon - The icon object containing the SVG.
|
|
10681
|
-
* @returns {Object}
|
|
10681
|
+
* @returns {Object} The SVG element.
|
|
10682
10682
|
*/
|
|
10683
10683
|
generateIconHtml(icon) {
|
|
10684
10684
|
this.dom = new DOMParser().parseFromString(icon.svg, 'text/html');
|
|
@@ -10760,7 +10760,7 @@ class UtilitiesCalendarRender {
|
|
|
10760
10760
|
* Determines how many months to render based on the defined calendar range.
|
|
10761
10761
|
* @param {Object} elem - The auro-calendar element.
|
|
10762
10762
|
* @private
|
|
10763
|
-
* @returns {Number} The number of months from calendarStartDate through calendarEndDate.
|
|
10763
|
+
* @returns {Number|undefined} The number of months from `calendarStartDate` through `calendarEndDate`, or undefined when either isn't set.
|
|
10764
10764
|
*/
|
|
10765
10765
|
determineDefinedCalendarRange(elem) {
|
|
10766
10766
|
if (elem.getAttribute('calendarStartDate') && elem.getAttribute('calendarEndDate')) {
|
|
@@ -11804,6 +11804,7 @@ function isBlackoutTimestamp(dateTs, disabledDays, blackoutDates) {
|
|
|
11804
11804
|
* @event date-is-hovered - Notifies that the pointer moved over this cell's date.
|
|
11805
11805
|
* @event calendar-cell-focused - Notifies that this cell's button has received focus.
|
|
11806
11806
|
* @csspart dateSlot - The container under the day number that holds the date's `date_YYYY_MM_DD` slot content, shown only when that slot has content.
|
|
11807
|
+
* @internal
|
|
11807
11808
|
*/
|
|
11808
11809
|
class AuroCalendarCell extends i$1 {
|
|
11809
11810
|
constructor() {
|
|
@@ -12249,12 +12250,12 @@ class AuroCalendarCell extends i$1 {
|
|
|
12249
12250
|
}
|
|
12250
12251
|
|
|
12251
12252
|
/**
|
|
12252
|
-
* Checks whether the cell's date is between dateFrom and dateTo
|
|
12253
|
+
* Checks whether the cell's date is between `dateFrom` and `dateTo`.
|
|
12253
12254
|
* @private
|
|
12254
12255
|
* @param {Object} day - The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.
|
|
12255
12256
|
* @param {Number} dateFrom - The start date, as a Unix timestamp in seconds.
|
|
12256
12257
|
* @param {Number} dateTo - The end date, as a Unix timestamp in seconds.
|
|
12257
|
-
* @returns {Boolean} True if the datepicker is a range and the cell's date is after dateFrom and before dateTo
|
|
12258
|
+
* @returns {Boolean} True if the datepicker is a range and the cell's date is after `dateFrom` and, when `dateTo` is set, before `dateTo`; false otherwise.
|
|
12258
12259
|
*/
|
|
12259
12260
|
isInRange(day, dateFrom, dateTo) {
|
|
12260
12261
|
|
|
@@ -12786,6 +12787,7 @@ const getWeekdayNames = (locale, weekday) => {
|
|
|
12786
12787
|
* One month of the datepicker's calendar: a localized heading and a grid of day cells people can select.
|
|
12787
12788
|
* @event hovered-date-changed - Notifies that the date currently hovered within the month grid has changed.
|
|
12788
12789
|
* @event calendar-month-mouseleave - Notifies that the pointer left the month's date grid, so the calendar can clear the range preview.
|
|
12790
|
+
* @internal
|
|
12789
12791
|
*/
|
|
12790
12792
|
class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
12791
12793
|
static get styles() {
|
|
@@ -12911,7 +12913,7 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12911
12913
|
|
|
12912
12914
|
/**
|
|
12913
12915
|
* Gets the cells in this month that keyboard users can reach: enabled and blackout dates, but not dates before the earliest or after the latest date people can choose.
|
|
12914
|
-
* @returns {Array} The auro-formkit-calendar-cell elements.
|
|
12916
|
+
* @returns {Array} The `auro-formkit-calendar-cell` elements.
|
|
12915
12917
|
*/
|
|
12916
12918
|
getFocusableCells() {
|
|
12917
12919
|
const cells = Array.from(this.shadowRoot.querySelectorAll('auro-formkit-calendar-cell'));
|
|
@@ -13912,7 +13914,7 @@ class AuroBibtemplate extends i$1 {
|
|
|
13912
13914
|
}
|
|
13913
13915
|
}
|
|
13914
13916
|
|
|
13915
|
-
var formkitVersion$2 = '
|
|
13917
|
+
var formkitVersion$2 = '202611092125';
|
|
13916
13918
|
|
|
13917
13919
|
let l$1 = class l{generateElementName(e,t){let s=e;return s+="-",s+=t.replace(/[.]/g,"_"),s}generateTag(s,o,a){const r=this.generateElementName(s,o),i=i$5`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let h$4 = class h{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,s=(t,o=t&&t.closest(e))=>t&&t!==document&&t!==window?o||s(t.getRootNode().host):null){return s(t)}handleComponentTagRename(e,t){const s=t.toLowerCase();e.tagName.toLowerCase()!==s&&e.setAttribute(s,true);}elementMatch(e,t){const s=t.toLowerCase();return e.tagName.toLowerCase()===s||e.hasAttribute(s)}getSlotText(e,t){const s=e.shadowRoot?.querySelector(`slot[name="${t}"]`),o=(s?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim();return o||null}};let d$1 = class d{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,s=(t,o=t&&t.closest(e))=>t&&t!==document&&t!==window?o||s(t.getRootNode().host):null){return s(t)}handleComponentTagRename(e,t){const s=t.toLowerCase();e.tagName.toLowerCase()!==s&&e.setAttribute(s,true);}elementMatch(e,t){const s=t.toLowerCase();return e.tagName.toLowerCase()===s||e.hasAttribute(s)}getSlotText(e,t){const s=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return (s?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}};var c$3=i$3`:host{color:var(--ds-auro-loader-color)}:host>.loader-shape>span{border-color:var(--ds-auro-loader-border-color);background-color:var(--ds-auro-loader-background-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>.loader-shape>span{--ds-auro-loader-background-color: transparent}:host([orbit])>.loader-shape>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>.loader-shape>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
13918
13920
|
`,u$6=i$3`.body-default{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-default-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{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-default-emphasized-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{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-lg-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{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-lg-emphasized-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{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-sm-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{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-sm-emphasized-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{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-xs-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{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-xs-emphasized-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.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, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, .875rem)}.body-2xs,.body-2xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{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-emphasized-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-display-xl-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-display-lg-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-display-md-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-display-sm-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-display-xs-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-heading-xl-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-heading-lg-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-heading-md-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-heading-sm-family-fallback, 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-variant-ligatures:none;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"),var(--wcss-heading-xs-family-fallback, 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-variant-ligatures:none;font-weight:var(--wcss-heading-xs-weight, 300);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"),var(--wcss-heading-2xs-family-fallback, 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-variant-ligatures:none;font-weight:var(--wcss-heading-2xs-weight, 300);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"),var(--wcss-accent-2xl-family-fallback, 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-variant-ligatures:none;font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, 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-variant-ligatures:none;font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, 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-variant-ligatures:none;font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, 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-variant-ligatures:none;font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, 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-variant-ligatures:none;font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, 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-variant-ligatures:none;font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host{position:relative;display:inline-flex;flex-direction:column;align-items:center}:host([message-position=top]){flex-direction:column-reverse}:host([message-position=left]){flex-direction:row-reverse}:host([message-position=right]){flex-direction:row}:host([has-message]){gap:var(--ds-auro-loader-message-spacing)}.loader-shape{position:relative;display:inline-block;width:2rem;height:2rem;flex-shrink:0;font-size:0}.loader-shape>span{position:absolute;top:0;left:0;display:inline-block;width:2rem;height:2rem;box-sizing:border-box;border-width:0;border-style:solid;border-radius:100%;float:none}:host([xs])>.loader-shape{width:1.2rem;height:1.2rem}:host([xs])>.loader-shape>span{width:1.2rem;height:1.2rem}:host([sm])>.loader-shape{width:3rem;height:3rem}:host([sm])>.loader-shape>span{width:3rem;height:3rem}:host([md])>.loader-shape{width:5rem;height:5rem}:host([md])>.loader-shape>span{width:5rem;height:5rem}:host([lg])>.loader-shape{width:8rem;height:8rem}:host([lg])>.loader-shape>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]){position:relative}:host([pulse])>.loader-shape{position:relative;width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>.loader-shape>span{position:relative;width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse])>.loader-shape>span:nth-child(1){animation-delay:-.4s}:host([pulse])>.loader-shape>span:nth-child(2){animation-delay:-.2s}:host([pulse])>.loader-shape>span:nth-child(3){animation-delay:0ms}:host([pulse][xs])>.loader-shape{width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>.loader-shape>span{width:.65rem;height:.65rem;margin:var(--margin-xs)}:host([pulse][sm])>.loader-shape{width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>.loader-shape>span{width:2rem;height:2rem;margin:var(--margin-sm)}:host([pulse][md])>.loader-shape{width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>.loader-shape>span{width:3rem;height:3rem;margin:var(--margin-md)}:host([pulse][lg])>.loader-shape{width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>.loader-shape>span{width:5rem;height:5rem;margin:var(--margin-lg)}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]){opacity:1}:host([orbit])>.loader-shape>span{border-width:5px;opacity:1}:host([orbit])>.loader-shape>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>.loader-shape>span{border-width:8px}:host([orbit][md])>.loader-shape>span{border-width:13px}:host([orbit][lg])>.loader-shape>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>.loader-shape>svg{width:100%;height:100%;animation:rotate 2s linear infinite;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{animation:ringworm 1.5s ease-in-out infinite;stroke-dashoffset:0;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;display:block;overflow:hidden;width:100%;height:0;font-size:unset}:host([laser])>.no-animation,:host([laser])>.message-region{display:none}:host([laser])>.loader-shape>span{position:fixed;z-index:100;width:100%;height:.25rem;border-radius:0}:host([laser])>.loader-shape>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>.loader-shape>span:nth-child(2){width:50%;border-color:currentcolor;animation:laser 2s linear infinite;opacity:1}:host([laser][sm])>.loader-shape>span:nth-child(2){width:20%}:host([laser][md])>.loader-shape>span:nth-child(2){width:30%}:host([laser][lg])>.loader-shape>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>.loader-shape>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}.message-region{min-width:0;color:var(--ds-auro-loader-message-color)}.message-list{padding:0;margin:0}slot[name=message]::slotted([hidden]){display:none!important}:host>.no-animation{display:none;min-width:0}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>.loader-shape{display:none}:host>.loader-shape>span{opacity:1}:host>.no-animation{display:block}:host([has-default-content])>.message-region{display:none}:host([has-message]:not([has-default-content]))>.no-animation{display:none}}
|
|
@@ -14006,6 +14008,7 @@ var buttonVersion$1 = '12.3.2';
|
|
|
14006
14008
|
* @event auroCalendar-centralDateChanged - Notifies that the month shown has changed. Doesn't bubble; `event.detail.date` is the new `centralDate`.
|
|
14007
14009
|
* @event auroCalendar-dismissRequest - Notifies that someone selected the close or Done button, so the datepicker closes the dropdown.
|
|
14008
14010
|
* @event narrow-changedProperties - Notifies once, after the calendar first renders, with `event.detail.value` set to `false`. The calendar doesn't currently track whether the screen is narrow, so the event doesn't fire again.
|
|
14011
|
+
* @internal
|
|
14009
14012
|
*/
|
|
14010
14013
|
class AuroCalendar extends RangeDatepicker {
|
|
14011
14014
|
constructor() {
|
|
@@ -14171,7 +14174,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14171
14174
|
return {
|
|
14172
14175
|
|
|
14173
14176
|
/**
|
|
14174
|
-
* Doesn't currently do anything. The calendar
|
|
14177
|
+
* Doesn't currently do anything. The calendar takes its last month from `calendarEndDate` or `maxDate` on `auro-datepicker` instead.
|
|
14175
14178
|
*/
|
|
14176
14179
|
calendarEndMonth: {
|
|
14177
14180
|
type: String,
|
|
@@ -14180,7 +14183,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14180
14183
|
},
|
|
14181
14184
|
|
|
14182
14185
|
/**
|
|
14183
|
-
* Doesn't currently do anything. The calendar
|
|
14186
|
+
* Doesn't currently do anything. The calendar takes its first month from `calendarStartDate` or `minDate` on `auro-datepicker` instead.
|
|
14184
14187
|
*/
|
|
14185
14188
|
calendarStartMonth: {
|
|
14186
14189
|
type: String,
|
|
@@ -14189,7 +14192,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14189
14192
|
},
|
|
14190
14193
|
|
|
14191
14194
|
/**
|
|
14192
|
-
* Sets the date whose month the calendar shows, as an ISO date string such as `2025-04-01`. The fullscreen calendar instead starts at `calendarStartDate`, `minDate
|
|
14195
|
+
* Sets the date whose month the calendar shows, as an ISO date string such as `2025-04-01`. The fullscreen calendar instead starts at `calendarStartDate` on `auro-datepicker`, or else at `minDate` or the current month.
|
|
14193
14196
|
*/
|
|
14194
14197
|
centralDate: {
|
|
14195
14198
|
type: String,
|
|
@@ -14553,7 +14556,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14553
14556
|
}
|
|
14554
14557
|
|
|
14555
14558
|
/**
|
|
14556
|
-
* Scrolls the
|
|
14559
|
+
* Scrolls the calendar to the month of a date when the window is narrower than the calendar's mobile breakpoint. Doesn't currently scroll inside `auro-datepicker`, which doesn't set that breakpoint.
|
|
14557
14560
|
* @param {String} date - The date to scroll into view, such as `2025-04-21`.
|
|
14558
14561
|
* @returns {void}
|
|
14559
14562
|
*/
|
|
@@ -14564,7 +14567,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14564
14567
|
/**
|
|
14565
14568
|
* Gets all rendered month components.
|
|
14566
14569
|
* @private
|
|
14567
|
-
* @returns {Array} The auro-formkit-calendar-month elements.
|
|
14570
|
+
* @returns {Array} The `auro-formkit-calendar-month` elements.
|
|
14568
14571
|
*/
|
|
14569
14572
|
getMonthComponents() {
|
|
14570
14573
|
return Array.from(this.shadowRoot.querySelectorAll('auro-formkit-calendar-month'));
|
|
@@ -14614,7 +14617,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14614
14617
|
/**
|
|
14615
14618
|
* Gets all focusable cells across all rendered months.
|
|
14616
14619
|
* @private
|
|
14617
|
-
* @returns {Array} The auro-formkit-calendar-cell elements.
|
|
14620
|
+
* @returns {Array} The `auro-formkit-calendar-cell` elements.
|
|
14618
14621
|
*/
|
|
14619
14622
|
getAllFocusableCells() {
|
|
14620
14623
|
const months = this.getMonthComponents();
|
|
@@ -15494,7 +15497,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15494
15497
|
* @private
|
|
15495
15498
|
* @param {Object} [options] - The optional settings.
|
|
15496
15499
|
* @param {boolean} [options.force=false] - If true, clears classes even
|
|
15497
|
-
* when both dateFrom and dateTo are set. Month nav handlers use it to
|
|
15500
|
+
* when both `dateFrom` and `dateTo` are set. Month nav handlers use it to
|
|
15498
15501
|
* strip the imperative-only `lastHoveredDate` before the re-render.
|
|
15499
15502
|
* The other two classes (`inRange`, `rangeDepartDate`) are classMap-
|
|
15500
15503
|
* managed and get stripped as a side effect here; because classMap
|
|
@@ -20061,7 +20064,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$1 {
|
|
|
20061
20064
|
}
|
|
20062
20065
|
};
|
|
20063
20066
|
|
|
20064
|
-
var formkitVersion$1 = '
|
|
20067
|
+
var formkitVersion$1 = '202611092125';
|
|
20065
20068
|
|
|
20066
20069
|
/**
|
|
20067
20070
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -34245,7 +34248,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
|
34245
34248
|
}
|
|
34246
34249
|
};
|
|
34247
34250
|
|
|
34248
|
-
var formkitVersion = '
|
|
34251
|
+
var formkitVersion = '202611092125';
|
|
34249
34252
|
|
|
34250
34253
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
34251
34254
|
// See LICENSE in the project root for license information.
|
|
@@ -36549,7 +36552,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
36549
36552
|
|
|
36550
36553
|
/**
|
|
36551
36554
|
* Makes a date required. When it's empty, validation fails with `valueMissing`, and in a range, both dates are required. When not set, each input's label shows "(optional)".
|
|
36552
|
-
* @relevantWhen !noValidate
|
|
36553
36555
|
* @category behavior
|
|
36554
36556
|
*/
|
|
36555
36557
|
required: {
|
|
@@ -36559,7 +36561,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
36559
36561
|
|
|
36560
36562
|
/**
|
|
36561
36563
|
* Sets one error message for every kind of validation error except a blackout date, in place of the built-in messages and the other `setCustomValidity` messages. For a blackout date, use `setCustomValidityCustomError`.
|
|
36562
|
-
* @relevantWhen !noValidate
|
|
36563
36564
|
* @category behavior
|
|
36564
36565
|
*/
|
|
36565
36566
|
setCustomValidity: {
|
|
@@ -36569,7 +36570,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
36569
36570
|
|
|
36570
36571
|
/**
|
|
36571
36572
|
* Sets the error message shown when `validity` is `customError`, in place of the `error` text. It also replaces the "Selected date is unavailable" message shown when someone types a blackout date.
|
|
36572
|
-
* @relevantWhen !noValidate
|
|
36573
36573
|
* @category behavior
|
|
36574
36574
|
*/
|
|
36575
36575
|
setCustomValidityCustomError: {
|
|
@@ -36579,7 +36579,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
36579
36579
|
|
|
36580
36580
|
/**
|
|
36581
36581
|
* Sets the error message shown when the date is later than `maxDate` (`rangeOverflow`).
|
|
36582
|
-
* @relevantWhen !noValidate
|
|
36583
36582
|
* @category behavior
|
|
36584
36583
|
*/
|
|
36585
36584
|
setCustomValidityRangeOverflow: {
|
|
@@ -36589,7 +36588,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
36589
36588
|
|
|
36590
36589
|
/**
|
|
36591
36590
|
* Sets the error message shown when the date is earlier than `minDate` (`rangeUnderflow`).
|
|
36592
|
-
* @relevantWhen !noValidate
|
|
36593
36591
|
* @category behavior
|
|
36594
36592
|
*/
|
|
36595
36593
|
setCustomValidityRangeUnderflow: {
|
|
@@ -36599,7 +36597,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
36599
36597
|
|
|
36600
36598
|
/**
|
|
36601
36599
|
* Sets the error message shown when `required` is set and no date is chosen (`valueMissing`).
|
|
36602
|
-
* @relevantWhen !noValidate
|
|
36603
36600
|
* @category behavior
|
|
36604
36601
|
*/
|
|
36605
36602
|
setCustomValidityValueMissing: {
|
|
@@ -36817,9 +36814,10 @@ class AuroDatePicker extends AuroElement {
|
|
|
36817
36814
|
}
|
|
36818
36815
|
|
|
36819
36816
|
/**
|
|
36817
|
+
* Creates a random string of lowercase letters and digits, used as each date input's `id`.
|
|
36820
36818
|
* @private
|
|
36821
|
-
* @param {Number} length - The number of characters in the returned
|
|
36822
|
-
* @returns {string}
|
|
36819
|
+
* @param {Number} length - The maximum number of characters in the returned string. The string is often shorter.
|
|
36820
|
+
* @returns {string} The random string.
|
|
36823
36821
|
*/
|
|
36824
36822
|
generateRandomString(length) {
|
|
36825
36823
|
return Math.random().toString(36).substring(2, length + 2);
|
|
@@ -37476,6 +37474,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
37476
37474
|
|
|
37477
37475
|
/**
|
|
37478
37476
|
* Clears the chosen dates. Unlike `reset()`, the datepicker still counts as used, so the next validation can report a missing date.
|
|
37477
|
+
* @internal
|
|
37478
|
+
* @returns {void}
|
|
37479
37479
|
*/
|
|
37480
37480
|
resetInputs() {
|
|
37481
37481
|
this.inputList.forEach((input) => {
|
|
@@ -37493,7 +37493,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
37493
37493
|
}
|
|
37494
37494
|
|
|
37495
37495
|
/**
|
|
37496
|
-
* Clears the chosen dates
|
|
37496
|
+
* Clears the chosen dates. Unlike `reset()`, the datepicker still counts as used, so the next validation can report a missing date.
|
|
37497
37497
|
* @returns {void}
|
|
37498
37498
|
*/
|
|
37499
37499
|
clear() {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
<li>The full localized date, for example <em>"Thursday, May 14, 2026"</em></li>
|
|
44
44
|
<li>Date slot content when present, such as a price</li>
|
|
45
45
|
<li>Range position when in range mode, such as <em>", range start"</em>, <em>", in range"</em>, or <em>", before range"</em></li>
|
|
46
|
-
<li><em>", unavailable"</em> for blackout dates
|
|
46
|
+
<li><em>", unavailable"</em> for blackout dates, the dates listed in <code>blackoutDates</code></li>
|
|
47
47
|
<li><em>"current date"</em> for today's date (via <code>aria-current="date"</code>)</li>
|
|
48
48
|
<li>Selection state: <em>"selected"</em> or not (via <code>aria-selected</code>)</li>
|
|
49
49
|
</ul>
|
|
50
|
-
<p>Out-of-range cells (outside
|
|
50
|
+
<p>Out-of-range cells (outside the <code>minDate</code> to <code>maxDate</code> range) use the native <code>disabled</code> attribute on their button and drop <code>role</code>/<code>aria-label</code> on the host, so arrow-key navigation skips them and VoiceOver doesn't browse into them.</p>
|
|
51
51
|
<auro-header level="3" id="voiceOverDateSelection">Date selection</auro-header>
|
|
52
52
|
<p>When a date is selected, an <code>aria-live="assertive"</code> region announces the selected date, for example <em>"Thursday, May 14, 2026, selected"</em>. For range datepickers, both the start and end selections are announced.</p>
|
|
53
53
|
<auro-header level="3" id="voiceOverDialogName">Dialog name</auro-header>
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* @event date-is-hovered - Notifies that the pointer moved over this cell's date.
|
|
6
6
|
* @event calendar-cell-focused - Notifies that this cell's button has received focus.
|
|
7
7
|
* @csspart dateSlot - The container under the day number that holds the date's `date_YYYY_MM_DD` slot content, shown only when that slot has content.
|
|
8
|
+
* @internal
|
|
8
9
|
*/
|
|
9
10
|
export class AuroCalendarCell extends LitElement {
|
|
10
11
|
static get properties(): {
|
|
@@ -224,12 +225,12 @@ export class AuroCalendarCell extends LitElement {
|
|
|
224
225
|
*/
|
|
225
226
|
private isReturnDate;
|
|
226
227
|
/**
|
|
227
|
-
* Checks whether the cell's date is between dateFrom and dateTo
|
|
228
|
+
* Checks whether the cell's date is between `dateFrom` and `dateTo`.
|
|
228
229
|
* @private
|
|
229
230
|
* @param {Object} day - The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.
|
|
230
231
|
* @param {Number} dateFrom - The start date, as a Unix timestamp in seconds.
|
|
231
232
|
* @param {Number} dateTo - The end date, as a Unix timestamp in seconds.
|
|
232
|
-
* @returns {Boolean} True if the datepicker is a range and the cell's date is after dateFrom and before dateTo
|
|
233
|
+
* @returns {Boolean} True if the datepicker is a range and the cell's date is after `dateFrom` and, when `dateTo` is set, before `dateTo`; false otherwise.
|
|
233
234
|
*/
|
|
234
235
|
private isInRange;
|
|
235
236
|
/**
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* One month of the datepicker's calendar: a localized heading and a grid of day cells people can select.
|
|
3
3
|
* @event hovered-date-changed - Notifies that the date currently hovered within the month grid has changed.
|
|
4
4
|
* @event calendar-month-mouseleave - Notifies that the pointer left the month's date grid, so the calendar can clear the range preview.
|
|
5
|
+
* @internal
|
|
5
6
|
*/
|
|
6
7
|
export class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
7
8
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -61,7 +62,7 @@ export class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
61
62
|
private renderDayOfWeek;
|
|
62
63
|
/**
|
|
63
64
|
* Gets the cells in this month that keyboard users can reach: enabled and blackout dates, but not dates before the earliest or after the latest date people can choose.
|
|
64
|
-
* @returns {Array} The auro-formkit-calendar-cell elements.
|
|
65
|
+
* @returns {Array} The `auro-formkit-calendar-cell` elements.
|
|
65
66
|
*/
|
|
66
67
|
getFocusableCells(): any[];
|
|
67
68
|
/**
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
* @event auroCalendar-centralDateChanged - Notifies that the month shown has changed. Doesn't bubble; `event.detail.date` is the new `centralDate`.
|
|
5
5
|
* @event auroCalendar-dismissRequest - Notifies that someone selected the close or Done button, so the datepicker closes the dropdown.
|
|
6
6
|
* @event narrow-changedProperties - Notifies once, after the calendar first renders, with `event.detail.value` set to `false`. The calendar doesn't currently track whether the screen is narrow, so the event doesn't fire again.
|
|
7
|
+
* @internal
|
|
7
8
|
*/
|
|
8
9
|
export class AuroCalendar extends RangeDatepicker {
|
|
9
10
|
static get styles(): import("lit").CSSResult[];
|
|
10
11
|
static get properties(): {
|
|
11
12
|
/**
|
|
12
|
-
* Doesn't currently do anything. The calendar
|
|
13
|
+
* Doesn't currently do anything. The calendar takes its last month from `calendarEndDate` or `maxDate` on `auro-datepicker` instead.
|
|
13
14
|
*/
|
|
14
15
|
calendarEndMonth: {
|
|
15
16
|
type: StringConstructor;
|
|
@@ -17,7 +18,7 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
17
18
|
reflect: boolean;
|
|
18
19
|
};
|
|
19
20
|
/**
|
|
20
|
-
* Doesn't currently do anything. The calendar
|
|
21
|
+
* Doesn't currently do anything. The calendar takes its first month from `calendarStartDate` or `minDate` on `auro-datepicker` instead.
|
|
21
22
|
*/
|
|
22
23
|
calendarStartMonth: {
|
|
23
24
|
type: StringConstructor;
|
|
@@ -25,7 +26,7 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
25
26
|
reflect: boolean;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* Sets the date whose month the calendar shows, as an ISO date string such as `2025-04-01`. The fullscreen calendar instead starts at `calendarStartDate`, `minDate
|
|
29
|
+
* Sets the date whose month the calendar shows, as an ISO date string such as `2025-04-01`. The fullscreen calendar instead starts at `calendarStartDate` on `auro-datepicker`, or else at `minDate` or the current month.
|
|
29
30
|
*/
|
|
30
31
|
centralDate: {
|
|
31
32
|
type: StringConstructor;
|
|
@@ -311,7 +312,7 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
311
312
|
*/
|
|
312
313
|
focusCloseButton(): void;
|
|
313
314
|
/**
|
|
314
|
-
* Scrolls the
|
|
315
|
+
* Scrolls the calendar to the month of a date when the window is narrower than the calendar's mobile breakpoint. Doesn't currently scroll inside `auro-datepicker`, which doesn't set that breakpoint.
|
|
315
316
|
* @param {String} date - The date to scroll into view, such as `2025-04-21`.
|
|
316
317
|
* @returns {void}
|
|
317
318
|
*/
|
|
@@ -319,7 +320,7 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
319
320
|
/**
|
|
320
321
|
* Gets all rendered month components.
|
|
321
322
|
* @private
|
|
322
|
-
* @returns {Array} The auro-formkit-calendar-month elements.
|
|
323
|
+
* @returns {Array} The `auro-formkit-calendar-month` elements.
|
|
323
324
|
*/
|
|
324
325
|
private getMonthComponents;
|
|
325
326
|
/**
|
|
@@ -339,7 +340,7 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
339
340
|
/**
|
|
340
341
|
* Gets all focusable cells across all rendered months.
|
|
341
342
|
* @private
|
|
342
|
-
* @returns {Array} The auro-formkit-calendar-cell elements.
|
|
343
|
+
* @returns {Array} The `auro-formkit-calendar-cell` elements.
|
|
343
344
|
*/
|
|
344
345
|
private getAllFocusableCells;
|
|
345
346
|
/**
|
|
@@ -505,7 +506,7 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
505
506
|
* @private
|
|
506
507
|
* @param {Object} [options] - The optional settings.
|
|
507
508
|
* @param {boolean} [options.force=false] - If true, clears classes even
|
|
508
|
-
* when both dateFrom and dateTo are set. Month nav handlers use it to
|
|
509
|
+
* when both `dateFrom` and `dateTo` are set. Month nav handlers use it to
|
|
509
510
|
* strip the imperative-only `lastHoveredDate` before the re-render.
|
|
510
511
|
* The other two classes (`inRange`, `rangeDepartDate`) are classMap-
|
|
511
512
|
* managed and get stripped as a side effect here; because classMap
|
|
@@ -447,7 +447,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
447
447
|
referenceDates: string[];
|
|
448
448
|
/**
|
|
449
449
|
* Makes a date required. When it's empty, validation fails with `valueMissing`, and in a range, both dates are required. When not set, each input's label shows "(optional)".
|
|
450
|
-
* @relevantWhen !noValidate
|
|
451
450
|
* @category behavior
|
|
452
451
|
*/
|
|
453
452
|
required: {
|
|
@@ -456,7 +455,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
456
455
|
};
|
|
457
456
|
/**
|
|
458
457
|
* Sets one error message for every kind of validation error except a blackout date, in place of the built-in messages and the other `setCustomValidity` messages. For a blackout date, use `setCustomValidityCustomError`.
|
|
459
|
-
* @relevantWhen !noValidate
|
|
460
458
|
* @category behavior
|
|
461
459
|
*/
|
|
462
460
|
setCustomValidity: {
|
|
@@ -465,7 +463,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
465
463
|
};
|
|
466
464
|
/**
|
|
467
465
|
* Sets the error message shown when `validity` is `customError`, in place of the `error` text. It also replaces the "Selected date is unavailable" message shown when someone types a blackout date.
|
|
468
|
-
* @relevantWhen !noValidate
|
|
469
466
|
* @category behavior
|
|
470
467
|
*/
|
|
471
468
|
setCustomValidityCustomError: {
|
|
@@ -474,7 +471,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
474
471
|
};
|
|
475
472
|
/**
|
|
476
473
|
* Sets the error message shown when the date is later than `maxDate` (`rangeOverflow`).
|
|
477
|
-
* @relevantWhen !noValidate
|
|
478
474
|
* @category behavior
|
|
479
475
|
*/
|
|
480
476
|
setCustomValidityRangeOverflow: {
|
|
@@ -483,7 +479,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
483
479
|
};
|
|
484
480
|
/**
|
|
485
481
|
* Sets the error message shown when the date is earlier than `minDate` (`rangeUnderflow`).
|
|
486
|
-
* @relevantWhen !noValidate
|
|
487
482
|
* @category behavior
|
|
488
483
|
*/
|
|
489
484
|
setCustomValidityRangeUnderflow: {
|
|
@@ -492,7 +487,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
492
487
|
};
|
|
493
488
|
/**
|
|
494
489
|
* Sets the error message shown when `required` is set and no date is chosen (`valueMissing`).
|
|
495
|
-
* @relevantWhen !noValidate
|
|
496
490
|
* @category behavior
|
|
497
491
|
*/
|
|
498
492
|
setCustomValidityValueMissing: {
|
|
@@ -753,9 +747,10 @@ export class AuroDatePicker extends AuroElement {
|
|
|
753
747
|
*/
|
|
754
748
|
private handleFocusDateChange;
|
|
755
749
|
/**
|
|
750
|
+
* Creates a random string of lowercase letters and digits, used as each date input's `id`.
|
|
756
751
|
* @private
|
|
757
|
-
* @param {Number} length - The number of characters in the returned
|
|
758
|
-
* @returns {string}
|
|
752
|
+
* @param {Number} length - The maximum number of characters in the returned string. The string is often shorter.
|
|
753
|
+
* @returns {string} The random string.
|
|
759
754
|
*/
|
|
760
755
|
private generateRandomString;
|
|
761
756
|
/**
|
|
@@ -937,6 +932,8 @@ export class AuroDatePicker extends AuroElement {
|
|
|
937
932
|
private pushSlotContent;
|
|
938
933
|
/**
|
|
939
934
|
* Clears the chosen dates. Unlike `reset()`, the datepicker still counts as used, so the next validation can report a missing date.
|
|
935
|
+
* @internal
|
|
936
|
+
* @returns {void}
|
|
940
937
|
*/
|
|
941
938
|
resetInputs(): void;
|
|
942
939
|
/**
|
|
@@ -945,7 +942,7 @@ export class AuroDatePicker extends AuroElement {
|
|
|
945
942
|
*/
|
|
946
943
|
reset(): void;
|
|
947
944
|
/**
|
|
948
|
-
* Clears the chosen dates
|
|
945
|
+
* Clears the chosen dates. Unlike `reset()`, the datepicker still counts as used, so the next validation can report a missing date.
|
|
949
946
|
* @returns {void}
|
|
950
947
|
*/
|
|
951
948
|
clear(): void;
|