@aurodesignsystem-dev/auro-formkit 0.0.0-pr740.3 → 0.0.0-pr740.5
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/combobox/demo/api.min.js +9 -58
- package/components/combobox/demo/index.min.js +9 -58
- package/components/combobox/dist/index.js +9 -58
- package/components/combobox/dist/registered.js +9 -58
- package/components/counter/demo/api.min.js +9 -58
- package/components/counter/demo/index.min.js +9 -58
- package/components/counter/dist/index.js +9 -58
- package/components/counter/dist/registered.js +9 -58
- package/components/datepicker/demo/api.min.js +9 -58
- package/components/datepicker/demo/index.min.js +9 -58
- package/components/datepicker/dist/index.js +9 -58
- package/components/datepicker/dist/registered.js +9 -58
- package/components/dropdown/demo/api.min.js +9 -58
- package/components/dropdown/demo/index.min.js +9 -58
- package/components/dropdown/dist/auro-dropdownBib.d.ts +5 -6
- package/components/dropdown/dist/index.js +9 -58
- package/components/dropdown/dist/registered.js +9 -58
- package/components/select/demo/api.min.js +9 -58
- package/components/select/demo/index.min.js +9 -58
- package/components/select/dist/index.js +9 -58
- package/components/select/dist/registered.js +9 -58
- package/package.json +1 -1
|
@@ -3836,6 +3836,12 @@ class AuroDropdownBib extends i$2 {
|
|
|
3836
3836
|
reflect: true
|
|
3837
3837
|
},
|
|
3838
3838
|
|
|
3839
|
+
isVisible: {
|
|
3840
|
+
type: Boolean,
|
|
3841
|
+
reflect: true,
|
|
3842
|
+
attribute: 'data-show'
|
|
3843
|
+
},
|
|
3844
|
+
|
|
3839
3845
|
/**
|
|
3840
3846
|
* If declared, will apply all styles for the common theme.
|
|
3841
3847
|
*/
|
|
@@ -3927,10 +3933,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3927
3933
|
connectedCallback() {
|
|
3928
3934
|
super.connectedCallback();
|
|
3929
3935
|
|
|
3930
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
3931
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
3936
|
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
3935
3937
|
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
3936
3938
|
const bibTemplate = event.detail.element;
|
|
@@ -3960,60 +3962,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3960
3962
|
}));
|
|
3961
3963
|
}
|
|
3962
3964
|
|
|
3963
|
-
/**
|
|
3964
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
3965
|
-
* @param {Event} event - The touchmove event.
|
|
3966
|
-
* @returns {void}
|
|
3967
|
-
*/
|
|
3968
|
-
preventBodyScroll(event) {
|
|
3969
|
-
function checkIfDecent(target, parent) {
|
|
3970
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
3971
|
-
return false;
|
|
3972
|
-
}
|
|
3973
|
-
|
|
3974
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
3975
|
-
const assignedElements = parent.assignedElements();
|
|
3976
|
-
if (assignedElements) {
|
|
3977
|
-
for (const child of assignedElements) {
|
|
3978
|
-
if (checkIfDecent(target, child)) {
|
|
3979
|
-
return true;
|
|
3980
|
-
}
|
|
3981
|
-
}
|
|
3982
|
-
}
|
|
3983
|
-
return false;
|
|
3984
|
-
}
|
|
3985
|
-
|
|
3986
|
-
if (target === parent || parent.contains(target)) {
|
|
3987
|
-
return true;
|
|
3988
|
-
}
|
|
3989
|
-
|
|
3990
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
3991
|
-
return true;
|
|
3992
|
-
}
|
|
3993
|
-
|
|
3994
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
3995
|
-
return true;
|
|
3996
|
-
}
|
|
3997
|
-
|
|
3998
|
-
if (parent.children) {
|
|
3999
|
-
for (const child of parent.children) {
|
|
4000
|
-
if (checkIfDecent(target, child)) {
|
|
4001
|
-
return true;
|
|
4002
|
-
}
|
|
4003
|
-
}
|
|
4004
|
-
}
|
|
4005
|
-
|
|
4006
|
-
return false;
|
|
4007
|
-
}
|
|
4008
|
-
const isDecent = checkIfDecent(event.target, this);
|
|
4009
|
-
if (isDecent && event.type === 'touchstart') {
|
|
4010
|
-
// if the target is on the bib, let it go for `click` event
|
|
4011
|
-
return;
|
|
4012
|
-
}
|
|
4013
|
-
event.preventDefault();
|
|
4014
|
-
event.stopImmediatePropagation();
|
|
4015
|
-
}
|
|
4016
|
-
|
|
4017
3965
|
// function that renders the HTML and CSS into the scope of the component
|
|
4018
3966
|
render() {
|
|
4019
3967
|
const classes = {
|
|
@@ -4854,6 +4802,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4854
4802
|
}
|
|
4855
4803
|
|
|
4856
4804
|
this.bibContent = this.floater.element.bib;
|
|
4805
|
+
this.bibContent.setAttribute('role', 'dialog');
|
|
4806
|
+
this.bibContent.setAttribute('aria-modal', 'true');
|
|
4807
|
+
this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
|
|
4857
4808
|
|
|
4858
4809
|
// Add the tag name as an attribute if it is different than the component name
|
|
4859
4810
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -3694,6 +3694,12 @@ class AuroDropdownBib extends i$2 {
|
|
|
3694
3694
|
reflect: true
|
|
3695
3695
|
},
|
|
3696
3696
|
|
|
3697
|
+
isVisible: {
|
|
3698
|
+
type: Boolean,
|
|
3699
|
+
reflect: true,
|
|
3700
|
+
attribute: 'data-show'
|
|
3701
|
+
},
|
|
3702
|
+
|
|
3697
3703
|
/**
|
|
3698
3704
|
* If declared, will apply all styles for the common theme.
|
|
3699
3705
|
*/
|
|
@@ -3785,10 +3791,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3785
3791
|
connectedCallback() {
|
|
3786
3792
|
super.connectedCallback();
|
|
3787
3793
|
|
|
3788
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
3789
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
3794
|
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
3793
3795
|
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
3794
3796
|
const bibTemplate = event.detail.element;
|
|
@@ -3818,60 +3820,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3818
3820
|
}));
|
|
3819
3821
|
}
|
|
3820
3822
|
|
|
3821
|
-
/**
|
|
3822
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
3823
|
-
* @param {Event} event - The touchmove event.
|
|
3824
|
-
* @returns {void}
|
|
3825
|
-
*/
|
|
3826
|
-
preventBodyScroll(event) {
|
|
3827
|
-
function checkIfDecent(target, parent) {
|
|
3828
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
3829
|
-
return false;
|
|
3830
|
-
}
|
|
3831
|
-
|
|
3832
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
3833
|
-
const assignedElements = parent.assignedElements();
|
|
3834
|
-
if (assignedElements) {
|
|
3835
|
-
for (const child of assignedElements) {
|
|
3836
|
-
if (checkIfDecent(target, child)) {
|
|
3837
|
-
return true;
|
|
3838
|
-
}
|
|
3839
|
-
}
|
|
3840
|
-
}
|
|
3841
|
-
return false;
|
|
3842
|
-
}
|
|
3843
|
-
|
|
3844
|
-
if (target === parent || parent.contains(target)) {
|
|
3845
|
-
return true;
|
|
3846
|
-
}
|
|
3847
|
-
|
|
3848
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
3849
|
-
return true;
|
|
3850
|
-
}
|
|
3851
|
-
|
|
3852
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
3853
|
-
return true;
|
|
3854
|
-
}
|
|
3855
|
-
|
|
3856
|
-
if (parent.children) {
|
|
3857
|
-
for (const child of parent.children) {
|
|
3858
|
-
if (checkIfDecent(target, child)) {
|
|
3859
|
-
return true;
|
|
3860
|
-
}
|
|
3861
|
-
}
|
|
3862
|
-
}
|
|
3863
|
-
|
|
3864
|
-
return false;
|
|
3865
|
-
}
|
|
3866
|
-
const isDecent = checkIfDecent(event.target, this);
|
|
3867
|
-
if (isDecent && event.type === 'touchstart') {
|
|
3868
|
-
// if the target is on the bib, let it go for `click` event
|
|
3869
|
-
return;
|
|
3870
|
-
}
|
|
3871
|
-
event.preventDefault();
|
|
3872
|
-
event.stopImmediatePropagation();
|
|
3873
|
-
}
|
|
3874
|
-
|
|
3875
3823
|
// function that renders the HTML and CSS into the scope of the component
|
|
3876
3824
|
render() {
|
|
3877
3825
|
const classes = {
|
|
@@ -4712,6 +4660,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4712
4660
|
}
|
|
4713
4661
|
|
|
4714
4662
|
this.bibContent = this.floater.element.bib;
|
|
4663
|
+
this.bibContent.setAttribute('role', 'dialog');
|
|
4664
|
+
this.bibContent.setAttribute('aria-modal', 'true');
|
|
4665
|
+
this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
|
|
4715
4666
|
|
|
4716
4667
|
// Add the tag name as an attribute if it is different than the component name
|
|
4717
4668
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -3625,6 +3625,12 @@ class AuroDropdownBib extends LitElement {
|
|
|
3625
3625
|
reflect: true
|
|
3626
3626
|
},
|
|
3627
3627
|
|
|
3628
|
+
isVisible: {
|
|
3629
|
+
type: Boolean,
|
|
3630
|
+
reflect: true,
|
|
3631
|
+
attribute: 'data-show'
|
|
3632
|
+
},
|
|
3633
|
+
|
|
3628
3634
|
/**
|
|
3629
3635
|
* If declared, will apply all styles for the common theme.
|
|
3630
3636
|
*/
|
|
@@ -3716,10 +3722,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3716
3722
|
connectedCallback() {
|
|
3717
3723
|
super.connectedCallback();
|
|
3718
3724
|
|
|
3719
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
3720
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
3725
|
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
3724
3726
|
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
3725
3727
|
const bibTemplate = event.detail.element;
|
|
@@ -3749,60 +3751,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3749
3751
|
}));
|
|
3750
3752
|
}
|
|
3751
3753
|
|
|
3752
|
-
/**
|
|
3753
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
3754
|
-
* @param {Event} event - The touchmove event.
|
|
3755
|
-
* @returns {void}
|
|
3756
|
-
*/
|
|
3757
|
-
preventBodyScroll(event) {
|
|
3758
|
-
function checkIfDecent(target, parent) {
|
|
3759
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
3760
|
-
return false;
|
|
3761
|
-
}
|
|
3762
|
-
|
|
3763
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
3764
|
-
const assignedElements = parent.assignedElements();
|
|
3765
|
-
if (assignedElements) {
|
|
3766
|
-
for (const child of assignedElements) {
|
|
3767
|
-
if (checkIfDecent(target, child)) {
|
|
3768
|
-
return true;
|
|
3769
|
-
}
|
|
3770
|
-
}
|
|
3771
|
-
}
|
|
3772
|
-
return false;
|
|
3773
|
-
}
|
|
3774
|
-
|
|
3775
|
-
if (target === parent || parent.contains(target)) {
|
|
3776
|
-
return true;
|
|
3777
|
-
}
|
|
3778
|
-
|
|
3779
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
3780
|
-
return true;
|
|
3781
|
-
}
|
|
3782
|
-
|
|
3783
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
3784
|
-
return true;
|
|
3785
|
-
}
|
|
3786
|
-
|
|
3787
|
-
if (parent.children) {
|
|
3788
|
-
for (const child of parent.children) {
|
|
3789
|
-
if (checkIfDecent(target, child)) {
|
|
3790
|
-
return true;
|
|
3791
|
-
}
|
|
3792
|
-
}
|
|
3793
|
-
}
|
|
3794
|
-
|
|
3795
|
-
return false;
|
|
3796
|
-
}
|
|
3797
|
-
const isDecent = checkIfDecent(event.target, this);
|
|
3798
|
-
if (isDecent && event.type === 'touchstart') {
|
|
3799
|
-
// if the target is on the bib, let it go for `click` event
|
|
3800
|
-
return;
|
|
3801
|
-
}
|
|
3802
|
-
event.preventDefault();
|
|
3803
|
-
event.stopImmediatePropagation();
|
|
3804
|
-
}
|
|
3805
|
-
|
|
3806
3754
|
// function that renders the HTML and CSS into the scope of the component
|
|
3807
3755
|
render() {
|
|
3808
3756
|
const classes = {
|
|
@@ -4643,6 +4591,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4643
4591
|
}
|
|
4644
4592
|
|
|
4645
4593
|
this.bibContent = this.floater.element.bib;
|
|
4594
|
+
this.bibContent.setAttribute('role', 'dialog');
|
|
4595
|
+
this.bibContent.setAttribute('aria-modal', 'true');
|
|
4596
|
+
this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
|
|
4646
4597
|
|
|
4647
4598
|
// Add the tag name as an attribute if it is different than the component name
|
|
4648
4599
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -3625,6 +3625,12 @@ class AuroDropdownBib extends LitElement {
|
|
|
3625
3625
|
reflect: true
|
|
3626
3626
|
},
|
|
3627
3627
|
|
|
3628
|
+
isVisible: {
|
|
3629
|
+
type: Boolean,
|
|
3630
|
+
reflect: true,
|
|
3631
|
+
attribute: 'data-show'
|
|
3632
|
+
},
|
|
3633
|
+
|
|
3628
3634
|
/**
|
|
3629
3635
|
* If declared, will apply all styles for the common theme.
|
|
3630
3636
|
*/
|
|
@@ -3716,10 +3722,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3716
3722
|
connectedCallback() {
|
|
3717
3723
|
super.connectedCallback();
|
|
3718
3724
|
|
|
3719
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
3720
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
3725
|
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
3724
3726
|
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
3725
3727
|
const bibTemplate = event.detail.element;
|
|
@@ -3749,60 +3751,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3749
3751
|
}));
|
|
3750
3752
|
}
|
|
3751
3753
|
|
|
3752
|
-
/**
|
|
3753
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
3754
|
-
* @param {Event} event - The touchmove event.
|
|
3755
|
-
* @returns {void}
|
|
3756
|
-
*/
|
|
3757
|
-
preventBodyScroll(event) {
|
|
3758
|
-
function checkIfDecent(target, parent) {
|
|
3759
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
3760
|
-
return false;
|
|
3761
|
-
}
|
|
3762
|
-
|
|
3763
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
3764
|
-
const assignedElements = parent.assignedElements();
|
|
3765
|
-
if (assignedElements) {
|
|
3766
|
-
for (const child of assignedElements) {
|
|
3767
|
-
if (checkIfDecent(target, child)) {
|
|
3768
|
-
return true;
|
|
3769
|
-
}
|
|
3770
|
-
}
|
|
3771
|
-
}
|
|
3772
|
-
return false;
|
|
3773
|
-
}
|
|
3774
|
-
|
|
3775
|
-
if (target === parent || parent.contains(target)) {
|
|
3776
|
-
return true;
|
|
3777
|
-
}
|
|
3778
|
-
|
|
3779
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
3780
|
-
return true;
|
|
3781
|
-
}
|
|
3782
|
-
|
|
3783
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
3784
|
-
return true;
|
|
3785
|
-
}
|
|
3786
|
-
|
|
3787
|
-
if (parent.children) {
|
|
3788
|
-
for (const child of parent.children) {
|
|
3789
|
-
if (checkIfDecent(target, child)) {
|
|
3790
|
-
return true;
|
|
3791
|
-
}
|
|
3792
|
-
}
|
|
3793
|
-
}
|
|
3794
|
-
|
|
3795
|
-
return false;
|
|
3796
|
-
}
|
|
3797
|
-
const isDecent = checkIfDecent(event.target, this);
|
|
3798
|
-
if (isDecent && event.type === 'touchstart') {
|
|
3799
|
-
// if the target is on the bib, let it go for `click` event
|
|
3800
|
-
return;
|
|
3801
|
-
}
|
|
3802
|
-
event.preventDefault();
|
|
3803
|
-
event.stopImmediatePropagation();
|
|
3804
|
-
}
|
|
3805
|
-
|
|
3806
3754
|
// function that renders the HTML and CSS into the scope of the component
|
|
3807
3755
|
render() {
|
|
3808
3756
|
const classes = {
|
|
@@ -4643,6 +4591,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4643
4591
|
}
|
|
4644
4592
|
|
|
4645
4593
|
this.bibContent = this.floater.element.bib;
|
|
4594
|
+
this.bibContent.setAttribute('role', 'dialog');
|
|
4595
|
+
this.bibContent.setAttribute('aria-modal', 'true');
|
|
4596
|
+
this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
|
|
4646
4597
|
|
|
4647
4598
|
// Add the tag name as an attribute if it is different than the component name
|
|
4648
4599
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -5545,6 +5545,12 @@ class AuroDropdownBib extends i$2 {
|
|
|
5545
5545
|
reflect: true
|
|
5546
5546
|
},
|
|
5547
5547
|
|
|
5548
|
+
isVisible: {
|
|
5549
|
+
type: Boolean,
|
|
5550
|
+
reflect: true,
|
|
5551
|
+
attribute: 'data-show'
|
|
5552
|
+
},
|
|
5553
|
+
|
|
5548
5554
|
/**
|
|
5549
5555
|
* If declared, will apply all styles for the common theme.
|
|
5550
5556
|
*/
|
|
@@ -5636,10 +5642,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5636
5642
|
connectedCallback() {
|
|
5637
5643
|
super.connectedCallback();
|
|
5638
5644
|
|
|
5639
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
5640
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
5645
|
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
5644
5646
|
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
5645
5647
|
const bibTemplate = event.detail.element;
|
|
@@ -5669,60 +5671,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5669
5671
|
}));
|
|
5670
5672
|
}
|
|
5671
5673
|
|
|
5672
|
-
/**
|
|
5673
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
5674
|
-
* @param {Event} event - The touchmove event.
|
|
5675
|
-
* @returns {void}
|
|
5676
|
-
*/
|
|
5677
|
-
preventBodyScroll(event) {
|
|
5678
|
-
function checkIfDecent(target, parent) {
|
|
5679
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
5680
|
-
return false;
|
|
5681
|
-
}
|
|
5682
|
-
|
|
5683
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
5684
|
-
const assignedElements = parent.assignedElements();
|
|
5685
|
-
if (assignedElements) {
|
|
5686
|
-
for (const child of assignedElements) {
|
|
5687
|
-
if (checkIfDecent(target, child)) {
|
|
5688
|
-
return true;
|
|
5689
|
-
}
|
|
5690
|
-
}
|
|
5691
|
-
}
|
|
5692
|
-
return false;
|
|
5693
|
-
}
|
|
5694
|
-
|
|
5695
|
-
if (target === parent || parent.contains(target)) {
|
|
5696
|
-
return true;
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
5700
|
-
return true;
|
|
5701
|
-
}
|
|
5702
|
-
|
|
5703
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
5704
|
-
return true;
|
|
5705
|
-
}
|
|
5706
|
-
|
|
5707
|
-
if (parent.children) {
|
|
5708
|
-
for (const child of parent.children) {
|
|
5709
|
-
if (checkIfDecent(target, child)) {
|
|
5710
|
-
return true;
|
|
5711
|
-
}
|
|
5712
|
-
}
|
|
5713
|
-
}
|
|
5714
|
-
|
|
5715
|
-
return false;
|
|
5716
|
-
}
|
|
5717
|
-
const isDecent = checkIfDecent(event.target, this);
|
|
5718
|
-
if (isDecent && event.type === 'touchstart') {
|
|
5719
|
-
// if the target is on the bib, let it go for `click` event
|
|
5720
|
-
return;
|
|
5721
|
-
}
|
|
5722
|
-
event.preventDefault();
|
|
5723
|
-
event.stopImmediatePropagation();
|
|
5724
|
-
}
|
|
5725
|
-
|
|
5726
5674
|
// function that renders the HTML and CSS into the scope of the component
|
|
5727
5675
|
render() {
|
|
5728
5676
|
const classes = {
|
|
@@ -6563,6 +6511,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6563
6511
|
}
|
|
6564
6512
|
|
|
6565
6513
|
this.bibContent = this.floater.element.bib;
|
|
6514
|
+
this.bibContent.setAttribute('role', 'dialog');
|
|
6515
|
+
this.bibContent.setAttribute('aria-modal', 'true');
|
|
6516
|
+
this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
|
|
6566
6517
|
|
|
6567
6518
|
// Add the tag name as an attribute if it is different than the component name
|
|
6568
6519
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -5545,6 +5545,12 @@ class AuroDropdownBib extends i$2 {
|
|
|
5545
5545
|
reflect: true
|
|
5546
5546
|
},
|
|
5547
5547
|
|
|
5548
|
+
isVisible: {
|
|
5549
|
+
type: Boolean,
|
|
5550
|
+
reflect: true,
|
|
5551
|
+
attribute: 'data-show'
|
|
5552
|
+
},
|
|
5553
|
+
|
|
5548
5554
|
/**
|
|
5549
5555
|
* If declared, will apply all styles for the common theme.
|
|
5550
5556
|
*/
|
|
@@ -5636,10 +5642,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5636
5642
|
connectedCallback() {
|
|
5637
5643
|
super.connectedCallback();
|
|
5638
5644
|
|
|
5639
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
5640
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
5645
|
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
5644
5646
|
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
5645
5647
|
const bibTemplate = event.detail.element;
|
|
@@ -5669,60 +5671,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5669
5671
|
}));
|
|
5670
5672
|
}
|
|
5671
5673
|
|
|
5672
|
-
/**
|
|
5673
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
5674
|
-
* @param {Event} event - The touchmove event.
|
|
5675
|
-
* @returns {void}
|
|
5676
|
-
*/
|
|
5677
|
-
preventBodyScroll(event) {
|
|
5678
|
-
function checkIfDecent(target, parent) {
|
|
5679
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
5680
|
-
return false;
|
|
5681
|
-
}
|
|
5682
|
-
|
|
5683
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
5684
|
-
const assignedElements = parent.assignedElements();
|
|
5685
|
-
if (assignedElements) {
|
|
5686
|
-
for (const child of assignedElements) {
|
|
5687
|
-
if (checkIfDecent(target, child)) {
|
|
5688
|
-
return true;
|
|
5689
|
-
}
|
|
5690
|
-
}
|
|
5691
|
-
}
|
|
5692
|
-
return false;
|
|
5693
|
-
}
|
|
5694
|
-
|
|
5695
|
-
if (target === parent || parent.contains(target)) {
|
|
5696
|
-
return true;
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
5700
|
-
return true;
|
|
5701
|
-
}
|
|
5702
|
-
|
|
5703
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
5704
|
-
return true;
|
|
5705
|
-
}
|
|
5706
|
-
|
|
5707
|
-
if (parent.children) {
|
|
5708
|
-
for (const child of parent.children) {
|
|
5709
|
-
if (checkIfDecent(target, child)) {
|
|
5710
|
-
return true;
|
|
5711
|
-
}
|
|
5712
|
-
}
|
|
5713
|
-
}
|
|
5714
|
-
|
|
5715
|
-
return false;
|
|
5716
|
-
}
|
|
5717
|
-
const isDecent = checkIfDecent(event.target, this);
|
|
5718
|
-
if (isDecent && event.type === 'touchstart') {
|
|
5719
|
-
// if the target is on the bib, let it go for `click` event
|
|
5720
|
-
return;
|
|
5721
|
-
}
|
|
5722
|
-
event.preventDefault();
|
|
5723
|
-
event.stopImmediatePropagation();
|
|
5724
|
-
}
|
|
5725
|
-
|
|
5726
5674
|
// function that renders the HTML and CSS into the scope of the component
|
|
5727
5675
|
render() {
|
|
5728
5676
|
const classes = {
|
|
@@ -6563,6 +6511,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6563
6511
|
}
|
|
6564
6512
|
|
|
6565
6513
|
this.bibContent = this.floater.element.bib;
|
|
6514
|
+
this.bibContent.setAttribute('role', 'dialog');
|
|
6515
|
+
this.bibContent.setAttribute('aria-modal', 'true');
|
|
6516
|
+
this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
|
|
6566
6517
|
|
|
6567
6518
|
// Add the tag name as an attribute if it is different than the component name
|
|
6568
6519
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -5498,6 +5498,12 @@ class AuroDropdownBib extends LitElement {
|
|
|
5498
5498
|
reflect: true
|
|
5499
5499
|
},
|
|
5500
5500
|
|
|
5501
|
+
isVisible: {
|
|
5502
|
+
type: Boolean,
|
|
5503
|
+
reflect: true,
|
|
5504
|
+
attribute: 'data-show'
|
|
5505
|
+
},
|
|
5506
|
+
|
|
5501
5507
|
/**
|
|
5502
5508
|
* If declared, will apply all styles for the common theme.
|
|
5503
5509
|
*/
|
|
@@ -5589,10 +5595,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
5589
5595
|
connectedCallback() {
|
|
5590
5596
|
super.connectedCallback();
|
|
5591
5597
|
|
|
5592
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
5593
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
5598
|
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
5597
5599
|
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
5598
5600
|
const bibTemplate = event.detail.element;
|
|
@@ -5622,60 +5624,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
5622
5624
|
}));
|
|
5623
5625
|
}
|
|
5624
5626
|
|
|
5625
|
-
/**
|
|
5626
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
5627
|
-
* @param {Event} event - The touchmove event.
|
|
5628
|
-
* @returns {void}
|
|
5629
|
-
*/
|
|
5630
|
-
preventBodyScroll(event) {
|
|
5631
|
-
function checkIfDecent(target, parent) {
|
|
5632
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
5633
|
-
return false;
|
|
5634
|
-
}
|
|
5635
|
-
|
|
5636
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
5637
|
-
const assignedElements = parent.assignedElements();
|
|
5638
|
-
if (assignedElements) {
|
|
5639
|
-
for (const child of assignedElements) {
|
|
5640
|
-
if (checkIfDecent(target, child)) {
|
|
5641
|
-
return true;
|
|
5642
|
-
}
|
|
5643
|
-
}
|
|
5644
|
-
}
|
|
5645
|
-
return false;
|
|
5646
|
-
}
|
|
5647
|
-
|
|
5648
|
-
if (target === parent || parent.contains(target)) {
|
|
5649
|
-
return true;
|
|
5650
|
-
}
|
|
5651
|
-
|
|
5652
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
5653
|
-
return true;
|
|
5654
|
-
}
|
|
5655
|
-
|
|
5656
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
5657
|
-
return true;
|
|
5658
|
-
}
|
|
5659
|
-
|
|
5660
|
-
if (parent.children) {
|
|
5661
|
-
for (const child of parent.children) {
|
|
5662
|
-
if (checkIfDecent(target, child)) {
|
|
5663
|
-
return true;
|
|
5664
|
-
}
|
|
5665
|
-
}
|
|
5666
|
-
}
|
|
5667
|
-
|
|
5668
|
-
return false;
|
|
5669
|
-
}
|
|
5670
|
-
const isDecent = checkIfDecent(event.target, this);
|
|
5671
|
-
if (isDecent && event.type === 'touchstart') {
|
|
5672
|
-
// if the target is on the bib, let it go for `click` event
|
|
5673
|
-
return;
|
|
5674
|
-
}
|
|
5675
|
-
event.preventDefault();
|
|
5676
|
-
event.stopImmediatePropagation();
|
|
5677
|
-
}
|
|
5678
|
-
|
|
5679
5627
|
// function that renders the HTML and CSS into the scope of the component
|
|
5680
5628
|
render() {
|
|
5681
5629
|
const classes = {
|
|
@@ -6516,6 +6464,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6516
6464
|
}
|
|
6517
6465
|
|
|
6518
6466
|
this.bibContent = this.floater.element.bib;
|
|
6467
|
+
this.bibContent.setAttribute('role', 'dialog');
|
|
6468
|
+
this.bibContent.setAttribute('aria-modal', 'true');
|
|
6469
|
+
this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
|
|
6519
6470
|
|
|
6520
6471
|
// Add the tag name as an attribute if it is different than the component name
|
|
6521
6472
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|