@aurodesignsystem-dev/auro-formkit 0.0.0-pr1594.2 → 0.0.0-pr1595.1
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 +11 -0
- package/components/bibtemplate/dist/index.js +13 -0
- package/components/bibtemplate/dist/registered.js +13 -0
- package/components/checkbox/demo/api.md +17 -11
- package/components/checkbox/demo/customize.min.js +23 -6
- package/components/checkbox/demo/getting-started.min.js +23 -6
- package/components/checkbox/demo/index.min.js +23 -6
- package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +4 -0
- package/components/checkbox/dist/index.js +23 -6
- package/components/checkbox/dist/registered.js +23 -6
- package/components/combobox/demo/api.md +26 -18
- package/components/combobox/demo/customize.min.js +426 -126
- package/components/combobox/demo/getting-started.min.js +426 -126
- package/components/combobox/demo/index.min.js +426 -126
- package/components/combobox/dist/auro-combobox.d.ts +38 -21
- package/components/combobox/dist/index.js +338 -111
- package/components/combobox/dist/registered.js +338 -111
- package/components/counter/demo/api.md +34 -16
- package/components/counter/demo/customize.min.js +204 -64
- package/components/counter/demo/index.min.js +204 -64
- package/components/counter/dist/auro-counter-button.d.ts +4 -0
- package/components/counter/dist/auro-counter-group.d.ts +27 -4
- package/components/counter/dist/auro-counter.d.ts +7 -0
- package/components/counter/dist/index.js +204 -64
- package/components/counter/dist/registered.js +204 -64
- package/components/datepicker/demo/api.md +55 -49
- package/components/datepicker/demo/customize.min.js +515 -134
- package/components/datepicker/demo/index.min.js +515 -134
- package/components/datepicker/dist/auro-calendar-cell.d.ts +58 -4
- package/components/datepicker/dist/auro-calendar-month.d.ts +10 -4
- package/components/datepicker/dist/auro-calendar.d.ts +25 -6
- package/components/datepicker/dist/auro-datepicker.d.ts +70 -22
- package/components/datepicker/dist/index.js +515 -134
- package/components/datepicker/dist/registered.js +515 -134
- package/components/dropdown/demo/api.md +25 -22
- package/components/dropdown/demo/customize.min.js +107 -37
- package/components/dropdown/demo/getting-started.min.js +245 -82
- package/components/dropdown/demo/index.min.js +107 -37
- package/components/dropdown/dist/auro-dropdown.d.ts +34 -8
- package/components/dropdown/dist/auro-dropdownBib.d.ts +17 -5
- package/components/dropdown/dist/index.js +107 -37
- package/components/dropdown/dist/registered.js +107 -37
- package/components/form/demo/customize.min.js +1518 -466
- package/components/form/demo/getting-started.min.js +1518 -466
- package/components/form/demo/index.min.js +1518 -466
- package/components/form/demo/registerDemoDeps.min.js +1518 -466
- package/components/helptext/dist/auro-helptext.d.ts +8 -7
- package/components/helptext/dist/index.js +7 -2
- package/components/helptext/dist/registered.js +7 -2
- package/components/input/demo/api.md +30 -30
- package/components/input/demo/customize.min.js +138 -45
- package/components/input/demo/getting-started.min.js +138 -45
- package/components/input/demo/index.min.js +138 -45
- package/components/input/dist/base-input.d.ts +79 -25
- package/components/input/dist/index.js +138 -45
- package/components/input/dist/registered.js +138 -45
- package/components/layoutElement/dist/auroElement.d.ts +10 -17
- package/components/layoutElement/dist/index.js +20 -20
- package/components/layoutElement/dist/registered.js +20 -20
- package/components/menu/demo/api.md +31 -27
- package/components/menu/demo/index.min.js +108 -35
- package/components/menu/dist/auro-menu.d.ts +26 -21
- package/components/menu/dist/auro-menuoption.d.ts +27 -1
- package/components/menu/dist/index.js +108 -35
- package/components/menu/dist/registered.js +108 -35
- package/components/radio/demo/api.md +8 -7
- package/components/radio/demo/customize.min.js +21 -7
- package/components/radio/demo/getting-started.min.js +21 -7
- package/components/radio/demo/index.min.js +21 -7
- package/components/radio/dist/auro-radio-group.d.ts +8 -3
- package/components/radio/dist/auro-radio.d.ts +1 -0
- package/components/radio/dist/index.js +21 -7
- package/components/radio/dist/registered.js +21 -7
- package/components/select/demo/api.md +18 -15
- package/components/select/demo/customize.min.js +259 -79
- package/components/select/demo/getting-started.min.js +259 -79
- package/components/select/demo/index.min.js +259 -79
- package/components/select/dist/auro-select.d.ts +17 -0
- package/components/select/dist/index.js +171 -64
- package/components/select/dist/registered.js +171 -64
- package/custom-elements.json +1189 -1336
- package/package.json +1 -1
|
@@ -11719,6 +11719,14 @@ function isBlackoutTimestamp(dateTs, disabledDays, blackoutDates) {
|
|
|
11719
11719
|
|
|
11720
11720
|
/* eslint-disable curly, max-lines, no-underscore-dangle, no-magic-numbers, no-underscore-dangle, max-params, no-extra-parens, arrow-parens, max-lines, line-comment-position, no-inline-comments, lit/binding-positions, lit/no-invalid-html */
|
|
11721
11721
|
|
|
11722
|
+
/**
|
|
11723
|
+
* The `auro-calendar-cell` component renders a single selectable day button within a calendar month grid.
|
|
11724
|
+
*
|
|
11725
|
+
* @event calendar-cell-activate - Notifies that this cell has been activated via click or tap.
|
|
11726
|
+
* @event date-is-hovered - Notifies that this cell's date is being hovered.
|
|
11727
|
+
* @event calendar-cell-focused - Notifies that this cell's button has received focus.
|
|
11728
|
+
* @csspart dateSlot - Use for customizing the style of the date slot content container.
|
|
11729
|
+
*/
|
|
11722
11730
|
class AuroCalendarCell extends LitElement {
|
|
11723
11731
|
constructor() {
|
|
11724
11732
|
super();
|
|
@@ -11731,6 +11739,8 @@ class AuroCalendarCell extends LitElement {
|
|
|
11731
11739
|
this.min = null;
|
|
11732
11740
|
this.max = null;
|
|
11733
11741
|
this.disabled = false;
|
|
11742
|
+
|
|
11743
|
+
/** @type {number[]} */
|
|
11734
11744
|
this.disabledDays = [];
|
|
11735
11745
|
this.isCurrentDate = false;
|
|
11736
11746
|
this._locale = null;
|
|
@@ -11754,31 +11764,107 @@ class AuroCalendarCell extends LitElement {
|
|
|
11754
11764
|
static get properties() {
|
|
11755
11765
|
return {
|
|
11756
11766
|
// ...super.properties,
|
|
11767
|
+
|
|
11768
|
+
/**
|
|
11769
|
+
* The day object for this cell, containing its Unix timestamp (`date`) and day-of-month title.
|
|
11770
|
+
*/
|
|
11757
11771
|
day: { type: Object },
|
|
11772
|
+
|
|
11773
|
+
/**
|
|
11774
|
+
* Whether this cell's date is currently selected.
|
|
11775
|
+
*/
|
|
11758
11776
|
selected: { type: Boolean },
|
|
11759
|
-
|
|
11760
|
-
|
|
11777
|
+
|
|
11778
|
+
/**
|
|
11779
|
+
* The end (return) date of the selected range as a Unix-timestamp string.
|
|
11780
|
+
*/
|
|
11781
|
+
dateTo: {
|
|
11782
|
+
type: String,
|
|
11783
|
+
attribute: 'dateto'
|
|
11784
|
+
},
|
|
11785
|
+
|
|
11786
|
+
/**
|
|
11787
|
+
* The start (depart) date of the selected range as a Unix-timestamp string.
|
|
11788
|
+
*/
|
|
11789
|
+
dateFrom: {
|
|
11790
|
+
type: String,
|
|
11791
|
+
attribute: 'datefrom'
|
|
11792
|
+
},
|
|
11793
|
+
|
|
11794
|
+
/**
|
|
11795
|
+
* The month this cell belongs to.
|
|
11796
|
+
*/
|
|
11761
11797
|
month: { type: String },
|
|
11798
|
+
|
|
11799
|
+
/**
|
|
11800
|
+
* The minimum selectable date as a Unix timestamp.
|
|
11801
|
+
*/
|
|
11762
11802
|
min: { type: Number },
|
|
11803
|
+
|
|
11804
|
+
/**
|
|
11805
|
+
* The maximum selectable date as a Unix timestamp.
|
|
11806
|
+
*/
|
|
11763
11807
|
max: { type: Number },
|
|
11808
|
+
|
|
11809
|
+
/**
|
|
11810
|
+
* Whether this cell is disabled because its date falls outside the min/max range.
|
|
11811
|
+
*/
|
|
11764
11812
|
disabled: {
|
|
11765
11813
|
type: Boolean,
|
|
11766
11814
|
reflect: true
|
|
11767
11815
|
},
|
|
11816
|
+
|
|
11768
11817
|
/**
|
|
11818
|
+
* Legacy array of Unix-timestamp dates that cannot be selected.
|
|
11769
11819
|
* @deprecated Propagated from the legacy `auro-calendar.disabledDays`
|
|
11770
11820
|
* Unix-timestamp array. The cell honors it for backward compatibility
|
|
11771
11821
|
* (see the divergence-check fallback inside `isBlackout`), but
|
|
11772
11822
|
* consumers should migrate to `auro-datepicker.blackoutDates`
|
|
11773
11823
|
* (YYYY-MM-DD ISO strings). The calendar emits a one-time
|
|
11774
11824
|
* deprecation warning the first time a non-empty value is observed.
|
|
11825
|
+
* @type {number[]}
|
|
11826
|
+
*/
|
|
11827
|
+
disabledDays: {
|
|
11828
|
+
type: Array,
|
|
11829
|
+
attribute: 'disableddays'
|
|
11830
|
+
},
|
|
11831
|
+
|
|
11832
|
+
/**
|
|
11833
|
+
* Whether this cell represents the current date (today).
|
|
11834
|
+
*/
|
|
11835
|
+
isCurrentDate: {
|
|
11836
|
+
type: Boolean,
|
|
11837
|
+
attribute: 'iscurrentdate'
|
|
11838
|
+
},
|
|
11839
|
+
|
|
11840
|
+
/**
|
|
11841
|
+
* The BCP 47 locale tag used to format the cell's date.
|
|
11775
11842
|
*/
|
|
11776
|
-
disabledDays: { type: Array },
|
|
11777
|
-
isCurrentDate: { type: Boolean },
|
|
11778
11843
|
locale: { type: String },
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11844
|
+
|
|
11845
|
+
/**
|
|
11846
|
+
* The cell's date formatted as a `YYYY_MM_DD` slot-name string.
|
|
11847
|
+
*/
|
|
11848
|
+
dateStr: {
|
|
11849
|
+
type: String,
|
|
11850
|
+
attribute: 'datestr'
|
|
11851
|
+
},
|
|
11852
|
+
|
|
11853
|
+
/**
|
|
11854
|
+
* Whether to render the numerical date off-center to leave room below for date slot content.
|
|
11855
|
+
*/
|
|
11856
|
+
renderForDateSlot: {
|
|
11857
|
+
type: Boolean,
|
|
11858
|
+
attribute: 'renderfordateslot'
|
|
11859
|
+
},
|
|
11860
|
+
|
|
11861
|
+
/**
|
|
11862
|
+
* Whether this cell has popover slot content to display.
|
|
11863
|
+
*/
|
|
11864
|
+
hasPopoverContent: {
|
|
11865
|
+
type: Boolean,
|
|
11866
|
+
attribute: 'haspopovercontent'
|
|
11867
|
+
}
|
|
11782
11868
|
};
|
|
11783
11869
|
}
|
|
11784
11870
|
|
|
@@ -12635,6 +12721,11 @@ const getWeekdayNames = (locale, weekday) => {
|
|
|
12635
12721
|
};
|
|
12636
12722
|
|
|
12637
12723
|
|
|
12724
|
+
/**
|
|
12725
|
+
* The `auro-calendar-month` component renders a single localized month grid of selectable day cells within the calendar.
|
|
12726
|
+
* @event hovered-date-changed - Notifies that the date currently hovered within the month grid has changed.
|
|
12727
|
+
* @event calendar-month-mouseleave - Notifies that the mouse has left the month's date grid so the range hover preview can be cleared.
|
|
12728
|
+
*/
|
|
12638
12729
|
class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
12639
12730
|
static get styles() {
|
|
12640
12731
|
return [
|
|
@@ -12649,10 +12740,11 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12649
12740
|
return {
|
|
12650
12741
|
|
|
12651
12742
|
/**
|
|
12652
|
-
*
|
|
12743
|
+
* When set, the month name is displayed before the year in the header.
|
|
12653
12744
|
*/
|
|
12654
12745
|
monthFirst: {
|
|
12655
12746
|
type: Boolean,
|
|
12747
|
+
attribute: 'monthfirst',
|
|
12656
12748
|
reflect: true
|
|
12657
12749
|
},
|
|
12658
12750
|
|
|
@@ -12661,14 +12753,17 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
12661
12753
|
* As wc-range-datepicker expects a `locale` prop, we use `localeCode` to avoid conflicts.
|
|
12662
12754
|
*/
|
|
12663
12755
|
localeCode: {
|
|
12664
|
-
type: String
|
|
12756
|
+
type: String,
|
|
12757
|
+
attribute: 'localecode'
|
|
12665
12758
|
},
|
|
12666
12759
|
|
|
12667
12760
|
/**
|
|
12668
12761
|
* Names of all 12 months. When omitted, names are derived from `localeCode`.
|
|
12762
|
+
* @type {string[]}
|
|
12669
12763
|
*/
|
|
12670
12764
|
monthNames: {
|
|
12671
|
-
type: Array
|
|
12765
|
+
type: Array,
|
|
12766
|
+
attribute: 'monthnames'
|
|
12672
12767
|
}
|
|
12673
12768
|
};
|
|
12674
12769
|
}
|
|
@@ -13504,6 +13599,9 @@ var headerVersion = '5.0.1';
|
|
|
13504
13599
|
* @slot subheader - Slot for the subheader content.
|
|
13505
13600
|
* @slot footer - Slot for the footer content.
|
|
13506
13601
|
* @slot ariaLabel.close - Slot for the close button aria-label.
|
|
13602
|
+
* @csspart bibtemplate - The outermost bibtemplate container element.
|
|
13603
|
+
* @event close-click - Notifies when the close button is clicked.
|
|
13604
|
+
* @event auro-bibtemplate-connected - Notifies that the bibtemplate has connected to the DOM, passing a reference to the element in the event detail.
|
|
13507
13605
|
*/
|
|
13508
13606
|
class AuroBibtemplate extends LitElement {
|
|
13509
13607
|
|
|
@@ -13543,10 +13641,19 @@ class AuroBibtemplate extends LitElement {
|
|
|
13543
13641
|
// function to define props used within the scope of this component
|
|
13544
13642
|
static get properties() {
|
|
13545
13643
|
return {
|
|
13644
|
+
|
|
13645
|
+
/**
|
|
13646
|
+
* If declared, the bibtemplate renders in fullscreen mode, exposing the header, subheader, and footer regions.
|
|
13647
|
+
*/
|
|
13546
13648
|
isFullscreen: {
|
|
13547
13649
|
type: Boolean,
|
|
13650
|
+
attribute: 'isfullscreen',
|
|
13548
13651
|
reflect: true
|
|
13549
13652
|
},
|
|
13653
|
+
|
|
13654
|
+
/**
|
|
13655
|
+
* If declared, the fullscreen headline renders using the larger display heading style.
|
|
13656
|
+
*/
|
|
13550
13657
|
large: {
|
|
13551
13658
|
type: Boolean,
|
|
13552
13659
|
reflect: true
|
|
@@ -13557,6 +13664,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13557
13664
|
*/
|
|
13558
13665
|
showFooter: {
|
|
13559
13666
|
type: Boolean,
|
|
13667
|
+
attribute: 'showfooter',
|
|
13560
13668
|
reflect: true
|
|
13561
13669
|
}
|
|
13562
13670
|
};
|
|
@@ -13669,7 +13777,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13669
13777
|
}
|
|
13670
13778
|
}
|
|
13671
13779
|
|
|
13672
|
-
var formkitVersion$2 = '
|
|
13780
|
+
var formkitVersion$2 = '202608300032';
|
|
13673
13781
|
|
|
13674
13782
|
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}
|
|
13675
13783
|
`,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}}
|
|
@@ -13735,8 +13843,10 @@ var buttonVersion$1 = '12.3.2';
|
|
|
13735
13843
|
|
|
13736
13844
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
13737
13845
|
/**
|
|
13846
|
+
* The `auro-calendar` component renders the calendar month(s) shown inside the datepicker dropdown and manages date selection, range preview, and keyboard navigation.
|
|
13738
13847
|
* @event auroCalendar-dateSelected - Notifies that a date has been selected in the calendar.
|
|
13739
13848
|
* @event auroCalendar-monthChanged - Notifies that the visible calendar month(s) have changed.
|
|
13849
|
+
* @event narrow-changedProperties - Notifies that the calendar's narrow (mobile) layout state has changed.
|
|
13740
13850
|
*/
|
|
13741
13851
|
class AuroCalendar extends RangeDatepicker {
|
|
13742
13852
|
constructor() {
|
|
@@ -13811,6 +13921,10 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13811
13921
|
// Initialize the backing field directly so the constructor's default
|
|
13812
13922
|
// empty array doesn't trigger the deprecation warning. Assignments from
|
|
13813
13923
|
// consumers still route through the setter below.
|
|
13924
|
+
/**
|
|
13925
|
+
* @private
|
|
13926
|
+
* @type {number[]}
|
|
13927
|
+
*/
|
|
13814
13928
|
this._disabledDays = [];
|
|
13815
13929
|
|
|
13816
13930
|
/**
|
|
@@ -13819,7 +13933,9 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13819
13933
|
this.numCalendars = undefined;
|
|
13820
13934
|
|
|
13821
13935
|
/**
|
|
13936
|
+
* Captured light-DOM slot nodes, keyed by slot name, forwarded into the bib.
|
|
13822
13937
|
* @private
|
|
13938
|
+
* @type {Record<string, Node[]>}
|
|
13823
13939
|
*/
|
|
13824
13940
|
this.slots = {};
|
|
13825
13941
|
|
|
@@ -13898,6 +14014,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13898
14014
|
*/
|
|
13899
14015
|
calendarEndMonth: {
|
|
13900
14016
|
type: String,
|
|
14017
|
+
attribute: 'calendarendmonth',
|
|
13901
14018
|
reflect: true
|
|
13902
14019
|
},
|
|
13903
14020
|
|
|
@@ -13906,6 +14023,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13906
14023
|
*/
|
|
13907
14024
|
calendarStartMonth: {
|
|
13908
14025
|
type: String,
|
|
14026
|
+
attribute: 'calendarstartmonth',
|
|
13909
14027
|
reflect: true
|
|
13910
14028
|
},
|
|
13911
14029
|
|
|
@@ -13914,6 +14032,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13914
14032
|
*/
|
|
13915
14033
|
centralDate: {
|
|
13916
14034
|
type: String,
|
|
14035
|
+
attribute: 'centraldate',
|
|
13917
14036
|
reflect: true
|
|
13918
14037
|
},
|
|
13919
14038
|
|
|
@@ -13921,19 +14040,22 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13921
14040
|
* The starting date of the selected range.
|
|
13922
14041
|
*/
|
|
13923
14042
|
dateFrom: {
|
|
13924
|
-
type: String
|
|
14043
|
+
type: String,
|
|
14044
|
+
attribute: 'datefrom'
|
|
13925
14045
|
},
|
|
13926
14046
|
|
|
13927
14047
|
/**
|
|
13928
14048
|
* The ending date of the selected range.
|
|
13929
14049
|
*/
|
|
13930
14050
|
dateTo: {
|
|
13931
|
-
type: String
|
|
14051
|
+
type: String,
|
|
14052
|
+
attribute: 'dateto'
|
|
13932
14053
|
},
|
|
13933
14054
|
|
|
13934
14055
|
/**
|
|
13935
14056
|
* Dropdown element that contains the calendar.
|
|
13936
14057
|
* @private
|
|
14058
|
+
* @type {HTMLElement}
|
|
13937
14059
|
*/
|
|
13938
14060
|
dropdown: {
|
|
13939
14061
|
type: Object
|
|
@@ -13944,6 +14066,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13944
14066
|
*/
|
|
13945
14067
|
isFullscreen: {
|
|
13946
14068
|
type: Boolean,
|
|
14069
|
+
attribute: 'isfullscreen',
|
|
13947
14070
|
reflect: true
|
|
13948
14071
|
},
|
|
13949
14072
|
|
|
@@ -13953,6 +14076,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13953
14076
|
*/
|
|
13954
14077
|
largeFullscreenHeadline: {
|
|
13955
14078
|
type: Boolean,
|
|
14079
|
+
attribute: 'largefullscreenheadline',
|
|
13956
14080
|
reflect: true
|
|
13957
14081
|
},
|
|
13958
14082
|
|
|
@@ -13961,6 +14085,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13961
14085
|
*/
|
|
13962
14086
|
maxDate: {
|
|
13963
14087
|
type: String,
|
|
14088
|
+
attribute: 'maxdate',
|
|
13964
14089
|
reflect: true
|
|
13965
14090
|
},
|
|
13966
14091
|
|
|
@@ -13969,6 +14094,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13969
14094
|
*/
|
|
13970
14095
|
minDate: {
|
|
13971
14096
|
type: String,
|
|
14097
|
+
attribute: 'mindate',
|
|
13972
14098
|
reflect: true
|
|
13973
14099
|
},
|
|
13974
14100
|
|
|
@@ -13978,6 +14104,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13978
14104
|
*/
|
|
13979
14105
|
mobileBreakpoint: {
|
|
13980
14106
|
type: Number,
|
|
14107
|
+
attribute: 'mobilebreakpoint',
|
|
13981
14108
|
reflect: false
|
|
13982
14109
|
},
|
|
13983
14110
|
|
|
@@ -13987,7 +14114,8 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13987
14114
|
* @private
|
|
13988
14115
|
*/
|
|
13989
14116
|
monthFirst: {
|
|
13990
|
-
type: Boolean
|
|
14117
|
+
type: Boolean,
|
|
14118
|
+
attribute: 'monthfirst'
|
|
13991
14119
|
},
|
|
13992
14120
|
|
|
13993
14121
|
/**
|
|
@@ -13995,7 +14123,8 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
13995
14123
|
* @private
|
|
13996
14124
|
*/
|
|
13997
14125
|
numCalendars: {
|
|
13998
|
-
type: Number
|
|
14126
|
+
type: Number,
|
|
14127
|
+
attribute: 'numcalendars'
|
|
13999
14128
|
},
|
|
14000
14129
|
|
|
14001
14130
|
/**
|
|
@@ -14011,14 +14140,17 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14011
14140
|
* as wc-range-datepicker expects a `locale` prop, we use `localeCode` to avoid conflicts and pass the locale down to calendar-month elements.
|
|
14012
14141
|
*/
|
|
14013
14142
|
localeCode: {
|
|
14014
|
-
type: String
|
|
14143
|
+
type: String,
|
|
14144
|
+
attribute: 'localecode'
|
|
14015
14145
|
},
|
|
14016
14146
|
|
|
14017
14147
|
/**
|
|
14018
14148
|
* Names of all 12 months. When omitted, names are derived from `localeCode`.
|
|
14149
|
+
* @type {string[]}
|
|
14019
14150
|
*/
|
|
14020
14151
|
monthNames: {
|
|
14021
|
-
type: Array
|
|
14152
|
+
type: Array,
|
|
14153
|
+
attribute: 'monthnames'
|
|
14022
14154
|
}
|
|
14023
14155
|
};
|
|
14024
14156
|
}
|
|
@@ -18811,8 +18943,11 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
18811
18943
|
];
|
|
18812
18944
|
|
|
18813
18945
|
/**
|
|
18946
|
+
* The `auro-dropdownbib` element renders the dropdown's bib as a dialog/popover container and manages its fullscreen and modal display.
|
|
18814
18947
|
* @prop { String } fullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
18815
18948
|
* @csspart bibContainer - Apply css to the bib container.
|
|
18949
|
+
* @event auro-dropdownbib-connected - Notifies that the dropdown bib has connected to the DOM, passing a reference to the element in the event detail.
|
|
18950
|
+
* @event auro-bib-cancel - Notifies that the bib was cancelled (e.g. via the ESC key) so parent components can close it.
|
|
18816
18951
|
*/
|
|
18817
18952
|
|
|
18818
18953
|
class AuroDropdownBib extends LitElement {
|
|
@@ -18827,9 +18962,17 @@ class AuroDropdownBib extends LitElement {
|
|
|
18827
18962
|
|
|
18828
18963
|
AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
18829
18964
|
|
|
18830
|
-
this.shape = "rounded";
|
|
18831
18965
|
this.matchWidth = false;
|
|
18832
18966
|
this.hasActiveDescendant = false;
|
|
18967
|
+
|
|
18968
|
+
this.initializeArchitectureDefaults();
|
|
18969
|
+
}
|
|
18970
|
+
|
|
18971
|
+
// The `shape` default is set in a helper (not the constructor body) so the CEM
|
|
18972
|
+
// analyzer keeps its `@type` union instead of inferring `string` from a
|
|
18973
|
+
// constructor-literal assignment. See AlaskaAirlines/discussions#653.
|
|
18974
|
+
initializeArchitectureDefaults() {
|
|
18975
|
+
this.shape = "rounded";
|
|
18833
18976
|
}
|
|
18834
18977
|
|
|
18835
18978
|
static get styles() {
|
|
@@ -18848,6 +18991,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
18848
18991
|
*/
|
|
18849
18992
|
isFullscreen: {
|
|
18850
18993
|
type: Boolean,
|
|
18994
|
+
attribute: 'isfullscreen',
|
|
18851
18995
|
reflect: true
|
|
18852
18996
|
},
|
|
18853
18997
|
|
|
@@ -18873,6 +19017,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
18873
19017
|
*/
|
|
18874
19018
|
matchWidth: {
|
|
18875
19019
|
type: Boolean,
|
|
19020
|
+
attribute: 'matchwidth',
|
|
18876
19021
|
reflect: true
|
|
18877
19022
|
},
|
|
18878
19023
|
|
|
@@ -18888,11 +19033,18 @@ class AuroDropdownBib extends LitElement {
|
|
|
18888
19033
|
* A reference to the associated bib template element.
|
|
18889
19034
|
*/
|
|
18890
19035
|
bibTemplate: {
|
|
18891
|
-
type: Object
|
|
19036
|
+
type: Object,
|
|
19037
|
+
attribute: 'bibtemplate'
|
|
18892
19038
|
},
|
|
18893
19039
|
|
|
19040
|
+
/**
|
|
19041
|
+
* Sets the shape of the dropdown bib.
|
|
19042
|
+
* @type {'box' | 'classic' | 'pill' | 'rounded' | 'snowflake'}
|
|
19043
|
+
* @default 'rounded'
|
|
19044
|
+
*/
|
|
18894
19045
|
shape: {
|
|
18895
19046
|
type: String,
|
|
19047
|
+
attribute: "shape",
|
|
18896
19048
|
reflect: true
|
|
18897
19049
|
},
|
|
18898
19050
|
|
|
@@ -18904,7 +19056,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
18904
19056
|
* @private
|
|
18905
19057
|
*/
|
|
18906
19058
|
dialogLabel: {
|
|
18907
|
-
type: String
|
|
19059
|
+
type: String,
|
|
19060
|
+
attribute: 'dialoglabel'
|
|
18908
19061
|
},
|
|
18909
19062
|
|
|
18910
19063
|
/**
|
|
@@ -18915,7 +19068,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
18915
19068
|
* @private
|
|
18916
19069
|
*/
|
|
18917
19070
|
dialogRole: {
|
|
18918
|
-
type: String
|
|
19071
|
+
type: String,
|
|
19072
|
+
attribute: 'dialogrole'
|
|
18919
19073
|
},
|
|
18920
19074
|
|
|
18921
19075
|
/**
|
|
@@ -18923,7 +19077,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
18923
19077
|
* @private
|
|
18924
19078
|
*/
|
|
18925
19079
|
hasActiveDescendant: {
|
|
18926
|
-
type: Boolean
|
|
19080
|
+
type: Boolean,
|
|
19081
|
+
attribute: 'hasactivedescendant'
|
|
18927
19082
|
}
|
|
18928
19083
|
};
|
|
18929
19084
|
}
|
|
@@ -19274,6 +19429,8 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
19274
19429
|
super();
|
|
19275
19430
|
|
|
19276
19431
|
this.error = false;
|
|
19432
|
+
|
|
19433
|
+
/** @type {'default' | 'inverse'} */
|
|
19277
19434
|
this.appearance = "default";
|
|
19278
19435
|
this.onDark = false;
|
|
19279
19436
|
this.hasTextContent = false;
|
|
@@ -19294,8 +19451,8 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
19294
19451
|
return {
|
|
19295
19452
|
|
|
19296
19453
|
/**
|
|
19297
|
-
*
|
|
19298
|
-
* @
|
|
19454
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
19455
|
+
* @type {'default' | 'inverse'}
|
|
19299
19456
|
* @default 'default'
|
|
19300
19457
|
*/
|
|
19301
19458
|
appearance: {
|
|
@@ -19308,6 +19465,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
19308
19465
|
*/
|
|
19309
19466
|
slotNodes: {
|
|
19310
19467
|
type: Boolean,
|
|
19468
|
+
attribute: 'slotnodes',
|
|
19311
19469
|
},
|
|
19312
19470
|
|
|
19313
19471
|
/**
|
|
@@ -19315,6 +19473,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
19315
19473
|
*/
|
|
19316
19474
|
hasTextContent: {
|
|
19317
19475
|
type: Boolean,
|
|
19476
|
+
attribute: 'hastextcontent',
|
|
19318
19477
|
},
|
|
19319
19478
|
|
|
19320
19479
|
/**
|
|
@@ -19330,6 +19489,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
19330
19489
|
*/
|
|
19331
19490
|
onDark: {
|
|
19332
19491
|
type: Boolean,
|
|
19492
|
+
attribute: 'ondark',
|
|
19333
19493
|
reflect: true
|
|
19334
19494
|
}
|
|
19335
19495
|
};
|
|
@@ -19400,39 +19560,39 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
19400
19560
|
}
|
|
19401
19561
|
};
|
|
19402
19562
|
|
|
19403
|
-
var formkitVersion$1 = '
|
|
19563
|
+
var formkitVersion$1 = '202608300032';
|
|
19404
19564
|
|
|
19565
|
+
/**
|
|
19566
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
19567
|
+
*
|
|
19568
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
19569
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
19570
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
19571
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
19572
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
19573
|
+
*/
|
|
19405
19574
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
19406
19575
|
static get properties() {
|
|
19407
19576
|
return {
|
|
19408
19577
|
|
|
19409
19578
|
/**
|
|
19410
|
-
*
|
|
19411
|
-
* @default {'default'}
|
|
19579
|
+
* When true, renders the component styled for use on a dark background.
|
|
19412
19580
|
*/
|
|
19413
|
-
layout: {
|
|
19414
|
-
type: String,
|
|
19415
|
-
attribute: "layout",
|
|
19416
|
-
reflect: true
|
|
19417
|
-
},
|
|
19418
|
-
|
|
19419
|
-
shape: {
|
|
19420
|
-
type: String,
|
|
19421
|
-
attribute: "shape",
|
|
19422
|
-
reflect: true
|
|
19423
|
-
},
|
|
19424
|
-
|
|
19425
|
-
size: {
|
|
19426
|
-
type: String,
|
|
19427
|
-
attribute: "size",
|
|
19428
|
-
reflect: true
|
|
19429
|
-
},
|
|
19430
|
-
|
|
19431
19581
|
onDark: {
|
|
19432
19582
|
type: Boolean,
|
|
19433
19583
|
attribute: "ondark",
|
|
19434
19584
|
reflect: true
|
|
19435
19585
|
}
|
|
19586
|
+
|
|
19587
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
19588
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
19589
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
19590
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
19591
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
19592
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
19593
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
19594
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
19595
|
+
// See AlaskaAirlines/discussions#653.
|
|
19436
19596
|
};
|
|
19437
19597
|
}
|
|
19438
19598
|
|
|
@@ -19518,6 +19678,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
19518
19678
|
* @slot helpText - Defines the content of the helpText.
|
|
19519
19679
|
* @slot trigger - Defines the content of the trigger.
|
|
19520
19680
|
* @csspart trigger - The trigger content container.
|
|
19681
|
+
* @csspart wrapper - The trigger wrapper element surrounding the trigger content and chevron.
|
|
19521
19682
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
19522
19683
|
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
19523
19684
|
* @csspart helpText - The helpText content container.
|
|
@@ -19542,7 +19703,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19542
19703
|
|
|
19543
19704
|
/**
|
|
19544
19705
|
* When true, the dropdown skips its generic focus restoration on close.
|
|
19545
|
-
* Set by consumers (
|
|
19706
|
+
* Set by consumers (for example combobox) that manage their own focus routing
|
|
19546
19707
|
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
19547
19708
|
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
19548
19709
|
* @private
|
|
@@ -19711,7 +19872,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19711
19872
|
/**
|
|
19712
19873
|
* Focus the trigger content. When the trigger wrapper itself is focusable
|
|
19713
19874
|
* (has tabindex), focus it directly. Otherwise, focus the first focusable
|
|
19714
|
-
* element slotted into the trigger slot (
|
|
19875
|
+
* element slotted into the trigger slot (for example the auro-input).
|
|
19715
19876
|
* @private
|
|
19716
19877
|
*/
|
|
19717
19878
|
focusTrigger() {
|
|
@@ -19808,6 +19969,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19808
19969
|
*/
|
|
19809
19970
|
autoPlacement: {
|
|
19810
19971
|
type: Boolean,
|
|
19972
|
+
attribute: 'autoplacement',
|
|
19811
19973
|
reflect: true
|
|
19812
19974
|
},
|
|
19813
19975
|
|
|
@@ -19816,6 +19978,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19816
19978
|
*/
|
|
19817
19979
|
desktopModal: {
|
|
19818
19980
|
type: Boolean,
|
|
19981
|
+
attribute: 'desktopmodal',
|
|
19819
19982
|
reflect: true
|
|
19820
19983
|
},
|
|
19821
19984
|
|
|
@@ -19824,6 +19987,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19824
19987
|
*/
|
|
19825
19988
|
disableEventShow: {
|
|
19826
19989
|
type: Boolean,
|
|
19990
|
+
attribute: 'disableeventshow',
|
|
19827
19991
|
reflect: true
|
|
19828
19992
|
},
|
|
19829
19993
|
|
|
@@ -19857,14 +20021,16 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19857
20021
|
*/
|
|
19858
20022
|
disableKeyboardHandling: {
|
|
19859
20023
|
type: Boolean,
|
|
20024
|
+
attribute: 'disablekeyboardhandling',
|
|
19860
20025
|
reflect: true
|
|
19861
20026
|
},
|
|
19862
20027
|
|
|
19863
20028
|
/**
|
|
19864
|
-
*
|
|
20029
|
+
* Sets the width of the dropdown bib in pixels.
|
|
19865
20030
|
*/
|
|
19866
20031
|
dropdownWidth: {
|
|
19867
|
-
type: Number
|
|
20032
|
+
type: Number,
|
|
20033
|
+
attribute: 'dropdownwidth'
|
|
19868
20034
|
},
|
|
19869
20035
|
|
|
19870
20036
|
/**
|
|
@@ -19889,7 +20055,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19889
20055
|
* Contains the help text message for the current validity error.
|
|
19890
20056
|
*/
|
|
19891
20057
|
errorMessage: {
|
|
19892
|
-
type: String
|
|
20058
|
+
type: String,
|
|
20059
|
+
attribute: 'errormessage'
|
|
19893
20060
|
},
|
|
19894
20061
|
|
|
19895
20062
|
/**
|
|
@@ -19897,6 +20064,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19897
20064
|
*/
|
|
19898
20065
|
focusShow: {
|
|
19899
20066
|
type: Boolean,
|
|
20067
|
+
attribute: 'focusshow',
|
|
19900
20068
|
reflect: true
|
|
19901
20069
|
},
|
|
19902
20070
|
|
|
@@ -19914,6 +20082,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19914
20082
|
*/
|
|
19915
20083
|
isBibFullscreen: {
|
|
19916
20084
|
type: Boolean,
|
|
20085
|
+
attribute: 'isbibfullscreen',
|
|
19917
20086
|
reflect: true
|
|
19918
20087
|
},
|
|
19919
20088
|
|
|
@@ -19922,6 +20091,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19922
20091
|
*/
|
|
19923
20092
|
hoverToggle: {
|
|
19924
20093
|
type: Boolean,
|
|
20094
|
+
attribute: 'hovertoggle',
|
|
19925
20095
|
reflect: true
|
|
19926
20096
|
},
|
|
19927
20097
|
|
|
@@ -19929,7 +20099,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19929
20099
|
* @private
|
|
19930
20100
|
*/
|
|
19931
20101
|
hasTriggerContent: {
|
|
19932
|
-
type: Boolean
|
|
20102
|
+
type: Boolean,
|
|
20103
|
+
attribute: false
|
|
19933
20104
|
},
|
|
19934
20105
|
|
|
19935
20106
|
/**
|
|
@@ -19942,6 +20113,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19942
20113
|
*/
|
|
19943
20114
|
fullscreenBreakpoint: {
|
|
19944
20115
|
type: String,
|
|
20116
|
+
attribute: "fullscreenbreakpoint",
|
|
19945
20117
|
reflect: true
|
|
19946
20118
|
},
|
|
19947
20119
|
|
|
@@ -19952,6 +20124,27 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19952
20124
|
*/
|
|
19953
20125
|
layout: {
|
|
19954
20126
|
type: String,
|
|
20127
|
+
attribute: "layout",
|
|
20128
|
+
reflect: true
|
|
20129
|
+
},
|
|
20130
|
+
|
|
20131
|
+
/**
|
|
20132
|
+
* Sets the shape of the dropdown.
|
|
20133
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
20134
|
+
*/
|
|
20135
|
+
shape: {
|
|
20136
|
+
type: String,
|
|
20137
|
+
attribute: "shape",
|
|
20138
|
+
reflect: true
|
|
20139
|
+
},
|
|
20140
|
+
|
|
20141
|
+
/**
|
|
20142
|
+
* Sets the size of the dropdown.
|
|
20143
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
20144
|
+
*/
|
|
20145
|
+
size: {
|
|
20146
|
+
type: String,
|
|
20147
|
+
attribute: "size",
|
|
19955
20148
|
reflect: true
|
|
19956
20149
|
},
|
|
19957
20150
|
|
|
@@ -19961,6 +20154,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19961
20154
|
*/
|
|
19962
20155
|
parentBorder: {
|
|
19963
20156
|
type: Boolean,
|
|
20157
|
+
attribute: 'parentborder',
|
|
19964
20158
|
reflect: true
|
|
19965
20159
|
},
|
|
19966
20160
|
|
|
@@ -19969,6 +20163,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19969
20163
|
*/
|
|
19970
20164
|
matchWidth: {
|
|
19971
20165
|
type: Boolean,
|
|
20166
|
+
attribute: 'matchwidth',
|
|
19972
20167
|
reflect: true
|
|
19973
20168
|
},
|
|
19974
20169
|
|
|
@@ -19978,6 +20173,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19978
20173
|
*/
|
|
19979
20174
|
noFlip: {
|
|
19980
20175
|
type: Boolean,
|
|
20176
|
+
attribute: 'noflip',
|
|
19981
20177
|
reflect: true
|
|
19982
20178
|
},
|
|
19983
20179
|
|
|
@@ -19994,6 +20190,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
19994
20190
|
*/
|
|
19995
20191
|
noHideOnThisFocusLoss: {
|
|
19996
20192
|
type: Boolean,
|
|
20193
|
+
attribute: 'nohideonthisfocusloss',
|
|
19997
20194
|
reflect: true
|
|
19998
20195
|
},
|
|
19999
20196
|
|
|
@@ -20002,6 +20199,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
20002
20199
|
*/
|
|
20003
20200
|
noToggle: {
|
|
20004
20201
|
type: Boolean,
|
|
20202
|
+
attribute: 'notoggle',
|
|
20005
20203
|
reflect: true
|
|
20006
20204
|
},
|
|
20007
20205
|
|
|
@@ -20019,14 +20217,17 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
20019
20217
|
*/
|
|
20020
20218
|
onDark: {
|
|
20021
20219
|
type: Boolean,
|
|
20220
|
+
attribute: 'ondark',
|
|
20022
20221
|
reflect: true
|
|
20023
20222
|
},
|
|
20024
20223
|
|
|
20025
20224
|
/**
|
|
20026
20225
|
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
20226
|
+
* @type {() => void}
|
|
20027
20227
|
*/
|
|
20028
20228
|
onSlotChange: {
|
|
20029
20229
|
type: Function,
|
|
20230
|
+
attribute: 'onslotchange',
|
|
20030
20231
|
reflect: false
|
|
20031
20232
|
},
|
|
20032
20233
|
|
|
@@ -20041,10 +20242,11 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
20041
20242
|
},
|
|
20042
20243
|
|
|
20043
20244
|
/**
|
|
20044
|
-
*
|
|
20245
|
+
* Sets the tabindex applied to the dropdown trigger for keyboard focus order.
|
|
20045
20246
|
*/
|
|
20046
20247
|
tabIndex: {
|
|
20047
|
-
type: Number
|
|
20248
|
+
type: Number,
|
|
20249
|
+
attribute: 'tabindex'
|
|
20048
20250
|
},
|
|
20049
20251
|
|
|
20050
20252
|
/**
|
|
@@ -20268,7 +20470,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
20268
20470
|
/**
|
|
20269
20471
|
* @description Let subscribers know that the dropdown ID ha been generated and added.
|
|
20270
20472
|
* @event auroDropdown-idAdded
|
|
20271
|
-
* @type {
|
|
20473
|
+
* @type {CustomEvent<{ id: string }>} - Detail carries the generated ID of the dropdown bib element.
|
|
20272
20474
|
*/
|
|
20273
20475
|
this.dispatchEvent(new CustomEvent('auroDropdown-idAdded', {detail: {id: this.floater.element.id}}));
|
|
20274
20476
|
|
|
@@ -25410,37 +25612,37 @@ class AuroFormValidation {
|
|
|
25410
25612
|
}
|
|
25411
25613
|
}
|
|
25412
25614
|
|
|
25615
|
+
/**
|
|
25616
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
25617
|
+
*
|
|
25618
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
25619
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
25620
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
25621
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
25622
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
25623
|
+
*/
|
|
25413
25624
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
25414
25625
|
static get properties() {
|
|
25415
25626
|
return {
|
|
25416
25627
|
|
|
25417
25628
|
/**
|
|
25418
|
-
*
|
|
25419
|
-
* @default {'default'}
|
|
25629
|
+
* When true, renders the component styled for use on a dark background.
|
|
25420
25630
|
*/
|
|
25421
|
-
layout: {
|
|
25422
|
-
type: String,
|
|
25423
|
-
attribute: "layout",
|
|
25424
|
-
reflect: true
|
|
25425
|
-
},
|
|
25426
|
-
|
|
25427
|
-
shape: {
|
|
25428
|
-
type: String,
|
|
25429
|
-
attribute: "shape",
|
|
25430
|
-
reflect: true
|
|
25431
|
-
},
|
|
25432
|
-
|
|
25433
|
-
size: {
|
|
25434
|
-
type: String,
|
|
25435
|
-
attribute: "size",
|
|
25436
|
-
reflect: true
|
|
25437
|
-
},
|
|
25438
|
-
|
|
25439
25631
|
onDark: {
|
|
25440
25632
|
type: Boolean,
|
|
25441
25633
|
attribute: "ondark",
|
|
25442
25634
|
reflect: true
|
|
25443
25635
|
}
|
|
25636
|
+
|
|
25637
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
25638
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
25639
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
25640
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
25641
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
25642
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
25643
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
25644
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
25645
|
+
// See AlaskaAirlines/discussions#653.
|
|
25444
25646
|
};
|
|
25445
25647
|
}
|
|
25446
25648
|
|
|
@@ -31407,6 +31609,7 @@ class DomHandler {
|
|
|
31407
31609
|
* Base class for auro-input component that provides core input functionality.
|
|
31408
31610
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
31409
31611
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
31612
|
+
* @event auroInput-validityChange - Notifies that the `validity` state of the input has changed.
|
|
31410
31613
|
*/
|
|
31411
31614
|
class BaseInput extends AuroElement$1 {
|
|
31412
31615
|
|
|
@@ -31437,7 +31640,10 @@ class BaseInput extends AuroElement$1 {
|
|
|
31437
31640
|
// during its own update cycle sees a populated util instance.
|
|
31438
31641
|
this.activeLabel = false;
|
|
31439
31642
|
|
|
31440
|
-
/**
|
|
31643
|
+
/**
|
|
31644
|
+
* @private
|
|
31645
|
+
* @type {string[]}
|
|
31646
|
+
*/
|
|
31441
31647
|
this.allowedInputTypes = [
|
|
31442
31648
|
"text",
|
|
31443
31649
|
"number",
|
|
@@ -31446,9 +31652,14 @@ class BaseInput extends AuroElement$1 {
|
|
|
31446
31652
|
"credit-card",
|
|
31447
31653
|
"tel"
|
|
31448
31654
|
];
|
|
31655
|
+
|
|
31656
|
+
/** @type {'default' | 'inverse'} */
|
|
31449
31657
|
this.appearance = "default";
|
|
31450
31658
|
|
|
31451
|
-
/**
|
|
31659
|
+
/**
|
|
31660
|
+
* @private
|
|
31661
|
+
* @type {Record<string, string>}
|
|
31662
|
+
*/
|
|
31452
31663
|
this.dateFormatMap = {
|
|
31453
31664
|
'mm/dd/yyyy': 'dateMMDDYYYY',
|
|
31454
31665
|
'dd/mm/yyyy': 'dateDDMMYYYY',
|
|
@@ -31479,7 +31690,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
31479
31690
|
|
|
31480
31691
|
/** @private */
|
|
31481
31692
|
this.label = 'Input label is undefined';
|
|
31482
|
-
this.layout = 'classic';
|
|
31483
31693
|
this.locale = 'en-US';
|
|
31484
31694
|
this._format = undefined;
|
|
31485
31695
|
|
|
@@ -31495,17 +31705,18 @@ class BaseInput extends AuroElement$1 {
|
|
|
31495
31705
|
this.setCustomValidityForType = undefined;
|
|
31496
31706
|
// Credit Card is intentionally excluded — its mask manages the cursor
|
|
31497
31707
|
// itself, and listing it here caused cursor placement issues in Safari.
|
|
31498
|
-
/**
|
|
31708
|
+
/**
|
|
31709
|
+
* @private
|
|
31710
|
+
* @type {string[]}
|
|
31711
|
+
*/
|
|
31499
31712
|
this.setSelectionInputTypes = [
|
|
31500
31713
|
"text",
|
|
31501
31714
|
"password",
|
|
31502
31715
|
"email"
|
|
31503
31716
|
];
|
|
31504
|
-
this.shape = 'classic';
|
|
31505
31717
|
|
|
31506
31718
|
/** @private */
|
|
31507
31719
|
this.showPassword = false;
|
|
31508
|
-
this.size = 'lg';
|
|
31509
31720
|
this.touched = false;
|
|
31510
31721
|
|
|
31511
31722
|
/** @private */
|
|
@@ -31523,6 +31734,24 @@ class BaseInput extends AuroElement$1 {
|
|
|
31523
31734
|
/** @private */
|
|
31524
31735
|
this.validationCCLength = undefined;
|
|
31525
31736
|
this.value = undefined;
|
|
31737
|
+
|
|
31738
|
+
this.initializeArchitectureDefaults();
|
|
31739
|
+
}
|
|
31740
|
+
|
|
31741
|
+
/**
|
|
31742
|
+
* Sets the default `layout`, `shape`, and `size` values.
|
|
31743
|
+
*
|
|
31744
|
+
* These are assigned in a helper method rather than the constructor body so
|
|
31745
|
+
* the CEM analyzer keeps their `@type` string-literal unions (a literal
|
|
31746
|
+
* assignment in the constructor would make the analyzer infer `string` and
|
|
31747
|
+
* override the union — see AlaskaAirlines/discussions#653, gotcha 1).
|
|
31748
|
+
* @private
|
|
31749
|
+
* @returns {void}
|
|
31750
|
+
*/
|
|
31751
|
+
initializeArchitectureDefaults() {
|
|
31752
|
+
this.layout = 'classic';
|
|
31753
|
+
this.shape = 'classic';
|
|
31754
|
+
this.size = 'lg';
|
|
31526
31755
|
}
|
|
31527
31756
|
|
|
31528
31757
|
// function to define props used within the scope of this component
|
|
@@ -31530,11 +31759,45 @@ class BaseInput extends AuroElement$1 {
|
|
|
31530
31759
|
return {
|
|
31531
31760
|
...super.properties,
|
|
31532
31761
|
|
|
31762
|
+
/**
|
|
31763
|
+
* Sets the layout variant of the input.
|
|
31764
|
+
* @type {'classic' | 'emphasized' | 'emphasized-left' | 'emphasized-right' | 'snowflake' | 'snowflake-left' | 'snowflake-right'}
|
|
31765
|
+
* @default 'classic'
|
|
31766
|
+
*/
|
|
31767
|
+
layout: {
|
|
31768
|
+
type: String,
|
|
31769
|
+
attribute: "layout",
|
|
31770
|
+
reflect: true
|
|
31771
|
+
},
|
|
31772
|
+
|
|
31773
|
+
/**
|
|
31774
|
+
* Sets the shape of the input.
|
|
31775
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
31776
|
+
* @default 'classic'
|
|
31777
|
+
*/
|
|
31778
|
+
shape: {
|
|
31779
|
+
type: String,
|
|
31780
|
+
attribute: "shape",
|
|
31781
|
+
reflect: true
|
|
31782
|
+
},
|
|
31783
|
+
|
|
31784
|
+
/**
|
|
31785
|
+
* Sets the size of the input.
|
|
31786
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
31787
|
+
* @default 'lg'
|
|
31788
|
+
*/
|
|
31789
|
+
size: {
|
|
31790
|
+
type: String,
|
|
31791
|
+
attribute: "size",
|
|
31792
|
+
reflect: true
|
|
31793
|
+
},
|
|
31794
|
+
|
|
31533
31795
|
/**
|
|
31534
31796
|
* The value for the role attribute.
|
|
31535
31797
|
*/
|
|
31536
31798
|
a11yRole: {
|
|
31537
31799
|
type: String,
|
|
31800
|
+
attribute: 'a11yrole',
|
|
31538
31801
|
reflect: true
|
|
31539
31802
|
},
|
|
31540
31803
|
|
|
@@ -31543,6 +31806,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31543
31806
|
*/
|
|
31544
31807
|
a11yControls: {
|
|
31545
31808
|
type: String,
|
|
31809
|
+
attribute: 'a11ycontrols',
|
|
31546
31810
|
reflect: true
|
|
31547
31811
|
},
|
|
31548
31812
|
|
|
@@ -31551,6 +31815,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31551
31815
|
*/
|
|
31552
31816
|
a11yExpanded: {
|
|
31553
31817
|
type: Boolean,
|
|
31818
|
+
attribute: 'a11yexpanded',
|
|
31554
31819
|
reflect: true
|
|
31555
31820
|
},
|
|
31556
31821
|
|
|
@@ -31560,6 +31825,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31560
31825
|
*/
|
|
31561
31826
|
a11yActivedescendant: {
|
|
31562
31827
|
type: String,
|
|
31828
|
+
attribute: 'a11yactivedescendant',
|
|
31563
31829
|
reflect: true
|
|
31564
31830
|
},
|
|
31565
31831
|
|
|
@@ -31570,6 +31836,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31570
31836
|
*/
|
|
31571
31837
|
activeLabel: {
|
|
31572
31838
|
type: Boolean,
|
|
31839
|
+
attribute: 'activelabel',
|
|
31573
31840
|
reflect: true
|
|
31574
31841
|
},
|
|
31575
31842
|
|
|
@@ -31584,7 +31851,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
31584
31851
|
},
|
|
31585
31852
|
|
|
31586
31853
|
/**
|
|
31587
|
-
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
31854
|
+
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
31855
|
+
* @type {'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'}
|
|
31588
31856
|
*/
|
|
31589
31857
|
autocapitalize: {
|
|
31590
31858
|
type: String,
|
|
@@ -31601,6 +31869,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31601
31869
|
|
|
31602
31870
|
/**
|
|
31603
31871
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
31872
|
+
* @type {'on' | 'off'}
|
|
31604
31873
|
*/
|
|
31605
31874
|
autocorrect: {
|
|
31606
31875
|
type: String,
|
|
@@ -31611,7 +31880,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
31611
31880
|
* Custom help text message for email type validity.
|
|
31612
31881
|
*/
|
|
31613
31882
|
customValidityTypeEmail: {
|
|
31614
|
-
type: String
|
|
31883
|
+
type: String,
|
|
31884
|
+
attribute: 'customvaliditytypeemail'
|
|
31615
31885
|
},
|
|
31616
31886
|
|
|
31617
31887
|
/**
|
|
@@ -31627,6 +31897,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31627
31897
|
*/
|
|
31628
31898
|
dvInputOnly: {
|
|
31629
31899
|
type: Boolean,
|
|
31900
|
+
attribute: 'dvinputonly',
|
|
31630
31901
|
reflect: true
|
|
31631
31902
|
},
|
|
31632
31903
|
|
|
@@ -31642,7 +31913,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
31642
31913
|
* Contains the help text message for the current validity error.
|
|
31643
31914
|
*/
|
|
31644
31915
|
errorMessage: {
|
|
31645
|
-
type: String
|
|
31916
|
+
type: String,
|
|
31917
|
+
attribute: 'errormessage'
|
|
31646
31918
|
},
|
|
31647
31919
|
|
|
31648
31920
|
/**
|
|
@@ -31678,6 +31950,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31678
31950
|
*/
|
|
31679
31951
|
hideLabelVisually: {
|
|
31680
31952
|
type: Boolean,
|
|
31953
|
+
attribute: 'hidelabelvisually',
|
|
31681
31954
|
reflect: true
|
|
31682
31955
|
},
|
|
31683
31956
|
|
|
@@ -31744,6 +32017,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31744
32017
|
*/
|
|
31745
32018
|
maxLength: {
|
|
31746
32019
|
type: Number,
|
|
32020
|
+
attribute: 'maxlength',
|
|
31747
32021
|
reflect: true
|
|
31748
32022
|
},
|
|
31749
32023
|
|
|
@@ -31759,6 +32033,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31759
32033
|
*/
|
|
31760
32034
|
minLength: {
|
|
31761
32035
|
type: Number,
|
|
32036
|
+
attribute: 'minlength',
|
|
31762
32037
|
reflect: true
|
|
31763
32038
|
},
|
|
31764
32039
|
|
|
@@ -31784,6 +32059,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31784
32059
|
*/
|
|
31785
32060
|
noValidate: {
|
|
31786
32061
|
type: Boolean,
|
|
32062
|
+
attribute: 'novalidate',
|
|
31787
32063
|
reflect: true
|
|
31788
32064
|
},
|
|
31789
32065
|
|
|
@@ -31792,6 +32068,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
31792
32068
|
*/
|
|
31793
32069
|
onDark: {
|
|
31794
32070
|
type: Boolean,
|
|
32071
|
+
attribute: 'ondark',
|
|
31795
32072
|
reflect: true
|
|
31796
32073
|
},
|
|
31797
32074
|
|
|
@@ -31831,77 +32108,88 @@ class BaseInput extends AuroElement$1 {
|
|
|
31831
32108
|
* Sets a custom help text message to display for all validityStates.
|
|
31832
32109
|
*/
|
|
31833
32110
|
setCustomValidity: {
|
|
31834
|
-
type: String
|
|
32111
|
+
type: String,
|
|
32112
|
+
attribute: 'setcustomvalidity'
|
|
31835
32113
|
},
|
|
31836
32114
|
|
|
31837
32115
|
/**
|
|
31838
32116
|
* Custom help text message to display when validity = `badInput`.
|
|
31839
32117
|
*/
|
|
31840
32118
|
setCustomValidityBadInput: {
|
|
31841
|
-
type: String
|
|
32119
|
+
type: String,
|
|
32120
|
+
attribute: 'setcustomvaliditybadinput'
|
|
31842
32121
|
},
|
|
31843
32122
|
|
|
31844
32123
|
/**
|
|
31845
32124
|
* Custom help text message to display when validity = `customError`.
|
|
31846
32125
|
*/
|
|
31847
32126
|
setCustomValidityCustomError: {
|
|
31848
|
-
type: String
|
|
32127
|
+
type: String,
|
|
32128
|
+
attribute: 'setcustomvaliditycustomerror'
|
|
31849
32129
|
},
|
|
31850
32130
|
|
|
31851
32131
|
/**
|
|
31852
32132
|
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
31853
32133
|
*/
|
|
31854
32134
|
setCustomValidityForType: {
|
|
31855
|
-
type: String
|
|
32135
|
+
type: String,
|
|
32136
|
+
attribute: 'setcustomvalidityfortype'
|
|
31856
32137
|
},
|
|
31857
32138
|
|
|
31858
32139
|
/**
|
|
31859
32140
|
* Custom help text message to display when validity = `patternMismatch`.
|
|
31860
32141
|
*/
|
|
31861
32142
|
setCustomValidityPatternMismatch: {
|
|
31862
|
-
type: String
|
|
32143
|
+
type: String,
|
|
32144
|
+
attribute: 'setcustomvaliditypatternmismatch'
|
|
31863
32145
|
},
|
|
31864
32146
|
|
|
31865
32147
|
/**
|
|
31866
32148
|
* Custom help text message to display when validity = `rangeOverflow`.
|
|
31867
32149
|
*/
|
|
31868
32150
|
setCustomValidityRangeOverflow: {
|
|
31869
|
-
type: String
|
|
32151
|
+
type: String,
|
|
32152
|
+
attribute: 'setcustomvalidityrangeoverflow'
|
|
31870
32153
|
},
|
|
31871
32154
|
|
|
31872
32155
|
/**
|
|
31873
32156
|
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
31874
32157
|
*/
|
|
31875
32158
|
setCustomValidityRangeUnderflow: {
|
|
31876
|
-
type: String
|
|
32159
|
+
type: String,
|
|
32160
|
+
attribute: 'setcustomvalidityrangeunderflow'
|
|
31877
32161
|
},
|
|
31878
32162
|
|
|
31879
32163
|
/**
|
|
31880
32164
|
* Custom help text message to display when validity = `tooLong`.
|
|
31881
32165
|
*/
|
|
31882
32166
|
setCustomValidityTooLong: {
|
|
31883
|
-
type: String
|
|
32167
|
+
type: String,
|
|
32168
|
+
attribute: 'setcustomvaliditytoolong'
|
|
31884
32169
|
},
|
|
31885
32170
|
|
|
31886
32171
|
/**
|
|
31887
32172
|
* Custom help text message to display when validity = `tooShort`.
|
|
31888
32173
|
*/
|
|
31889
32174
|
setCustomValidityTooShort: {
|
|
31890
|
-
type: String
|
|
32175
|
+
type: String,
|
|
32176
|
+
attribute: 'setcustomvaliditytooshort'
|
|
31891
32177
|
},
|
|
31892
32178
|
|
|
31893
32179
|
/**
|
|
31894
32180
|
* Custom help text message to display when validity = `valueMissing`.
|
|
31895
32181
|
*/
|
|
31896
32182
|
setCustomValidityValueMissing: {
|
|
31897
|
-
type: String
|
|
32183
|
+
type: String,
|
|
32184
|
+
attribute: 'setcustomvalidityvaluemissing'
|
|
31898
32185
|
},
|
|
31899
32186
|
|
|
31900
32187
|
/**
|
|
31901
32188
|
* @ignore
|
|
31902
32189
|
*/
|
|
31903
32190
|
showPassword: {
|
|
31904
|
-
state: true
|
|
32191
|
+
state: true,
|
|
32192
|
+
attribute: false
|
|
31905
32193
|
},
|
|
31906
32194
|
|
|
31907
32195
|
/**
|
|
@@ -31913,7 +32201,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
31913
32201
|
},
|
|
31914
32202
|
|
|
31915
32203
|
/**
|
|
31916
|
-
* An enumerated attribute defines whether the element may be checked for spelling errors.
|
|
32204
|
+
* An enumerated attribute defines whether the element may be checked for spelling errors. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
32205
|
+
* @type {'true' | 'false'}
|
|
31917
32206
|
*/
|
|
31918
32207
|
spellcheck: {
|
|
31919
32208
|
type: String,
|
|
@@ -31944,7 +32233,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
31944
32233
|
* Sets validation mode to re-eval with each input.
|
|
31945
32234
|
*/
|
|
31946
32235
|
validateOnInput: {
|
|
31947
|
-
type: Boolean
|
|
32236
|
+
type: Boolean,
|
|
32237
|
+
attribute: 'validateoninput'
|
|
31948
32238
|
},
|
|
31949
32239
|
|
|
31950
32240
|
/**
|
|
@@ -32998,6 +33288,8 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
32998
33288
|
super();
|
|
32999
33289
|
|
|
33000
33290
|
this.error = false;
|
|
33291
|
+
|
|
33292
|
+
/** @type {'default' | 'inverse'} */
|
|
33001
33293
|
this.appearance = "default";
|
|
33002
33294
|
this.onDark = false;
|
|
33003
33295
|
this.hasTextContent = false;
|
|
@@ -33018,8 +33310,8 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
33018
33310
|
return {
|
|
33019
33311
|
|
|
33020
33312
|
/**
|
|
33021
|
-
*
|
|
33022
|
-
* @
|
|
33313
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
33314
|
+
* @type {'default' | 'inverse'}
|
|
33023
33315
|
* @default 'default'
|
|
33024
33316
|
*/
|
|
33025
33317
|
appearance: {
|
|
@@ -33032,6 +33324,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
33032
33324
|
*/
|
|
33033
33325
|
slotNodes: {
|
|
33034
33326
|
type: Boolean,
|
|
33327
|
+
attribute: 'slotnodes',
|
|
33035
33328
|
},
|
|
33036
33329
|
|
|
33037
33330
|
/**
|
|
@@ -33039,6 +33332,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
33039
33332
|
*/
|
|
33040
33333
|
hasTextContent: {
|
|
33041
33334
|
type: Boolean,
|
|
33335
|
+
attribute: 'hastextcontent',
|
|
33042
33336
|
},
|
|
33043
33337
|
|
|
33044
33338
|
/**
|
|
@@ -33054,6 +33348,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
33054
33348
|
*/
|
|
33055
33349
|
onDark: {
|
|
33056
33350
|
type: Boolean,
|
|
33351
|
+
attribute: 'ondark',
|
|
33057
33352
|
reflect: true
|
|
33058
33353
|
}
|
|
33059
33354
|
};
|
|
@@ -33124,7 +33419,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
33124
33419
|
}
|
|
33125
33420
|
};
|
|
33126
33421
|
|
|
33127
|
-
var formkitVersion = '
|
|
33422
|
+
var formkitVersion = '202608300032';
|
|
33128
33423
|
|
|
33129
33424
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
33130
33425
|
// See LICENSE in the project root for license information.
|
|
@@ -34058,6 +34353,8 @@ class AuroHelpText extends LitElement {
|
|
|
34058
34353
|
super();
|
|
34059
34354
|
|
|
34060
34355
|
this.error = false;
|
|
34356
|
+
|
|
34357
|
+
/** @type {'default' | 'inverse'} */
|
|
34061
34358
|
this.appearance = "default";
|
|
34062
34359
|
this.onDark = false;
|
|
34063
34360
|
this.hasTextContent = false;
|
|
@@ -34078,8 +34375,8 @@ class AuroHelpText extends LitElement {
|
|
|
34078
34375
|
return {
|
|
34079
34376
|
|
|
34080
34377
|
/**
|
|
34081
|
-
*
|
|
34082
|
-
* @
|
|
34378
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
34379
|
+
* @type {'default' | 'inverse'}
|
|
34083
34380
|
* @default 'default'
|
|
34084
34381
|
*/
|
|
34085
34382
|
appearance: {
|
|
@@ -34092,6 +34389,7 @@ class AuroHelpText extends LitElement {
|
|
|
34092
34389
|
*/
|
|
34093
34390
|
slotNodes: {
|
|
34094
34391
|
type: Boolean,
|
|
34392
|
+
attribute: 'slotnodes',
|
|
34095
34393
|
},
|
|
34096
34394
|
|
|
34097
34395
|
/**
|
|
@@ -34099,6 +34397,7 @@ class AuroHelpText extends LitElement {
|
|
|
34099
34397
|
*/
|
|
34100
34398
|
hasTextContent: {
|
|
34101
34399
|
type: Boolean,
|
|
34400
|
+
attribute: 'hastextcontent',
|
|
34102
34401
|
},
|
|
34103
34402
|
|
|
34104
34403
|
/**
|
|
@@ -34114,6 +34413,7 @@ class AuroHelpText extends LitElement {
|
|
|
34114
34413
|
*/
|
|
34115
34414
|
onDark: {
|
|
34116
34415
|
type: Boolean,
|
|
34416
|
+
attribute: 'ondark',
|
|
34117
34417
|
reflect: true
|
|
34118
34418
|
}
|
|
34119
34419
|
};
|
|
@@ -34184,37 +34484,37 @@ class AuroHelpText extends LitElement {
|
|
|
34184
34484
|
}
|
|
34185
34485
|
}
|
|
34186
34486
|
|
|
34487
|
+
/**
|
|
34488
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
34489
|
+
*
|
|
34490
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
34491
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
34492
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
34493
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
34494
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
34495
|
+
*/
|
|
34187
34496
|
class AuroElement extends LitElement {
|
|
34188
34497
|
static get properties() {
|
|
34189
34498
|
return {
|
|
34190
34499
|
|
|
34191
34500
|
/**
|
|
34192
|
-
*
|
|
34193
|
-
* @default {'default'}
|
|
34501
|
+
* When true, renders the component styled for use on a dark background.
|
|
34194
34502
|
*/
|
|
34195
|
-
layout: {
|
|
34196
|
-
type: String,
|
|
34197
|
-
attribute: "layout",
|
|
34198
|
-
reflect: true
|
|
34199
|
-
},
|
|
34200
|
-
|
|
34201
|
-
shape: {
|
|
34202
|
-
type: String,
|
|
34203
|
-
attribute: "shape",
|
|
34204
|
-
reflect: true
|
|
34205
|
-
},
|
|
34206
|
-
|
|
34207
|
-
size: {
|
|
34208
|
-
type: String,
|
|
34209
|
-
attribute: "size",
|
|
34210
|
-
reflect: true
|
|
34211
|
-
},
|
|
34212
|
-
|
|
34213
34503
|
onDark: {
|
|
34214
34504
|
type: Boolean,
|
|
34215
34505
|
attribute: "ondark",
|
|
34216
34506
|
reflect: true
|
|
34217
34507
|
}
|
|
34508
|
+
|
|
34509
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
34510
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
34511
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
34512
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
34513
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
34514
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
34515
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
34516
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
34517
|
+
// See AlaskaAirlines/discussions#653.
|
|
34218
34518
|
};
|
|
34219
34519
|
}
|
|
34220
34520
|
|
|
@@ -34632,6 +34932,10 @@ const datepickerKeyboardStrategy = {
|
|
|
34632
34932
|
* @slot popover_YYYY_MM_DD - Defines the content to display in the auro-calendar-cell popover for the specified date.
|
|
34633
34933
|
* @csspart dropdown - Use for customizing the style of the dropdown.
|
|
34634
34934
|
* @csspart trigger - Use for customizing the style of the datepicker trigger.
|
|
34935
|
+
* @csspart wrapper - Use for customizing the style of the trigger content wrapper.
|
|
34936
|
+
* @csspart mainLabel - Use for customizing the style of the main label in the snowflake layout.
|
|
34937
|
+
* @csspart inputSection - Use for customizing the style of the input section within the trigger.
|
|
34938
|
+
* @csspart accentIcon - Use for customizing the style of the leading calendar accent icon.
|
|
34635
34939
|
* @csspart input - Use for customizing the style of the datepicker inputs.
|
|
34636
34940
|
* @csspart calendarWrapper - Use for customizing the style of the calendar container.
|
|
34637
34941
|
* @csspart calendar - Use for customizing the style of the calendar.
|
|
@@ -34641,6 +34945,7 @@ const datepickerKeyboardStrategy = {
|
|
|
34641
34945
|
* @event auroDatePicker-monthChanged - Notifies that the visible calendar month(s) have changed.
|
|
34642
34946
|
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
34643
34947
|
* @event auroDatePicker-newSlotContent - Notifies that new slot content has been added to the datepicker.
|
|
34948
|
+
* @event input - Notifies that the datepicker's value has changed.
|
|
34644
34949
|
*/
|
|
34645
34950
|
class AuroDatePicker extends AuroElement {
|
|
34646
34951
|
static get shadowRootOptions() {
|
|
@@ -34671,6 +34976,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34671
34976
|
// If `calendarStartDate` is set, use that as the central date. Otherwise, use the current date.
|
|
34672
34977
|
this.calendarRenderUtil.updateCentralDate(this, this.calendarStartDateObject ?? new Date());
|
|
34673
34978
|
|
|
34979
|
+
/** @type {'default' | 'inverse'} */
|
|
34674
34980
|
this.appearance = "default";
|
|
34675
34981
|
this.touched = false;
|
|
34676
34982
|
this.disabled = false;
|
|
@@ -34684,6 +34990,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
34684
34990
|
this.rangeLabelInRange = 'in range';
|
|
34685
34991
|
this.rangeLabelAfterRange = 'after range';
|
|
34686
34992
|
this.rangeLabelEndPreview = 'previewing range end';
|
|
34993
|
+
|
|
34994
|
+
/** @type {string[]} */
|
|
34687
34995
|
this.blackoutDates = [];
|
|
34688
34996
|
this.blackoutLabel = 'unavailable';
|
|
34689
34997
|
this.navLabelPrevMonth = 'Previous month';
|
|
@@ -34710,6 +35018,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34710
35018
|
|
|
34711
35019
|
/**
|
|
34712
35020
|
* @private
|
|
35021
|
+
* @type {HTMLElement[]}
|
|
34713
35022
|
*/
|
|
34714
35023
|
this.dateSlotContent = [];
|
|
34715
35024
|
|
|
@@ -34804,11 +35113,17 @@ class AuroDatePicker extends AuroElement {
|
|
|
34804
35113
|
*/
|
|
34805
35114
|
this.handleClearClick = this.handleClearClick.bind(this);
|
|
34806
35115
|
|
|
34807
|
-
|
|
35116
|
+
this.initializeArchitectureDefaults();
|
|
35117
|
+
}
|
|
35118
|
+
|
|
35119
|
+
// Defaults for the inherited layout/shape/size architecture props are set in a
|
|
35120
|
+
// helper (not the constructor body) so the CEM analyzer keeps their `@type`
|
|
35121
|
+
// unions instead of inferring `string` from a constructor-literal assignment.
|
|
35122
|
+
// See AlaskaAirlines/discussions#653.
|
|
35123
|
+
initializeArchitectureDefaults() {
|
|
34808
35124
|
this.layout = 'classic';
|
|
34809
35125
|
this.shape = 'classic';
|
|
34810
35126
|
this.size = 'lg';
|
|
34811
|
-
|
|
34812
35127
|
}
|
|
34813
35128
|
|
|
34814
35129
|
// This function is to define props used within the scope of this component
|
|
@@ -34834,6 +35149,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34834
35149
|
*/
|
|
34835
35150
|
autoPlacement: {
|
|
34836
35151
|
type: Boolean,
|
|
35152
|
+
attribute: "autoplacement",
|
|
34837
35153
|
reflect: true
|
|
34838
35154
|
},
|
|
34839
35155
|
|
|
@@ -34847,9 +35163,11 @@ class AuroDatePicker extends AuroElement {
|
|
|
34847
35163
|
* `blackoutDates[i] = ...`, `blackoutDates.splice(...)`) will not
|
|
34848
35164
|
* invalidate the cache and the new entries will be silently ignored.
|
|
34849
35165
|
* To update, reassign the property: `el.blackoutDates = [...el.blackoutDates, '2024-12-25']`.
|
|
35166
|
+
* @type {string[]}
|
|
34850
35167
|
*/
|
|
34851
35168
|
blackoutDates: {
|
|
34852
35169
|
type: Array,
|
|
35170
|
+
attribute: 'blackoutdates',
|
|
34853
35171
|
reflect: true
|
|
34854
35172
|
},
|
|
34855
35173
|
|
|
@@ -34859,6 +35177,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34859
35177
|
*/
|
|
34860
35178
|
blackoutLabel: {
|
|
34861
35179
|
type: String,
|
|
35180
|
+
attribute: 'blackoutlabel',
|
|
34862
35181
|
reflect: true
|
|
34863
35182
|
},
|
|
34864
35183
|
|
|
@@ -34867,6 +35186,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34867
35186
|
*/
|
|
34868
35187
|
calendarEndDate: {
|
|
34869
35188
|
type: String,
|
|
35189
|
+
attribute: 'calendarenddate',
|
|
34870
35190
|
reflect: true
|
|
34871
35191
|
},
|
|
34872
35192
|
|
|
@@ -34876,6 +35196,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34876
35196
|
*/
|
|
34877
35197
|
calendarGridLabel: {
|
|
34878
35198
|
type: String,
|
|
35199
|
+
attribute: 'calendargridlabel',
|
|
34879
35200
|
reflect: true
|
|
34880
35201
|
},
|
|
34881
35202
|
|
|
@@ -34884,6 +35205,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34884
35205
|
*/
|
|
34885
35206
|
calendarFocusDate: {
|
|
34886
35207
|
type: String,
|
|
35208
|
+
attribute: 'calendarfocusdate',
|
|
34887
35209
|
reflect: true
|
|
34888
35210
|
},
|
|
34889
35211
|
|
|
@@ -34892,6 +35214,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34892
35214
|
*/
|
|
34893
35215
|
calendarStartDate: {
|
|
34894
35216
|
type: String,
|
|
35217
|
+
attribute: 'calendarstartdate',
|
|
34895
35218
|
reflect: true
|
|
34896
35219
|
},
|
|
34897
35220
|
|
|
@@ -34899,7 +35222,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
34899
35222
|
* The date that determines the currently visible month.
|
|
34900
35223
|
*/
|
|
34901
35224
|
centralDate: {
|
|
34902
|
-
type: String
|
|
35225
|
+
type: String,
|
|
35226
|
+
attribute: 'centraldate'
|
|
34903
35227
|
},
|
|
34904
35228
|
|
|
34905
35229
|
/**
|
|
@@ -34915,6 +35239,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34915
35239
|
*/
|
|
34916
35240
|
dvInputOnly: {
|
|
34917
35241
|
type: Boolean,
|
|
35242
|
+
attribute: 'dvinputonly',
|
|
34918
35243
|
reflect: true
|
|
34919
35244
|
},
|
|
34920
35245
|
|
|
@@ -34952,6 +35277,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34952
35277
|
*/
|
|
34953
35278
|
fullscreenBreakpoint: {
|
|
34954
35279
|
type: String,
|
|
35280
|
+
attribute: "fullscreenbreakpoint",
|
|
34955
35281
|
reflect: true
|
|
34956
35282
|
},
|
|
34957
35283
|
|
|
@@ -34960,11 +35286,13 @@ class AuroDatePicker extends AuroElement {
|
|
|
34960
35286
|
*/
|
|
34961
35287
|
hasAllValues: {
|
|
34962
35288
|
type: Boolean,
|
|
35289
|
+
attribute: false,
|
|
34963
35290
|
reflect: false
|
|
34964
35291
|
},
|
|
34965
35292
|
|
|
34966
35293
|
hasFocus: {
|
|
34967
35294
|
type: Boolean,
|
|
35295
|
+
attribute: false,
|
|
34968
35296
|
reflect: false,
|
|
34969
35297
|
},
|
|
34970
35298
|
|
|
@@ -34973,10 +35301,14 @@ class AuroDatePicker extends AuroElement {
|
|
|
34973
35301
|
*/
|
|
34974
35302
|
hasValue: {
|
|
34975
35303
|
type: Boolean,
|
|
35304
|
+
attribute: false,
|
|
34976
35305
|
reflect: false,
|
|
34977
35306
|
},
|
|
34978
35307
|
|
|
34979
|
-
/**
|
|
35308
|
+
/**
|
|
35309
|
+
* Sets the `inputmode` attribute on the underlying input, hinting at the virtual keyboard to display.
|
|
35310
|
+
* @type {'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'}
|
|
35311
|
+
*/
|
|
34980
35312
|
inputmode: {
|
|
34981
35313
|
type: String,
|
|
34982
35314
|
attribute: true,
|
|
@@ -34989,6 +35321,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
34989
35321
|
*/
|
|
34990
35322
|
largeFullscreenHeadline: {
|
|
34991
35323
|
type: Boolean,
|
|
35324
|
+
attribute: 'largefullscreenheadline',
|
|
34992
35325
|
reflect: true
|
|
34993
35326
|
},
|
|
34994
35327
|
|
|
@@ -34999,6 +35332,29 @@ class AuroDatePicker extends AuroElement {
|
|
|
34999
35332
|
*/
|
|
35000
35333
|
layout: {
|
|
35001
35334
|
type: String,
|
|
35335
|
+
attribute: "layout",
|
|
35336
|
+
reflect: true
|
|
35337
|
+
},
|
|
35338
|
+
|
|
35339
|
+
/**
|
|
35340
|
+
* Sets the shape of the datepicker.
|
|
35341
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
35342
|
+
* @default 'classic'
|
|
35343
|
+
*/
|
|
35344
|
+
shape: {
|
|
35345
|
+
type: String,
|
|
35346
|
+
attribute: "shape",
|
|
35347
|
+
reflect: true
|
|
35348
|
+
},
|
|
35349
|
+
|
|
35350
|
+
/**
|
|
35351
|
+
* Sets the size of the datepicker.
|
|
35352
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
35353
|
+
* @default 'lg'
|
|
35354
|
+
*/
|
|
35355
|
+
size: {
|
|
35356
|
+
type: String,
|
|
35357
|
+
attribute: "size",
|
|
35002
35358
|
reflect: true
|
|
35003
35359
|
},
|
|
35004
35360
|
|
|
@@ -35007,6 +35363,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35007
35363
|
*/
|
|
35008
35364
|
maxDate: {
|
|
35009
35365
|
type: String,
|
|
35366
|
+
attribute: 'maxdate',
|
|
35010
35367
|
reflect: true
|
|
35011
35368
|
},
|
|
35012
35369
|
|
|
@@ -35015,22 +35372,26 @@ class AuroDatePicker extends AuroElement {
|
|
|
35015
35372
|
*/
|
|
35016
35373
|
minDate: {
|
|
35017
35374
|
type: String,
|
|
35375
|
+
attribute: 'mindate',
|
|
35018
35376
|
reflect: true
|
|
35019
35377
|
},
|
|
35020
35378
|
|
|
35021
35379
|
/**
|
|
35022
|
-
*
|
|
35380
|
+
* When set, the calendar displays the month before the year in the header.
|
|
35023
35381
|
*/
|
|
35024
35382
|
monthFirst: {
|
|
35025
|
-
type: Boolean
|
|
35383
|
+
type: Boolean,
|
|
35384
|
+
attribute: 'monthfirst'
|
|
35026
35385
|
},
|
|
35027
35386
|
|
|
35028
35387
|
/**
|
|
35029
35388
|
* Names of all 12 months to render in the calendar.
|
|
35030
35389
|
* When omitted, month names will be automatically populated from the active `locale` (falling back to `en-US`).
|
|
35390
|
+
* @type {string[]}
|
|
35031
35391
|
*/
|
|
35032
35392
|
monthNames: {
|
|
35033
|
-
type: Array
|
|
35393
|
+
type: Array,
|
|
35394
|
+
attribute: 'monthnames'
|
|
35034
35395
|
},
|
|
35035
35396
|
|
|
35036
35397
|
/**
|
|
@@ -35039,6 +35400,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35039
35400
|
*/
|
|
35040
35401
|
navLabelNextMonth: {
|
|
35041
35402
|
type: String,
|
|
35403
|
+
attribute: 'navlabelnextmonth',
|
|
35042
35404
|
reflect: true
|
|
35043
35405
|
},
|
|
35044
35406
|
|
|
@@ -35048,6 +35410,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35048
35410
|
*/
|
|
35049
35411
|
navLabelPrevMonth: {
|
|
35050
35412
|
type: String,
|
|
35413
|
+
attribute: 'navlabelprevmonth',
|
|
35051
35414
|
reflect: true
|
|
35052
35415
|
},
|
|
35053
35416
|
|
|
@@ -35057,6 +35420,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35057
35420
|
*/
|
|
35058
35421
|
noFlip: {
|
|
35059
35422
|
type: Boolean,
|
|
35423
|
+
attribute: 'noflip',
|
|
35060
35424
|
reflect: true
|
|
35061
35425
|
},
|
|
35062
35426
|
|
|
@@ -35065,6 +35429,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35065
35429
|
*/
|
|
35066
35430
|
noValidate: {
|
|
35067
35431
|
type: Boolean,
|
|
35432
|
+
attribute: 'novalidate',
|
|
35068
35433
|
reflect: true
|
|
35069
35434
|
},
|
|
35070
35435
|
|
|
@@ -35082,6 +35447,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35082
35447
|
*/
|
|
35083
35448
|
onDark: {
|
|
35084
35449
|
type: Boolean,
|
|
35450
|
+
attribute: 'ondark',
|
|
35085
35451
|
reflect: true
|
|
35086
35452
|
},
|
|
35087
35453
|
|
|
@@ -35100,6 +35466,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35100
35466
|
*/
|
|
35101
35467
|
placeholderEndDate: {
|
|
35102
35468
|
type: String,
|
|
35469
|
+
attribute: 'placeholderenddate',
|
|
35103
35470
|
reflect: true
|
|
35104
35471
|
},
|
|
35105
35472
|
|
|
@@ -35130,6 +35497,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35130
35497
|
*/
|
|
35131
35498
|
rangeLabelAfterRange: {
|
|
35132
35499
|
type: String,
|
|
35500
|
+
attribute: 'rangelabelafterrange',
|
|
35133
35501
|
reflect: true
|
|
35134
35502
|
},
|
|
35135
35503
|
|
|
@@ -35139,6 +35507,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35139
35507
|
*/
|
|
35140
35508
|
rangeLabelBeforeRange: {
|
|
35141
35509
|
type: String,
|
|
35510
|
+
attribute: 'rangelabelbeforerange',
|
|
35142
35511
|
reflect: true
|
|
35143
35512
|
},
|
|
35144
35513
|
|
|
@@ -35148,6 +35517,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35148
35517
|
*/
|
|
35149
35518
|
rangeLabelEnd: {
|
|
35150
35519
|
type: String,
|
|
35520
|
+
attribute: 'rangelabelend',
|
|
35151
35521
|
reflect: true
|
|
35152
35522
|
},
|
|
35153
35523
|
|
|
@@ -35159,6 +35529,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35159
35529
|
*/
|
|
35160
35530
|
rangeLabelEndPreview: {
|
|
35161
35531
|
type: String,
|
|
35532
|
+
attribute: 'rangelabelendpreview',
|
|
35162
35533
|
reflect: true
|
|
35163
35534
|
},
|
|
35164
35535
|
|
|
@@ -35168,6 +35539,7 @@ class AuroDatePicker extends AuroElement {
|
|
|
35168
35539
|
*/
|
|
35169
35540
|
rangeLabelInRange: {
|
|
35170
35541
|
type: String,
|
|
35542
|
+
attribute: 'rangelabelinrange',
|
|
35171
35543
|
reflect: true
|
|
35172
35544
|
},
|
|
35173
35545
|
|
|
@@ -35177,15 +35549,18 @@ class AuroDatePicker extends AuroElement {
|
|
|
35177
35549
|
*/
|
|
35178
35550
|
rangeLabelStart: {
|
|
35179
35551
|
type: String,
|
|
35552
|
+
attribute: 'rangelabelstart',
|
|
35180
35553
|
reflect: true
|
|
35181
35554
|
},
|
|
35182
35555
|
|
|
35183
35556
|
/**
|
|
35184
35557
|
* Dates that the user should have for reference as part of their decision-making when selecting a date.
|
|
35185
35558
|
* This should be a JSON string array of ISO date strings (`YYYY-MM-DD`).
|
|
35559
|
+
* @type {string[]}
|
|
35186
35560
|
*/
|
|
35187
35561
|
referenceDates: {
|
|
35188
35562
|
type: Array,
|
|
35563
|
+
attribute: 'referencedates',
|
|
35189
35564
|
reflect: true
|
|
35190
35565
|
},
|
|
35191
35566
|
|
|
@@ -35201,7 +35576,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
35201
35576
|
* Sets a custom help text message to display for all validityStates.
|
|
35202
35577
|
*/
|
|
35203
35578
|
setCustomValidity: {
|
|
35204
|
-
type: String
|
|
35579
|
+
type: String,
|
|
35580
|
+
attribute: 'setcustomvalidity'
|
|
35205
35581
|
},
|
|
35206
35582
|
|
|
35207
35583
|
/**
|
|
@@ -35209,28 +35585,32 @@ class AuroDatePicker extends AuroElement {
|
|
|
35209
35585
|
* Also used as the validation message when a blackout date is typed into the input.
|
|
35210
35586
|
*/
|
|
35211
35587
|
setCustomValidityCustomError: {
|
|
35212
|
-
type: String
|
|
35588
|
+
type: String,
|
|
35589
|
+
attribute: 'setcustomvaliditycustomerror'
|
|
35213
35590
|
},
|
|
35214
35591
|
|
|
35215
35592
|
/**
|
|
35216
35593
|
* Custom help text message to display when validity = `rangeOverflow`.
|
|
35217
35594
|
*/
|
|
35218
35595
|
setCustomValidityRangeOverflow: {
|
|
35219
|
-
type: String
|
|
35596
|
+
type: String,
|
|
35597
|
+
attribute: 'setcustomvalidityrangeoverflow'
|
|
35220
35598
|
},
|
|
35221
35599
|
|
|
35222
35600
|
/**
|
|
35223
35601
|
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
35224
35602
|
*/
|
|
35225
35603
|
setCustomValidityRangeUnderflow: {
|
|
35226
|
-
type: String
|
|
35604
|
+
type: String,
|
|
35605
|
+
attribute: 'setcustomvalidityrangeunderflow'
|
|
35227
35606
|
},
|
|
35228
35607
|
|
|
35229
35608
|
/**
|
|
35230
35609
|
* Custom help text message to display when validity = `valueMissing`.
|
|
35231
35610
|
*/
|
|
35232
35611
|
setCustomValidityValueMissing: {
|
|
35233
|
-
type: String
|
|
35612
|
+
type: String,
|
|
35613
|
+
attribute: 'setcustomvalidityvaluemissing'
|
|
35234
35614
|
},
|
|
35235
35615
|
|
|
35236
35616
|
/**
|
|
@@ -35278,7 +35658,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
35278
35658
|
* Value selected for the second datepicker when using date range.
|
|
35279
35659
|
*/
|
|
35280
35660
|
valueEnd: {
|
|
35281
|
-
type: String
|
|
35661
|
+
type: String,
|
|
35662
|
+
attribute: 'valueend'
|
|
35282
35663
|
}
|
|
35283
35664
|
};
|
|
35284
35665
|
}
|