@aurodesignsystem-dev/auro-formkit 0.0.0-pr1483.5 → 0.0.0-pr1483.6
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 +138 -61
- package/components/datepicker/dist/index.js +138 -61
- package/components/datepicker/dist/registered.js +138 -61
- package/components/datepicker/dist/src/auro-calendar-cell.d.ts +3 -1
- package/components/datepicker/dist/src/auro-calendar-month.d.ts +23 -0
- package/components/datepicker/dist/src/auro-calendar.d.ts +13 -0
- package/components/datepicker/dist/src/auro-datepicker.d.ts +11 -3
- 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 +154 -77
- package/components/form/demo/getting-started.min.js +154 -77
- package/components/form/demo/index.min.js +154 -77
- package/components/form/demo/registerDemoDeps.min.js +154 -77
- 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 +403 -332
- package/package.json +1 -1
|
@@ -1356,7 +1356,7 @@ function normalizeDates$1(context, ...dates) {
|
|
|
1356
1356
|
* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
|
|
1357
1357
|
* //=> Tue Sep 02 2014 00:00:00
|
|
1358
1358
|
*/
|
|
1359
|
-
function startOfDay$
|
|
1359
|
+
function startOfDay$2(date, options) {
|
|
1360
1360
|
const _date = toDate$1(date, options?.in);
|
|
1361
1361
|
_date.setHours(0, 0, 0, 0);
|
|
1362
1362
|
return _date;
|
|
@@ -1404,8 +1404,8 @@ function differenceInCalendarDays$1(laterDate, earlierDate, options) {
|
|
|
1404
1404
|
earlierDate,
|
|
1405
1405
|
);
|
|
1406
1406
|
|
|
1407
|
-
const laterStartOfDay = startOfDay$
|
|
1408
|
-
const earlierStartOfDay = startOfDay$
|
|
1407
|
+
const laterStartOfDay = startOfDay$2(laterDate_);
|
|
1408
|
+
const earlierStartOfDay = startOfDay$2(earlierDate_);
|
|
1409
1409
|
|
|
1410
1410
|
const laterTimestamp =
|
|
1411
1411
|
+laterStartOfDay - getTimezoneOffsetInMilliseconds$1(laterStartOfDay);
|
|
@@ -10780,6 +10780,7 @@ class UtilitiesCalendarRender {
|
|
|
10780
10780
|
.dateTo="${elem.dateTo}"
|
|
10781
10781
|
.dateFrom="${elem.dateFrom}"
|
|
10782
10782
|
.locale="${elem.locale}"
|
|
10783
|
+
.localeCode="${elem.localeCode}"
|
|
10783
10784
|
.monthNames="${elem.monthNames}"
|
|
10784
10785
|
month="${month}"
|
|
10785
10786
|
year="${year}"
|
|
@@ -10904,8 +10905,8 @@ class RangeDatepickerCell extends LitElement {
|
|
|
10904
10905
|
const parsedDateFrom = parseInt(dateFrom, 10);
|
|
10905
10906
|
const parsedDateTo = parseInt(dateTo, 10);
|
|
10906
10907
|
if (day) {
|
|
10907
|
-
if (getTime(startOfDay$
|
|
10908
|
-
getTime(startOfDay$
|
|
10908
|
+
if (getTime(startOfDay$2(parsedDateTo * 1000)) / 1000 === day.date ||
|
|
10909
|
+
getTime(startOfDay$2(parsedDateFrom * 1000)) / 1000 === day.date) {
|
|
10909
10910
|
this.selected = true;
|
|
10910
10911
|
}
|
|
10911
10912
|
if (((hoveredDate === day.date || day.date < hoveredDate) &&
|
|
@@ -11093,7 +11094,7 @@ class RangeDatepickerCalendar extends LitElement {
|
|
|
11093
11094
|
this.dayNamesOfTheWeek = [];
|
|
11094
11095
|
this.daysOfMonth = [];
|
|
11095
11096
|
this._locale = null;
|
|
11096
|
-
this.currentDate = parseInt(format$1(startOfDay$
|
|
11097
|
+
this.currentDate = parseInt(format$1(startOfDay$2(Date.now()), 't'), 10);
|
|
11097
11098
|
this.localeChanged();
|
|
11098
11099
|
this.yearAndMonthChanged(this.year, this.month);
|
|
11099
11100
|
}
|
|
@@ -11587,6 +11588,12 @@ class s{registerComponent(e,t){customElements.get(e)||customElements.define(e,cl
|
|
|
11587
11588
|
|
|
11588
11589
|
var popoverVersion = '6.0.1';
|
|
11589
11590
|
|
|
11591
|
+
const startOfDay$1 = (ms) => {
|
|
11592
|
+
const date = new Date(ms);
|
|
11593
|
+
date.setHours(0, 0, 0, 0);
|
|
11594
|
+
return date.getTime();
|
|
11595
|
+
};
|
|
11596
|
+
|
|
11590
11597
|
/* 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 */
|
|
11591
11598
|
|
|
11592
11599
|
class AuroCalendarCell extends LitElement {
|
|
@@ -11639,14 +11646,14 @@ class AuroCalendarCell extends LitElement {
|
|
|
11639
11646
|
disabledDays: { type: Array },
|
|
11640
11647
|
hoveredDate: { type: String },
|
|
11641
11648
|
isCurrentDate: { type: Boolean },
|
|
11642
|
-
locale: { type:
|
|
11649
|
+
locale: { type: String },
|
|
11643
11650
|
dateStr: { type: String },
|
|
11644
11651
|
renderForDateSlot: { type: Boolean }
|
|
11645
11652
|
};
|
|
11646
11653
|
}
|
|
11647
11654
|
|
|
11648
11655
|
get locale() {
|
|
11649
|
-
return this._locale
|
|
11656
|
+
return this._locale || 'en-US';
|
|
11650
11657
|
}
|
|
11651
11658
|
|
|
11652
11659
|
set locale(value) {
|
|
@@ -11840,9 +11847,16 @@ class AuroCalendarCell extends LitElement {
|
|
|
11840
11847
|
if (date === undefined) {
|
|
11841
11848
|
return '';
|
|
11842
11849
|
}
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11850
|
+
if (!this._titleFormatter || this._titleFormatterLocale !== this.locale) {
|
|
11851
|
+
this._titleFormatter = new Intl.DateTimeFormat(this.locale, {
|
|
11852
|
+
weekday: 'long',
|
|
11853
|
+
year: 'numeric',
|
|
11854
|
+
month: 'long',
|
|
11855
|
+
day: 'numeric'
|
|
11856
|
+
});
|
|
11857
|
+
this._titleFormatterLocale = this.locale;
|
|
11858
|
+
}
|
|
11859
|
+
return this._titleFormatter.format(new Date(date * 1000));
|
|
11846
11860
|
}
|
|
11847
11861
|
|
|
11848
11862
|
/**
|
|
@@ -11985,10 +11999,43 @@ if (!customElements.get('auro-formkit-calendar-cell')) {
|
|
|
11985
11999
|
customElements.define('auro-formkit-calendar-cell', AuroCalendarCell);
|
|
11986
12000
|
}
|
|
11987
12001
|
|
|
12002
|
+
/* eslint-disable no-underscore-dangle */
|
|
12003
|
+
|
|
11988
12004
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11989
12005
|
|
|
11990
12006
|
/* eslint-disable no-magic-numbers, dot-location */
|
|
11991
12007
|
|
|
12008
|
+
|
|
12009
|
+
const getMonthNamesFromLocale = (locale) => {
|
|
12010
|
+
const fmt = new Intl.DateTimeFormat(locale, {
|
|
12011
|
+
month: 'long',
|
|
12012
|
+
timeZone: 'UTC'
|
|
12013
|
+
});
|
|
12014
|
+
// eslint-disable-next-line id-length
|
|
12015
|
+
return Array.from({ length: 12 }, (_, i) => fmt.format(Date.UTC(2000, i, 1)));
|
|
12016
|
+
};
|
|
12017
|
+
|
|
12018
|
+
/**
|
|
12019
|
+
* Generates the localized narrow names for each day of the week, starting from Sunday.
|
|
12020
|
+
* Uses UTC dates to avoid DST-related day drift across timezones.
|
|
12021
|
+
* @private
|
|
12022
|
+
* @param {String} locale - The BCP 47 language tag for localization (e.g. "en-US").
|
|
12023
|
+
* @returns {Array} An array of seven localized narrow weekday names, starting from Sunday.
|
|
12024
|
+
*/
|
|
12025
|
+
const getWeekdayNames = (locale) => {
|
|
12026
|
+
const fmt = new Intl.DateTimeFormat(locale, {
|
|
12027
|
+
weekday: 'narrow',
|
|
12028
|
+
timeZone: 'UTC'
|
|
12029
|
+
});
|
|
12030
|
+
// Jan 5 2025 is a known Sunday; use Date.UTC to avoid DST-related day drift
|
|
12031
|
+
const allDays = [];
|
|
12032
|
+
for (let day = 0; day < 7; day += 1) {
|
|
12033
|
+
allDays.push(fmt.format(Date.UTC(2025, 0, 5 + day)));
|
|
12034
|
+
}
|
|
12035
|
+
return allDays;
|
|
12036
|
+
};
|
|
12037
|
+
|
|
12038
|
+
|
|
11992
12039
|
class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
11993
12040
|
static get styles() {
|
|
11994
12041
|
return [
|
|
@@ -12008,6 +12055,21 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12008
12055
|
monthFirst: {
|
|
12009
12056
|
type: Boolean,
|
|
12010
12057
|
reflect: true
|
|
12058
|
+
},
|
|
12059
|
+
|
|
12060
|
+
/**
|
|
12061
|
+
* BCP 47 locale tag (such as `en-US`) for calendar localization.
|
|
12062
|
+
* as wc-range-datepicker expects a `locale` prop, we use `localeCode` to avoid conflicts.
|
|
12063
|
+
*/
|
|
12064
|
+
localeCode: {
|
|
12065
|
+
type: String
|
|
12066
|
+
},
|
|
12067
|
+
|
|
12068
|
+
/**
|
|
12069
|
+
* Names of all 12 months. When omitted, names are derived from `localeCode`.
|
|
12070
|
+
*/
|
|
12071
|
+
monthNames: {
|
|
12072
|
+
type: Array
|
|
12011
12073
|
}
|
|
12012
12074
|
};
|
|
12013
12075
|
}
|
|
@@ -12041,29 +12103,33 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12041
12103
|
* @returns {String} The name of the month.
|
|
12042
12104
|
*/
|
|
12043
12105
|
computeCurrentMonthName(month) {
|
|
12044
|
-
|
|
12106
|
+
if (this.monthNames?.[month - 1]) {
|
|
12107
|
+
return this.monthNames[month - 1];
|
|
12108
|
+
}
|
|
12109
|
+
if (!this._cachedMonthNames || this._cachedMonthNamesLocale !== this.localeCode) {
|
|
12110
|
+
this._cachedMonthNames = getMonthNamesFromLocale(this.localeCode);
|
|
12111
|
+
this._cachedMonthNamesLocale = this.localeCode;
|
|
12112
|
+
}
|
|
12113
|
+
return this._cachedMonthNames[month - 1] || '';
|
|
12045
12114
|
}
|
|
12046
12115
|
|
|
12047
12116
|
/**
|
|
12048
12117
|
* Determines the current month name based on locale.
|
|
12049
12118
|
* This is a rewrite of the function used in the class RangeDatepickerCalendar and should not be removed from here.
|
|
12050
12119
|
* @private
|
|
12120
|
+
* @param {Object} changedProperties - The properties that have changed since the last update.
|
|
12051
12121
|
* @returns {void}
|
|
12052
12122
|
*/
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12123
|
+
updated(changedProperties) {
|
|
12124
|
+
super.updated(changedProperties);
|
|
12125
|
+
if (changedProperties.has('localeCode')) {
|
|
12126
|
+
this.localeChanged();
|
|
12057
12127
|
}
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
.slice()
|
|
12064
|
-
.splice(firstDayOfWeek, dayNamesOfTheWeek.length)
|
|
12065
|
-
.concat(tmp);
|
|
12066
|
-
this.dayNamesOfTheWeek = newDayNamesOfTheWeek;
|
|
12128
|
+
}
|
|
12129
|
+
|
|
12130
|
+
localeChanged() {
|
|
12131
|
+
// Week always starts on Sunday; use Intl-derived names directly without rotation
|
|
12132
|
+
this.dayNamesOfTheWeek = getWeekdayNames(this.localeCode);
|
|
12067
12133
|
}
|
|
12068
12134
|
|
|
12069
12135
|
renderDay(day) {
|
|
@@ -12079,7 +12145,7 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12079
12145
|
.hoveredDate="${this.hoveredDate}"
|
|
12080
12146
|
.dateTo="${this.dateTo}"
|
|
12081
12147
|
.dateFrom="${this.dateFrom}"
|
|
12082
|
-
.locale="${this.
|
|
12148
|
+
.locale="${this.localeCode}"
|
|
12083
12149
|
.day="${day}"
|
|
12084
12150
|
?isCurrentDate="${this.isCurrentDate(day)}"
|
|
12085
12151
|
@date-is-selected="${this.handleDateSelected}"
|
|
@@ -12928,7 +12994,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
12928
12994
|
}
|
|
12929
12995
|
}
|
|
12930
12996
|
|
|
12931
|
-
var formkitVersion$2 = '
|
|
12997
|
+
var formkitVersion$2 = '202606041922';
|
|
12932
12998
|
|
|
12933
12999
|
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=literal`${unsafeStatic(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$1 = 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$1=css`: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}
|
|
12934
13000
|
`,u$4=css`.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}}
|
|
@@ -13183,6 +13249,21 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13183
13249
|
visible: {
|
|
13184
13250
|
type: Boolean,
|
|
13185
13251
|
reflect: false
|
|
13252
|
+
},
|
|
13253
|
+
|
|
13254
|
+
/**
|
|
13255
|
+
* BCP 47 locale tag (such as `en-US`) for calendar localization.
|
|
13256
|
+
* as wc-range-datepicker expects a `locale` prop, we use `localeCode` to avoid conflicts and pass the locale down to calendar-month elements.
|
|
13257
|
+
*/
|
|
13258
|
+
localeCode: {
|
|
13259
|
+
type: String
|
|
13260
|
+
},
|
|
13261
|
+
|
|
13262
|
+
/**
|
|
13263
|
+
* Names of all 12 months. When omitted, names are derived from `localeCode`.
|
|
13264
|
+
*/
|
|
13265
|
+
monthNames: {
|
|
13266
|
+
type: Array
|
|
13186
13267
|
}
|
|
13187
13268
|
};
|
|
13188
13269
|
}
|
|
@@ -17292,7 +17373,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
17292
17373
|
}
|
|
17293
17374
|
};
|
|
17294
17375
|
|
|
17295
|
-
var formkitVersion$1 = '
|
|
17376
|
+
var formkitVersion$1 = '202606041922';
|
|
17296
17377
|
|
|
17297
17378
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
17298
17379
|
static get properties() {
|
|
@@ -30543,7 +30624,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
30543
30624
|
}
|
|
30544
30625
|
};
|
|
30545
30626
|
|
|
30546
|
-
var formkitVersion = '
|
|
30627
|
+
var formkitVersion = '202606041922';
|
|
30547
30628
|
|
|
30548
30629
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
30549
30630
|
// See LICENSE in the project root for license information.
|
|
@@ -31990,21 +32071,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
31990
32071
|
this.calendarEndDate = undefined;
|
|
31991
32072
|
this.calendarFocusDate = this.value;
|
|
31992
32073
|
this.fullscreenBreakpoint = 'sm';
|
|
31993
|
-
this.
|
|
31994
|
-
'January',
|
|
31995
|
-
'February',
|
|
31996
|
-
'March',
|
|
31997
|
-
'April',
|
|
31998
|
-
'May',
|
|
31999
|
-
'June',
|
|
32000
|
-
'July',
|
|
32001
|
-
'August',
|
|
32002
|
-
'September',
|
|
32003
|
-
'October',
|
|
32004
|
-
'November',
|
|
32005
|
-
'December'
|
|
32006
|
-
];
|
|
32007
|
-
|
|
32074
|
+
this._validLocale = 'en-US';
|
|
32008
32075
|
// floaterConfig
|
|
32009
32076
|
this.placement = 'bottom-start';
|
|
32010
32077
|
this.offset = 0;
|
|
@@ -32275,7 +32342,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
32275
32342
|
},
|
|
32276
32343
|
|
|
32277
32344
|
/**
|
|
32278
|
-
* Names of all 12 months to render in the calendar
|
|
32345
|
+
* Names of all 12 months to render in the calendar.
|
|
32346
|
+
* When omitted, month names will be automatically populated from the active `locale` (falling back to `en-US`).
|
|
32279
32347
|
*/
|
|
32280
32348
|
monthNames: {
|
|
32281
32349
|
type: Array
|
|
@@ -33132,16 +33200,32 @@ class AuroDatePicker extends AuroElement {
|
|
|
33132
33200
|
return this.validity !== undefined && this.validity !== 'valid';
|
|
33133
33201
|
}
|
|
33134
33202
|
|
|
33135
|
-
|
|
33203
|
+
/**
|
|
33204
|
+
* lifecycle method to check if the locale is valid.
|
|
33205
|
+
* @ignore
|
|
33206
|
+
* @param {Map} changedProperties - The map of properties that have changed since the last update.
|
|
33207
|
+
* @returns {void}
|
|
33208
|
+
*/
|
|
33209
|
+
willUpdate(changedProperties) {
|
|
33136
33210
|
if (changedProperties.has('locale')) {
|
|
33137
|
-
|
|
33138
|
-
|
|
33139
|
-
|
|
33140
|
-
|
|
33141
|
-
|
|
33211
|
+
try {
|
|
33212
|
+
// eslint-disable-next-line no-new
|
|
33213
|
+
new Intl.DateTimeFormat(this.locale);
|
|
33214
|
+
this._validLocale = this.locale;
|
|
33215
|
+
} catch {
|
|
33216
|
+
this._validLocale = 'en-US';
|
|
33217
|
+
}
|
|
33218
|
+
|
|
33219
|
+
// if there was not an explicit format set, or the format set matches the previous locale's default format,
|
|
33220
|
+
// update to the new locale's default format
|
|
33221
|
+
const previousLocaleFormat = getDateFormatFromLocale$1(changedProperties.get('locale'));
|
|
33222
|
+
if (!changedProperties.has('format') && (!this.format || this.format.toLowerCase() === previousLocaleFormat)) {
|
|
33223
|
+
this.format = getDateFormatFromLocale$1(this._validLocale);
|
|
33142
33224
|
}
|
|
33143
33225
|
}
|
|
33226
|
+
}
|
|
33144
33227
|
|
|
33228
|
+
updated(changedProperties) {
|
|
33145
33229
|
if (changedProperties.has('disabled')) {
|
|
33146
33230
|
if (this.disabled) {
|
|
33147
33231
|
this.previousTabIndex = this.getAttribute('tabindex');
|
|
@@ -33385,14 +33469,6 @@ class AuroDatePicker extends AuroElement {
|
|
|
33385
33469
|
super.connectedCallback();
|
|
33386
33470
|
|
|
33387
33471
|
this.locale = this.domHandler.getLocale(this);
|
|
33388
|
-
|
|
33389
|
-
// Derive format eagerly so the first render has a valid format.
|
|
33390
|
-
// updated() handles locale changes after the initial render, but runs
|
|
33391
|
-
// after render(), so without this a preset value would briefly display
|
|
33392
|
-
// as a raw ISO string in the fullscreen bib.
|
|
33393
|
-
if (!this.format) {
|
|
33394
|
-
this.format = getDateFormatFromLocale$1(this.locale);
|
|
33395
|
-
}
|
|
33396
33472
|
}
|
|
33397
33473
|
|
|
33398
33474
|
// layout render methods
|
|
@@ -33572,7 +33648,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
33572
33648
|
?required="${this.required}"
|
|
33573
33649
|
?hideLabelVisually="${this.layout !== 'classic'}"
|
|
33574
33650
|
format="${this.format}"
|
|
33575
|
-
locale="${this.
|
|
33651
|
+
locale="${this._validLocale}"
|
|
33576
33652
|
.max="${this.maxDate}"
|
|
33577
33653
|
.min="${this.minDate}"
|
|
33578
33654
|
.placeholder="${this.placeholder}"
|
|
@@ -33617,7 +33693,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
33617
33693
|
?required="${this.required}"
|
|
33618
33694
|
?hideLabelVisually="${this.layout !== 'classic'}"
|
|
33619
33695
|
.format="${this.format}"
|
|
33620
|
-
locale="${this.
|
|
33696
|
+
locale="${this._validLocale}"
|
|
33621
33697
|
.max="${this.maxDate}"
|
|
33622
33698
|
.min="${this.minDate}"
|
|
33623
33699
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
@@ -33784,6 +33860,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
33784
33860
|
.maxDate="${this.maxDate}"
|
|
33785
33861
|
.minDate="${this.minDate}"
|
|
33786
33862
|
.monthNames="${this.monthNames}"
|
|
33863
|
+
.localeCode="${this._validLocale}"
|
|
33787
33864
|
.mobileBreakpoint="${this.mobileBreakpoint}"
|
|
33788
33865
|
part="calendar"
|
|
33789
33866
|
>
|