@eturnity/eturnity_reusable_components 7.51.15-qa-elisee-8.4.0 → 8.4.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
<svg fill="none" height="16" viewbox="14 12 12 16" width="
|
1
|
+
<svg fill="none" height="16" viewbox="14 12 12 16" width="12" xmlns="http://www.w3.org/2000/svg">
|
2
2
|
<path clip-rule="evenodd" d="M16.5 18.25V16.5C16.5 14.567 18.067 13 20 13C21.933 13 23.5 14.567 23.5 16.5V18.25H25.25V27H14.75V18.25H16.5ZM18.25 16.5C18.25 15.5335 19.0335 14.75 20 14.75C20.9665 14.75 21.75 15.5335 21.75 16.5V18.25H18.25V16.5ZM19.125 24.375V20.875H20.875V24.375H19.125Z" fill="#263238" fill-rule="evenodd"></path>
|
3
3
|
</svg>
|
@@ -4,7 +4,6 @@
|
|
4
4
|
v-if="hasLabelSlot"
|
5
5
|
:align-items="alignItems"
|
6
6
|
:border-color="borderColor"
|
7
|
-
:is-disabled="disabled"
|
8
7
|
:is-error="isError"
|
9
8
|
:is-interactive="isInteractive"
|
10
9
|
:no-border="noBorder"
|
@@ -381,22 +380,18 @@
|
|
381
380
|
: props.theme.colors.mediumGray};
|
382
381
|
`
|
383
382
|
|
384
|
-
const LabelWrapper = styled('div')`
|
383
|
+
const LabelWrapper = styled('div', inputProps)`
|
385
384
|
display: flex;
|
386
385
|
align-items: center;
|
387
386
|
gap: 10px;
|
388
387
|
margin-bottom: 8px;
|
388
|
+
cursor: ${(props) => (props.isInteractive ? 'ew-resize' : 'auto')};
|
389
389
|
`
|
390
390
|
const LabelSlotWrapper = styled('div', inputProps)`
|
391
391
|
display: flex;
|
392
392
|
gap: 10px;
|
393
393
|
align-items: center;
|
394
|
-
cursor: ${(props) =>
|
395
|
-
props.isDisabled
|
396
|
-
? 'not-allowed'
|
397
|
-
: props.isInteractive
|
398
|
-
? 'ew-resize'
|
399
|
-
: 'auto'};
|
394
|
+
cursor: ${(props) => (props.isInteractive ? 'ew-resize' : 'auto')};
|
400
395
|
border: ${(props) =>
|
401
396
|
props.alignItems == 'vertical'
|
402
397
|
? 'none'
|
@@ -955,18 +950,12 @@
|
|
955
950
|
}
|
956
951
|
},
|
957
952
|
initInteraction(e) {
|
958
|
-
if (this.disabled) {
|
959
|
-
return
|
960
|
-
}
|
961
953
|
this.focusInput()
|
962
954
|
e.preventDefault()
|
963
955
|
window.addEventListener('mousemove', this.interact, false)
|
964
956
|
window.addEventListener('mouseup', this.stopInteract, false)
|
965
957
|
},
|
966
958
|
interact(e) {
|
967
|
-
if (this.disabled) {
|
968
|
-
return
|
969
|
-
}
|
970
959
|
e.preventDefault()
|
971
960
|
let value = parseFloat(this.value || 0)
|
972
961
|
value += parseFloat(this.interactionStep) * parseInt(e.movementX)
|
@@ -2,10 +2,9 @@
|
|
2
2
|
<PageWrapper
|
3
3
|
:backdrop="backdrop"
|
4
4
|
:class="{ visible: isOpen, hidden: !isOpen }"
|
5
|
-
:is-open="isOpen"
|
6
5
|
:position="position"
|
7
6
|
>
|
8
|
-
<ModalContainer :overflow="overflowRule" @click="onClickModalContainer">
|
7
|
+
<ModalContainer v-if="isOpen" :overflow="overflowRule" @click="onClickModalContainer">
|
9
8
|
<Spinner v-if="isLoading" :limited-to-modal="true" size="50px" />
|
10
9
|
<ContentContainer :visible="!isLoading">
|
11
10
|
<slot></slot>
|
@@ -35,7 +34,7 @@
|
|
35
34
|
visibility: ${(props) => (props.visible ? 'inherit' : 'hidden')};
|
36
35
|
`
|
37
36
|
|
38
|
-
const pageAttrs = {
|
37
|
+
const pageAttrs = { backdrop: String, position: String }
|
39
38
|
const PageWrapper = styled('div', pageAttrs)`
|
40
39
|
position: ${(props) => props.position}
|
41
40
|
display: grid;
|