@aurodesignsystem-dev/auro-formkit 0.0.0-pr1478.0 → 0.0.0-pr1478.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/checkbox/demo/customize.html +1 -2
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.html +1 -2
- package/components/combobox/demo/customize.md +108 -132
- package/components/combobox/demo/customize.min.js +14 -23
- package/components/combobox/demo/getting-started.min.js +14 -23
- package/components/combobox/demo/index.min.js +14 -23
- package/components/combobox/dist/index.js +12 -21
- package/components/combobox/dist/registered.js +12 -21
- package/components/counter/demo/customize.min.js +10 -2
- package/components/counter/demo/index.min.js +10 -2
- package/components/counter/dist/index.js +10 -2
- package/components/counter/dist/registered.js +10 -2
- package/components/datepicker/demo/api.md +2 -0
- package/components/datepicker/demo/customize.js +0 -2
- package/components/datepicker/demo/customize.md +138 -38
- package/components/datepicker/demo/customize.min.js +17 -23
- package/components/datepicker/demo/index.min.js +17 -5
- package/components/datepicker/dist/index.js +17 -5
- package/components/datepicker/dist/registered.js +17 -5
- package/components/datepicker/dist/src/auro-datepicker.d.ts +2 -0
- package/components/dropdown/demo/customize.min.js +9 -1
- package/components/dropdown/demo/getting-started.min.js +9 -1
- package/components/dropdown/demo/index.min.js +9 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +1 -0
- package/components/dropdown/dist/index.js +9 -1
- package/components/dropdown/dist/registered.js +9 -1
- package/components/form/demo/customize.html +6 -6
- package/components/form/demo/customize.js +19 -0
- package/components/form/demo/customize.md +203 -51
- package/components/form/demo/customize.min.js +620 -96
- package/components/form/demo/getting-started.min.js +548 -96
- package/components/form/demo/index.min.js +548 -96
- package/components/form/demo/registerDemoDeps.min.js +185 -59
- package/components/form/dist/auro-form.d.ts +122 -4
- package/components/form/dist/index.js +363 -37
- package/components/form/dist/registered.js +363 -37
- package/components/input/demo/customize.html +1 -2
- package/components/input/demo/customize.md +54 -53
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.md +1 -0
- package/components/select/demo/customize.html +1 -2
- package/components/select/demo/customize.md +71 -0
- package/components/select/demo/customize.min.js +143 -28
- package/components/select/demo/getting-started.min.js +143 -28
- package/components/select/demo/index.min.js +143 -28
- package/components/select/demo/keyboard-behavior.md +18 -0
- package/components/select/dist/auro-select.d.ts +38 -2
- package/components/select/dist/index.js +141 -26
- package/components/select/dist/registered.js +141 -26
- package/components/select/dist/selectUtils.d.ts +12 -0
- package/custom-elements.json +1641 -1420
- package/package.json +1 -1
|
@@ -4873,7 +4873,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4873
4873
|
}
|
|
4874
4874
|
};
|
|
4875
4875
|
|
|
4876
|
-
var formkitVersion$2 = '
|
|
4876
|
+
var formkitVersion$2 = '202606231828';
|
|
4877
4877
|
|
|
4878
4878
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4879
4879
|
static get properties() {
|
|
@@ -5824,6 +5824,14 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5824
5824
|
};
|
|
5825
5825
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
5826
5826
|
|
|
5827
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
5828
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
5829
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
5830
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
5831
|
+
// user can press Tab.
|
|
5832
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
5833
|
+
this.noHideOnThisFocusLoss = true;
|
|
5834
|
+
|
|
5827
5835
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
5828
5836
|
requestAnimationFrame(() => {
|
|
5829
5837
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -18462,7 +18470,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
18462
18470
|
}
|
|
18463
18471
|
};
|
|
18464
18472
|
|
|
18465
|
-
var formkitVersion$1 = '
|
|
18473
|
+
var formkitVersion$1 = '202606231828';
|
|
18466
18474
|
|
|
18467
18475
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18468
18476
|
// See LICENSE in the project root for license information.
|
|
@@ -19583,7 +19591,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
19583
19591
|
}
|
|
19584
19592
|
}
|
|
19585
19593
|
|
|
19586
|
-
var formkitVersion = '
|
|
19594
|
+
var formkitVersion = '202606231828';
|
|
19587
19595
|
|
|
19588
19596
|
var styleCss$3 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19589
19597
|
|
|
@@ -20934,24 +20942,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20934
20942
|
nativeInput.setSelectionRange(len, len);
|
|
20935
20943
|
}
|
|
20936
20944
|
} else {
|
|
20937
|
-
|
|
20938
|
-
// fullscreen→floating switch can close the dialog and leave focus on
|
|
20939
|
-
// body. Every other Branch 2 callsite already has focus on the input
|
|
20940
|
-
// via the focusin → this.focus() redirect (L1448-1452), so this is a
|
|
20941
|
-
// no-op in the common case.
|
|
20942
|
-
if (!this.input.componentHasFocus) {
|
|
20943
|
-
this.input.focus();
|
|
20944
|
-
}
|
|
20945
|
-
|
|
20946
|
-
// Park the trigger native input's caret at end-of-text every time the
|
|
20947
|
-
// popover opens. Chrome focuses the native via the floating <label for="…">
|
|
20948
|
-
// overlay on click and resets selection to [0, 0]; no JS fires between
|
|
20949
|
-
// mousedown and selectionchange, so we restore the caret here.
|
|
20950
|
-
const triggerNativeInput = this.input.inputElement;
|
|
20951
|
-
if (triggerNativeInput && triggerNativeInput.value) {
|
|
20952
|
-
const len = triggerNativeInput.value.length;
|
|
20953
|
-
triggerNativeInput.setSelectionRange(len, len);
|
|
20954
|
-
}
|
|
20945
|
+
this.input.focus();
|
|
20955
20946
|
}
|
|
20956
20947
|
}
|
|
20957
20948
|
|
|
@@ -22164,8 +22155,8 @@ class AuroMenu extends AuroElement {
|
|
|
22164
22155
|
// Malformed JSON (e.g. a literal string that happens to start with "[") falls back
|
|
22165
22156
|
// to a single-item array rather than throwing during render.
|
|
22166
22157
|
try {
|
|
22167
|
-
|
|
22168
|
-
return
|
|
22158
|
+
// any valid JSON starting with `[` ALWAYS parses to an array
|
|
22159
|
+
return JSON.parse(this.value);
|
|
22169
22160
|
} catch {
|
|
22170
22161
|
return [this.value];
|
|
22171
22162
|
}
|
|
@@ -4873,7 +4873,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4873
4873
|
}
|
|
4874
4874
|
};
|
|
4875
4875
|
|
|
4876
|
-
var formkitVersion$2 = '
|
|
4876
|
+
var formkitVersion$2 = '202606231828';
|
|
4877
4877
|
|
|
4878
4878
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4879
4879
|
static get properties() {
|
|
@@ -5824,6 +5824,14 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5824
5824
|
};
|
|
5825
5825
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
5826
5826
|
|
|
5827
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
5828
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
5829
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
5830
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
5831
|
+
// user can press Tab.
|
|
5832
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
5833
|
+
this.noHideOnThisFocusLoss = true;
|
|
5834
|
+
|
|
5827
5835
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
5828
5836
|
requestAnimationFrame(() => {
|
|
5829
5837
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -18462,7 +18470,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
18462
18470
|
}
|
|
18463
18471
|
};
|
|
18464
18472
|
|
|
18465
|
-
var formkitVersion$1 = '
|
|
18473
|
+
var formkitVersion$1 = '202606231828';
|
|
18466
18474
|
|
|
18467
18475
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18468
18476
|
// See LICENSE in the project root for license information.
|
|
@@ -19583,7 +19591,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
19583
19591
|
}
|
|
19584
19592
|
}
|
|
19585
19593
|
|
|
19586
|
-
var formkitVersion = '
|
|
19594
|
+
var formkitVersion = '202606231828';
|
|
19587
19595
|
|
|
19588
19596
|
var styleCss$3 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19589
19597
|
|
|
@@ -20934,24 +20942,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20934
20942
|
nativeInput.setSelectionRange(len, len);
|
|
20935
20943
|
}
|
|
20936
20944
|
} else {
|
|
20937
|
-
|
|
20938
|
-
// fullscreen→floating switch can close the dialog and leave focus on
|
|
20939
|
-
// body. Every other Branch 2 callsite already has focus on the input
|
|
20940
|
-
// via the focusin → this.focus() redirect (L1448-1452), so this is a
|
|
20941
|
-
// no-op in the common case.
|
|
20942
|
-
if (!this.input.componentHasFocus) {
|
|
20943
|
-
this.input.focus();
|
|
20944
|
-
}
|
|
20945
|
-
|
|
20946
|
-
// Park the trigger native input's caret at end-of-text every time the
|
|
20947
|
-
// popover opens. Chrome focuses the native via the floating <label for="…">
|
|
20948
|
-
// overlay on click and resets selection to [0, 0]; no JS fires between
|
|
20949
|
-
// mousedown and selectionchange, so we restore the caret here.
|
|
20950
|
-
const triggerNativeInput = this.input.inputElement;
|
|
20951
|
-
if (triggerNativeInput && triggerNativeInput.value) {
|
|
20952
|
-
const len = triggerNativeInput.value.length;
|
|
20953
|
-
triggerNativeInput.setSelectionRange(len, len);
|
|
20954
|
-
}
|
|
20945
|
+
this.input.focus();
|
|
20955
20946
|
}
|
|
20956
20947
|
}
|
|
20957
20948
|
|
|
@@ -22164,8 +22155,8 @@ class AuroMenu extends AuroElement {
|
|
|
22164
22155
|
// Malformed JSON (e.g. a literal string that happens to start with "[") falls back
|
|
22165
22156
|
// to a single-item array rather than throwing during render.
|
|
22166
22157
|
try {
|
|
22167
|
-
|
|
22168
|
-
return
|
|
22158
|
+
// any valid JSON starting with `[` ALWAYS parses to an array
|
|
22159
|
+
return JSON.parse(this.value);
|
|
22169
22160
|
} catch {
|
|
22170
22161
|
return [this.value];
|
|
22171
22162
|
}
|
|
@@ -4888,7 +4888,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4888
4888
|
}
|
|
4889
4889
|
};
|
|
4890
4890
|
|
|
4891
|
-
var formkitVersion$2 = '
|
|
4891
|
+
var formkitVersion$2 = '202606231828';
|
|
4892
4892
|
|
|
4893
4893
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4894
4894
|
static get properties() {
|
|
@@ -5839,6 +5839,14 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5839
5839
|
};
|
|
5840
5840
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
5841
5841
|
|
|
5842
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
5843
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
5844
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
5845
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
5846
|
+
// user can press Tab.
|
|
5847
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
5848
|
+
this.noHideOnThisFocusLoss = true;
|
|
5849
|
+
|
|
5842
5850
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
5843
5851
|
requestAnimationFrame(() => {
|
|
5844
5852
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -18477,7 +18485,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
18477
18485
|
}
|
|
18478
18486
|
};
|
|
18479
18487
|
|
|
18480
|
-
var formkitVersion$1 = '
|
|
18488
|
+
var formkitVersion$1 = '202606231828';
|
|
18481
18489
|
|
|
18482
18490
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18483
18491
|
// See LICENSE in the project root for license information.
|
|
@@ -19598,7 +19606,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
19598
19606
|
}
|
|
19599
19607
|
}
|
|
19600
19608
|
|
|
19601
|
-
var formkitVersion = '
|
|
19609
|
+
var formkitVersion = '202606231828';
|
|
19602
19610
|
|
|
19603
19611
|
var styleCss$3 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19604
19612
|
|
|
@@ -20949,24 +20957,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20949
20957
|
nativeInput.setSelectionRange(len, len);
|
|
20950
20958
|
}
|
|
20951
20959
|
} else {
|
|
20952
|
-
|
|
20953
|
-
// fullscreen→floating switch can close the dialog and leave focus on
|
|
20954
|
-
// body. Every other Branch 2 callsite already has focus on the input
|
|
20955
|
-
// via the focusin → this.focus() redirect (L1448-1452), so this is a
|
|
20956
|
-
// no-op in the common case.
|
|
20957
|
-
if (!this.input.componentHasFocus) {
|
|
20958
|
-
this.input.focus();
|
|
20959
|
-
}
|
|
20960
|
-
|
|
20961
|
-
// Park the trigger native input's caret at end-of-text every time the
|
|
20962
|
-
// popover opens. Chrome focuses the native via the floating <label for="…">
|
|
20963
|
-
// overlay on click and resets selection to [0, 0]; no JS fires between
|
|
20964
|
-
// mousedown and selectionchange, so we restore the caret here.
|
|
20965
|
-
const triggerNativeInput = this.input.inputElement;
|
|
20966
|
-
if (triggerNativeInput && triggerNativeInput.value) {
|
|
20967
|
-
const len = triggerNativeInput.value.length;
|
|
20968
|
-
triggerNativeInput.setSelectionRange(len, len);
|
|
20969
|
-
}
|
|
20960
|
+
this.input.focus();
|
|
20970
20961
|
}
|
|
20971
20962
|
}
|
|
20972
20963
|
|
|
@@ -22179,8 +22170,8 @@ class AuroMenu extends AuroElement {
|
|
|
22179
22170
|
// Malformed JSON (e.g. a literal string that happens to start with "[") falls back
|
|
22180
22171
|
// to a single-item array rather than throwing during render.
|
|
22181
22172
|
try {
|
|
22182
|
-
|
|
22183
|
-
return
|
|
22173
|
+
// any valid JSON starting with `[` ALWAYS parses to an array
|
|
22174
|
+
return JSON.parse(this.value);
|
|
22184
22175
|
} catch {
|
|
22185
22176
|
return [this.value];
|
|
22186
22177
|
}
|
|
@@ -4806,7 +4806,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
};
|
|
4808
4808
|
|
|
4809
|
-
var formkitVersion$2 = '
|
|
4809
|
+
var formkitVersion$2 = '202606231828';
|
|
4810
4810
|
|
|
4811
4811
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4812
4812
|
static get properties() {
|
|
@@ -5757,6 +5757,14 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5757
5757
|
};
|
|
5758
5758
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
5759
5759
|
|
|
5760
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
5761
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
5762
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
5763
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
5764
|
+
// user can press Tab.
|
|
5765
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
5766
|
+
this.noHideOnThisFocusLoss = true;
|
|
5767
|
+
|
|
5760
5768
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
5761
5769
|
requestAnimationFrame(() => {
|
|
5762
5770
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -18388,7 +18396,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18388
18396
|
}
|
|
18389
18397
|
};
|
|
18390
18398
|
|
|
18391
|
-
var formkitVersion$1 = '
|
|
18399
|
+
var formkitVersion$1 = '202606231828';
|
|
18392
18400
|
|
|
18393
18401
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18394
18402
|
// See LICENSE in the project root for license information.
|
|
@@ -19509,7 +19517,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
19509
19517
|
}
|
|
19510
19518
|
}
|
|
19511
19519
|
|
|
19512
|
-
var formkitVersion = '
|
|
19520
|
+
var formkitVersion = '202606231828';
|
|
19513
19521
|
|
|
19514
19522
|
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19515
19523
|
|
|
@@ -20860,24 +20868,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20860
20868
|
nativeInput.setSelectionRange(len, len);
|
|
20861
20869
|
}
|
|
20862
20870
|
} else {
|
|
20863
|
-
|
|
20864
|
-
// fullscreen→floating switch can close the dialog and leave focus on
|
|
20865
|
-
// body. Every other Branch 2 callsite already has focus on the input
|
|
20866
|
-
// via the focusin → this.focus() redirect (L1448-1452), so this is a
|
|
20867
|
-
// no-op in the common case.
|
|
20868
|
-
if (!this.input.componentHasFocus) {
|
|
20869
|
-
this.input.focus();
|
|
20870
|
-
}
|
|
20871
|
-
|
|
20872
|
-
// Park the trigger native input's caret at end-of-text every time the
|
|
20873
|
-
// popover opens. Chrome focuses the native via the floating <label for="…">
|
|
20874
|
-
// overlay on click and resets selection to [0, 0]; no JS fires between
|
|
20875
|
-
// mousedown and selectionchange, so we restore the caret here.
|
|
20876
|
-
const triggerNativeInput = this.input.inputElement;
|
|
20877
|
-
if (triggerNativeInput && triggerNativeInput.value) {
|
|
20878
|
-
const len = triggerNativeInput.value.length;
|
|
20879
|
-
triggerNativeInput.setSelectionRange(len, len);
|
|
20880
|
-
}
|
|
20871
|
+
this.input.focus();
|
|
20881
20872
|
}
|
|
20882
20873
|
}
|
|
20883
20874
|
|
|
@@ -4806,7 +4806,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
};
|
|
4808
4808
|
|
|
4809
|
-
var formkitVersion$2 = '
|
|
4809
|
+
var formkitVersion$2 = '202606231828';
|
|
4810
4810
|
|
|
4811
4811
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4812
4812
|
static get properties() {
|
|
@@ -5757,6 +5757,14 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5757
5757
|
};
|
|
5758
5758
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
5759
5759
|
|
|
5760
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
5761
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
5762
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
5763
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
5764
|
+
// user can press Tab.
|
|
5765
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
5766
|
+
this.noHideOnThisFocusLoss = true;
|
|
5767
|
+
|
|
5760
5768
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
5761
5769
|
requestAnimationFrame(() => {
|
|
5762
5770
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -18388,7 +18396,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18388
18396
|
}
|
|
18389
18397
|
};
|
|
18390
18398
|
|
|
18391
|
-
var formkitVersion$1 = '
|
|
18399
|
+
var formkitVersion$1 = '202606231828';
|
|
18392
18400
|
|
|
18393
18401
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18394
18402
|
// See LICENSE in the project root for license information.
|
|
@@ -19509,7 +19517,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
19509
19517
|
}
|
|
19510
19518
|
}
|
|
19511
19519
|
|
|
19512
|
-
var formkitVersion = '
|
|
19520
|
+
var formkitVersion = '202606231828';
|
|
19513
19521
|
|
|
19514
19522
|
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19515
19523
|
|
|
@@ -20860,24 +20868,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20860
20868
|
nativeInput.setSelectionRange(len, len);
|
|
20861
20869
|
}
|
|
20862
20870
|
} else {
|
|
20863
|
-
|
|
20864
|
-
// fullscreen→floating switch can close the dialog and leave focus on
|
|
20865
|
-
// body. Every other Branch 2 callsite already has focus on the input
|
|
20866
|
-
// via the focusin → this.focus() redirect (L1448-1452), so this is a
|
|
20867
|
-
// no-op in the common case.
|
|
20868
|
-
if (!this.input.componentHasFocus) {
|
|
20869
|
-
this.input.focus();
|
|
20870
|
-
}
|
|
20871
|
-
|
|
20872
|
-
// Park the trigger native input's caret at end-of-text every time the
|
|
20873
|
-
// popover opens. Chrome focuses the native via the floating <label for="…">
|
|
20874
|
-
// overlay on click and resets selection to [0, 0]; no JS fires between
|
|
20875
|
-
// mousedown and selectionchange, so we restore the caret here.
|
|
20876
|
-
const triggerNativeInput = this.input.inputElement;
|
|
20877
|
-
if (triggerNativeInput && triggerNativeInput.value) {
|
|
20878
|
-
const len = triggerNativeInput.value.length;
|
|
20879
|
-
triggerNativeInput.setSelectionRange(len, len);
|
|
20880
|
-
}
|
|
20871
|
+
this.input.focus();
|
|
20881
20872
|
}
|
|
20882
20873
|
}
|
|
20883
20874
|
|
|
@@ -1099,7 +1099,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
};
|
|
1101
1101
|
|
|
1102
|
-
var formkitVersion$1 = '
|
|
1102
|
+
var formkitVersion$1 = '202606231828';
|
|
1103
1103
|
|
|
1104
1104
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1105
1105
|
// See LICENSE in the project root for license information.
|
|
@@ -5445,7 +5445,7 @@ class AuroHelpText extends i$2 {
|
|
|
5445
5445
|
}
|
|
5446
5446
|
}
|
|
5447
5447
|
|
|
5448
|
-
var formkitVersion = '
|
|
5448
|
+
var formkitVersion = '202606231828';
|
|
5449
5449
|
|
|
5450
5450
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5451
5451
|
static get properties() {
|
|
@@ -6396,6 +6396,14 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6396
6396
|
};
|
|
6397
6397
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
6398
6398
|
|
|
6399
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
6400
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
6401
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
6402
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
6403
|
+
// user can press Tab.
|
|
6404
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
6405
|
+
this.noHideOnThisFocusLoss = true;
|
|
6406
|
+
|
|
6399
6407
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
6400
6408
|
requestAnimationFrame(() => {
|
|
6401
6409
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -1099,7 +1099,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
};
|
|
1101
1101
|
|
|
1102
|
-
var formkitVersion$1 = '
|
|
1102
|
+
var formkitVersion$1 = '202606231828';
|
|
1103
1103
|
|
|
1104
1104
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1105
1105
|
// See LICENSE in the project root for license information.
|
|
@@ -5445,7 +5445,7 @@ class AuroHelpText extends i$2 {
|
|
|
5445
5445
|
}
|
|
5446
5446
|
}
|
|
5447
5447
|
|
|
5448
|
-
var formkitVersion = '
|
|
5448
|
+
var formkitVersion = '202606231828';
|
|
5449
5449
|
|
|
5450
5450
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5451
5451
|
static get properties() {
|
|
@@ -6396,6 +6396,14 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6396
6396
|
};
|
|
6397
6397
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
6398
6398
|
|
|
6399
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
6400
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
6401
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
6402
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
6403
|
+
// user can press Tab.
|
|
6404
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
6405
|
+
this.noHideOnThisFocusLoss = true;
|
|
6406
|
+
|
|
6399
6407
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
6400
6408
|
requestAnimationFrame(() => {
|
|
6401
6409
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -1049,7 +1049,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
};
|
|
1051
1051
|
|
|
1052
|
-
var formkitVersion$1 = '
|
|
1052
|
+
var formkitVersion$1 = '202606231828';
|
|
1053
1053
|
|
|
1054
1054
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1055
1055
|
// See LICENSE in the project root for license information.
|
|
@@ -5377,7 +5377,7 @@ class AuroHelpText extends LitElement {
|
|
|
5377
5377
|
}
|
|
5378
5378
|
}
|
|
5379
5379
|
|
|
5380
|
-
var formkitVersion = '
|
|
5380
|
+
var formkitVersion = '202606231828';
|
|
5381
5381
|
|
|
5382
5382
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5383
5383
|
static get properties() {
|
|
@@ -6328,6 +6328,14 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6328
6328
|
};
|
|
6329
6329
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
6330
6330
|
|
|
6331
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
6332
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
6333
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
6334
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
6335
|
+
// user can press Tab.
|
|
6336
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
6337
|
+
this.noHideOnThisFocusLoss = true;
|
|
6338
|
+
|
|
6331
6339
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
6332
6340
|
requestAnimationFrame(() => {
|
|
6333
6341
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -1049,7 +1049,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
};
|
|
1051
1051
|
|
|
1052
|
-
var formkitVersion$1 = '
|
|
1052
|
+
var formkitVersion$1 = '202606231828';
|
|
1053
1053
|
|
|
1054
1054
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1055
1055
|
// See LICENSE in the project root for license information.
|
|
@@ -5377,7 +5377,7 @@ class AuroHelpText extends LitElement {
|
|
|
5377
5377
|
}
|
|
5378
5378
|
}
|
|
5379
5379
|
|
|
5380
|
-
var formkitVersion = '
|
|
5380
|
+
var formkitVersion = '202606231828';
|
|
5381
5381
|
|
|
5382
5382
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5383
5383
|
static get properties() {
|
|
@@ -6328,6 +6328,14 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6328
6328
|
};
|
|
6329
6329
|
this.addEventListener('keydown', this._bibTabHandler);
|
|
6330
6330
|
|
|
6331
|
+
// Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
|
|
6332
|
+
// desktopModal trap owns focus management. Without this, the very
|
|
6333
|
+
// first focus move into the bib (from the RAF below) triggers
|
|
6334
|
+
// handleFocusLoss → hideBib, tearing down the trap before the
|
|
6335
|
+
// user can press Tab.
|
|
6336
|
+
this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
|
|
6337
|
+
this.noHideOnThisFocusLoss = true;
|
|
6338
|
+
|
|
6331
6339
|
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
6332
6340
|
requestAnimationFrame(() => {
|
|
6333
6341
|
const focusables = getFocusableElements(this.bibContent);
|
|
@@ -109,6 +109,8 @@ The `auro-datepicker` component provides users with a way to select a date or da
|
|
|
109
109
|
| `fromLabel` | Defines the label content for the first input. |
|
|
110
110
|
| `helpText` | Defines the content of the helpText. |
|
|
111
111
|
| `label` | Defines the label content for the entire datepicker when `layout="snowflake"`. |
|
|
112
|
+
| `optionalFromLabel` | Overrides the "(optional)" text rendered next to the first input's label when the datepicker is not `required`. |
|
|
113
|
+
| `optionalToLabel` | Overrides the "(optional)" text rendered next to the second input's label when `range` is set and the datepicker is not `required`. |
|
|
112
114
|
| `popover_YYYY_MM_DD` | Defines the content to display in the auro-calendar-cell popover for the specified date. |
|
|
113
115
|
| `toLabel` | Defines the label content for the second input when the `range` attribute is used. |
|
|
114
116
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AuroDatePicker } from '../src/auro-datepicker.js';
|
|
2
|
-
import { localizationExample } from '../apiExamples/localization.js';
|
|
3
2
|
|
|
4
3
|
AuroDatePicker.register();
|
|
5
4
|
|
|
@@ -7,7 +6,6 @@ export function initExamples(initCount) {
|
|
|
7
6
|
initCount = initCount || 0;
|
|
8
7
|
|
|
9
8
|
try {
|
|
10
|
-
localizationExample();
|
|
11
9
|
} catch {
|
|
12
10
|
if (initCount <= 20) {
|
|
13
11
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|