@aurodesignsystem-dev/auro-formkit 0.0.0-pr740.4 → 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 +3 -69
- package/components/combobox/demo/index.min.js +3 -69
- package/components/combobox/dist/index.js +3 -69
- package/components/combobox/dist/registered.js +3 -69
- package/components/counter/demo/api.min.js +3 -69
- package/components/counter/demo/index.min.js +3 -69
- package/components/counter/dist/index.js +3 -69
- package/components/counter/dist/registered.js +3 -69
- package/components/datepicker/demo/api.min.js +3 -69
- package/components/datepicker/demo/index.min.js +3 -69
- package/components/datepicker/dist/index.js +3 -69
- package/components/datepicker/dist/registered.js +3 -69
- package/components/dropdown/demo/api.min.js +3 -69
- package/components/dropdown/demo/index.min.js +3 -69
- package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -6
- package/components/dropdown/dist/index.js +3 -69
- package/components/dropdown/dist/registered.js +3 -69
- package/components/select/demo/api.min.js +3 -69
- package/components/select/demo/index.min.js +3 -69
- package/components/select/dist/index.js +3 -69
- package/components/select/dist/registered.js +3 -69
- package/package.json +1 -1
|
@@ -3928,18 +3928,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3928
3928
|
}
|
|
3929
3929
|
}
|
|
3930
3930
|
}
|
|
3931
|
-
|
|
3932
|
-
if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
|
|
3933
|
-
if (this.isFullscreen && this.isVisible) {
|
|
3934
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
3935
|
-
this.addEventListener('touchend', this.preventBodyScroll);
|
|
3936
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
3937
|
-
} else {
|
|
3938
|
-
this.removeEventListener('touchstart', this.preventBodyScroll);
|
|
3939
|
-
this.removeEventListener('touchend', this.preventBodyScroll);
|
|
3940
|
-
this.removeEventListener('touchmove', this.preventBodyScroll);
|
|
3941
|
-
}
|
|
3942
|
-
}
|
|
3943
3931
|
}
|
|
3944
3932
|
|
|
3945
3933
|
connectedCallback() {
|
|
@@ -3964,8 +3952,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3964
3952
|
firstUpdated(changedProperties) {
|
|
3965
3953
|
super.firstUpdated(changedProperties);
|
|
3966
3954
|
|
|
3967
|
-
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
3968
|
-
|
|
3969
3955
|
// Dispatch a custom event when the component is connected
|
|
3970
3956
|
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
3971
3957
|
bubbles: true,
|
|
@@ -3976,61 +3962,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3976
3962
|
}));
|
|
3977
3963
|
}
|
|
3978
3964
|
|
|
3979
|
-
/**
|
|
3980
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
3981
|
-
* @param {Event} event - The touchmove event.
|
|
3982
|
-
* @returns {void}
|
|
3983
|
-
*/
|
|
3984
|
-
preventBodyScroll(event) {
|
|
3985
|
-
function checkIfDecent(target, parent) {
|
|
3986
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
3987
|
-
return false;
|
|
3988
|
-
}
|
|
3989
|
-
|
|
3990
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
3991
|
-
const assignedElements = parent.assignedElements();
|
|
3992
|
-
if (assignedElements) {
|
|
3993
|
-
for (const child of assignedElements) {
|
|
3994
|
-
if (checkIfDecent(target, child)) {
|
|
3995
|
-
return true;
|
|
3996
|
-
}
|
|
3997
|
-
}
|
|
3998
|
-
}
|
|
3999
|
-
return false;
|
|
4000
|
-
}
|
|
4001
|
-
|
|
4002
|
-
if (parent.contains(target)) {
|
|
4003
|
-
return true;
|
|
4004
|
-
}
|
|
4005
|
-
|
|
4006
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
4007
|
-
return true;
|
|
4008
|
-
}
|
|
4009
|
-
|
|
4010
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
4011
|
-
return true;
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
if (parent.children) {
|
|
4015
|
-
for (const child of parent.children) {
|
|
4016
|
-
if (checkIfDecent(target, child)) {
|
|
4017
|
-
return true;
|
|
4018
|
-
}
|
|
4019
|
-
}
|
|
4020
|
-
}
|
|
4021
|
-
|
|
4022
|
-
return false;
|
|
4023
|
-
}
|
|
4024
|
-
const isDecent = checkIfDecent(event.target, this.bibTemplate);
|
|
4025
|
-
if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
|
|
4026
|
-
// if the target is on the bib, let it go for `click` event
|
|
4027
|
-
return;
|
|
4028
|
-
}
|
|
4029
|
-
|
|
4030
|
-
event.preventDefault();
|
|
4031
|
-
event.stopImmediatePropagation();
|
|
4032
|
-
}
|
|
4033
|
-
|
|
4034
3965
|
// function that renders the HTML and CSS into the scope of the component
|
|
4035
3966
|
render() {
|
|
4036
3967
|
const classes = {
|
|
@@ -4871,6 +4802,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4871
4802
|
}
|
|
4872
4803
|
|
|
4873
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');
|
|
4874
4808
|
|
|
4875
4809
|
// Add the tag name as an attribute if it is different than the component name
|
|
4876
4810
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -3786,18 +3786,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
3788
|
}
|
|
3789
|
-
|
|
3790
|
-
if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
|
|
3791
|
-
if (this.isFullscreen && this.isVisible) {
|
|
3792
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
3793
|
-
this.addEventListener('touchend', this.preventBodyScroll);
|
|
3794
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
3795
|
-
} else {
|
|
3796
|
-
this.removeEventListener('touchstart', this.preventBodyScroll);
|
|
3797
|
-
this.removeEventListener('touchend', this.preventBodyScroll);
|
|
3798
|
-
this.removeEventListener('touchmove', this.preventBodyScroll);
|
|
3799
|
-
}
|
|
3800
|
-
}
|
|
3801
3789
|
}
|
|
3802
3790
|
|
|
3803
3791
|
connectedCallback() {
|
|
@@ -3822,8 +3810,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3822
3810
|
firstUpdated(changedProperties) {
|
|
3823
3811
|
super.firstUpdated(changedProperties);
|
|
3824
3812
|
|
|
3825
|
-
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
3826
|
-
|
|
3827
3813
|
// Dispatch a custom event when the component is connected
|
|
3828
3814
|
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
3829
3815
|
bubbles: true,
|
|
@@ -3834,61 +3820,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
3834
3820
|
}));
|
|
3835
3821
|
}
|
|
3836
3822
|
|
|
3837
|
-
/**
|
|
3838
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
3839
|
-
* @param {Event} event - The touchmove event.
|
|
3840
|
-
* @returns {void}
|
|
3841
|
-
*/
|
|
3842
|
-
preventBodyScroll(event) {
|
|
3843
|
-
function checkIfDecent(target, parent) {
|
|
3844
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
3845
|
-
return false;
|
|
3846
|
-
}
|
|
3847
|
-
|
|
3848
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
3849
|
-
const assignedElements = parent.assignedElements();
|
|
3850
|
-
if (assignedElements) {
|
|
3851
|
-
for (const child of assignedElements) {
|
|
3852
|
-
if (checkIfDecent(target, child)) {
|
|
3853
|
-
return true;
|
|
3854
|
-
}
|
|
3855
|
-
}
|
|
3856
|
-
}
|
|
3857
|
-
return false;
|
|
3858
|
-
}
|
|
3859
|
-
|
|
3860
|
-
if (parent.contains(target)) {
|
|
3861
|
-
return true;
|
|
3862
|
-
}
|
|
3863
|
-
|
|
3864
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
3865
|
-
return true;
|
|
3866
|
-
}
|
|
3867
|
-
|
|
3868
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
3869
|
-
return true;
|
|
3870
|
-
}
|
|
3871
|
-
|
|
3872
|
-
if (parent.children) {
|
|
3873
|
-
for (const child of parent.children) {
|
|
3874
|
-
if (checkIfDecent(target, child)) {
|
|
3875
|
-
return true;
|
|
3876
|
-
}
|
|
3877
|
-
}
|
|
3878
|
-
}
|
|
3879
|
-
|
|
3880
|
-
return false;
|
|
3881
|
-
}
|
|
3882
|
-
const isDecent = checkIfDecent(event.target, this.bibTemplate);
|
|
3883
|
-
if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
|
|
3884
|
-
// if the target is on the bib, let it go for `click` event
|
|
3885
|
-
return;
|
|
3886
|
-
}
|
|
3887
|
-
|
|
3888
|
-
event.preventDefault();
|
|
3889
|
-
event.stopImmediatePropagation();
|
|
3890
|
-
}
|
|
3891
|
-
|
|
3892
3823
|
// function that renders the HTML and CSS into the scope of the component
|
|
3893
3824
|
render() {
|
|
3894
3825
|
const classes = {
|
|
@@ -4729,6 +4660,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4729
4660
|
}
|
|
4730
4661
|
|
|
4731
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');
|
|
4732
4666
|
|
|
4733
4667
|
// Add the tag name as an attribute if it is different than the component name
|
|
4734
4668
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -3717,18 +3717,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3717
3717
|
}
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
|
-
|
|
3721
|
-
if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
|
|
3722
|
-
if (this.isFullscreen && this.isVisible) {
|
|
3723
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
3724
|
-
this.addEventListener('touchend', this.preventBodyScroll);
|
|
3725
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
3726
|
-
} else {
|
|
3727
|
-
this.removeEventListener('touchstart', this.preventBodyScroll);
|
|
3728
|
-
this.removeEventListener('touchend', this.preventBodyScroll);
|
|
3729
|
-
this.removeEventListener('touchmove', this.preventBodyScroll);
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3732
3720
|
}
|
|
3733
3721
|
|
|
3734
3722
|
connectedCallback() {
|
|
@@ -3753,8 +3741,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3753
3741
|
firstUpdated(changedProperties) {
|
|
3754
3742
|
super.firstUpdated(changedProperties);
|
|
3755
3743
|
|
|
3756
|
-
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
3757
|
-
|
|
3758
3744
|
// Dispatch a custom event when the component is connected
|
|
3759
3745
|
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
3760
3746
|
bubbles: true,
|
|
@@ -3765,61 +3751,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3765
3751
|
}));
|
|
3766
3752
|
}
|
|
3767
3753
|
|
|
3768
|
-
/**
|
|
3769
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
3770
|
-
* @param {Event} event - The touchmove event.
|
|
3771
|
-
* @returns {void}
|
|
3772
|
-
*/
|
|
3773
|
-
preventBodyScroll(event) {
|
|
3774
|
-
function checkIfDecent(target, parent) {
|
|
3775
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
3776
|
-
return false;
|
|
3777
|
-
}
|
|
3778
|
-
|
|
3779
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
3780
|
-
const assignedElements = parent.assignedElements();
|
|
3781
|
-
if (assignedElements) {
|
|
3782
|
-
for (const child of assignedElements) {
|
|
3783
|
-
if (checkIfDecent(target, child)) {
|
|
3784
|
-
return true;
|
|
3785
|
-
}
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
return false;
|
|
3789
|
-
}
|
|
3790
|
-
|
|
3791
|
-
if (parent.contains(target)) {
|
|
3792
|
-
return true;
|
|
3793
|
-
}
|
|
3794
|
-
|
|
3795
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
3796
|
-
return true;
|
|
3797
|
-
}
|
|
3798
|
-
|
|
3799
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
3800
|
-
return true;
|
|
3801
|
-
}
|
|
3802
|
-
|
|
3803
|
-
if (parent.children) {
|
|
3804
|
-
for (const child of parent.children) {
|
|
3805
|
-
if (checkIfDecent(target, child)) {
|
|
3806
|
-
return true;
|
|
3807
|
-
}
|
|
3808
|
-
}
|
|
3809
|
-
}
|
|
3810
|
-
|
|
3811
|
-
return false;
|
|
3812
|
-
}
|
|
3813
|
-
const isDecent = checkIfDecent(event.target, this.bibTemplate);
|
|
3814
|
-
if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
|
|
3815
|
-
// if the target is on the bib, let it go for `click` event
|
|
3816
|
-
return;
|
|
3817
|
-
}
|
|
3818
|
-
|
|
3819
|
-
event.preventDefault();
|
|
3820
|
-
event.stopImmediatePropagation();
|
|
3821
|
-
}
|
|
3822
|
-
|
|
3823
3754
|
// function that renders the HTML and CSS into the scope of the component
|
|
3824
3755
|
render() {
|
|
3825
3756
|
const classes = {
|
|
@@ -4660,6 +4591,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4660
4591
|
}
|
|
4661
4592
|
|
|
4662
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');
|
|
4663
4597
|
|
|
4664
4598
|
// Add the tag name as an attribute if it is different than the component name
|
|
4665
4599
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -3717,18 +3717,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3717
3717
|
}
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
|
-
|
|
3721
|
-
if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
|
|
3722
|
-
if (this.isFullscreen && this.isVisible) {
|
|
3723
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
3724
|
-
this.addEventListener('touchend', this.preventBodyScroll);
|
|
3725
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
3726
|
-
} else {
|
|
3727
|
-
this.removeEventListener('touchstart', this.preventBodyScroll);
|
|
3728
|
-
this.removeEventListener('touchend', this.preventBodyScroll);
|
|
3729
|
-
this.removeEventListener('touchmove', this.preventBodyScroll);
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3732
3720
|
}
|
|
3733
3721
|
|
|
3734
3722
|
connectedCallback() {
|
|
@@ -3753,8 +3741,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3753
3741
|
firstUpdated(changedProperties) {
|
|
3754
3742
|
super.firstUpdated(changedProperties);
|
|
3755
3743
|
|
|
3756
|
-
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
3757
|
-
|
|
3758
3744
|
// Dispatch a custom event when the component is connected
|
|
3759
3745
|
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
3760
3746
|
bubbles: true,
|
|
@@ -3765,61 +3751,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
3765
3751
|
}));
|
|
3766
3752
|
}
|
|
3767
3753
|
|
|
3768
|
-
/**
|
|
3769
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
3770
|
-
* @param {Event} event - The touchmove event.
|
|
3771
|
-
* @returns {void}
|
|
3772
|
-
*/
|
|
3773
|
-
preventBodyScroll(event) {
|
|
3774
|
-
function checkIfDecent(target, parent) {
|
|
3775
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
3776
|
-
return false;
|
|
3777
|
-
}
|
|
3778
|
-
|
|
3779
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
3780
|
-
const assignedElements = parent.assignedElements();
|
|
3781
|
-
if (assignedElements) {
|
|
3782
|
-
for (const child of assignedElements) {
|
|
3783
|
-
if (checkIfDecent(target, child)) {
|
|
3784
|
-
return true;
|
|
3785
|
-
}
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
return false;
|
|
3789
|
-
}
|
|
3790
|
-
|
|
3791
|
-
if (parent.contains(target)) {
|
|
3792
|
-
return true;
|
|
3793
|
-
}
|
|
3794
|
-
|
|
3795
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
3796
|
-
return true;
|
|
3797
|
-
}
|
|
3798
|
-
|
|
3799
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
3800
|
-
return true;
|
|
3801
|
-
}
|
|
3802
|
-
|
|
3803
|
-
if (parent.children) {
|
|
3804
|
-
for (const child of parent.children) {
|
|
3805
|
-
if (checkIfDecent(target, child)) {
|
|
3806
|
-
return true;
|
|
3807
|
-
}
|
|
3808
|
-
}
|
|
3809
|
-
}
|
|
3810
|
-
|
|
3811
|
-
return false;
|
|
3812
|
-
}
|
|
3813
|
-
const isDecent = checkIfDecent(event.target, this.bibTemplate);
|
|
3814
|
-
if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
|
|
3815
|
-
// if the target is on the bib, let it go for `click` event
|
|
3816
|
-
return;
|
|
3817
|
-
}
|
|
3818
|
-
|
|
3819
|
-
event.preventDefault();
|
|
3820
|
-
event.stopImmediatePropagation();
|
|
3821
|
-
}
|
|
3822
|
-
|
|
3823
3754
|
// function that renders the HTML and CSS into the scope of the component
|
|
3824
3755
|
render() {
|
|
3825
3756
|
const classes = {
|
|
@@ -4660,6 +4591,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4660
4591
|
}
|
|
4661
4592
|
|
|
4662
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');
|
|
4663
4597
|
|
|
4664
4598
|
// Add the tag name as an attribute if it is different than the component name
|
|
4665
4599
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -5637,18 +5637,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5637
5637
|
}
|
|
5638
5638
|
}
|
|
5639
5639
|
}
|
|
5640
|
-
|
|
5641
|
-
if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
|
|
5642
|
-
if (this.isFullscreen && this.isVisible) {
|
|
5643
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
5644
|
-
this.addEventListener('touchend', this.preventBodyScroll);
|
|
5645
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
5646
|
-
} else {
|
|
5647
|
-
this.removeEventListener('touchstart', this.preventBodyScroll);
|
|
5648
|
-
this.removeEventListener('touchend', this.preventBodyScroll);
|
|
5649
|
-
this.removeEventListener('touchmove', this.preventBodyScroll);
|
|
5650
|
-
}
|
|
5651
|
-
}
|
|
5652
5640
|
}
|
|
5653
5641
|
|
|
5654
5642
|
connectedCallback() {
|
|
@@ -5673,8 +5661,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5673
5661
|
firstUpdated(changedProperties) {
|
|
5674
5662
|
super.firstUpdated(changedProperties);
|
|
5675
5663
|
|
|
5676
|
-
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
5677
|
-
|
|
5678
5664
|
// Dispatch a custom event when the component is connected
|
|
5679
5665
|
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
5680
5666
|
bubbles: true,
|
|
@@ -5685,61 +5671,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5685
5671
|
}));
|
|
5686
5672
|
}
|
|
5687
5673
|
|
|
5688
|
-
/**
|
|
5689
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
5690
|
-
* @param {Event} event - The touchmove event.
|
|
5691
|
-
* @returns {void}
|
|
5692
|
-
*/
|
|
5693
|
-
preventBodyScroll(event) {
|
|
5694
|
-
function checkIfDecent(target, parent) {
|
|
5695
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
5696
|
-
return false;
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
5700
|
-
const assignedElements = parent.assignedElements();
|
|
5701
|
-
if (assignedElements) {
|
|
5702
|
-
for (const child of assignedElements) {
|
|
5703
|
-
if (checkIfDecent(target, child)) {
|
|
5704
|
-
return true;
|
|
5705
|
-
}
|
|
5706
|
-
}
|
|
5707
|
-
}
|
|
5708
|
-
return false;
|
|
5709
|
-
}
|
|
5710
|
-
|
|
5711
|
-
if (parent.contains(target)) {
|
|
5712
|
-
return true;
|
|
5713
|
-
}
|
|
5714
|
-
|
|
5715
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
5716
|
-
return true;
|
|
5717
|
-
}
|
|
5718
|
-
|
|
5719
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
5720
|
-
return true;
|
|
5721
|
-
}
|
|
5722
|
-
|
|
5723
|
-
if (parent.children) {
|
|
5724
|
-
for (const child of parent.children) {
|
|
5725
|
-
if (checkIfDecent(target, child)) {
|
|
5726
|
-
return true;
|
|
5727
|
-
}
|
|
5728
|
-
}
|
|
5729
|
-
}
|
|
5730
|
-
|
|
5731
|
-
return false;
|
|
5732
|
-
}
|
|
5733
|
-
const isDecent = checkIfDecent(event.target, this.bibTemplate);
|
|
5734
|
-
if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
|
|
5735
|
-
// if the target is on the bib, let it go for `click` event
|
|
5736
|
-
return;
|
|
5737
|
-
}
|
|
5738
|
-
|
|
5739
|
-
event.preventDefault();
|
|
5740
|
-
event.stopImmediatePropagation();
|
|
5741
|
-
}
|
|
5742
|
-
|
|
5743
5674
|
// function that renders the HTML and CSS into the scope of the component
|
|
5744
5675
|
render() {
|
|
5745
5676
|
const classes = {
|
|
@@ -6580,6 +6511,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6580
6511
|
}
|
|
6581
6512
|
|
|
6582
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');
|
|
6583
6517
|
|
|
6584
6518
|
// Add the tag name as an attribute if it is different than the component name
|
|
6585
6519
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -5637,18 +5637,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5637
5637
|
}
|
|
5638
5638
|
}
|
|
5639
5639
|
}
|
|
5640
|
-
|
|
5641
|
-
if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
|
|
5642
|
-
if (this.isFullscreen && this.isVisible) {
|
|
5643
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
5644
|
-
this.addEventListener('touchend', this.preventBodyScroll);
|
|
5645
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
5646
|
-
} else {
|
|
5647
|
-
this.removeEventListener('touchstart', this.preventBodyScroll);
|
|
5648
|
-
this.removeEventListener('touchend', this.preventBodyScroll);
|
|
5649
|
-
this.removeEventListener('touchmove', this.preventBodyScroll);
|
|
5650
|
-
}
|
|
5651
|
-
}
|
|
5652
5640
|
}
|
|
5653
5641
|
|
|
5654
5642
|
connectedCallback() {
|
|
@@ -5673,8 +5661,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5673
5661
|
firstUpdated(changedProperties) {
|
|
5674
5662
|
super.firstUpdated(changedProperties);
|
|
5675
5663
|
|
|
5676
|
-
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
5677
|
-
|
|
5678
5664
|
// Dispatch a custom event when the component is connected
|
|
5679
5665
|
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
5680
5666
|
bubbles: true,
|
|
@@ -5685,61 +5671,6 @@ class AuroDropdownBib extends i$2 {
|
|
|
5685
5671
|
}));
|
|
5686
5672
|
}
|
|
5687
5673
|
|
|
5688
|
-
/**
|
|
5689
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
5690
|
-
* @param {Event} event - The touchmove event.
|
|
5691
|
-
* @returns {void}
|
|
5692
|
-
*/
|
|
5693
|
-
preventBodyScroll(event) {
|
|
5694
|
-
function checkIfDecent(target, parent) {
|
|
5695
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
5696
|
-
return false;
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
5700
|
-
const assignedElements = parent.assignedElements();
|
|
5701
|
-
if (assignedElements) {
|
|
5702
|
-
for (const child of assignedElements) {
|
|
5703
|
-
if (checkIfDecent(target, child)) {
|
|
5704
|
-
return true;
|
|
5705
|
-
}
|
|
5706
|
-
}
|
|
5707
|
-
}
|
|
5708
|
-
return false;
|
|
5709
|
-
}
|
|
5710
|
-
|
|
5711
|
-
if (parent.contains(target)) {
|
|
5712
|
-
return true;
|
|
5713
|
-
}
|
|
5714
|
-
|
|
5715
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
5716
|
-
return true;
|
|
5717
|
-
}
|
|
5718
|
-
|
|
5719
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
5720
|
-
return true;
|
|
5721
|
-
}
|
|
5722
|
-
|
|
5723
|
-
if (parent.children) {
|
|
5724
|
-
for (const child of parent.children) {
|
|
5725
|
-
if (checkIfDecent(target, child)) {
|
|
5726
|
-
return true;
|
|
5727
|
-
}
|
|
5728
|
-
}
|
|
5729
|
-
}
|
|
5730
|
-
|
|
5731
|
-
return false;
|
|
5732
|
-
}
|
|
5733
|
-
const isDecent = checkIfDecent(event.target, this.bibTemplate);
|
|
5734
|
-
if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
|
|
5735
|
-
// if the target is on the bib, let it go for `click` event
|
|
5736
|
-
return;
|
|
5737
|
-
}
|
|
5738
|
-
|
|
5739
|
-
event.preventDefault();
|
|
5740
|
-
event.stopImmediatePropagation();
|
|
5741
|
-
}
|
|
5742
|
-
|
|
5743
5674
|
// function that renders the HTML and CSS into the scope of the component
|
|
5744
5675
|
render() {
|
|
5745
5676
|
const classes = {
|
|
@@ -6580,6 +6511,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6580
6511
|
}
|
|
6581
6512
|
|
|
6582
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');
|
|
6583
6517
|
|
|
6584
6518
|
// Add the tag name as an attribute if it is different than the component name
|
|
6585
6519
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
@@ -5590,18 +5590,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
5590
5590
|
}
|
|
5591
5591
|
}
|
|
5592
5592
|
}
|
|
5593
|
-
|
|
5594
|
-
if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
|
|
5595
|
-
if (this.isFullscreen && this.isVisible) {
|
|
5596
|
-
this.addEventListener('touchstart', this.preventBodyScroll);
|
|
5597
|
-
this.addEventListener('touchend', this.preventBodyScroll);
|
|
5598
|
-
this.addEventListener('touchmove', this.preventBodyScroll);
|
|
5599
|
-
} else {
|
|
5600
|
-
this.removeEventListener('touchstart', this.preventBodyScroll);
|
|
5601
|
-
this.removeEventListener('touchend', this.preventBodyScroll);
|
|
5602
|
-
this.removeEventListener('touchmove', this.preventBodyScroll);
|
|
5603
|
-
}
|
|
5604
|
-
}
|
|
5605
5593
|
}
|
|
5606
5594
|
|
|
5607
5595
|
connectedCallback() {
|
|
@@ -5626,8 +5614,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
5626
5614
|
firstUpdated(changedProperties) {
|
|
5627
5615
|
super.firstUpdated(changedProperties);
|
|
5628
5616
|
|
|
5629
|
-
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
5630
|
-
|
|
5631
5617
|
// Dispatch a custom event when the component is connected
|
|
5632
5618
|
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
5633
5619
|
bubbles: true,
|
|
@@ -5638,61 +5624,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
5638
5624
|
}));
|
|
5639
5625
|
}
|
|
5640
5626
|
|
|
5641
|
-
/**
|
|
5642
|
-
* Prevents scrolling of the body when touching empty areas of the component.
|
|
5643
|
-
* @param {Event} event - The touchmove event.
|
|
5644
|
-
* @returns {void}
|
|
5645
|
-
*/
|
|
5646
|
-
preventBodyScroll(event) {
|
|
5647
|
-
function checkIfDecent(target, parent) {
|
|
5648
|
-
if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
|
|
5649
|
-
return false;
|
|
5650
|
-
}
|
|
5651
|
-
|
|
5652
|
-
if (parent.tagName.toLowerCase() === 'slot') {
|
|
5653
|
-
const assignedElements = parent.assignedElements();
|
|
5654
|
-
if (assignedElements) {
|
|
5655
|
-
for (const child of assignedElements) {
|
|
5656
|
-
if (checkIfDecent(target, child)) {
|
|
5657
|
-
return true;
|
|
5658
|
-
}
|
|
5659
|
-
}
|
|
5660
|
-
}
|
|
5661
|
-
return false;
|
|
5662
|
-
}
|
|
5663
|
-
|
|
5664
|
-
if (parent.contains(target)) {
|
|
5665
|
-
return true;
|
|
5666
|
-
}
|
|
5667
|
-
|
|
5668
|
-
if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
|
|
5669
|
-
return true;
|
|
5670
|
-
}
|
|
5671
|
-
|
|
5672
|
-
if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
|
|
5673
|
-
return true;
|
|
5674
|
-
}
|
|
5675
|
-
|
|
5676
|
-
if (parent.children) {
|
|
5677
|
-
for (const child of parent.children) {
|
|
5678
|
-
if (checkIfDecent(target, child)) {
|
|
5679
|
-
return true;
|
|
5680
|
-
}
|
|
5681
|
-
}
|
|
5682
|
-
}
|
|
5683
|
-
|
|
5684
|
-
return false;
|
|
5685
|
-
}
|
|
5686
|
-
const isDecent = checkIfDecent(event.target, this.bibTemplate);
|
|
5687
|
-
if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
|
|
5688
|
-
// if the target is on the bib, let it go for `click` event
|
|
5689
|
-
return;
|
|
5690
|
-
}
|
|
5691
|
-
|
|
5692
|
-
event.preventDefault();
|
|
5693
|
-
event.stopImmediatePropagation();
|
|
5694
|
-
}
|
|
5695
|
-
|
|
5696
5627
|
// function that renders the HTML and CSS into the scope of the component
|
|
5697
5628
|
render() {
|
|
5698
5629
|
const classes = {
|
|
@@ -6533,6 +6464,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6533
6464
|
}
|
|
6534
6465
|
|
|
6535
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');
|
|
6536
6470
|
|
|
6537
6471
|
// Add the tag name as an attribute if it is different than the component name
|
|
6538
6472
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|