@eturnity/eturnity_reusable_components 7.51.15-EPDM-13212.1 → 7.51.15-qa-elisee-7.51.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="16" 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,6 +4,7 @@
|
|
4
4
|
v-if="hasLabelSlot"
|
5
5
|
:align-items="alignItems"
|
6
6
|
:border-color="borderColor"
|
7
|
+
:is-disabled="disabled"
|
7
8
|
:is-error="isError"
|
8
9
|
:is-interactive="isInteractive"
|
9
10
|
:no-border="noBorder"
|
@@ -380,18 +381,22 @@
|
|
380
381
|
: props.theme.colors.mediumGray};
|
381
382
|
`
|
382
383
|
|
383
|
-
const LabelWrapper = styled('div'
|
384
|
+
const LabelWrapper = styled('div')`
|
384
385
|
display: flex;
|
385
386
|
align-items: center;
|
386
387
|
gap: 10px;
|
387
388
|
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) =>
|
394
|
+
cursor: ${(props) =>
|
395
|
+
props.isDisabled
|
396
|
+
? 'not-allowed'
|
397
|
+
: props.isInteractive
|
398
|
+
? 'ew-resize'
|
399
|
+
: 'auto'};
|
395
400
|
border: ${(props) =>
|
396
401
|
props.alignItems == 'vertical'
|
397
402
|
? 'none'
|
@@ -950,12 +955,18 @@
|
|
950
955
|
}
|
951
956
|
},
|
952
957
|
initInteraction(e) {
|
958
|
+
if (this.disabled) {
|
959
|
+
return
|
960
|
+
}
|
953
961
|
this.focusInput()
|
954
962
|
e.preventDefault()
|
955
963
|
window.addEventListener('mousemove', this.interact, false)
|
956
964
|
window.addEventListener('mouseup', this.stopInteract, false)
|
957
965
|
},
|
958
966
|
interact(e) {
|
967
|
+
if (this.disabled) {
|
968
|
+
return
|
969
|
+
}
|
959
970
|
e.preventDefault()
|
960
971
|
let value = parseFloat(this.value || 0)
|
961
972
|
value += parseFloat(this.interactionStep) * parseInt(e.movementX)
|
@@ -2,9 +2,10 @@
|
|
2
2
|
<PageWrapper
|
3
3
|
:backdrop="backdrop"
|
4
4
|
:class="{ visible: isOpen, hidden: !isOpen }"
|
5
|
+
:is-open="isOpen"
|
5
6
|
:position="position"
|
6
7
|
>
|
7
|
-
<ModalContainer
|
8
|
+
<ModalContainer :overflow="overflowRule" @click="onClickModalContainer">
|
8
9
|
<Spinner v-if="isLoading" :limited-to-modal="true" size="50px" />
|
9
10
|
<ContentContainer :visible="!isLoading">
|
10
11
|
<slot></slot>
|
@@ -34,7 +35,7 @@
|
|
34
35
|
visibility: ${(props) => (props.visible ? 'inherit' : 'hidden')};
|
35
36
|
`
|
36
37
|
|
37
|
-
const pageAttrs = { backdrop: String, position: String }
|
38
|
+
const pageAttrs = { isOpen: Boolean, backdrop: String, position: String }
|
38
39
|
const PageWrapper = styled('div', pageAttrs)`
|
39
40
|
position: ${(props) => props.position}
|
40
41
|
display: grid;
|