@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.
Files changed (46) hide show
  1. package/components/checkbox/demo/customize.min.js +1 -1
  2. package/components/checkbox/demo/getting-started.min.js +1 -1
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/dist/index.js +1 -1
  5. package/components/checkbox/dist/registered.js +1 -1
  6. package/components/combobox/demo/customize.min.js +3 -3
  7. package/components/combobox/demo/getting-started.min.js +3 -3
  8. package/components/combobox/demo/index.min.js +3 -3
  9. package/components/combobox/dist/index.js +3 -3
  10. package/components/combobox/dist/registered.js +3 -3
  11. package/components/counter/demo/customize.min.js +2 -2
  12. package/components/counter/demo/index.min.js +2 -2
  13. package/components/counter/dist/index.js +1 -1
  14. package/components/counter/dist/registered.js +1 -1
  15. package/components/datepicker/demo/api.md +52 -52
  16. package/components/datepicker/demo/index.min.js +110 -56
  17. package/components/datepicker/dist/index.js +110 -56
  18. package/components/datepicker/dist/registered.js +110 -56
  19. package/components/datepicker/dist/src/auro-calendar-cell.d.ts +1 -1
  20. package/components/datepicker/dist/src/auro-calendar-month.d.ts +6 -0
  21. package/components/datepicker/dist/src/auro-calendar.d.ts +6 -2
  22. package/components/datepicker/dist/src/auro-datepicker.d.ts +24 -5
  23. package/components/dropdown/demo/customize.min.js +1 -1
  24. package/components/dropdown/demo/getting-started.min.js +1 -1
  25. package/components/dropdown/demo/index.min.js +1 -1
  26. package/components/dropdown/dist/index.js +1 -1
  27. package/components/dropdown/dist/registered.js +1 -1
  28. package/components/form/demo/customize.min.js +126 -72
  29. package/components/form/demo/getting-started.min.js +126 -72
  30. package/components/form/demo/index.min.js +126 -72
  31. package/components/form/demo/registerDemoDeps.min.js +126 -72
  32. package/components/input/demo/customize.min.js +1 -1
  33. package/components/input/demo/getting-started.min.js +1 -1
  34. package/components/input/demo/index.min.js +1 -1
  35. package/components/input/dist/index.js +1 -1
  36. package/components/input/dist/registered.js +1 -1
  37. package/components/radio/demo/index.min.js +1 -1
  38. package/components/radio/dist/index.js +1 -1
  39. package/components/radio/dist/registered.js +1 -1
  40. package/components/select/demo/customize.min.js +2 -2
  41. package/components/select/demo/getting-started.min.js +2 -2
  42. package/components/select/demo/index.min.js +2 -2
  43. package/components/select/dist/index.js +2 -2
  44. package/components/select/dist/registered.js +2 -2
  45. package/custom-elements.json +1508 -1470
  46. 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$1(date, options) {
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$1(laterDate_);
1408
- const earlierStartOfDay = startOfDay$1(earlierDate_);
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$1(parsedDateTo * 1000)) / 1000 === day.date ||
10908
- getTime(startOfDay$1(parsedDateFrom * 1000)) / 1000 === day.date) {
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$1(Date.now()), 't'), 10);
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: Object },
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 ? this._locale : enUS$1;
11656
+ return this._locale;
11650
11657
  }
11651
11658
 
11652
11659
  set locale(value) {
@@ -11840,9 +11847,12 @@ class AuroCalendarCell extends LitElement {
11840
11847
  if (date === undefined) {
11841
11848
  return '';
11842
11849
  }
11843
- return format$1(date * 1000, 'PPPP', {
11844
- locale: this.locale,
11845
- });
11850
+ return new Intl.DateTimeFormat(this.locale, {
11851
+ weekday: 'long',
11852
+ year: 'numeric',
11853
+ month: 'long',
11854
+ day: 'numeric'
11855
+ }).format(new Date(date * 1000));
11846
11856
  }
11847
11857
 
11848
11858
  /**
@@ -12008,6 +12018,13 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
12008
12018
  monthFirst: {
12009
12019
  type: Boolean,
12010
12020
  reflect: true
12021
+ },
12022
+
12023
+ /**
12024
+ * BCP 47 locale tag for calendar localization.
12025
+ */
12026
+ localeCode: {
12027
+ type: String
12011
12028
  }
12012
12029
  };
