@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.1 → 0.0.0-pr1628.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/accessibility.md +2 -2
- package/components/checkbox/demo/api.md +17 -17
- package/components/checkbox/demo/customize.md +16 -16
- package/components/checkbox/demo/customize.min.js +3 -3
- package/components/checkbox/demo/design.md +24 -24
- package/components/checkbox/demo/getting-started.md +33 -27
- package/components/checkbox/demo/getting-started.min.js +3 -3
- package/components/checkbox/demo/index.md +17 -17
- package/components/checkbox/demo/index.min.js +3 -3
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
- package/components/checkbox/dist/index.js +3 -3
- package/components/checkbox/dist/registered.js +3 -3
- package/components/combobox/demo/api.md +3 -3
- package/components/combobox/demo/css-only.md +3 -3
- package/components/combobox/demo/customize.md +12 -12
- package/components/combobox/demo/customize.min.js +50 -32
- package/components/combobox/demo/getting-started.min.js +50 -32
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +50 -32
- package/components/combobox/dist/auro-combobox.d.ts +6 -4
- package/components/combobox/dist/index.js +39 -22
- package/components/combobox/dist/registered.js +39 -22
- package/components/counter/demo/accessibility.md +1 -1
- package/components/counter/demo/api.md +18 -18
- package/components/counter/demo/css-only.md +1 -1
- package/components/counter/demo/customize.md +2 -2
- package/components/counter/demo/customize.min.js +28 -28
- package/components/counter/demo/design.md +1 -1
- package/components/counter/demo/getting-started.md +29 -2
- package/components/counter/demo/getting-started.min.js +28 -28
- package/components/counter/demo/index.min.js +28 -28
- package/components/counter/demo/why-counter.md +3 -3
- package/components/counter/dist/auro-counter-group.d.ts +13 -14
- package/components/counter/dist/auro-counter.d.ts +1 -1
- package/components/counter/dist/index.js +28 -28
- package/components/counter/dist/registered.js +28 -28
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/accessibility.md +5 -5
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/css-only.md +4 -4
- package/components/datepicker/demo/customize.md +12 -12
- package/components/datepicker/demo/customize.min.js +186 -132
- package/components/datepicker/demo/design.md +11 -11
- package/components/datepicker/demo/getting-started.md +4 -4
- package/components/datepicker/demo/getting-started.min.js +186 -132
- package/components/datepicker/demo/index.md +5 -5
- package/components/datepicker/demo/index.min.js +186 -132
- package/components/datepicker/demo/keyboard-behavior.md +1 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/demo/voiceover.md +4 -4
- package/components/datepicker/demo/why-datepicker.md +3 -3
- package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
- package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
- package/components/datepicker/dist/auro-calendar.d.ts +44 -43
- package/components/datepicker/dist/auro-datepicker.d.ts +12 -10
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -0
- package/components/datepicker/dist/index.js +186 -132
- package/components/datepicker/dist/registered.js +186 -132
- package/components/datepicker/dist/utilities.d.ts +4 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts +12 -4
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +12 -6
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +4 -4
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +7 -7
- package/components/dropdown/demo/api.md +7 -7
- package/components/dropdown/demo/css-only.md +2 -2
- package/components/dropdown/demo/customize.md +1 -1
- package/components/dropdown/demo/customize.min.js +10 -9
- package/components/dropdown/demo/design.md +4 -4
- package/components/dropdown/demo/getting-started.min.js +31 -16
- package/components/dropdown/demo/index.min.js +10 -9
- package/components/dropdown/demo/voiceover.md +1 -1
- package/components/dropdown/demo/why-dropdown.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +9 -8
- package/components/dropdown/dist/index.js +10 -9
- package/components/dropdown/dist/registered.js +10 -9
- package/components/form/README.md +1 -1
- package/components/form/demo/api.md +7 -7
- package/components/form/demo/css-only.md +1 -1
- package/components/form/demo/customize.md +2 -0
- package/components/form/demo/customize.min.js +316 -230
- package/components/form/demo/getting-started.md +2 -0
- package/components/form/demo/getting-started.min.js +316 -230
- package/components/form/demo/index.md +2 -2
- package/components/form/demo/index.min.js +316 -230
- package/components/form/demo/keyboard-behavior.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/registerDemoDeps.min.js +314 -228
- package/components/form/demo/voiceover.md +3 -3
- package/components/form/demo/why-form.md +1 -1
- package/components/form/dist/auro-form.d.ts +2 -2
- package/components/form/dist/index.js +2 -2
- package/components/form/dist/registered.js +2 -2
- package/components/input/demo/api.md +58 -58
- package/components/input/demo/css-only.md +4 -4
- package/components/input/demo/customize.md +11 -11
- package/components/input/demo/customize.min.js +21 -7
- package/components/input/demo/design.md +2 -2
- package/components/input/demo/getting-started.md +5 -5
- package/components/input/demo/getting-started.min.js +21 -7
- package/components/input/demo/index.md +1 -1
- package/components/input/demo/index.min.js +21 -7
- package/components/input/demo/why-input.md +3 -3
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +6 -5
- package/components/input/dist/index.js +21 -7
- package/components/input/dist/registered.js +21 -7
- package/components/input/dist/utilities.d.ts +11 -0
- package/components/menu/demo/accessibility.md +1 -1
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/css-only.md +4 -4
- package/components/menu/demo/customize.md +1 -1
- package/components/menu/demo/design.md +1 -1
- package/components/menu/demo/getting-started.md +3 -3
- package/components/menu/demo/index.min.js +11 -10
- package/components/menu/demo/keyboard-behavior.md +1 -1
- package/components/menu/demo/voiceover.md +1 -1
- package/components/menu/demo/why-menu.md +3 -3
- package/components/menu/dist/auro-menu.d.ts +10 -9
- package/components/menu/dist/auro-menuoption.d.ts +1 -1
- package/components/menu/dist/index.js +11 -10
- package/components/menu/dist/registered.js +11 -10
- package/components/radio/demo/accessibility.md +1 -1
- package/components/radio/demo/api.md +10 -10
- package/components/radio/demo/customize.md +15 -5
- package/components/radio/demo/customize.min.js +10 -12
- package/components/radio/demo/design.md +1 -1
- package/components/radio/demo/getting-started.md +6 -6
- package/components/radio/demo/getting-started.min.js +10 -12
- package/components/radio/demo/index.md +1 -1
- package/components/radio/demo/index.min.js +10 -12
- package/components/radio/demo/keyboard-behavior.md +1 -1
- package/components/radio/demo/voiceover.md +1 -1
- package/components/radio/demo/why-radio.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +6 -8
- package/components/radio/dist/auro-radio.d.ts +3 -3
- package/components/radio/dist/index.js +10 -12
- package/components/radio/dist/registered.js +10 -12
- package/components/select/demo/api.md +1 -1
- package/components/select/demo/css-only.md +1 -1
- package/components/select/demo/customize.md +1 -1
- package/components/select/demo/customize.min.js +27 -24
- package/components/select/demo/getting-started.min.js +27 -24
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +27 -24
- package/components/select/demo/voiceover.md +1 -1
- package/components/select/dist/auro-select.d.ts +4 -3
- package/components/select/dist/index.js +16 -14
- package/components/select/dist/registered.js +16 -14
- package/custom-elements.json +148 -132
- package/package.json +1 -1
|
@@ -10298,6 +10298,9 @@ try {
|
|
|
10298
10298
|
globalThis.IMask = IMask$1;
|
|
10299
10299
|
} catch {}
|
|
10300
10300
|
|
|
10301
|
+
/**
|
|
10302
|
+
* Helpers that set up input masks and convert between the text shown in the field, `Date` objects, and ISO date strings (`YYYY-MM-DD`), for one locale and date format.
|
|
10303
|
+
*/
|
|
10301
10304
|
let AuroInputUtilities$1 = class AuroInputUtilities {
|
|
10302
10305
|
|
|
10303
10306
|
/**
|
|
@@ -10317,7 +10320,17 @@ let AuroInputUtilities$1 = class AuroInputUtilities {
|
|
|
10317
10320
|
} else {
|
|
10318
10321
|
this.locale = 'en-US';
|
|
10319
10322
|
}
|
|
10323
|
+
|
|
10324
|
+
/**
|
|
10325
|
+
* Sets the date format to use instead of the locale's format, such as `mm/dd/yyyy`. `updateFormat()` also sets it.
|
|
10326
|
+
* @type {string|undefined}
|
|
10327
|
+
*/
|
|
10320
10328
|
this.overrideFormat = config.format;
|
|
10329
|
+
|
|
10330
|
+
/**
|
|
10331
|
+
* The `Intl.DateTimeFormat` date formatter for the helpers' locale. The helpers don't currently use it.
|
|
10332
|
+
* @type {Intl.DateTimeFormat}
|
|
10333
|
+
*/
|
|
10321
10334
|
this.formatter = new Intl.DateTimeFormat(this.locale);
|
|
10322
10335
|
|
|
10323
10336
|
// Bindings - many of these are passed into IMask callbacks,
|
|
@@ -10631,6 +10644,9 @@ function getDateFormatFromLocale$1 (locale) {
|
|
|
10631
10644
|
/* eslint-disable array-element-newline, dot-location */
|
|
10632
10645
|
|
|
10633
10646
|
|
|
10647
|
+
/**
|
|
10648
|
+
* Date helpers the datepicker and its calendar share, such as finding the first day of a month and counting the months between two dates.
|
|
10649
|
+
*/
|
|
10634
10650
|
class AuroDatepickerUtilities {
|
|
10635
10651
|
|
|
10636
10652
|
/**
|
|
@@ -10671,7 +10687,7 @@ class AuroDatepickerUtilities {
|
|
|
10671
10687
|
}
|
|
10672
10688
|
|
|
10673
10689
|
/**
|
|
10674
|
-
*
|
|
10690
|
+
* Checks whether two dates are the same moment in time.
|
|
10675
10691
|
* @private
|
|
10676
10692
|
* @param {Object} date1 - The first date to compare.
|
|
10677
10693
|
* @param {Object} date2 - The second date to compare.
|
|
@@ -10701,15 +10717,23 @@ const t$1=globalThis,e$3=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
|
|
|
10701
10717
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10702
10718
|
*/const s$3=globalThis;let i$1 = class i extends y$4{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D$1(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return E$1}};i$1._$litElement$=true,i$1["finalized"]=true,s$3.litElementHydrateSupport?.({LitElement:i$1});const o$5=s$3.litElementPolyfillSupport;o$5?.({LitElement:i$1});(s$3.litElementVersions??=[]).push("4.2.2");
|
|
10703
10719
|
|
|
10720
|
+
/**
|
|
10721
|
+
* Helpers the datepicker and its calendar use to set the month the calendar shows, and to choose and render the calendar's months.
|
|
10722
|
+
*/
|
|
10704
10723
|
class UtilitiesCalendarRender {
|
|
10705
10724
|
constructor() {
|
|
10725
|
+
|
|
10726
|
+
/**
|
|
10727
|
+
* The date helpers these methods use.
|
|
10728
|
+
* @private
|
|
10729
|
+
*/
|
|
10706
10730
|
this.util = new AuroDatepickerUtilities();
|
|
10707
10731
|
}
|
|
10708
10732
|
|
|
10709
10733
|
/**
|
|
10710
10734
|
* Sets `centralDate` to the first day of the date's month, when the date is valid.
|
|
10711
|
-
* @param {Object} elem - The element to set
|
|
10712
|
-
* @param {
|
|
10735
|
+
* @param {Object} elem - The element to set `centralDate` on.
|
|
10736
|
+
* @param {string|Date|number} date - The date whose month to show: an ISO date string, a `Date` object, or a timestamp in milliseconds.
|
|
10713
10737
|
* @private
|
|
10714
10738
|
*/
|
|
10715
10739
|
updateCentralDate(elem, date) {
|
|
@@ -10835,12 +10859,12 @@ class UtilitiesCalendarRender {
|
|
|
10835
10859
|
}
|
|
10836
10860
|
|
|
10837
10861
|
/**
|
|
10838
|
-
* Renders
|
|
10862
|
+
* Renders an `auro-formkit-calendar-month` element for one month.
|
|
10839
10863
|
* @private
|
|
10840
10864
|
* @param {Object} elem - The auro-calendar element.
|
|
10841
10865
|
* @param {Number} month - The month the calendar displays.
|
|
10842
10866
|
* @param {Number} year - The year the calendar displays.
|
|
10843
|
-
* @returns {Object} The auro-calendar-month
|
|
10867
|
+
* @returns {Object} The `auro-formkit-calendar-month` template.
|
|
10844
10868
|
*/
|
|
10845
10869
|
renderCalendar(elem, month, year) {
|
|
10846
10870
|
return b$8`
|
|
@@ -11142,12 +11166,12 @@ class RangeDatepickerCalendar extends i$1 {
|
|
|
11142
11166
|
super();
|
|
11143
11167
|
|
|
11144
11168
|
/**
|
|
11145
|
-
*
|
|
11169
|
+
* Sets the chosen date, or the start date of a range, as a Unix timestamp in seconds.
|
|
11146
11170
|
*/
|
|
11147
11171
|
this.dateFrom = null;
|
|
11148
11172
|
|
|
11149
11173
|
/**
|
|
11150
|
-
*
|
|
11174
|
+
* Sets the end date of a range, as a Unix timestamp in seconds.
|
|
11151
11175
|
*/
|
|
11152
11176
|
this.dateTo = null;
|
|
11153
11177
|
this.hoveredDate = null;
|
|
@@ -11161,12 +11185,12 @@ class RangeDatepickerCalendar extends i$1 {
|
|
|
11161
11185
|
this.disabledDays = [];
|
|
11162
11186
|
|
|
11163
11187
|
/**
|
|
11164
|
-
*
|
|
11188
|
+
* Sets the latest date people can choose, as a Unix timestamp in seconds.
|
|
11165
11189
|
*/
|
|
11166
11190
|
this.max = null;
|
|
11167
11191
|
|
|
11168
11192
|
/**
|
|
11169
|
-
*
|
|
11193
|
+
* Sets the earliest date people can choose, as a Unix timestamp in seconds.
|
|
11170
11194
|
*/
|
|
11171
11195
|
this.min = null;
|
|
11172
11196
|
this.yearsList = [];
|
|
@@ -11968,7 +11992,9 @@ class AuroCalendarCell extends i$1 {
|
|
|
11968
11992
|
}
|
|
11969
11993
|
|
|
11970
11994
|
/**
|
|
11971
|
-
*
|
|
11995
|
+
* Called when someone clicks the cell's button, or presses Enter or Space while it's the active cell.
|
|
11996
|
+
* Selects the cell's date unless the cell is turned off or the date is a blackout date, and fires
|
|
11997
|
+
* `calendar-cell-activate` so the calendar makes the cell the active cell.
|
|
11972
11998
|
* @private
|
|
11973
11999
|
* @returns {void}
|
|
11974
12000
|
*/
|
|
@@ -11988,9 +12014,9 @@ class AuroCalendarCell extends i$1 {
|
|
|
11988
12014
|
}
|
|
11989
12015
|
|
|
11990
12016
|
/**
|
|
11991
|
-
*
|
|
11992
|
-
*
|
|
11993
|
-
*
|
|
12017
|
+
* Called when the pointer moves over the cell's button. Fires `date-is-hovered` with the cell's date.
|
|
12018
|
+
* Doesn't set any reactive properties, because the calendar updates the range preview
|
|
12019
|
+
* directly to avoid re-rendering every cell.
|
|
11994
12020
|
* @private
|
|
11995
12021
|
* @returns {void}
|
|
11996
12022
|
*/
|
|
@@ -12001,10 +12027,8 @@ class AuroCalendarCell extends i$1 {
|
|
|
12001
12027
|
}
|
|
12002
12028
|
|
|
12003
12029
|
/**
|
|
12004
|
-
*
|
|
12005
|
-
*
|
|
12006
|
-
* announcements and range preview updates without triggering
|
|
12007
|
-
* any Lit lifecycle updates.
|
|
12030
|
+
* Called when the cell's button gets focus. Fires `calendar-cell-focused` so the calendar can
|
|
12031
|
+
* announce the date to screen readers and update the range preview without re-rendering the cell.
|
|
12008
12032
|
* @private
|
|
12009
12033
|
* @returns {void}
|
|
12010
12034
|
*/
|
|
@@ -12017,12 +12041,12 @@ class AuroCalendarCell extends i$1 {
|
|
|
12017
12041
|
}
|
|
12018
12042
|
|
|
12019
12043
|
/**
|
|
12020
|
-
* Checks
|
|
12021
|
-
* Out-of-range cells
|
|
12044
|
+
* Checks whether the cell's date is earlier than `min` or later than `max`.
|
|
12045
|
+
* Out-of-range cells aren't focusable and are hidden from screen readers.
|
|
12022
12046
|
* @private
|
|
12023
|
-
* @param {Object} day -
|
|
12024
|
-
* @param {Number} min - The
|
|
12025
|
-
* @param {Number} max - The
|
|
12047
|
+
* @param {Object} day - The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.
|
|
12048
|
+
* @param {Number} min - The earliest date people can choose, as a Unix timestamp in seconds.
|
|
12049
|
+
* @param {Number} max - The latest date people can choose, as a Unix timestamp in seconds.
|
|
12026
12050
|
* @returns {Boolean} True if the date is out of range; false otherwise.
|
|
12027
12051
|
*/
|
|
12028
12052
|
isOutOfRange(day, min, max) {
|
|
@@ -12073,16 +12097,15 @@ class AuroCalendarCell extends i$1 {
|
|
|
12073
12097
|
}
|
|
12074
12098
|
|
|
12075
12099
|
/**
|
|
12076
|
-
* Checks
|
|
12077
|
-
*
|
|
12078
|
-
*
|
|
12079
|
-
* disabledDays. Note: blackout dates are handled separately by `isBlackout()`.
|
|
12100
|
+
* Checks whether the cell's date is turned off because it's outside `min` and `max` or in the
|
|
12101
|
+
* deprecated `disabledDays`, and sets the host's `disabled` attribute to match. Despite its name,
|
|
12102
|
+
* it returns true for a turned-off date. Blackout dates are handled separately by `isBlackout()`.
|
|
12080
12103
|
* @private
|
|
12081
|
-
* @param {Object} day -
|
|
12082
|
-
* @param {Number} min - The
|
|
12083
|
-
* @param {Number} max - The
|
|
12084
|
-
* @param {Array} disabledDays -
|
|
12085
|
-
* @returns {Boolean} True if the date is
|
|
12104
|
+
* @param {Object} day - The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.
|
|
12105
|
+
* @param {Number} min - The earliest date people can choose, as a Unix timestamp in seconds.
|
|
12106
|
+
* @param {Number} max - The latest date people can choose, as a Unix timestamp in seconds.
|
|
12107
|
+
* @param {Array} disabledDays - The deprecated array of dates people can't select, as Unix timestamps in seconds.
|
|
12108
|
+
* @returns {Boolean} True if the date is turned off; false otherwise.
|
|
12086
12109
|
*/
|
|
12087
12110
|
isEnabled(day, min, max, disabledDays) {
|
|
12088
12111
|
this.removeAttribute('disabled');
|
|
@@ -12097,9 +12120,9 @@ class AuroCalendarCell extends i$1 {
|
|
|
12097
12120
|
}
|
|
12098
12121
|
|
|
12099
12122
|
/**
|
|
12100
|
-
* Generates a unique cell ID in the format cell-YYYY-MM-DD
|
|
12123
|
+
* Generates a unique cell ID in the format `cell-YYYY-MM-DD`.
|
|
12101
12124
|
* @private
|
|
12102
|
-
* @returns {String} The unique cell ID.
|
|
12125
|
+
* @returns {String} The unique cell ID, or an empty string when the cell has no date.
|
|
12103
12126
|
*/
|
|
12104
12127
|
getCellId() {
|
|
12105
12128
|
if (!this.day || !this.day.date) return '';
|
|
@@ -12111,10 +12134,10 @@ class AuroCalendarCell extends i$1 {
|
|
|
12111
12134
|
}
|
|
12112
12135
|
|
|
12113
12136
|
/**
|
|
12114
|
-
* Generates
|
|
12115
|
-
*
|
|
12137
|
+
* Generates the cell's localized `aria-label` with `Intl.DateTimeFormat`.
|
|
12138
|
+
* Adds the date slot and popover content, the range position, and the blackout label.
|
|
12116
12139
|
* @private
|
|
12117
|
-
* @returns {String} The aria-label string.
|
|
12140
|
+
* @returns {String} The `aria-label` text, or an empty string when the cell has no date.
|
|
12118
12141
|
*/
|
|
12119
12142
|
getAriaLabel() {
|
|
12120
12143
|
if (!this.day || this.day.date === undefined) return '';
|
|
@@ -12286,10 +12309,10 @@ class AuroCalendarCell extends i$1 {
|
|
|
12286
12309
|
}
|
|
12287
12310
|
|
|
12288
12311
|
/**
|
|
12289
|
-
*
|
|
12312
|
+
* Formats a date as a full date in the cell's `locale`, such as "Monday, April 21, 2025" for `en-US`.
|
|
12290
12313
|
* @private
|
|
12291
|
-
* @param {Number} date - The date
|
|
12292
|
-
* @returns {String} The
|
|
12314
|
+
* @param {Number} date - The date, as a Unix timestamp in seconds.
|
|
12315
|
+
* @returns {String} The formatted date, or an empty string when `date` is undefined.
|
|
12293
12316
|
*/
|
|
12294
12317
|
getTitle(date) {
|
|
12295
12318
|
if (date === undefined) {
|
|
@@ -12336,7 +12359,7 @@ class AuroCalendarCell extends i$1 {
|
|
|
12336
12359
|
}
|
|
12337
12360
|
|
|
12338
12361
|
/**
|
|
12339
|
-
*
|
|
12362
|
+
* Removes the cell's copied slot content, then copies in the `date_YYYY_MM_DD` and `popover_YYYY_MM_DD` content for the cell's date from `auro-datepicker`.
|
|
12340
12363
|
* @private
|
|
12341
12364
|
* @returns {void}
|
|
12342
12365
|
*/
|
|
@@ -12498,8 +12521,8 @@ class AuroCalendarCell extends i$1 {
|
|
|
12498
12521
|
}
|
|
12499
12522
|
|
|
12500
12523
|
/**
|
|
12501
|
-
* Sets
|
|
12502
|
-
* and blackout
|
|
12524
|
+
* Sets ARIA attributes on the cell so screen reader users browsing the month grid hear its date,
|
|
12525
|
+
* whether it's selected, and whether it's a blackout date. Removes them for a date outside `min` and `max`.
|
|
12503
12526
|
* @private
|
|
12504
12527
|
* @returns {void}
|
|
12505
12528
|
*/
|
|
@@ -12741,8 +12764,8 @@ const getMonthNamesFromLocale = (locale) => {
|
|
|
12741
12764
|
* Gets the localized names of the days of the week, starting from Sunday, in the given style.
|
|
12742
12765
|
* Uses UTC dates to avoid DST-related day drift across timezones.
|
|
12743
12766
|
* @private
|
|
12744
|
-
* @param {String} locale - The BCP 47 language tag for localization, such as
|
|
12745
|
-
* @param {String} weekday - The style of the weekday name:
|
|
12767
|
+
* @param {String} locale - The BCP 47 language tag for localization, such as `en-US`.
|
|
12768
|
+
* @param {String} weekday - The style of the weekday name: `narrow`, `short`, or `long`.
|
|
12746
12769
|
* @returns {Array} An array of seven localized weekday names, starting from Sunday.
|
|
12747
12770
|
*/
|
|
12748
12771
|
const getWeekdayNames = (locale, weekday) => {
|
|
@@ -12875,10 +12898,10 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12875
12898
|
}
|
|
12876
12899
|
|
|
12877
12900
|
/**
|
|
12878
|
-
* Renders a day-of-week column header that shows the
|
|
12901
|
+
* Renders a day-of-week column header that shows the narrow day name, such as "S" for Sunday in `en-US`, and gives screen readers the full name with `aria-label`.
|
|
12879
12902
|
* @private
|
|
12880
|
-
* @param {String} dayOfWeek - The
|
|
12881
|
-
* @param {Number} index - The index in
|
|
12903
|
+
* @param {String} dayOfWeek - The narrow day name, such as "S".
|
|
12904
|
+
* @param {Number} index - The column's index in `dayNamesOfTheWeek`, from 0 for Sunday.
|
|
12882
12905
|
* @returns {Object} The header HTML.
|
|
12883
12906
|
*/
|
|
12884
12907
|
renderDayOfWeek(dayOfWeek, index) {
|
|
@@ -12901,9 +12924,9 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12901
12924
|
}
|
|
12902
12925
|
|
|
12903
12926
|
/**
|
|
12904
|
-
*
|
|
12905
|
-
*
|
|
12906
|
-
* the
|
|
12927
|
+
* Called when a cell fires `date-is-hovered`. Fires `hovered-date-changed` with the date
|
|
12928
|
+
* instead of setting the base class's reactive `hoveredDate`, so the calendar can update
|
|
12929
|
+
* the range preview without re-rendering.
|
|
12907
12930
|
* @private
|
|
12908
12931
|
* @param {CustomEvent} event - The date-is-hovered event from a cell.
|
|
12909
12932
|
* @returns {void}
|
|
@@ -12915,8 +12938,8 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12915
12938
|
}
|
|
12916
12939
|
|
|
12917
12940
|
/**
|
|
12918
|
-
*
|
|
12919
|
-
* so the
|
|
12941
|
+
* Called when the pointer leaves the month's date grid. Fires a bubbling
|
|
12942
|
+
* `calendar-month-mouseleave` event so the calendar can clear the range preview.
|
|
12920
12943
|
* @private
|
|
12921
12944
|
* @returns {void}
|
|
12922
12945
|
*/
|
|
@@ -13017,37 +13040,37 @@ class RangeDatepicker extends i$1 {
|
|
|
13017
13040
|
super();
|
|
13018
13041
|
|
|
13019
13042
|
/**
|
|
13020
|
-
*
|
|
13043
|
+
* Sets dates people can't select, as Unix timestamps in seconds.
|
|
13021
13044
|
*/
|
|
13022
13045
|
this.disabledDays = [];
|
|
13023
13046
|
|
|
13024
13047
|
/**
|
|
13025
|
-
*
|
|
13048
|
+
* Shows the previous and next month buttons on every month, and lets each month change on its own. It doesn't currently show a control for choosing the year.
|
|
13026
13049
|
*/
|
|
13027
13050
|
this.enableYearChange = false;
|
|
13028
13051
|
|
|
13029
13052
|
/**
|
|
13030
|
-
*
|
|
13053
|
+
* Shows one month at a time, even on screens wider than 650 pixels.
|
|
13031
13054
|
*/
|
|
13032
13055
|
this.forceNarrow = false;
|
|
13033
13056
|
|
|
13034
13057
|
/**
|
|
13035
|
-
*
|
|
13058
|
+
* Sets the date-fns locale object used for the month and weekday names, such as `enUS`. Uses `enUS` when not set.
|
|
13036
13059
|
*/
|
|
13037
13060
|
this.locale = null;
|
|
13038
13061
|
|
|
13039
13062
|
/**
|
|
13040
|
-
*
|
|
13063
|
+
* Sets the latest date people can choose, as a Unix timestamp in seconds.
|
|
13041
13064
|
*/
|
|
13042
13065
|
this.max = '8640000000000';
|
|
13043
13066
|
|
|
13044
13067
|
/**
|
|
13045
|
-
*
|
|
13068
|
+
* Sets the earliest date people can choose, as a Unix timestamp in seconds.
|
|
13046
13069
|
*/
|
|
13047
13070
|
this.min = '-8640000000000';
|
|
13048
13071
|
|
|
13049
13072
|
/**
|
|
13050
|
-
*
|
|
13073
|
+
* Lets people choose only one date instead of a start date and an end date.
|
|
13051
13074
|
*/
|
|
13052
13075
|
this.noRange = false;
|
|
13053
13076
|
this.dateFrom = null;
|
|
@@ -13263,8 +13286,16 @@ var chevronLeft = {"role":"img","color":"currentColor","title":"","desc":"Direct
|
|
|
13263
13286
|
|
|
13264
13287
|
var chevronRight = {"role":"img","color":"currentColor","title":"","desc":"Directional indicator; right.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"chevron-right","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"chevron-right__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"chevron-right__desc\">Directional indicator; right.</desc><path d=\"m9.605 17.551-.084-.072a.75.75 0 0 1-.072-.977l.072-.084 4.47-4.47-4.47-4.47a.75.75 0 0 1-.072-.976l.072-.084a.75.75 0 0 1 .977-.073l.084.073 4.823 4.823a1 1 0 0 1 0 1.415l-4.823 4.823a.75.75 0 0 1-.977.072\"/></svg>"};
|
|
13265
13288
|
|
|
13289
|
+
/**
|
|
13290
|
+
* Helpers the datepicker's calendar uses to change the month it shows, show or hide the previous and next month buttons, and scroll to a month.
|
|
13291
|
+
*/
|
|
13266
13292
|
class CalendarUtilities {
|
|
13267
13293
|
constructor() {
|
|
13294
|
+
|
|
13295
|
+
/**
|
|
13296
|
+
* The date helpers these methods use.
|
|
13297
|
+
* @private
|
|
13298
|
+
*/
|
|
13268
13299
|
this.util = new AuroDatepickerUtilities();
|
|
13269
13300
|
}
|
|
13270
13301
|
|
|
@@ -13290,7 +13321,8 @@ class CalendarUtilities {
|
|
|
13290
13321
|
}
|
|
13291
13322
|
|
|
13292
13323
|
/**
|
|
13293
|
-
*
|
|
13324
|
+
* Called when someone selects the fullscreen calendar's close button or the Done button.
|
|
13325
|
+
* Fires `auroCalendar-dismissRequest` so the datepicker closes the calendar.
|
|
13294
13326
|
* @private
|
|
13295
13327
|
* @returns {void}
|
|
13296
13328
|
*/
|
|
@@ -13366,7 +13398,8 @@ class CalendarUtilities {
|
|
|
13366
13398
|
}
|
|
13367
13399
|
|
|
13368
13400
|
/**
|
|
13369
|
-
*
|
|
13401
|
+
* Called when the calendar's `centralDate` changes. Updates the previous and next month buttons
|
|
13402
|
+
* and fires `auroCalendar-centralDateChanged` with the new date.
|
|
13370
13403
|
* @param {Object} elem - The auro-calendar element.
|
|
13371
13404
|
* @private
|
|
13372
13405
|
* @returns {void}
|
|
@@ -13783,7 +13816,7 @@ class AuroBibtemplate extends i$1 {
|
|
|
13783
13816
|
}
|
|
13784
13817
|
|
|
13785
13818
|
/**
|
|
13786
|
-
* Called
|
|
13819
|
+
* Called when a `touchmove` event reaches the element. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
|
|
13787
13820
|
* @param {Event} event - The `touchmove` event.
|
|
13788
13821
|
* @returns {void}
|
|
13789
13822
|
*/
|
|
@@ -13879,7 +13912,7 @@ class AuroBibtemplate extends i$1 {
|
|
|
13879
13912
|
}
|
|
13880
13913
|
}
|
|
13881
13914
|
|
|
13882
|
-
var formkitVersion$2 = '
|
|
13915
|
+
var formkitVersion$2 = '202611091558';
|
|
13883
13916
|
|
|
13884
13917
|
let l$1 = class l{generateElementName(e,t){let s=e;return s+="-",s+=t.replace(/[.]/g,"_"),s}generateTag(s,o,a){const r=this.generateElementName(s,o),i=i$5`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let h$4 = class h{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,s=(t,o=t&&t.closest(e))=>t&&t!==document&&t!==window?o||s(t.getRootNode().host):null){return s(t)}handleComponentTagRename(e,t){const s=t.toLowerCase();e.tagName.toLowerCase()!==s&&e.setAttribute(s,true);}elementMatch(e,t){const s=t.toLowerCase();return e.tagName.toLowerCase()===s||e.hasAttribute(s)}getSlotText(e,t){const s=e.shadowRoot?.querySelector(`slot[name="${t}"]`),o=(s?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim();return o||null}};let d$1 = class d{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,s=(t,o=t&&t.closest(e))=>t&&t!==document&&t!==window?o||s(t.getRootNode().host):null){return s(t)}handleComponentTagRename(e,t){const s=t.toLowerCase();e.tagName.toLowerCase()!==s&&e.setAttribute(s,true);}elementMatch(e,t){const s=t.toLowerCase();return e.tagName.toLowerCase()===s||e.hasAttribute(s)}getSlotText(e,t){const s=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return (s?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}};var c$3=i$3`:host{color:var(--ds-auro-loader-color)}:host>.loader-shape>span{border-color:var(--ds-auro-loader-border-color);background-color:var(--ds-auro-loader-background-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>.loader-shape>span{--ds-auro-loader-background-color: transparent}:host([orbit])>.loader-shape>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>.loader-shape>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
13885
13918
|
`,u$6=i$3`.body-default{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-emphasized-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-emphasized-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, .875rem)}.body-2xs,.body-2xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-emphasized-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-variant-ligatures:none;font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-variant-ligatures:none;font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host{position:relative;display:inline-flex;flex-direction:column;align-items:center}:host([message-position=top]){flex-direction:column-reverse}:host([message-position=left]){flex-direction:row-reverse}:host([message-position=right]){flex-direction:row}:host([has-message]){gap:var(--ds-auro-loader-message-spacing)}.loader-shape{position:relative;display:inline-block;width:2rem;height:2rem;flex-shrink:0;font-size:0}.loader-shape>span{position:absolute;top:0;left:0;display:inline-block;width:2rem;height:2rem;box-sizing:border-box;border-width:0;border-style:solid;border-radius:100%;float:none}:host([xs])>.loader-shape{width:1.2rem;height:1.2rem}:host([xs])>.loader-shape>span{width:1.2rem;height:1.2rem}:host([sm])>.loader-shape{width:3rem;height:3rem}:host([sm])>.loader-shape>span{width:3rem;height:3rem}:host([md])>.loader-shape{width:5rem;height:5rem}:host([md])>.loader-shape>span{width:5rem;height:5rem}:host([lg])>.loader-shape{width:8rem;height:8rem}:host([lg])>.loader-shape>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]){position:relative}:host([pulse])>.loader-shape{position:relative;width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>.loader-shape>span{position:relative;width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse])>.loader-shape>span:nth-child(1){animation-delay:-.4s}:host([pulse])>.loader-shape>span:nth-child(2){animation-delay:-.2s}:host([pulse])>.loader-shape>span:nth-child(3){animation-delay:0ms}:host([pulse][xs])>.loader-shape{width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>.loader-shape>span{width:.65rem;height:.65rem;margin:var(--margin-xs)}:host([pulse][sm])>.loader-shape{width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>.loader-shape>span{width:2rem;height:2rem;margin:var(--margin-sm)}:host([pulse][md])>.loader-shape{width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>.loader-shape>span{width:3rem;height:3rem;margin:var(--margin-md)}:host([pulse][lg])>.loader-shape{width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>.loader-shape>span{width:5rem;height:5rem;margin:var(--margin-lg)}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]){opacity:1}:host([orbit])>.loader-shape>span{border-width:5px;opacity:1}:host([orbit])>.loader-shape>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>.loader-shape>span{border-width:8px}:host([orbit][md])>.loader-shape>span{border-width:13px}:host([orbit][lg])>.loader-shape>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>.loader-shape>svg{width:100%;height:100%;animation:rotate 2s linear infinite;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{animation:ringworm 1.5s ease-in-out infinite;stroke-dashoffset:0;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;display:block;overflow:hidden;width:100%;height:0;font-size:unset}:host([laser])>.no-animation,:host([laser])>.message-region{display:none}:host([laser])>.loader-shape>span{position:fixed;z-index:100;width:100%;height:.25rem;border-radius:0}:host([laser])>.loader-shape>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>.loader-shape>span:nth-child(2){width:50%;border-color:currentcolor;animation:laser 2s linear infinite;opacity:1}:host([laser][sm])>.loader-shape>span:nth-child(2){width:20%}:host([laser][md])>.loader-shape>span:nth-child(2){width:30%}:host([laser][lg])>.loader-shape>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>.loader-shape>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}.message-region{min-width:0;color:var(--ds-auro-loader-message-color)}.message-list{padding:0;margin:0}slot[name=message]::slotted([hidden]){display:none!important}:host>.no-animation{display:none;min-width:0}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>.loader-shape{display:none}:host>.loader-shape>span{opacity:1}:host>.no-animation{display:block}:host([has-default-content])>.message-region{display:none}:host([has-message]:not([has-default-content]))>.no-animation{display:none}}
|
|
@@ -13972,7 +14005,7 @@ var buttonVersion$1 = '12.3.2';
|
|
|
13972
14005
|
* @event auroCalendar-dateSelected - Notifies that someone selected a date in the calendar.
|
|
13973
14006
|
* @event auroCalendar-centralDateChanged - Notifies that the month shown has changed. Doesn't bubble; `event.detail.date` is the new `centralDate`.
|
|
13974
14007
|
* @event auroCalendar-dismissRequest - Notifies that someone selected the close or Done button, so the datepicker closes the dropdown.
|
|
13975
|
-
* @event narrow-changedProperties - Notifies
|
|
14008
|
+
* @event narrow-changedProperties - Notifies once, after the calendar first renders, with `event.detail.value` set to `false`. The calendar doesn't currently track whether the screen is narrow, so the event doesn't fire again.
|
|
13976
14009
|
*/
|
|
13977
14010
|
class AuroCalendar extends RangeDatepicker {
|
|
13978
14011
|
constructor() {
|
|
@@ -14043,18 +14076,13 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14043
14076
|
*/
|
|
14044
14077
|
this.calendarRangeMonths = null;
|
|
14045
14078
|
|
|
14046
|
-
/**
|
|
14047
|
-
* @deprecated Use `auro-datepicker.blackoutDates` (an array of
|
|
14048
|
-
* `YYYY-MM-DD` ISO strings) instead. This legacy array of Unix
|
|
14049
|
-
* timestamps is still honored for backward compatibility but emits a
|
|
14050
|
-
* one-time `console.debug` the first time a non-empty value is observed.
|
|
14051
|
-
* Support will be removed in a future major release.
|
|
14052
|
-
* @private
|
|
14053
|
-
*/
|
|
14054
14079
|
// Initialize the backing field directly so the constructor's default
|
|
14055
14080
|
// empty array doesn't trigger the deprecation warning. Assignments from
|
|
14056
14081
|
// consumers still route through the setter below.
|
|
14057
14082
|
/**
|
|
14083
|
+
* Deprecated: Use `blackoutDates` on `auro-datepicker` instead.
|
|
14084
|
+
* Holds the dates set with the deprecated `disabledDays`, as Unix timestamps in seconds. The calendar still honors them, and the first non-empty value logs a one-time console message.
|
|
14085
|
+
* @deprecated Use `blackoutDates` on `auro-datepicker` instead.
|
|
14058
14086
|
* @private
|
|
14059
14087
|
* @type {number[]}
|
|
14060
14088
|
*/
|
|
@@ -14231,7 +14259,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14231
14259
|
},
|
|
14232
14260
|
|
|
14233
14261
|
/**
|
|
14234
|
-
*
|
|
14262
|
+
* Sets the window width, in pixels, below which `scrollMonthIntoView()` scrolls to a month. The datepicker doesn't currently set it.
|
|
14235
14263
|
* @private
|
|
14236
14264
|
*/
|
|
14237
14265
|
mobileBreakpoint: {
|
|
@@ -14429,9 +14457,10 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14429
14457
|
}
|
|
14430
14458
|
|
|
14431
14459
|
/**
|
|
14432
|
-
* Renders
|
|
14460
|
+
* Renders the calendar's `auro-formkit-calendar-month` elements, one for each month shown.
|
|
14461
|
+
* Renders nothing until `visible` is set.
|
|
14433
14462
|
* @private
|
|
14434
|
-
* @returns {Object} The
|
|
14463
|
+
* @returns {Object|undefined} The months' template, or undefined when `visible` isn't set.
|
|
14435
14464
|
*/
|
|
14436
14465
|
renderAllCalendars() {
|
|
14437
14466
|
let renderedHtml = undefined;
|
|
@@ -14645,7 +14674,8 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14645
14674
|
}
|
|
14646
14675
|
|
|
14647
14676
|
/**
|
|
14648
|
-
* Shows the
|
|
14677
|
+
* Called when focus moves into the calendar grid. Shows the focus ring on the active cell
|
|
14678
|
+
* when the grid itself gets focus, not a cell inside it.
|
|
14649
14679
|
* @private
|
|
14650
14680
|
* @param {FocusEvent} [event] - The focusin event.
|
|
14651
14681
|
* @returns {void}
|
|
@@ -14674,7 +14704,8 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14674
14704
|
}
|
|
14675
14705
|
|
|
14676
14706
|
/**
|
|
14677
|
-
*
|
|
14707
|
+
* Called when the calendar grid or an element in it loses focus. Removes the focus ring from
|
|
14708
|
+
* every cell, and clears the range preview while the range doesn't have both dates.
|
|
14678
14709
|
* @private
|
|
14679
14710
|
* @returns {void}
|
|
14680
14711
|
*/
|
|
@@ -14765,15 +14796,17 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14765
14796
|
/**
|
|
14766
14797
|
* Computes the initial active date from data properties alone, without the DOM.
|
|
14767
14798
|
* Priority:
|
|
14768
|
-
* 1.
|
|
14769
|
-
* 2.
|
|
14770
|
-
* 3.
|
|
14771
|
-
* 4.
|
|
14772
|
-
* 5.
|
|
14773
|
-
*
|
|
14774
|
-
*
|
|
14775
|
-
*
|
|
14776
|
-
*
|
|
14799
|
+
* 1. The selected date (`dateFrom`), if it's within range.
|
|
14800
|
+
* 2. When `centralDate` is in a different month than today, the first enabled date in that month, or else its first in-range date.
|
|
14801
|
+
* 3. Today's date, if it's enabled (in range and not a blackout date).
|
|
14802
|
+
* 4. The first enabled date in the visible months, or else their first in-range date.
|
|
14803
|
+
* 5. The first enabled date after today, scanning day by day for up to a year.
|
|
14804
|
+
* 6. The first enabled date before today, scanning day by day for up to a year.
|
|
14805
|
+
* 7. The first enabled date in a finite [min, max] range.
|
|
14806
|
+
* 7b. The first enabled date scanning forward from a finite min (unbounded max).
|
|
14807
|
+
* 7c. The first enabled date scanning backward from a finite max (unbounded min).
|
|
14808
|
+
* 8. An in-range date, even if it's a blackout date, so focus can land somewhere: min when it's finite, or else today.
|
|
14809
|
+
* 9. Undefined: no valid target.
|
|
14777
14810
|
*
|
|
14778
14811
|
* @private
|
|
14779
14812
|
* @param {Object} [options] - The optional settings.
|
|
@@ -15021,9 +15054,9 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15021
15054
|
}
|
|
15022
15055
|
|
|
15023
15056
|
/**
|
|
15024
|
-
*
|
|
15025
|
-
*
|
|
15026
|
-
*
|
|
15057
|
+
* Called when a key is pressed while the calendar grid has focus. The arrow keys move the
|
|
15058
|
+
* active cell, into another month when needed, and Enter or Space selects the active date
|
|
15059
|
+
* unless it's a blackout date. Focus stays on the grid, and the live region announces the new active cell.
|
|
15027
15060
|
* @private
|
|
15028
15061
|
* @param {KeyboardEvent} event - The keyboard event.
|
|
15029
15062
|
* @returns {void}
|
|
@@ -15155,7 +15188,9 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15155
15188
|
}
|
|
15156
15189
|
|
|
15157
15190
|
/**
|
|
15158
|
-
*
|
|
15191
|
+
* Called when the calendar receives a `calendar-month-boundary` event. Moves the active cell
|
|
15192
|
+
* across a month boundary for the arrow key in `event.detail.key`. Nothing in the datepicker
|
|
15193
|
+
* currently fires this event.
|
|
15159
15194
|
* @private
|
|
15160
15195
|
* @param {CustomEvent} event - The boundary event with direction and source date info.
|
|
15161
15196
|
* @returns {void}
|
|
@@ -15296,7 +15331,8 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15296
15331
|
}
|
|
15297
15332
|
|
|
15298
15333
|
/**
|
|
15299
|
-
*
|
|
15334
|
+
* Called when a cell fires `calendar-cell-activate` after someone selects it. Makes that cell
|
|
15335
|
+
* the active cell without moving focus to the grid.
|
|
15300
15336
|
* @private
|
|
15301
15337
|
* @param {CustomEvent} event - The activation event with target date.
|
|
15302
15338
|
* @returns {void}
|
|
@@ -15314,9 +15350,8 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15314
15350
|
}
|
|
15315
15351
|
|
|
15316
15352
|
/**
|
|
15317
|
-
*
|
|
15318
|
-
*
|
|
15319
|
-
* the imperative range preview if applicable.
|
|
15353
|
+
* Called when a cell's button gets focus, and after the arrow keys move the active cell.
|
|
15354
|
+
* Announces the date to screen readers through the live region and updates the range preview.
|
|
15320
15355
|
* @private
|
|
15321
15356
|
* @param {CustomEvent} event - The calendar-cell-focused event.
|
|
15322
15357
|
* @returns {void}
|
|
@@ -15498,7 +15533,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15498
15533
|
*
|
|
15499
15534
|
* The cell's `applyCommittedRangeClasses` reuses the same
|
|
15500
15535
|
* `isInRange`/`isDepartDate`/`isReturnDate` helpers `renderCellButton`
|
|
15501
|
-
* uses, so
|
|
15536
|
+
* uses, so this method doesn't parse `dateFrom` or `dateTo`; the helpers already
|
|
15502
15537
|
* normalize their inputs (midnight-truncation, string→int) internally.
|
|
15503
15538
|
* @private
|
|
15504
15539
|
* @returns {void}
|
|
@@ -15534,8 +15569,8 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15534
15569
|
}
|
|
15535
15570
|
|
|
15536
15571
|
/**
|
|
15537
|
-
*
|
|
15538
|
-
*
|
|
15572
|
+
* Called when a month fires `hovered-date-changed`. Updates the range preview directly
|
|
15573
|
+
* instead of setting the base class's reactive `hoveredDate`, so the cells don't re-render.
|
|
15539
15574
|
* @private
|
|
15540
15575
|
* @param {CustomEvent} event - The hovered-date-changed event from a month.
|
|
15541
15576
|
* @returns {void}
|
|
@@ -15551,7 +15586,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15551
15586
|
* Walks the flat tree (rendered, slot-aware) outward from the active
|
|
15552
15587
|
* cell's button and calls `scrollBy` on every vertically-scrollable
|
|
15553
15588
|
* ancestor by whatever delta still separates the cell from that
|
|
15554
|
-
* ancestor's viewport. Native `scrollIntoView`
|
|
15589
|
+
* ancestor's viewport. Native `scrollIntoView` isn't used because the
|
|
15555
15590
|
* cell sits inside multiple nested scroll containers (the dropdown bib's
|
|
15556
15591
|
* `<dialog>`, the bibtemplate's `#bodyContainer`) and the algorithm only
|
|
15557
15592
|
* scrolls one of them on its own, leaving the cell short of the
|
|
@@ -15561,7 +15596,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15561
15596
|
* value) so each `scrollBy` resolves synchronously and the next
|
|
15562
15597
|
* iteration's `getBoundingClientRect` reads post-scroll positions
|
|
15563
15598
|
* accurately. This also satisfies `prefers-reduced-motion` users: the
|
|
15564
|
-
* scroll containers
|
|
15599
|
+
* scroll containers don't set CSS `scroll-behavior: smooth`, so `auto`
|
|
15565
15600
|
* is effectively instant.
|
|
15566
15601
|
*
|
|
15567
15602
|
* The active cell is looked up from the cache populated by
|
|
@@ -15776,16 +15811,15 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
15776
15811
|
}
|
|
15777
15812
|
|
|
15778
15813
|
/**
|
|
15779
|
-
*
|
|
15780
|
-
*
|
|
15781
|
-
*
|
|
15782
|
-
*
|
|
15783
|
-
*
|
|
15784
|
-
* keyboard navigation, so the announcements were silently dropped.
|
|
15814
|
+
* Announces a date to screen readers after a 150 ms pause, so only the
|
|
15815
|
+
* last cell reached with the arrow keys is announced.
|
|
15816
|
+
* Uses the assertive live region, because VoiceOver waits for the page to
|
|
15817
|
+
* be idle before it reads a polite one, which never happens during
|
|
15818
|
+
* arrow-key navigation, so polite announcements were dropped.
|
|
15785
15819
|
*
|
|
15786
15820
|
* This is a documented deviation from WCAG 2.1 SC 4.1.3, which
|
|
15787
15821
|
* prefers `polite` for status messages. See the "Documented
|
|
15788
|
-
*
|
|
15822
|
+
* deviation" section in `components/datepicker/docs/pages/accessibility.md`.
|
|
15789
15823
|
* @private
|
|
15790
15824
|
* @param {String} dateStr - The localized date string to announce.
|
|
15791
15825
|
* @returns {void}
|
|
@@ -20027,7 +20061,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$1 {
|
|
|
20027
20061
|
}
|
|
20028
20062
|
};
|
|
20029
20063
|
|
|
20030
|
-
var formkitVersion$1 = '
|
|
20064
|
+
var formkitVersion$1 = '202611091558';
|
|
20031
20065
|
|
|
20032
20066
|
/**
|
|
20033
20067
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -20193,8 +20227,8 @@ let AuroElement$2 = class AuroElement extends i$1 {
|
|
|
20193
20227
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
20194
20228
|
* @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
|
|
20195
20229
|
* @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
|
|
20196
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
20197
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
20230
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
|
|
20231
|
+
* @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
|
|
20198
20232
|
* @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
20199
20233
|
*/
|
|
20200
20234
|
class AuroDropdown extends AuroElement$2 {
|
|
@@ -20523,6 +20557,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
20523
20557
|
/**
|
|
20524
20558
|
* Removes the trigger's border, background, and shadow.
|
|
20525
20559
|
* Applies only when `shape` and `size` are both set.
|
|
20560
|
+
* @relevantWhen shape !== undefined
|
|
20526
20561
|
* @category ui
|
|
20527
20562
|
*/
|
|
20528
20563
|
simple: {
|
|
@@ -20815,6 +20850,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
20815
20850
|
/**
|
|
20816
20851
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
20817
20852
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
20853
|
+
* @default 0
|
|
20818
20854
|
* @category a11y
|
|
20819
20855
|
*/
|
|
20820
20856
|
tabIndex: {
|
|
@@ -21506,7 +21542,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
21506
21542
|
*
|
|
21507
21543
|
* @private
|
|
21508
21544
|
* @method handleDefaultSlot
|
|
21509
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
21510
21545
|
*/
|
|
21511
21546
|
handleDefaultSlot() {
|
|
21512
21547
|
|
|
@@ -21519,7 +21554,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
21519
21554
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
21520
21555
|
* @private
|
|
21521
21556
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
21522
|
-
* @returns {
|
|
21557
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
21523
21558
|
*/
|
|
21524
21559
|
renderBasicHtml(helpTextClasses) {
|
|
21525
21560
|
return u$a`
|
|
@@ -21581,7 +21616,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
21581
21616
|
/**
|
|
21582
21617
|
* Renders the classic layout.
|
|
21583
21618
|
* @private
|
|
21584
|
-
* @returns {
|
|
21619
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
21585
21620
|
*/
|
|
21586
21621
|
renderLayoutClassic() {
|
|
21587
21622
|
// TODO: check with Doug why this was never used?
|
|
@@ -21597,7 +21632,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
21597
21632
|
/**
|
|
21598
21633
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
21599
21634
|
* @private
|
|
21600
|
-
* @returns {
|
|
21635
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
21601
21636
|
*/
|
|
21602
21637
|
renderLayoutSnowflake() {
|
|
21603
21638
|
const helpTextClasses = {
|
|
@@ -21614,7 +21649,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
21614
21649
|
/**
|
|
21615
21650
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
21616
21651
|
* @private
|
|
21617
|
-
* @returns {
|
|
21652
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
21618
21653
|
*/
|
|
21619
21654
|
renderLayoutEmphasized() {
|
|
21620
21655
|
const helpTextClasses = {
|
|
@@ -21632,7 +21667,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
21632
21667
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
21633
21668
|
* @private
|
|
21634
21669
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
21635
|
-
* @returns {
|
|
21670
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
21636
21671
|
*/
|
|
21637
21672
|
renderLayout(ForcedLayout) {
|
|
21638
21673
|
const layout = ForcedLayout || this.layout;
|
|
@@ -31788,6 +31823,9 @@ function cleanEscapedString(input) {
|
|
|
31788
31823
|
return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
|
|
31789
31824
|
}
|
|
31790
31825
|
|
|
31826
|
+
/**
|
|
31827
|
+
* Helpers that set up input masks and convert between the text shown in the field, `Date` objects, and ISO date strings (`YYYY-MM-DD`), for one locale and date format.
|
|
31828
|
+
*/
|
|
31791
31829
|
class AuroInputUtilities {
|
|
31792
31830
|
|
|
31793
31831
|
/**
|
|
@@ -31807,7 +31845,17 @@ class AuroInputUtilities {
|
|
|
31807
31845
|
} else {
|
|
31808
31846
|
this.locale = 'en-US';
|
|
31809
31847
|
}
|
|
31848
|
+
|
|
31849
|
+
/**
|
|
31850
|
+
* Sets the date format to use instead of the locale's format, such as `mm/dd/yyyy`. `updateFormat()` also sets it.
|
|
31851
|
+
* @type {string|undefined}
|
|
31852
|
+
*/
|
|
31810
31853
|
this.overrideFormat = config.format;
|
|
31854
|
+
|
|
31855
|
+
/**
|
|
31856
|
+
* The `Intl.DateTimeFormat` date formatter for the helpers' locale. The helpers don't currently use it.
|
|
31857
|
+
* @type {Intl.DateTimeFormat}
|
|
31858
|
+
*/
|
|
31811
31859
|
this.formatter = new Intl.DateTimeFormat(this.locale);
|
|
31812
31860
|
|
|
31813
31861
|
// Bindings - many of these are passed into IMask callbacks,
|
|
@@ -32238,7 +32286,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
32238
32286
|
// The initial-load focus theft was caused by the static `autofocus`
|
|
32239
32287
|
// attribute on the bib input (now conditional), not by delegatesFocus.
|
|
32240
32288
|
/**
|
|
32241
|
-
*
|
|
32289
|
+
* Gets the options Lit uses to create the shadow root.
|
|
32242
32290
|
* @internal
|
|
32243
32291
|
*/
|
|
32244
32292
|
static get shadowRootOptions() {
|
|
@@ -32398,8 +32446,9 @@ class BaseInput extends AuroElement$1 {
|
|
|
32398
32446
|
},
|
|
32399
32447
|
|
|
32400
32448
|
/**
|
|
32401
|
-
* Sets the shape of the field's border.
|
|
32402
|
-
* and `pill
|
|
32449
|
+
* Sets the shape of the field's border. `classic` and `rounded` have slightly rounded corners, `box` has square corners,
|
|
32450
|
+
* and `pill` has fully rounded ends, or only the left or right end for `pill-left` and `pill-right`.
|
|
32451
|
+
* The emphasized layouts support `pill`, `pill-left`, and `pill-right`, and the snowflake layout uses `snowflake`.
|
|
32403
32452
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
32404
32453
|
* @default 'classic'
|
|
32405
32454
|
* @category ui
|
|
@@ -32411,8 +32460,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
32411
32460
|
},
|
|
32412
32461
|
|
|
32413
32462
|
/**
|
|
32414
|
-
* Sets the field's
|
|
32415
|
-
* emphasized layouts support only `xl`.
|
|
32463
|
+
* Sets the field's height. The `classic` and `snowflake` shapes are the same height at every size,
|
|
32464
|
+
* and the emphasized layouts support only `xl`.
|
|
32416
32465
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
32417
32466
|
* @default 'lg'
|
|
32418
32467
|
* @category ui
|
|
@@ -34208,7 +34257,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
|
34208
34257
|
}
|
|
34209
34258
|
};
|
|
34210
34259
|
|
|
34211
|
-
var formkitVersion = '
|
|
34260
|
+
var formkitVersion = '202611091558';
|
|
34212
34261
|
|
|
34213
34262
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
34214
34263
|
// See LICENSE in the project root for license information.
|
|
@@ -34667,7 +34716,7 @@ class AuroInput extends BaseInput {
|
|
|
34667
34716
|
|
|
34668
34717
|
/**
|
|
34669
34718
|
* Gets the `pattern` for the inner `<input>` element. For credit card numbers,
|
|
34670
|
-
* builds a length check from `minLength` and `maxLength` instead.
|
|
34719
|
+
* builds a length check from `minLength` and `maxLength` instead, unless `noValidate` is set.
|
|
34671
34720
|
* @private
|
|
34672
34721
|
* @returns {string}
|
|
34673
34722
|
*/
|
|
@@ -35727,6 +35776,9 @@ function applyKeyboardStrategy(component, strategy, options = {}) {
|
|
|
35727
35776
|
// This file is an intentional placeholder for most keys. When datepicker bib keyboard navigation is
|
|
35728
35777
|
// added, handlers should go here following the same strategy pattern used by
|
|
35729
35778
|
// auro-select (selectKeyboardStrategy.js) and auro-combobox (comboboxKeyboardStrategy.js).
|
|
35779
|
+
/**
|
|
35780
|
+
* Holds the datepicker's keyboard handlers, one function each for `Escape`, `Enter`, and the space bar. Escape closes the open calendar without closing a dialog or drawer around it, and Enter or Space opens the closed calendar unless the clear button has focus.
|
|
35781
|
+
*/
|
|
35730
35782
|
const datepickerKeyboardStrategy = {
|
|
35731
35783
|
Escape(component, evt, ctx) {
|
|
35732
35784
|
if (!ctx.isExpanded) {
|
|
@@ -35801,7 +35853,7 @@ const datepickerKeyboardStrategy = {
|
|
|
35801
35853
|
* - **Limits and unavailable dates**: `minDate` and `maxDate` turn off dates outside a range, and `blackoutDates` marks single dates people can't select.
|
|
35802
35854
|
* - **Validation**: `required` shows an error when no date is chosen, and the `setCustomValidity` attributes replace the built-in error messages.
|
|
35803
35855
|
* - **Content on dates**: The `date_YYYY_MM_DD` and `popover_YYYY_MM_DD` slots add content to a date in the calendar, such as a price.
|
|
35804
|
-
* - **Localization**: `locale` sets the date format and the month and weekday names, and attributes and slots let you translate
|
|
35856
|
+
* - **Localization**: `locale` sets the date format and the month and weekday names, and attributes and slots let you translate most other text, except the calendar's Done button and the word "selected" in screen reader announcements.
|
|
35805
35857
|
* - **Fullscreen on small screens**: `fullscreenBreakpoint` sets the screen size at or below which the calendar opens fullscreen.
|
|
35806
35858
|
*
|
|
35807
35859
|
* **Example**
|
|
@@ -36258,7 +36310,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
36258
36310
|
},
|
|
36259
36311
|
|
|
36260
36312
|
/**
|
|
36261
|
-
* Sets the shape of the
|
|
36313
|
+
* Sets the shape of the date field. Use `classic` (the default) with the `classic` layout, and `snowflake` with the `snowflake` layout.
|
|
36262
36314
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
36263
36315
|
* @default 'classic'
|
|
36264
36316
|
* @category ui
|
|
@@ -36270,7 +36322,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
36270
36322
|
},
|
|
36271
36323
|
|
|
36272
36324
|
/**
|
|
36273
|
-
* Sets the
|
|
36325
|
+
* Sets the height of the date field, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. The `rounded` shape supports only `lg`, and the `pill`, `pill-left`, and `pill-right` shapes support only `md` and `xl`.
|
|
36274
36326
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
36275
36327
|
* @default 'lg'
|
|
36276
36328
|
* @category ui
|
|
@@ -36586,7 +36638,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
36586
36638
|
},
|
|
36587
36639
|
|
|
36588
36640
|
/**
|
|
36589
|
-
*
|
|
36641
|
+
* Marks the datepicker as used once it gets focus, so validation can report a missing required date. `reset()` clears it.
|
|
36590
36642
|
* @private
|
|
36591
36643
|
*/
|
|
36592
36644
|
touched: {
|
|
@@ -36742,7 +36794,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
36742
36794
|
}
|
|
36743
36795
|
|
|
36744
36796
|
/**
|
|
36745
|
-
*
|
|
36797
|
+
* Called when the `displayValue` slot's content changes. Records whether the slot has content to show.
|
|
36746
36798
|
* @private
|
|
36747
36799
|
* @returns {void}
|
|
36748
36800
|
*/
|
|
@@ -37535,7 +37587,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
37535
37587
|
* Per-class dedup set used by `_warnInvalidLocale`. Static so the dedup
|
|
37536
37588
|
* spans every datepicker instance on the page; lives on the class (not
|
|
37537
37589
|
* at module scope) so it stays an encapsulated implementation detail of
|
|
37538
|
-
* this component and
|
|
37590
|
+
* this component and doesn't interfere with WCA's class-JSDoc
|
|
37539
37591
|
* attachment.
|
|
37540
37592
|
* @private
|
|
37541
37593
|
*/
|
|
@@ -37543,7 +37595,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
37543
37595
|
|
|
37544
37596
|
/**
|
|
37545
37597
|
* Logs a one-time `console.debug` when an unsupported locale falls back to
|
|
37546
|
-
* en-US
|
|
37598
|
+
* `en-US`. Deduped by the offending tag so noisy re-renders that resurface
|
|
37547
37599
|
* the same bad value stay quiet, but each new bad value still signals so
|
|
37548
37600
|
* consumers can spot the typo or missing tag.
|
|
37549
37601
|
* @private
|
|
@@ -37841,7 +37893,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
37841
37893
|
}
|
|
37842
37894
|
|
|
37843
37895
|
/**
|
|
37844
|
-
*
|
|
37896
|
+
* Called when a slot the datepicker passes to the calendar changes, such as `bib.fullscreen.headline`.
|
|
37897
|
+
* Copies the slot's content into the calendar.
|
|
37845
37898
|
*
|
|
37846
37899
|
* @private
|
|
37847
37900
|
* @method handleSlotToSlot
|
|
@@ -37854,7 +37907,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
37854
37907
|
}
|
|
37855
37908
|
|
|
37856
37909
|
/**
|
|
37857
|
-
*
|
|
37910
|
+
* Called when someone clicks the datepicker. Stops a click on the inert trigger from closing the open calendar,
|
|
37911
|
+
* and in the `snowflake` layout, moves focus to the start date input when the click isn't on an input or the calendar and no input has focus.
|
|
37858
37912
|
* @param {PointerEvent} event - The pointer event object.
|
|
37859
37913
|
* @private
|
|
37860
37914
|
* @returns {void}
|
|
@@ -38224,7 +38278,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
38224
38278
|
// ------------------------------------
|
|
38225
38279
|
|
|
38226
38280
|
/**
|
|
38227
|
-
*
|
|
38281
|
+
* Called when someone selects the clear button. Clears the chosen dates and moves focus to the start date input.
|
|
38228
38282
|
* @private
|
|
38229
38283
|
* @param {MouseEvent} event - The mouse event from the clear button click.
|
|
38230
38284
|
* @returns {void}
|