@aurodesignsystem-dev/auro-formkit 0.0.0-pr1554.18 → 0.0.0-pr1554.2
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 +12 -54
- package/components/combobox/demo/getting-started.min.js +12 -54
- package/components/combobox/demo/index.min.js +12 -54
- package/components/combobox/dist/index.js +12 -54
- package/components/combobox/dist/registered.js +12 -54
- package/components/counter/demo/customize.min.js +9 -31
- package/components/counter/demo/index.min.js +9 -31
- package/components/counter/dist/index.js +9 -31
- package/components/counter/dist/registered.js +9 -31
- package/components/datepicker/demo/customize.min.js +11 -50
- package/components/datepicker/demo/index.min.js +11 -50
- package/components/datepicker/dist/index.js +11 -50
- package/components/datepicker/dist/registered.js +11 -50
- package/components/dropdown/demo/api.md +0 -1
- package/components/dropdown/demo/customize.min.js +8 -30
- package/components/dropdown/demo/getting-started.min.js +8 -30
- package/components/dropdown/demo/index.min.js +8 -30
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -8
- package/components/dropdown/dist/index.js +8 -30
- package/components/dropdown/dist/registered.js +8 -30
- package/components/form/demo/customize.min.js +45 -187
- package/components/form/demo/getting-started.min.js +45 -187
- package/components/form/demo/index.min.js +45 -187
- package/components/form/demo/registerDemoDeps.min.js +45 -187
- package/components/input/demo/customize.min.js +2 -19
- package/components/input/demo/getting-started.min.js +2 -19
- package/components/input/demo/index.min.js +2 -19
- package/components/input/dist/index.js +2 -19
- package/components/input/dist/registered.js +2 -19
- 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 +9 -31
- package/components/select/demo/getting-started.min.js +9 -31
- package/components/select/demo/index.min.js +9 -31
- package/components/select/dist/index.js +9 -31
- package/components/select/dist/registered.js +9 -31
- package/custom-elements.json +1517 -1527
- package/package.json +1 -1
|
@@ -3777,7 +3777,7 @@ class AuroHelpText extends i {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
}
|
|
3779
3779
|
|
|
3780
|
-
var formkitVersion = '
|
|
3780
|
+
var formkitVersion = '202607160501';
|
|
3781
3781
|
|
|
3782
3782
|
class AuroElement extends i {
|
|
3783
3783
|
static get properties() {
|
|
@@ -3917,15 +3917,6 @@ class AuroDropdown extends AuroElement {
|
|
|
3917
3917
|
this.matchWidth = false;
|
|
3918
3918
|
this.noHideOnThisFocusLoss = false;
|
|
3919
3919
|
|
|
3920
|
-
/**
|
|
3921
|
-
* When true, the dropdown skips its generic focus restoration on close.
|
|
3922
|
-
* Set by consumers (e.g. combobox) that manage their own focus routing
|
|
3923
|
-
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
3924
|
-
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
3925
|
-
* @public
|
|
3926
|
-
*/
|
|
3927
|
-
this.noFocusRestoreOnClose = false;
|
|
3928
|
-
|
|
3929
3920
|
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
3930
3921
|
|
|
3931
3922
|
// Layout Config
|
|
@@ -4100,23 +4091,10 @@ class AuroDropdown extends AuroElement {
|
|
|
4100
4091
|
const slot = this.trigger.querySelector('slot[name="trigger"]');
|
|
4101
4092
|
if (slot) {
|
|
4102
4093
|
const assigned = slot.assignedElements();
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
// Try finding a focusable descendant first (handles non-focusable
|
|
4108
|
-
// wrappers like <div> containing a <button>). If none found, try
|
|
4109
|
-
// focusing the element directly (works for custom elements like
|
|
4110
|
-
// auro-input that have delegatesFocus or a custom focus() method).
|
|
4111
|
-
const descendants = getFocusableElements(el);
|
|
4112
|
-
if (descendants.length > 0) {
|
|
4113
|
-
descendants[0].focus();
|
|
4114
|
-
return;
|
|
4115
|
-
}
|
|
4116
|
-
el.focus();
|
|
4117
|
-
if (document.activeElement === el) {
|
|
4118
|
-
return;
|
|
4119
|
-
}
|
|
4094
|
+
const focusable = assigned.find((el) => !el.hasAttribute('disabled'));
|
|
4095
|
+
if (focusable) {
|
|
4096
|
+
focusable.focus();
|
|
4097
|
+
return;
|
|
4120
4098
|
}
|
|
4121
4099
|
}
|
|
4122
4100
|
// Fallback: try DOM children (non-slotted content)
|
|
@@ -4576,7 +4554,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4576
4554
|
}
|
|
4577
4555
|
|
|
4578
4556
|
const eventType = event.detail.eventType || "unknown";
|
|
4579
|
-
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown"
|
|
4557
|
+
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
4580
4558
|
this.focusTrigger();
|
|
4581
4559
|
}
|
|
4582
4560
|
|
|
@@ -4584,9 +4562,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4584
4562
|
// On Tab-driven close (eventType "focusloss"), let focus advance naturally
|
|
4585
4563
|
// — restoring to the trigger would trap the user on this dropdown, forcing
|
|
4586
4564
|
// an extra Tab to move on. Escape and outside-click still restore.
|
|
4587
|
-
// When
|
|
4565
|
+
// When noHideOnThisFocusLoss is true, the consumer (e.g. combobox) manages
|
|
4588
4566
|
// its own focus restoration — skip the generic trigger focus to avoid races.
|
|
4589
|
-
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.
|
|
4567
|
+
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.noHideOnThisFocusLoss) {
|
|
4590
4568
|
// wait til the bib gets fully closed and rendered
|
|
4591
4569
|
setTimeout(() => {
|
|
4592
4570
|
// Skip if the bib re-opened, or if focus moved intentionally outside the dropdown (not to body).
|
|
@@ -3804,7 +3804,7 @@ class AuroHelpText extends i {
|
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
3806
|
|
|
3807
|
-
var formkitVersion = '
|
|
3807
|
+
var formkitVersion = '202607160501';
|
|
3808
3808
|
|
|
3809
3809
|
class AuroElement extends i {
|
|
3810
3810
|
static get properties() {
|
|
@@ -3944,15 +3944,6 @@ 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
|
-
* @public
|
|
3953
|
-
*/
|
|
3954
|
-
this.noFocusRestoreOnClose = false;
|
|
3955
|
-
|
|
3956
3947
|
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
3957
3948
|
|
|
3958
3949
|
// Layout Config
|
|
@@ -4127,23 +4118,10 @@ class AuroDropdown extends AuroElement {
|
|
|
4127
4118
|
const slot = this.trigger.querySelector('slot[name="trigger"]');
|
|
4128
4119
|
if (slot) {
|
|
4129
4120
|
const assigned = slot.assignedElements();
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
// Try finding a focusable descendant first (handles non-focusable
|
|
4135
|
-
// wrappers like <div> containing a <button>). If none found, try
|
|
4136
|
-
// focusing the element directly (works for custom elements like
|
|
4137
|
-
// auro-input that have delegatesFocus or a custom focus() method).
|
|
4138
|
-
const descendants = getFocusableElements(el);
|
|
4139
|
-
if (descendants.length > 0) {
|
|
4140
|
-
descendants[0].focus();
|
|
4141
|
-
return;
|
|
4142
|
-
}
|
|
4143
|
-
el.focus();
|
|
4144
|
-
if (document.activeElement === el) {
|
|
4145
|
-
return;
|
|
4146
|
-
}
|
|
4121
|
+
const focusable = assigned.find((el) => !el.hasAttribute('disabled'));
|
|
4122
|
+
if (focusable) {
|
|
4123
|
+
focusable.focus();
|
|
4124
|
+
return;
|
|
4147
4125
|
}
|
|
4148
4126
|
}
|
|
4149
4127
|
// Fallback: try DOM children (non-slotted content)
|
|
@@ -4603,7 +4581,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4603
4581
|
}
|
|
4604
4582
|
|
|
4605
4583
|
const eventType = event.detail.eventType || "unknown";
|
|
4606
|
-
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown"
|
|
4584
|
+
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
4607
4585
|
this.focusTrigger();
|
|
4608
4586
|
}
|
|
4609
4587
|
|
|
@@ -4611,9 +4589,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4611
4589
|
// On Tab-driven close (eventType "focusloss"), let focus advance naturally
|
|
4612
4590
|
// — restoring to the trigger would trap the user on this dropdown, forcing
|
|
4613
4591
|
// an extra Tab to move on. Escape and outside-click still restore.
|
|
4614
|
-
// When
|
|
4592
|
+
// When noHideOnThisFocusLoss is true, the consumer (e.g. combobox) manages
|
|
4615
4593
|
// its own focus restoration — skip the generic trigger focus to avoid races.
|
|
4616
|
-
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.
|
|
4594
|
+
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.noHideOnThisFocusLoss) {
|
|
4617
4595
|
// wait til the bib gets fully closed and rendered
|
|
4618
4596
|
setTimeout(() => {
|
|
4619
4597
|
// Skip if the bib re-opened, or if focus moved intentionally outside the dropdown (not to body).
|
|
@@ -267,14 +267,6 @@ 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
|
-
* @public
|
|
276
|
-
*/
|
|
277
|
-
public noFocusRestoreOnClose: boolean;
|
|
278
270
|
errorMessage: any;
|
|
279
271
|
layout: any;
|
|
280
272
|
shape: any;
|
|
@@ -3709,7 +3709,7 @@ class AuroHelpText extends LitElement {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
}
|
|
3711
3711
|
|
|
3712
|
-
var formkitVersion = '
|
|
3712
|
+
var formkitVersion = '202607160501';
|
|
3713
3713
|
|
|
3714
3714
|
class AuroElement extends LitElement {
|
|
3715
3715
|
static get properties() {
|
|
@@ -3849,15 +3849,6 @@ 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
|
-
* @public
|
|
3858
|
-
*/
|
|
3859
|
-
this.noFocusRestoreOnClose = false;
|
|
3860
|
-
|
|
3861
3852
|
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
3862
3853
|
|
|
3863
3854
|
// Layout Config
|
|
@@ -4032,23 +4023,10 @@ class AuroDropdown extends AuroElement {
|
|
|
4032
4023
|
const slot = this.trigger.querySelector('slot[name="trigger"]');
|
|
4033
4024
|
if (slot) {
|
|
4034
4025
|
const assigned = slot.assignedElements();
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
// Try finding a focusable descendant first (handles non-focusable
|
|
4040
|
-
// wrappers like <div> containing a <button>). If none found, try
|
|
4041
|
-
// focusing the element directly (works for custom elements like
|
|
4042
|
-
// auro-input that have delegatesFocus or a custom focus() method).
|
|
4043
|
-
const descendants = getFocusableElements(el);
|
|
4044
|
-
if (descendants.length > 0) {
|
|
4045
|
-
descendants[0].focus();
|
|
4046
|
-
return;
|
|
4047
|
-
}
|
|
4048
|
-
el.focus();
|
|
4049
|
-
if (document.activeElement === el) {
|
|
4050
|
-
return;
|
|
4051
|
-
}
|
|
4026
|
+
const focusable = assigned.find((el) => !el.hasAttribute('disabled'));
|
|
4027
|
+
if (focusable) {
|
|
4028
|
+
focusable.focus();
|
|
4029
|
+
return;
|
|
4052
4030
|
}
|
|
4053
4031
|
}
|
|
4054
4032
|
// Fallback: try DOM children (non-slotted content)
|
|
@@ -4508,7 +4486,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4508
4486
|
}
|
|
4509
4487
|
|
|
4510
4488
|
const eventType = event.detail.eventType || "unknown";
|
|
4511
|
-
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown"
|
|
4489
|
+
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
4512
4490
|
this.focusTrigger();
|
|
4513
4491
|
}
|
|
4514
4492
|
|
|
@@ -4516,9 +4494,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4516
4494
|
// On Tab-driven close (eventType "focusloss"), let focus advance naturally
|
|
4517
4495
|
// — restoring to the trigger would trap the user on this dropdown, forcing
|
|
4518
4496
|
// an extra Tab to move on. Escape and outside-click still restore.
|
|
4519
|
-
// When
|
|
4497
|
+
// When noHideOnThisFocusLoss is true, the consumer (e.g. combobox) manages
|
|
4520
4498
|
// its own focus restoration — skip the generic trigger focus to avoid races.
|
|
4521
|
-
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.
|
|
4499
|
+
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.noHideOnThisFocusLoss) {
|
|
4522
4500
|
// wait til the bib gets fully closed and rendered
|
|
4523
4501
|
setTimeout(() => {
|
|
4524
4502
|
// 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 = '202607160501';
|
|
3713
3713
|
|
|
3714
3714
|
class AuroElement extends LitElement {
|
|
3715
3715
|
static get properties() {
|
|
@@ -3849,15 +3849,6 @@ 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
|
-
* @public
|
|
3858
|
-
*/
|
|
3859
|
-
this.noFocusRestoreOnClose = false;
|
|
3860
|
-
|
|
3861
3852
|
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
3862
3853
|
|
|
3863
3854
|
// Layout Config
|
|
@@ -4032,23 +4023,10 @@ class AuroDropdown extends AuroElement {
|
|
|
4032
4023
|
const slot = this.trigger.querySelector('slot[name="trigger"]');
|
|
4033
4024
|
if (slot) {
|
|
4034
4025
|
const assigned = slot.assignedElements();
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
// Try finding a focusable descendant first (handles non-focusable
|
|
4040
|
-
// wrappers like <div> containing a <button>). If none found, try
|
|
4041
|
-
// focusing the element directly (works for custom elements like
|
|
4042
|
-
// auro-input that have delegatesFocus or a custom focus() method).
|
|
4043
|
-
const descendants = getFocusableElements(el);
|
|
4044
|
-
if (descendants.length > 0) {
|
|
4045
|
-
descendants[0].focus();
|
|
4046
|
-
return;
|
|
4047
|
-
}
|
|
4048
|
-
el.focus();
|
|
4049
|
-
if (document.activeElement === el) {
|
|
4050
|
-
return;
|
|
4051
|
-
}
|
|
4026
|
+
const focusable = assigned.find((el) => !el.hasAttribute('disabled'));
|
|
4027
|
+
if (focusable) {
|
|
4028
|
+
focusable.focus();
|
|
4029
|
+
return;
|
|
4052
4030
|
}
|
|
4053
4031
|
}
|
|
4054
4032
|
// Fallback: try DOM children (non-slotted content)
|
|
@@ -4508,7 +4486,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4508
4486
|
}
|
|
4509
4487
|
|
|
4510
4488
|
const eventType = event.detail.eventType || "unknown";
|
|
4511
|
-
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown"
|
|
4489
|
+
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
4512
4490
|
this.focusTrigger();
|
|
4513
4491
|
}
|
|
4514
4492
|
|
|
@@ -4516,9 +4494,9 @@ class AuroDropdown extends AuroElement {
|
|
|
4516
4494
|
// On Tab-driven close (eventType "focusloss"), let focus advance naturally
|
|
4517
4495
|
// — restoring to the trigger would trap the user on this dropdown, forcing
|
|
4518
4496
|
// an extra Tab to move on. Escape and outside-click still restore.
|
|
4519
|
-
// When
|
|
4497
|
+
// When noHideOnThisFocusLoss is true, the consumer (e.g. combobox) manages
|
|
4520
4498
|
// its own focus restoration — skip the generic trigger focus to avoid races.
|
|
4521
|
-
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.
|
|
4499
|
+
if (!this.isPopoverVisible && eventType !== "focusloss" && !this.noHideOnThisFocusLoss) {
|
|
4522
4500
|
// wait til the bib gets fully closed and rendered
|
|
4523
4501
|
setTimeout(() => {
|
|
4524
4502
|
// Skip if the bib re-opened, or if focus moved intentionally outside the dropdown (not to body).
|