@aurodesignsystem-dev/auro-formkit 0.0.0-pr1554.9 → 0.0.0-pr1555.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.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +37 -16
- package/components/combobox/demo/getting-started.min.js +37 -16
- package/components/combobox/demo/index.min.js +37 -16
- package/components/combobox/dist/index.js +37 -16
- package/components/combobox/dist/registered.js +37 -16
- package/components/counter/demo/customize.min.js +18 -7
- package/components/counter/demo/index.min.js +18 -7
- package/components/counter/dist/index.js +18 -7
- package/components/counter/dist/registered.js +18 -7
- package/components/datepicker/demo/customize.min.js +36 -17
- package/components/datepicker/demo/index.min.js +36 -17
- package/components/datepicker/dist/index.js +36 -17
- package/components/datepicker/dist/registered.js +36 -17
- package/components/dropdown/demo/customize.min.js +17 -6
- package/components/dropdown/demo/getting-started.min.js +17 -6
- package/components/dropdown/demo/index.min.js +17 -6
- package/components/dropdown/dist/auro-dropdown.d.ts +8 -0
- package/components/dropdown/dist/index.js +17 -6
- package/components/dropdown/dist/registered.js +17 -6
- package/components/form/demo/customize.min.js +126 -56
- package/components/form/demo/getting-started.min.js +126 -56
- package/components/form/demo/index.min.js +126 -56
- package/components/form/demo/registerDemoDeps.min.js +126 -56
- package/components/input/demo/customize.min.js +15 -7
- package/components/input/demo/getting-started.min.js +15 -7
- package/components/input/demo/index.min.js +15 -7
- package/components/input/dist/index.js +15 -7
- package/components/input/dist/registered.js +15 -7
- 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/customize.min.js +18 -7
- package/components/select/demo/getting-started.min.js +18 -7
- package/components/select/demo/index.min.js +18 -7
- package/components/select/dist/index.js +18 -7
- package/components/select/dist/registered.js +18 -7
- package/custom-elements.json +1527 -1517
- package/package.json +1 -1
|
@@ -3804,7 +3804,7 @@ class AuroHelpText extends i {
|
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
3806
|
|
|
3807
|
-
var formkitVersion = '
|
|
3807
|
+
var formkitVersion = '202607162024';
|
|
3808
3808
|
|
|
3809
3809
|
class AuroElement extends i {
|
|
3810
3810
|
static get properties() {
|
|
@@ -3944,6 +3944,15 @@ class AuroDropdown extends AuroElement {
|
|
|
3944
3944
|
this.matchWidth = false;
|
|
3945
3945
|
this.noHideOnThisFocusLoss = false;
|
|
3946
3946
|
|
|
3947
|
+
/**
|
|
3948
|
+
* When true, the dropdown skips its generic focus restoration on close.
|
|
3949
|
+
* Set by consumers (e.g. combobox) that manage their own focus routing
|
|
3950
|
+
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
3951
|
+
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
3952
|
+
* @private
|
|
3953
|
+
*/
|
|
3954
|
+
this.noFocusRestoreOnClose = false;
|
|
3955
|
+
|
|
3947
3956
|
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
3948
3957
|
|
|
3949
3958
|
// Layout Config
|
|
@@ -4120,7 +4129,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4120
4129
|
const assigned = slot.assignedElements();
|
|
4121
4130
|
for (const el of assigned) {
|
|
4122
4131
|
if (el.hasAttribute('disabled')) {
|
|
4123
|
-
continue;
|
|
4132
|
+
continue; // eslint-disable-line no-continue
|
|
4124
4133
|
}
|
|
4125
4134
|
// Try finding a focusable descendant first (handles non-focusable
|
|
4126
4135
|
// wrappers like <div> containing a <button>). If none found, try
|
|
@@ -4132,7 +4141,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4132
4141
|
return;
|
|
4133
4142
|
}
|
|
4134
4143
|
el.focus();
|
|
4135
|
-
|
|
4144
|
+
if (document.activeElement === el) {
|
|
4145
|
+
return;
|
|
4146
|
+
}
|
|
4136
4147
|
}
|
|
4137
4148
|
}
|
|
4138
4149
|
// Fallback: try DOM children (non-slotted content)
|
|
@@ -4592,7 +4603,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4592
4603
|
}
|
|
4593
4604
|
|
|
4594
4605
|
const eventType = event.detail.eventType || "unknown";
|
|
4595
|
-
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
4606
|
+
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown" && !this.noFocusRestoreOnClose) {
|
|
4596
4607
|
this.focusTrigger();
|
|
4597
4608
|
}
|
|
4598
4609
|
|
|
@@ -4600,9 +4611,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4600
4611
|
// On Tab-driven close (eventType "focusloss"), let focus advance naturally
|
|
4601
4612
|
// — restoring to the trigger would trap the user on this dropdown, forcing
|
|
4602
4613
|
// an extra Tab to move on. Escape and outside-click still restore.
|
|
4603
|
-
// When
|
|
4614
|
+
// When noFocusRestoreOnClose is true, the consumer (e.g. combobox) manages
|
|
4604
4615
|
// its own focus restoration — skip the generic trigger focus to avoid races.
|
|
4605
|
-
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.
|
|
4616
|
+
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.noFocusRestoreOnClose) {
|
|
4606
4617
|
// wait til the bib gets fully closed and rendered
|
|
4607
4618
|
setTimeout(() => {
|
|
4608
4619
|
// Skip if the bib re-opened, or if focus moved intentionally outside the dropdown (not to body).
|
|
@@ -267,6 +267,14 @@ export class AuroDropdown extends AuroElement {
|
|
|
267
267
|
isBibFullscreen: boolean;
|
|
268
268
|
matchWidth: boolean;
|
|
269
269
|
noHideOnThisFocusLoss: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* When true, the dropdown skips its generic focus restoration on close.
|
|
272
|
+
* Set by consumers (e.g. combobox) that manage their own focus routing
|
|
273
|
+
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
274
|
+
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
275
|
+
* @private
|
|
276
|
+
*/
|
|
277
|
+
private noFocusRestoreOnClose;
|
|
270
278
|
errorMessage: any;
|
|
271
279
|
layout: any;
|
|
272
280
|
shape: any;
|
|
@@ -3709,7 +3709,7 @@ class AuroHelpText extends LitElement {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
}
|
|
3711
3711
|
|
|
3712
|
-
var formkitVersion = '
|
|
3712
|
+
var formkitVersion = '202607162024';
|
|
3713
3713
|
|
|
3714
3714
|
class AuroElement extends LitElement {
|
|
3715
3715
|
static get properties() {
|
|
@@ -3849,6 +3849,15 @@ class AuroDropdown extends AuroElement {
|
|
|
3849
3849
|
this.matchWidth = false;
|
|
3850
3850
|
this.noHideOnThisFocusLoss = false;
|
|
3851
3851
|
|
|
3852
|
+
/**
|
|
3853
|
+
* When true, the dropdown skips its generic focus restoration on close.
|
|
3854
|
+
* Set by consumers (e.g. combobox) that manage their own focus routing
|
|
3855
|
+
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
3856
|
+
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
3857
|
+
* @private
|
|
3858
|
+
*/
|
|
3859
|
+
this.noFocusRestoreOnClose = false;
|
|
3860
|
+
|
|
3852
3861
|
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
3853
3862
|
|
|
3854
3863
|
// Layout Config
|
|
@@ -4025,7 +4034,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4025
4034
|
const assigned = slot.assignedElements();
|
|
4026
4035
|
for (const el of assigned) {
|
|
4027
4036
|
if (el.hasAttribute('disabled')) {
|
|
4028
|
-
continue;
|
|
4037
|
+
continue; // eslint-disable-line no-continue
|
|
4029
4038
|
}
|
|
4030
4039
|
// Try finding a focusable descendant first (handles non-focusable
|
|
4031
4040
|
// wrappers like <div> containing a <button>). If none found, try
|
|
@@ -4037,7 +4046,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4037
4046
|
return;
|
|
4038
4047
|
}
|
|
4039
4048
|
el.focus();
|
|
4040
|
-
|
|
4049
|
+
if (document.activeElement === el) {
|
|
4050
|
+
return;
|
|
4051
|
+
}
|
|
4041
4052
|
}
|
|
4042
4053
|
}
|
|
4043
4054
|
// Fallback: try DOM children (non-slotted content)
|
|
@@ -4497,7 +4508,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4497
4508
|
}
|
|
4498
4509
|
|
|
4499
4510
|
const eventType = event.detail.eventType || "unknown";
|
|
4500
|
-
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
4511
|
+
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown" && !this.noFocusRestoreOnClose) {
|
|
4501
4512
|
this.focusTrigger();
|
|
4502
4513
|
}
|
|
4503
4514
|
|
|
@@ -4505,9 +4516,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4505
4516
|
// On Tab-driven close (eventType "focusloss"), let focus advance naturally
|
|
4506
4517
|
// — restoring to the trigger would trap the user on this dropdown, forcing
|
|
4507
4518
|
// an extra Tab to move on. Escape and outside-click still restore.
|
|
4508
|
-
// When
|
|
4519
|
+
// When noFocusRestoreOnClose is true, the consumer (e.g. combobox) manages
|
|
4509
4520
|
// its own focus restoration — skip the generic trigger focus to avoid races.
|
|
4510
|
-
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.
|
|
4521
|
+
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.noFocusRestoreOnClose) {
|
|
4511
4522
|
// wait til the bib gets fully closed and rendered
|
|
4512
4523
|
setTimeout(() => {
|
|
4513
4524
|
// Skip if the bib re-opened, or if focus moved intentionally outside the dropdown (not to body).
|
|
@@ -3709,7 +3709,7 @@ class AuroHelpText extends LitElement {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
}
|
|
3711
3711
|
|
|
3712
|
-
var formkitVersion = '
|
|
3712
|
+
var formkitVersion = '202607162024';
|
|
3713
3713
|
|
|
3714
3714
|
class AuroElement extends LitElement {
|
|
3715
3715
|
static get properties() {
|
|
@@ -3849,6 +3849,15 @@ class AuroDropdown extends AuroElement {
|
|
|
3849
3849
|
this.matchWidth = false;
|
|
3850
3850
|
this.noHideOnThisFocusLoss = false;
|
|
3851
3851
|
|
|
3852
|
+
/**
|
|
3853
|
+
* When true, the dropdown skips its generic focus restoration on close.
|
|
3854
|
+
* Set by consumers (e.g. combobox) that manage their own focus routing
|
|
3855
|
+
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
3856
|
+
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
3857
|
+
* @private
|
|
3858
|
+
*/
|
|
3859
|
+
this.noFocusRestoreOnClose = false;
|
|
3860
|
+
|
|
3852
3861
|
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
3853
3862
|
|
|
3854
3863
|
// Layout Config
|
|
@@ -4025,7 +4034,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4025
4034
|
const assigned = slot.assignedElements();
|
|
4026
4035
|
for (const el of assigned) {
|
|
4027
4036
|
if (el.hasAttribute('disabled')) {
|
|
4028
|
-
continue;
|
|
4037
|
+
continue; // eslint-disable-line no-continue
|
|
4029
4038
|
}
|
|
4030
4039
|
// Try finding a focusable descendant first (handles non-focusable
|
|
4031
4040
|
// wrappers like <div> containing a <button>). If none found, try
|
|
@@ -4037,7 +4046,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4037
4046
|
return;
|
|
4038
4047
|
}
|
|
4039
4048
|
el.focus();
|
|
4040
|
-
|
|
4049
|
+
if (document.activeElement === el) {
|
|
4050
|
+
return;
|
|
4051
|
+
}
|
|
4041
4052
|
}
|
|
4042
4053
|
}
|
|
4043
4054
|
// Fallback: try DOM children (non-slotted content)
|
|
@@ -4497,7 +4508,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4497
4508
|
}
|
|
4498
4509
|
|
|
4499
4510
|
const eventType = event.detail.eventType || "unknown";
|
|
4500
|
-
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
4511
|
+
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown" && !this.noFocusRestoreOnClose) {
|
|
4501
4512
|
this.focusTrigger();
|
|
4502
4513
|
}
|
|
4503
4514
|
|
|
@@ -4505,9 +4516,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4505
4516
|
// On Tab-driven close (eventType "focusloss"), let focus advance naturally
|
|
4506
4517
|
// — restoring to the trigger would trap the user on this dropdown, forcing
|
|
4507
4518
|
// an extra Tab to move on. Escape and outside-click still restore.
|
|
4508
|
-
// When
|
|
4519
|
+
// When noFocusRestoreOnClose is true, the consumer (e.g. combobox) manages
|
|
4509
4520
|
// its own focus restoration — skip the generic trigger focus to avoid races.
|
|
4510
|
-
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.
|
|
4521
|
+
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.noFocusRestoreOnClose) {
|
|
4511
4522
|
// wait til the bib gets fully closed and rendered
|
|
4512
4523
|
setTimeout(() => {
|
|
4513
4524
|
// Skip if the bib re-opened, or if focus moved intentionally outside the dropdown (not to body).
|