12013
12030
  }
@@ -12050,20 +12067,28 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
12050
12067
  * @private
12051
12068
  * @returns {void}
12052
12069
  */
12070
+ updated(changedProperties) {
12071
+ super.updated(changedProperties);
12072
+ if (changedProperties.has('localeCode')) {
12073
+ this.localeChanged();
12074
+ }
12075
+ }
12076
+
12053
12077
  localeChanged() {
12054
- const dayNamesOfTheWeek = [];
12055
- for (let int = 0; int < 7; int += 1) {
12056
- dayNamesOfTheWeek.push(this.locale.localize.day(int, { width: 'narrow' }));
12078
+ const fmt = new Intl.DateTimeFormat(this.localeCode || 'en-US', { weekday: 'narrow' });
12079
+ // Jan 5 2025 is a known Sunday; iterate to get all 7 narrow day names starting from Sunday
12080
+ const sundayMs = new Date(2025, 0, 5).getTime();
12081
+ const msPerDay = 864e5;
12082
+ const allDays = [];
12083
+ for (let day = 0; day < 7; day += 1) {
12084
+ const offsetMs = day * msPerDay;
12085
+ allDays.push(fmt.format(new Date(sundayMs + offsetMs)));
12057
12086
  }
12058
- const firstDayOfWeek = this.locale.options.weekStartsOn
12059
- ? this.locale.options.weekStartsOn
12060
- : 0;
12061
- const tmp = dayNamesOfTheWeek.slice().splice(0, firstDayOfWeek);
12062
- const newDayNamesOfTheWeek = dayNamesOfTheWeek
12063
- .slice()
12064
- .splice(firstDayOfWeek, dayNamesOfTheWeek.length)
12065
- .concat(tmp);
12066
- this.dayNamesOfTheWeek = newDayNamesOfTheWeek;
12087
+
12088
+ // Currently locale is always enUS by default, so this will not cause any change.
12089
+ // Week starts on Monday (index 1 in the Sunday-first array)
12090
+ const firstDayOfWeek = this.locale?.options?.weekStartsOn || 1;
12091
+ this.dayNamesOfTheWeek = allDays.slice(firstDayOfWeek).concat(allDays.slice(0, firstDayOfWeek));
12067
12092
  }
12068
12093
 
12069
12094
  renderDay(day) {
@@ -12079,7 +12104,7 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
12079
12104
  .hoveredDate="${this.hoveredDate}"
12080
12105
  .dateTo="${this.dateTo}"
12081
12106
  .dateFrom="${this.dateFrom}"
12082
- .locale="${this.locale}"
12107
+ .locale="${this.localeCode}"
12083
12108
  .day="${day}"
12084
12109
  ?isCurrentDate="${this.isCurrentDate(day)}"
12085
12110
  @date-is-selected="${this.handleDateSelected}"
@@ -12928,7 +12953,7 @@ class AuroBibtemplate extends LitElement {
12928
12953
  }
12929
12954
  }
12930
12955
 
12931
- var formkitVersion$2 = '202606031852';
12956
+ var formkitVersion$2 = '202606031753';
12932
12957
 
12933
12958
  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
12959
  `,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}}
@@ -13071,7 +13096,6 @@ class AuroCalendar extends RangeDatepicker {
13071
13096
 
13072
13097
  static get properties() {
13073
13098
  return {
13074
-
13075
13099
  /**
13076
13100
  * The last month that may be displayed in the calendar.
13077
13101
  */
@@ -13161,8 +13185,6 @@ class AuroCalendar extends RangeDatepicker {
13161
13185
  },
13162
13186
 
13163
13187
  /**
13164
- * If true, the month will be displayed before the year in the calendar header.
13165
- * Passed to AuroCalendarMonth via utilitesCalendarRender.
13166
13188
  * @private
13167
13189
  */
13168
13190
  monthFirst: {
@@ -13183,10 +13205,21 @@ class AuroCalendar extends RangeDatepicker {
13183
13205
  visible: {
13184
13206
  type: Boolean,
13185
13207
  reflect: false
13208
+ },
13209
+
13210
+ /**
13211
+ * BCP 47 locale tag for calendar localization.
13212
+ */
13213
+ localeCode: {
13214
+ type: String
13186
13215
  }
13187
13216
  };
13188
13217
  }
13189
13218
 
13219
+ localeChanged() {
13220
+ // Locale propagation handled via Lit property bindings to child calendar-month elements.
13221
+ }
13222
+
13190
13223
  // ─── Read-only *Object properties ─────────────────────────────────────────
13191
13224
 
13192
13225
  /** @returns {Date|undefined} */
@@ -13313,9 +13346,7 @@ class AuroCalendar extends RangeDatepicker {
13313
13346
  */
13314
13347
  focusCloseButton() {
13315
13348
  const bibtemplate = this.shadowRoot.querySelector(this.bibtemplateTag._$litStatic$);
13316
- if (bibtemplate) {
13317
- bibtemplate.focusCloseButton();
13318
- }
13349
+ if (bibtemplate) bibtemplate.focusCloseButton();
13319
13350
  }
13320
13351
 
13321
13352
  /**
@@ -17292,7 +17323,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
17292
17323
  }
17293
17324
  };
17294
17325
 
17295
- var formkitVersion$1 = '202606031852';
17326
+ var formkitVersion$1 = '202606031753';
17296
17327
 
17297
17328
  let AuroElement$2 = class AuroElement extends LitElement {
17298
17329
  static get properties() {
@@ -30543,7 +30574,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
30543
30574
  }
30544
30575
  };
30545
30576
 
30546
- var formkitVersion = '202606031852';
30577
+ var formkitVersion = '202606031753';
30547
30578
 
30548
30579
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
30549
30580
  // See LICENSE in the project root for license information.
@@ -31915,6 +31946,11 @@ const datepickerKeyboardStrategy = {
31915
31946
  // See LICENSE in the project root for license information.
31916
31947
 
31917
31948
 
31949
+ const getMonthNamesFromLocale = (locale) => {
31950
+ const fmt = new Intl.DateTimeFormat(locale || 'en-US', { month: 'long' });
31951
+ return Array.from({ length: 12 }, (_, i) => fmt.format(new Date(2000, i, 1)));
31952
+ };
31953
+
31918
31954
 
31919
31955
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
31920
31956
  /**
@@ -31952,7 +31988,6 @@ class AuroDatePicker extends AuroElement {
31952
31988
  delegatesFocus: true,
31953
31989
  };
31954
31990
  }
31955
-
31956
31991
  constructor() {
31957
31992
  super();
31958
31993
 
@@ -31990,21 +32025,6 @@ class AuroDatePicker extends AuroElement {
31990
32025
  this.calendarEndDate = undefined;
31991
32026
  this.calendarFocusDate = this.value;
31992
32027
  this.fullscreenBreakpoint = 'sm';
31993
- this.monthNames = [
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
-
32008
32028
  // floaterConfig
32009
32029
  this.placement = 'bottom-start';
32010
32030
  this.offset = 0;
@@ -32275,12 +32295,20 @@ class AuroDatePicker extends AuroElement {
32275
32295
  },
32276
32296
 
32277
32297
  /**
32278
- * Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
32298
+ * Names of all 12 months to render in the calendar.
32299
+ * When omitted, month names will be automatically populated from the active `locale` (falling back to `en-US`).
32279
32300
  */
32280
32301
  monthNames: {
32281
32302
  type: Array
32282
32303
  },
32283
32304
 
32305
+ /**
32306
+ * @private
32307
+ */
32308
+ monthFirst: {
32309
+ type: Boolean
32310
+ },
32311
+
32284
32312
  /**
32285
32313
  * If declared, the bib will NOT flip to an alternate position
32286
32314
  * when there isn't enough space in the specified `placement`.
@@ -32557,9 +32585,8 @@ class AuroDatePicker extends AuroElement {
32557
32585
  }
32558
32586
 
32559
32587
  /**
32560
- * Common display value wrapper classes.
32561
32588
  * @private
32562
- * @return {Object} - An object containing the common classes for the display value wrapper.
32589
+ * Common display value wrapper classes.
32563
32590
  */
32564
32591
  get commonDisplayValueWrapperClasses() {
32565
32592
  return {
@@ -32918,6 +32945,7 @@ class AuroDatePicker extends AuroElement {
32918
32945
  configureCalendar() {
32919
32946
  this.calendar = this.shadowRoot.querySelector('auro-formkit-calendar');
32920
32947
  this.calendar.datepicker = this;
32948
+ this.calendar.format = this.format || 'mm/dd/yyyy';
32921
32949
  this.calendar.dropdown = this.dropdown;
32922
32950
 
32923
32951
  this.calendar.addEventListener('auroCalendar-dateSelected', () => {
@@ -33132,16 +33160,40 @@ class AuroDatePicker extends AuroElement {
33132
33160
  return this.validity !== undefined && this.validity !== 'valid';
33133
33161
  }
33134
33162
 
33163
+ /**
33164
+ * @private
33165
+ * Lifecycle method used to react to changes in properties.
33166
+ * In this case, we want to update the default month names when the locale changes.
33167
+ * @param {*} changedProperties
33168
+ */
33169
+ willUpdate(changedProperties) {
33170
+ if (changedProperties.has('locale')) {
33171
+
33172
+ /**
33173
+ * Default month names are derived from the locale,
33174
+ * but can be overridden by the monthNames property.
33175
+ * @private
33176
+ */
33177
+ this._defaultMonthNames = getMonthNamesFromLocale(this.locale);
33178
+ }
33179
+ }
33180
+
33135
33181
  updated(changedProperties) {
33136
33182
  if (changedProperties.has('locale')) {
33137
33183
  if (!changedProperties.has('format')) {
33138
33184
  const previousLocaleFormat = getDateFormatFromLocale$1(changedProperties.get('locale'));
33139
33185
  if (!this.format || this.format.toLowerCase() === previousLocaleFormat) {
33140
33186
  this.format = getDateFormatFromLocale$1(this.locale);
33187
+ this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
33141
33188
  }
33142
33189
  }
33143
33190
  }
33144
33191
 
33192
+ if (changedProperties.has('format')) {
33193
+ this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
33194
+ }
33195
+
33196
+
33145
33197
  if (changedProperties.has('disabled')) {
33146
33198
  if (this.disabled) {
33147
33199
  this.previousTabIndex = this.getAttribute('tabindex');
@@ -33393,6 +33445,7 @@ class AuroDatePicker extends AuroElement {
33393
33445
  if (!this.format) {
33394
33446
  this.format = getDateFormatFromLocale$1(this.locale);
33395
33447
  }
33448
+ this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
33396
33449
  }
33397
33450
 
33398
33451
  // layout render methods
@@ -33571,7 +33624,7 @@ class AuroDatePicker extends AuroElement {
33571
33624
  ?disabled="${this.disabled}"
33572
33625
  ?required="${this.required}"
33573
33626
  ?hideLabelVisually="${this.layout !== 'classic'}"
33574
- format="${this.format}"
33627
+ .format="${this.format}"
33575
33628
  locale="${this.locale}"
33576
33629
  .max="${this.maxDate}"
33577
33630
  .min="${this.minDate}"
@@ -33660,7 +33713,7 @@ class AuroDatePicker extends AuroElement {
33660
33713
  /**
33661
33714
  * Handles click on the clear button.
33662
33715
  * @private
33663
- * @param {MouseEvent} event - The click event object.
33716
+ * @param {MouseEvent} event
33664
33717
  * @returns {void}
33665
33718
  */
33666
33719
  handleClearClick(event) {
@@ -33780,10 +33833,11 @@ class AuroDatePicker extends AuroElement {
33780
33833
  ?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
33781
33834
  ?noRange="${!this.range}"
33782
33835
  .format="${this.format}"
33783
- .monthFirst="${this.format.indexOf('mm') < this.format.indexOf('yyyy')}"
33836
+ .monthFirst="${this.monthFirst}"
33784
33837
  .maxDate="${this.maxDate}"
33785
33838
  .minDate="${this.minDate}"
33786
- .monthNames="${this.monthNames}"
33839
+ .monthNames="${this.monthNames || this._defaultMonthNames}"
33840
+ .localeCode="${this.locale}"
33787
33841
  .mobileBreakpoint="${this.mobileBreakpoint}"
33788
33842
  part="calendar"
33789
33843
  >