@eturnity/eturnity_reusable_components 8.7.5-qa-16-02-21.2 → 8.7.5-qa-16-02-21.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "8.7.5-qa-16-02-21.2",
3
+ "version": "8.7.5-qa-16-02-21.4",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -142,6 +142,7 @@
142
142
  ? 'black'
143
143
  : 'white'
144
144
  "
145
+ class="rc-select-dropdown"
145
146
  :dropdown-position="dropdownPosition"
146
147
  :font-color="
147
148
  dropdownFontColor ||
@@ -161,6 +162,7 @@
161
162
  :hovered-index="hoveredIndex"
162
163
  :hovered-value="hoveredValue"
163
164
  :is-active="isActive"
165
+ :is-parent-modal="isParentModal"
164
166
  :min-width="minWidth"
165
167
  :no-relative="noRelative"
166
168
  :option-width="getOptionWidth"
@@ -207,7 +209,7 @@
207
209
  // </template>
208
210
  // </Select>
209
211
 
210
- import { Teleport } from 'vue'
212
+ import { Teleport, inject } from 'vue'
211
213
  import styled from 'vue3-styled-components'
212
214
  import InfoText from '../../infoText'
213
215
  import Icon from '../../icon'
@@ -391,10 +393,12 @@
391
393
  selectedValue: Number | String,
392
394
  noRelative: Boolean,
393
395
  minWidth: String,
396
+ isParentModal: Boolean,
394
397
  }
395
398
  const SelectDropdown = styled('div', selectDropdownAttrs)`
396
399
  box-sizing: border-box;
397
- z-index: ${(props) => (props.isActive ? '2' : '99999')};
400
+ z-index: ${(props) =>
401
+ props.isActive ? '2' : props.isParentModal ? '9999999' : '99999'};
398
402
  position: absolute;
399
403
  top: 0px;
400
404
  left: 0px;
@@ -668,6 +672,13 @@
668
672
  animationFrameId: null,
669
673
  }
670
674
  },
675
+ setup() {
676
+ const rcModalRef = inject('rcModalRef')
677
+
678
+ return {
679
+ rcModalRef,
680
+ }
681
+ },
671
682
  computed: {
672
683
  optionLength() {
673
684
  if (this.isDropdownOpen) {
@@ -723,6 +734,9 @@
723
734
  /windows phone/i.test(userAgent)
724
735
  )
725
736
  },
737
+ isParentModal() {
738
+ return !!this.rcModalRef
739
+ },
726
740
  },
727
741
  watch: {
728
742
  value(val) {
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <PageWrapper
3
3
  v-if="isOpen"
4
+ ref="rcModalRef"
4
5
  :backdrop="backdrop"
5
6
  :is-open="isOpen"
6
7
  :position="position"
@@ -30,6 +31,7 @@
30
31
  // <div>Data....</div>
31
32
  // </modal>
32
33
 
34
+ import { ref, provide } from 'vue'
33
35
  import styled from 'vue3-styled-components'
34
36
  import CloseButton from '../../buttons/closeButton'
35
37
  import Spinner from '../../spinner'
@@ -48,13 +50,13 @@
48
50
  props.backdrop == 'dark'
49
51
  ? 'rgba(0, 0, 0, 0.4)'
50
52
  : 'rgba(255, 255, 255, 0.9)'};
51
- z-index: 99999;
53
+ z-index: 9999999;
52
54
  overflow: auto;
53
55
 
54
- @media (max-width: 425px) {
55
- background: white;
56
- }
57
- `
56
+ @media (max-width: 425px) {
57
+ background: white;
58
+ }
59
+ `
58
60
 
59
61
  const modalContainerAttrs = { overflow: String }
60
62
  const ModalContainer = styled('div', modalContainerAttrs)`
@@ -148,6 +150,14 @@
148
150
  default: 'auto',
149
151
  },
150
152
  },
153
+ setup() {
154
+ const rcModalRef = ref(null)
155
+ provide('rcModalRef', rcModalRef)
156
+
157
+ return {
158
+ rcModalRef,
159
+ }
160
+ },
151
161
  watch: {
152
162
  isOpen: {
153
163
  immediate: true,