@aurodesignsystem-dev/auro-formkit 0.0.0-pr1491.9 → 0.0.0-pr1492.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/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/customize.min.js +3 -3
- package/components/combobox/demo/getting-started.min.js +3 -3
- package/components/combobox/demo/index.min.js +3 -3
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/demo/api.md +52 -52
- package/components/datepicker/demo/index.min.js +110 -56
- package/components/datepicker/dist/index.js +110 -56
- package/components/datepicker/dist/registered.js +110 -56
- package/components/datepicker/dist/src/auro-calendar-cell.d.ts +1 -1
- package/components/datepicker/dist/src/auro-calendar-month.d.ts +6 -0
- package/components/datepicker/dist/src/auro-calendar.d.ts +6 -2
- package/components/datepicker/dist/src/auro-datepicker.d.ts +24 -5
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +1 -1
- 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/customize.min.js +126 -72
- package/components/form/demo/getting-started.min.js +126 -72
- package/components/form/demo/index.min.js +126 -72
- package/components/form/demo/registerDemoDeps.min.js +126 -72
- 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/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 +1508 -1470
- package/package.json +1 -1
|
@@ -1373,7 +1373,7 @@ function normalizeDates$1(context, ...dates) {
|
|
|
1373
1373
|
* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
|
|
1374
1374
|
* //=> Tue Sep 02 2014 00:00:00
|
|
1375
1375
|
*/
|
|
1376
|
-
function startOfDay$
|
|
1376
|
+
function startOfDay$2(date, options) {
|
|
1377
1377
|
const _date = toDate$1(date, options?.in);
|
|
1378
1378
|
_date.setHours(0, 0, 0, 0);
|
|
1379
1379
|
return _date;
|
|
@@ -1421,8 +1421,8 @@ function differenceInCalendarDays$1(laterDate, earlierDate, options) {
|
|
|
1421
1421
|
earlierDate,
|
|
1422
1422
|
);
|
|
1423
1423
|
|
|
1424
|
-
const laterStartOfDay = startOfDay$
|
|
1425
|
-
const earlierStartOfDay = startOfDay$
|
|
1424
|
+
const laterStartOfDay = startOfDay$2(laterDate_);
|
|
1425
|
+
const earlierStartOfDay = startOfDay$2(earlierDate_);
|
|
1426
1426
|
|
|
1427
1427
|
const laterTimestamp =
|
|
1428
1428
|
+laterStartOfDay - getTimezoneOffsetInMilliseconds$1(laterStartOfDay);
|
|
@@ -10816,6 +10816,7 @@ class UtilitiesCalendarRender {
|
|
|
10816
10816
|
.dateTo="${elem.dateTo}"
|
|
10817
10817
|
.dateFrom="${elem.dateFrom}"
|
|
10818
10818
|
.locale="${elem.locale}"
|
|
10819
|
+
.localeCode="${elem.localeCode}"
|
|
10819
10820
|
.monthNames="${elem.monthNames}"
|
|
10820
10821
|
month="${month}"
|
|
10821
10822
|
year="${year}"
|
|
@@ -10946,8 +10947,8 @@ class RangeDatepickerCell extends i$1 {
|
|
|
10946
10947
|
const parsedDateFrom = parseInt(dateFrom, 10);
|
|
10947
10948
|
const parsedDateTo = parseInt(dateTo, 10);
|
|
10948
10949
|
if (day) {
|
|
10949
|
-
if (getTime(startOfDay$
|
|
10950
|
-
getTime(startOfDay$
|
|
10950
|
+
if (getTime(startOfDay$2(parsedDateTo * 1000)) / 1000 === day.date ||
|
|
10951
|
+
getTime(startOfDay$2(parsedDateFrom * 1000)) / 1000 === day.date) {
|
|
10951
10952
|
this.selected = true;
|
|
10952
10953
|
}
|
|
10953
10954
|
if (((hoveredDate === day.date || day.date < hoveredDate) &&
|
|
@@ -11135,7 +11136,7 @@ class RangeDatepickerCalendar extends i$1 {
|
|
|
11135
11136
|
this.dayNamesOfTheWeek = [];
|
|
11136
11137
|
this.daysOfMonth = [];
|
|
11137
11138
|
this._locale = null;
|
|
11138
|
-
this.currentDate = parseInt(format$1(startOfDay$
|
|
11139
|
+
this.currentDate = parseInt(format$1(startOfDay$2(Date.now()), 't'), 10);
|
|
11139
11140
|
this.localeChanged();
|
|
11140
11141
|
this.yearAndMonthChanged(this.year, this.month);
|
|
11141
11142
|
}
|
|
@@ -11629,6 +11630,12 @@ let s$2 = class s{registerComponent(e,t){customElements.get(e)||customElements.d
|
|
|
11629
11630
|
|
|
11630
11631
|
var popoverVersion = '6.0.1';
|
|
11631
11632
|
|
|
11633
|
+
const startOfDay$1 = (ms) => {
|
|
11634
|
+
const date = new Date(ms);
|
|
11635
|
+
date.setHours(0, 0, 0, 0);
|
|
11636
|
+
return date.getTime();
|
|
11637
|
+
};
|
|
11638
|
+
|
|
11632
11639
|
/* eslint-disable curly, max-lines, no-underscore-dangle, no-magic-numbers, no-underscore-dangle, max-params, no-void, init-declarations, no-extra-parens, arrow-parens, max-lines, line-comment-position, no-inline-comments, lit/binding-positions, lit/no-invalid-html */
|
|
11633
11640
|
|
|
11634
11641
|
class AuroCalendarCell extends i$1 {
|
|
@@ -11681,14 +11688,14 @@ class AuroCalendarCell extends i$1 {
|
|
|
11681
11688
|
disabledDays: { type: Array },
|
|
11682
11689
|
hoveredDate: { type: String },
|
|
11683
11690
|
isCurrentDate: { type: Boolean },
|
|
11684
|
-
locale: { type:
|
|
11691
|
+
locale: { type: String },
|
|
11685
11692
|
dateStr: { type: String },
|
|
11686
11693
|
renderForDateSlot: { type: Boolean }
|
|
11687
11694
|
};
|
|
11688
11695
|
}
|
|
11689
11696
|
|
|
11690
11697
|
get locale() {
|
|
11691
|
-
return this._locale
|
|
11698
|
+
return this._locale;
|
|
11692
11699
|
}
|
|
11693
11700
|
|
|
11694
11701
|
set locale(value) {
|
|
@@ -11882,9 +11889,12 @@ class AuroCalendarCell extends i$1 {
|
|
|
11882
11889
|
if (date === undefined) {
|
|
11883
11890
|
return '';
|
|
11884
11891
|
}
|
|
11885
|
-
return
|
|
11886
|
-
|
|
11887
|
-
|
|
11892
|
+
return new Intl.DateTimeFormat(this.locale, {
|
|
11893
|
+
weekday: 'long',
|
|
11894
|
+
year: 'numeric',
|
|
11895
|
+
month: 'long',
|
|
11896
|
+
day: 'numeric'
|
|
11897
|
+
}).format(new Date(date * 1000));
|
|
11888
11898
|
}
|
|
11889
11899
|
|
|
11890
11900
|
/**
|
|
@@ -12050,6 +12060,13 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12050
12060
|
monthFirst: {
|
|
12051
12061
|
type: Boolean,
|
|
12052
12062
|
reflect: true
|
|
12063
|
+
},
|
|
12064
|
+
|
|
12065
|
+
/**
|
|
12066
|
+
* BCP 47 locale tag for calendar localization.
|
|
12067
|
+
*/
|
|
12068
|
+
localeCode: {
|
|
12069
|
+
type: String
|
|
12053
12070
|
}
|
|
12054
12071
|
};
|
|
12055
12072
|
}
|
|
@@ -12092,20 +12109,28 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12092
12109
|
* @private
|
|
12093
12110
|
* @returns {void}
|
|
12094
12111
|
*/
|
|
12112
|
+
updated(changedProperties) {
|
|
12113
|
+
super.updated(changedProperties);
|
|
12114
|
+
if (changedProperties.has('localeCode')) {
|
|
12115
|
+
this.localeChanged();
|
|
12116
|
+
}
|
|
12117
|
+
}
|
|
12118
|
+
|
|
12095
12119
|
localeChanged() {
|
|
12096
|
-
const
|
|
12097
|
-
|
|
12098
|
-
|
|
12120
|
+
const fmt = new Intl.DateTimeFormat(this.localeCode || 'en-US', { weekday: 'narrow' });
|
|
12121
|
+
// Jan 5 2025 is a known Sunday; iterate to get all 7 narrow day names starting from Sunday
|
|
12122
|
+
const sundayMs = new Date(2025, 0, 5).getTime();
|
|
12123
|
+
const msPerDay = 864e5;
|
|
12124
|
+
const allDays = [];
|
|
12125
|
+
for (let day = 0; day < 7; day += 1) {
|
|
12126
|
+
const offsetMs = day * msPerDay;
|
|
12127
|
+
allDays.push(fmt.format(new Date(sundayMs + offsetMs)));
|
|
12099
12128
|
}
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
const
|
|
12104
|
-
|
|
12105
|
-
.slice()
|
|
12106
|
-
.splice(firstDayOfWeek, dayNamesOfTheWeek.length)
|
|
12107
|
-
.concat(tmp);
|
|
12108
|
-
this.dayNamesOfTheWeek = newDayNamesOfTheWeek;
|
|
12129
|
+
|
|
12130
|
+
// Currently locale is always enUS by default, so this will not cause any change.
|
|
12131
|
+
// Week starts on Monday (index 1 in the Sunday-first array)
|
|
12132
|
+
const firstDayOfWeek = this.locale?.options?.weekStartsOn || 1;
|
|
12133
|
+
this.dayNamesOfTheWeek = allDays.slice(firstDayOfWeek).concat(allDays.slice(0, firstDayOfWeek));
|
|
12109
12134
|
}
|
|
12110
12135
|
|
|
12111
12136
|
renderDay(day) {
|
|
@@ -12121,7 +12146,7 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12121
12146
|
.hoveredDate="${this.hoveredDate}"
|
|
12122
12147
|
.dateTo="${this.dateTo}"
|
|
12123
12148
|
.dateFrom="${this.dateFrom}"
|
|
12124
|
-
.locale="${this.
|
|
12149
|
+
.locale="${this.localeCode}"
|
|
12125
12150
|
.day="${day}"
|
|
12126
12151
|
?isCurrentDate="${this.isCurrentDate(day)}"
|
|
12127
12152
|
@date-is-selected="${this.handleDateSelected}"
|
|
@@ -12976,7 +13001,7 @@ class AuroBibtemplate extends i$1 {
|
|
|
12976
13001
|
}
|
|
12977
13002
|
}
|
|
12978
13003
|
|
|
12979
|
-
var formkitVersion$2 = '
|
|
13004
|
+
var formkitVersion$2 = '202606031753';
|
|
12980
13005
|
|
|
12981
13006
|
let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$5`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$4 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$3=i$3`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-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])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
12982
13007
|
`,u$6=i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.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.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.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, .75rem);line-height:var(--wcss-body-xs-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-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-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-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-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-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-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-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-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-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-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-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-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-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"),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-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"),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-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-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-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-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-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-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-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,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;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;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -13119,7 +13144,6 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13119
13144
|
|
|
13120
13145
|
static get properties() {
|
|
13121
13146
|
return {
|
|
13122
|
-
|
|
13123
13147
|
/**
|
|
13124
13148
|
* The last month that may be displayed in the calendar.
|
|
13125
13149
|
*/
|
|
@@ -13209,8 +13233,6 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13209
13233
|
},
|
|
13210
13234
|
|
|
13211
13235
|
/**
|
|
13212
|
-
* If true, the month will be displayed before the year in the calendar header.
|
|
13213
|
-
* Passed to AuroCalendarMonth via utilitesCalendarRender.
|
|
13214
13236
|
* @private
|
|
13215
13237
|
*/
|
|
13216
13238
|
monthFirst: {
|
|
@@ -13231,10 +13253,21 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13231
13253
|
visible: {
|
|
13232
13254
|
type: Boolean,
|
|
13233
13255
|
reflect: false
|
|
13256
|
+
},
|
|
13257
|
+
|
|
13258
|
+
/**
|
|
13259
|
+
* BCP 47 locale tag for calendar localization.
|
|
13260
|
+
*/
|
|
13261
|
+
localeCode: {
|
|
13262
|
+
type: String
|
|
13234
13263
|
}
|
|
13235
13264
|
};
|
|
13236
13265
|
}
|
|
13237
13266
|
|
|
13267
|
+
localeChanged() {
|
|
13268
|
+
// Locale propagation handled via Lit property bindings to child calendar-month elements.
|
|
13269
|
+
}
|
|
13270
|
+
|
|
13238
13271
|
// ─── Read-only *Object properties ─────────────────────────────────────────
|
|
13239
13272
|
|
|
13240
13273
|
/** @returns {Date|undefined} */
|
|
@@ -13361,9 +13394,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13361
13394
|
*/
|
|
13362
13395
|
focusCloseButton() {
|
|
13363
13396
|
const bibtemplate = this.shadowRoot.querySelector(this.bibtemplateTag._$litStatic$);
|
|
13364
|
-
if (bibtemplate)
|
|
13365
|
-
bibtemplate.focusCloseButton();
|
|
13366
|
-
}
|
|
13397
|
+
if (bibtemplate) bibtemplate.focusCloseButton();
|
|
13367
13398
|
}
|
|
13368
13399
|
|
|
13369
13400
|
/**
|
|
@@ -17364,7 +17395,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$1 {
|
|
|
17364
17395
|
}
|
|
17365
17396
|
};
|
|
17366
17397
|
|
|
17367
|
-
var formkitVersion$1 = '
|
|
17398
|
+
var formkitVersion$1 = '202606031753';
|
|
17368
17399
|
|
|
17369
17400
|
let AuroElement$2 = class AuroElement extends i$1 {
|
|
17370
17401
|
static get properties() {
|
|
@@ -30622,7 +30653,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
|
30622
30653
|
}
|
|
30623
30654
|
};
|
|
30624
30655
|
|
|
30625
|
-
var formkitVersion = '
|
|
30656
|
+
var formkitVersion = '202606031753';
|
|
30626
30657
|
|
|
30627
30658
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
30628
30659
|
// See LICENSE in the project root for license information.
|
|
@@ -31994,6 +32025,11 @@ const datepickerKeyboardStrategy = {
|
|
|
31994
32025
|
// See LICENSE in the project root for license information.
|
|
31995
32026
|
|
|
31996
32027
|
|
|
32028
|
+
const getMonthNamesFromLocale = (locale) => {
|
|
32029
|
+
const fmt = new Intl.DateTimeFormat(locale || 'en-US', { month: 'long' });
|
|
32030
|
+
return Array.from({ length: 12 }, (_, i) => fmt.format(new Date(2000, i, 1)));
|
|
32031
|
+
};
|
|
32032
|
+
|
|
31997
32033
|
|
|
31998
32034
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
31999
32035
|
/**
|
|
@@ -32031,7 +32067,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
32031
32067
|
delegatesFocus: true,
|
|
32032
32068
|
};
|
|
32033
32069
|
}
|
|
32034
|
-
|
|
32035
32070
|
constructor() {
|
|
32036
32071
|
super();
|
|
32037
32072
|
|
|
@@ -32069,21 +32104,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
32069
32104
|
this.calendarEndDate = undefined;
|
|
32070
32105
|
this.calendarFocusDate = this.value;
|
|
32071
32106
|
this.fullscreenBreakpoint = 'sm';
|
|
32072
|
-
this.monthNames = [
|
|
32073
|
-
'January',
|
|
32074
|
-
'February',
|
|
32075
|
-
'March',
|
|
32076
|
-
'April',
|
|
32077
|
-
'May',
|
|
32078
|
-
'June',
|
|
32079
|
-
'July',
|
|
32080
|
-
'August',
|
|
32081
|
-
'September',
|
|
32082
|
-
'October',
|
|
32083
|
-
'November',
|
|
32084
|
-
'December'
|
|
32085
|
-
];
|
|
32086
|
-
|
|
32087
32107
|
// floaterConfig
|
|
32088
32108
|
this.placement = 'bottom-start';
|
|
32089
32109
|
this.offset = 0;
|
|
@@ -32354,12 +32374,20 @@ class AuroDatePicker extends AuroElement {
|
|
|
32354
32374
|
},
|
|
32355
32375
|
|
|
32356
32376
|
/**
|
|
32357
|
-
* Names of all 12 months to render in the calendar
|
|
32377
|
+
* Names of all 12 months to render in the calendar.
|
|
32378
|
+
* When omitted, month names will be automatically populated from the active `locale` (falling back to `en-US`).
|
|
32358
32379
|
*/
|
|
32359
32380
|
monthNames: {
|
|
32360
32381
|
type: Array
|
|
32361
32382
|
},
|
|
32362
32383
|
|
|
32384
|
+
/**
|
|
32385
|
+
* @private
|
|
32386
|
+
*/
|
|
32387
|
+
monthFirst: {
|
|
32388
|
+
type: Boolean
|
|
32389
|
+
},
|
|
32390
|
+
|
|
32363
32391
|
/**
|
|
32364
32392
|
* If declared, the bib will NOT flip to an alternate position
|
|
32365
32393
|
* when there isn't enough space in the specified `placement`.
|
|
@@ -32636,9 +32664,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
32636
32664
|
}
|
|
32637
32665
|
|
|
32638
32666
|
/**
|
|
32639
|
-
* Common display value wrapper classes.
|
|
32640
32667
|
* @private
|
|
32641
|
-
*
|
|
32668
|
+
* Common display value wrapper classes.
|
|
32642
32669
|
*/
|
|
32643
32670
|
get commonDisplayValueWrapperClasses() {
|
|
32644
32671
|
return {
|
|
@@ -32997,6 +33024,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
32997
33024
|
configureCalendar() {
|
|
32998
33025
|
this.calendar = this.shadowRoot.querySelector('auro-formkit-calendar');
|
|
32999
33026
|
this.calendar.datepicker = this;
|
|
33027
|
+
this.calendar.format = this.format || 'mm/dd/yyyy';
|
|
33000
33028
|
this.calendar.dropdown = this.dropdown;
|
|
33001
33029
|
|
|
33002
33030
|
this.calendar.addEventListener('auroCalendar-dateSelected', () => {
|
|
@@ -33211,16 +33239,40 @@ class AuroDatePicker extends AuroElement {
|
|
|
33211
33239
|
return this.validity !== undefined && this.validity !== 'valid';
|
|
33212
33240
|
}
|
|
33213
33241
|
|
|
33242
|
+
/**
|
|
33243
|
+
* @private
|
|
33244
|
+
* Lifecycle method used to react to changes in properties.
|
|
33245
|
+
* In this case, we want to update the default month names when the locale changes.
|
|
33246
|
+
* @param {*} changedProperties
|
|
33247
|
+
*/
|
|
33248
|
+
willUpdate(changedProperties) {
|
|
33249
|
+
if (changedProperties.has('locale')) {
|
|
33250
|
+
|
|
33251
|
+
/**
|
|
33252
|
+
* Default month names are derived from the locale,
|
|
33253
|
+
* but can be overridden by the monthNames property.
|
|
33254
|
+
* @private
|
|
33255
|
+
*/
|
|
33256
|
+
this._defaultMonthNames = getMonthNamesFromLocale(this.locale);
|
|
33257
|
+
}
|
|
33258
|
+
}
|
|
33259
|
+
|
|
33214
33260
|
updated(changedProperties) {
|
|
33215
33261
|
if (changedProperties.has('locale')) {
|
|
33216
33262
|
if (!changedProperties.has('format')) {
|
|
33217
33263
|
const previousLocaleFormat = getDateFormatFromLocale$1(changedProperties.get('locale'));
|
|
33218
33264
|
if (!this.format || this.format.toLowerCase() === previousLocaleFormat) {
|
|
33219
33265
|
this.format = getDateFormatFromLocale$1(this.locale);
|
|
33266
|
+
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
33220
33267
|
}
|
|
33221
33268
|
}
|
|
33222
33269
|
}
|
|
33223
33270
|
|
|
33271
|
+
if (changedProperties.has('format')) {
|
|
33272
|
+
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
33273
|
+
}
|
|
33274
|
+
|
|
33275
|
+
|
|
33224
33276
|
if (changedProperties.has('disabled')) {
|
|
33225
33277
|
if (this.disabled) {
|
|
33226
33278
|
this.previousTabIndex = this.getAttribute('tabindex');
|
|
@@ -33472,6 +33524,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
33472
33524
|
if (!this.format) {
|
|
33473
33525
|
this.format = getDateFormatFromLocale$1(this.locale);
|
|
33474
33526
|
}
|
|
33527
|
+
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
33475
33528
|
}
|
|
33476
33529
|
|
|
33477
33530
|
// layout render methods
|
|
@@ -33650,7 +33703,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
33650
33703
|
?disabled="${this.disabled}"
|
|
33651
33704
|
?required="${this.required}"
|
|
33652
33705
|
?hideLabelVisually="${this.layout !== 'classic'}"
|
|
33653
|
-
format="${this.format}"
|
|
33706
|
+
.format="${this.format}"
|
|
33654
33707
|
locale="${this.locale}"
|
|
33655
33708
|
.max="${this.maxDate}"
|
|
33656
33709
|
.min="${this.minDate}"
|
|
@@ -33739,7 +33792,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
33739
33792
|
/**
|
|
33740
33793
|
* Handles click on the clear button.
|
|
33741
33794
|
* @private
|
|
33742
|
-
* @param {MouseEvent} event
|
|
33795
|
+
* @param {MouseEvent} event
|
|
33743
33796
|
* @returns {void}
|
|
33744
33797
|
*/
|
|
33745
33798
|
handleClearClick(event) {
|
|
@@ -33859,10 +33912,11 @@ class AuroDatePicker extends AuroElement {
|
|
|
33859
33912
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
33860
33913
|
?noRange="${!this.range}"
|
|
33861
33914
|
.format="${this.format}"
|
|
33862
|
-
.monthFirst="${this.
|
|
33915
|
+
.monthFirst="${this.monthFirst}"
|
|
33863
33916
|
.maxDate="${this.maxDate}"
|
|
33864
33917
|
.minDate="${this.minDate}"
|
|
33865
|
-
.monthNames="${this.monthNames}"
|
|
33918
|
+
.monthNames="${this.monthNames || this._defaultMonthNames}"
|
|
33919
|
+
.localeCode="${this.locale}"
|
|
33866
33920
|
.mobileBreakpoint="${this.mobileBreakpoint}"
|
|
33867
33921
|
part="calendar"
|
|
33868
33922
|
>
|