@eturnity/eturnity_reusable_components 9.25.16-panel-placement.0 → 9.25.16-panel-placement.1
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 +1 -1
- package/src/assets/svgIcons/length_2d_vertical.svg +5 -0
- package/src/assets/svgIcons/obstacle_flat_top.svg +3 -0
- package/src/assets/svgIcons/obstacle_sloped_top.svg +3 -0
- package/src/assets/svgIcons/outline_tool.svg +10 -10
- package/src/components/inputs/inputNumber/index.vue +1 -0
- package/src/components/inputs/switchField/index.vue +17 -13
package/package.json
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="14" viewBox="0 0 10 14" fill="none">
|
|
2
|
+
<g transform="translate(10,0) rotate(90)">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.199219 9.85718V0.142822H1.75351L1.75352 9.85718H0.199219ZM5.38021 8.20572L2.14209 4.99999L5.38021 1.79425V4.19855L8.61833 4.19855V1.79425L11.8564 4.99999L8.61832 8.20572L8.61833 5.80142L5.38021 5.80142V8.20572ZM12.2449 0.142822V9.85718H13.7992V0.142822H12.2449Z" fill="white"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<svg width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<path d="M8.5 3.07846L6.00098 0.935599L6.00098 5.22131L8.5 3.07846Z" fill="white"/>
|
|
5
|
-
<
|
|
6
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 4.06409C2.55228 4.06409 3 3.61637 3 3.06409C3 2.5118 2.55228 2.06409 2 2.06409C1.44772 2.06409 1 2.5118 1 3.06409C1 3.61637 1.44772 4.06409 2 4.06409ZM2 5.06409C3.10457 5.06409 4 4.16866 4 3.06409C4 1.95952 3.10457 1.06409 2 1.06409C0.895431 1.06409 0 1.95952 0 3.06409C0 4.16866 0.895431 5.06409 2 5.06409Z" fill="white"/>
|
|
7
|
-
<
|
|
8
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.002 4.06421C12.5542 4.06421 13.002 3.61649 13.002 3.06421C13.002 2.51192 12.5542 2.06421 12.002 2.06421C11.4497 2.06421 11.002 2.51192 11.002 3.06421C11.002 3.61649 11.4497 4.06421 12.002 4.06421ZM12.002 5.06421C13.1065 5.06421 14.002 4.16878 14.002 3.06421C14.002 1.95964 13.1065 1.06421 12.002 1.06421C10.8974 1.06421 10.002 1.95964 10.002 3.06421C10.002 4.16878 10.8974 5.06421 12.002 5.06421Z" fill="white"/>
|
|
9
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.002 14.0643C12.5542 14.0643 13.002 13.6166 13.002 13.0643C13.002 12.512 12.5542 12.0643 12.002 12.0643C11.4497 12.0643 11.002 12.512 11.002 13.0643C11.002 13.6166 11.4497 14.0643 12.002 14.0643ZM12.002 15.0643C13.1065 15.0643 14.002 14.1688 14.002 13.0643C14.002 11.9597 13.1065 11.0643 12.002 11.0643C10.8974 11.0643 10.002 11.9597 10.002 13.0643C10.002 14.1688 10.8974 15.0643 12.002 15.0643Z" fill="white"/>
|
|
10
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 14.0644C2.55228 14.0644 3 13.6167 3 13.0644C3 12.5121 2.55228 12.0644 2 12.0644C1.44772 12.0644 1 12.5121 1 13.0644C1 13.6167 1.44772 14.0644 2 14.0644ZM2 15.0644C3.10457 15.0644 4 14.169 4 13.0644C4 11.9598 3.10457 11.0644 2 11.0644C0.895431 11.0644 0 11.9598 0 13.0644C0 14.169 0.895431 15.0644 2 15.0644Z" fill="white"/>
|
|
11
|
-
</svg>
|
|
2
|
+
<path transform="rotate(90 2.80078 4.06415)" fill="white" d="M2.8008 4.0642h8v1.6H2.8008Z" />
|
|
3
|
+
<path transform="rotate(-180 7.00195 3.8642)" fill="white" d="M7.002 3.8642h4v1.6H7.002Z" />
|
|
4
|
+
<path d="M8.5 3.07846L6.00098 0.935599L6.00098 5.22131L8.5 3.07846Z" fill="white" />
|
|
5
|
+
<path transform="rotate(-180 11.002 13.8643)" fill="white" d="M11.002 13.8643h8v1.6H11.002Z" />
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 4.06409C2.55228 4.06409 3 3.61637 3 3.06409C3 2.5118 2.55228 2.06409 2 2.06409C1.44772 2.06409 1 2.5118 1 3.06409C1 3.61637 1.44772 4.06409 2 4.06409ZM2 5.06409C3.10457 5.06409 4 4.16866 4 3.06409C4 1.95952 3.10457 1.06409 2 1.06409C0.895431 1.06409 0 1.95952 0 3.06409C0 4.16866 0.895431 5.06409 2 5.06409Z" fill="white" />
|
|
7
|
+
<path transform="rotate(90 12.7988 4.06433)" fill="white" d="M12.7988 4.0643h8v1.6H12.7988Z" />
|
|
8
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.002 4.06421C12.5542 4.06421 13.002 3.61649 13.002 3.06421C13.002 2.51192 12.5542 2.06421 12.002 2.06421C11.4497 2.06421 11.002 2.51192 11.002 3.06421C11.002 3.61649 11.4497 4.06421 12.002 4.06421ZM12.002 5.06421C13.1065 5.06421 14.002 4.16878 14.002 3.06421C14.002 1.95964 13.1065 1.06421 12.002 1.06421C10.8974 1.06421 10.002 1.95964 10.002 3.06421C10.002 4.16878 10.8974 5.06421 12.002 5.06421Z" fill="white" />
|
|
9
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.002 14.0643C12.5542 14.0643 13.002 13.6166 13.002 13.0643C13.002 12.512 12.5542 12.0643 12.002 12.0643C11.4497 12.0643 11.002 12.512 11.002 13.0643C11.002 13.6166 11.4497 14.0643 12.002 14.0643ZM12.002 15.0643C13.1065 15.0643 14.002 14.1688 14.002 13.0643C14.002 11.9597 13.1065 11.0643 12.002 11.0643C10.8974 11.0643 10.002 11.9597 10.002 13.0643C10.002 14.1688 10.8974 15.0643 12.002 15.0643Z" fill="white" />
|
|
10
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 14.0644C2.55228 14.0644 3 13.6167 3 13.0644C3 12.5121 2.55228 12.0644 2 12.0644C1.44772 12.0644 1 12.5121 1 13.0644C1 13.6167 1.44772 14.0644 2 14.0644ZM2 15.0644C3.10457 15.0644 4 14.169 4 13.0644C4 11.9598 3.10457 11.0644 2 11.0644C0.895431 11.0644 0 11.9598 0 13.0644C0 14.169 0.895431 15.0644 2 15.0644Z" fill="white" />
|
|
11
|
+
</svg>
|
|
@@ -484,6 +484,7 @@
|
|
|
484
484
|
display: flex;
|
|
485
485
|
gap: 10px;
|
|
486
486
|
align-items: center;
|
|
487
|
+
padding: ${(props) => (props.isInteractive ? '0 4px' : '0')};
|
|
487
488
|
cursor: ${(props) => (props.isInteractive ? 'ew-resize' : 'auto')};
|
|
488
489
|
border: ${(props) =>
|
|
489
490
|
props.alignItems == 'vertical'
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
:border-color="borderColor"
|
|
32
32
|
:color-mode="colorMode"
|
|
33
33
|
:data-id="item.hasOwnProperty('dataId') ? item.dataId : ''"
|
|
34
|
+
:disabled="!!item.disabled"
|
|
34
35
|
:height="height"
|
|
35
36
|
:inactive-border-color="inactiveBorderColor"
|
|
36
37
|
:inactive-color="inactiveColor"
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
:secondary-color="secondaryColor"
|
|
40
41
|
:size="size"
|
|
41
42
|
:width="item.width || 'auto'"
|
|
42
|
-
@click="selectItem(item
|
|
43
|
+
@click="selectItem(item)"
|
|
43
44
|
>
|
|
44
45
|
<OptionIconContainer v-if="item.icon">
|
|
45
46
|
<RCIcon
|
|
@@ -145,6 +146,7 @@
|
|
|
145
146
|
height: String,
|
|
146
147
|
borderColor: String,
|
|
147
148
|
inactiveBorderColor: String,
|
|
149
|
+
disabled: Boolean,
|
|
148
150
|
}
|
|
149
151
|
const SwitchOption = styled('div', optionAttrs)`
|
|
150
152
|
color: ${(props) =>
|
|
@@ -167,17 +169,19 @@
|
|
|
167
169
|
props.height
|
|
168
170
|
? props.height
|
|
169
171
|
: props.size === 'medium'
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
? '24px'
|
|
173
|
+
: props.size === 'small'
|
|
174
|
+
? '16px'
|
|
175
|
+
: '24px'};
|
|
174
176
|
padding: 0 10px;
|
|
175
177
|
margin-right: -1px;
|
|
176
178
|
transition: all 0.1s ease-in-out;
|
|
177
179
|
overflow: hidden;
|
|
178
180
|
gap: 5px;
|
|
181
|
+
opacity: ${(props) => (props.disabled ? 0.4 : 1)};
|
|
182
|
+
pointer-events: ${(props) => (props.disabled ? 'none' : 'auto')};
|
|
179
183
|
& :hover {
|
|
180
|
-
cursor: pointer;
|
|
184
|
+
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
|
181
185
|
}
|
|
182
186
|
&:first-child {
|
|
183
187
|
border-radius: 4px 0 0 4px;
|
|
@@ -287,19 +291,19 @@
|
|
|
287
291
|
this.borderColor = this.secondaryColor
|
|
288
292
|
this.inactiveBorderColor = theme.semanticColors.teal[600]
|
|
289
293
|
} else {
|
|
290
|
-
this.primaryColor = theme.semanticColors.teal[
|
|
291
|
-
this.secondaryColor = theme.semanticColors.
|
|
292
|
-
this.inactiveColor = theme.semanticColors.
|
|
294
|
+
this.primaryColor = theme.semanticColors.teal[100]
|
|
295
|
+
this.secondaryColor = theme.semanticColors.purple[500]
|
|
296
|
+
this.inactiveColor = theme.semanticColors.purple[500]
|
|
293
297
|
this.borderColor = this.secondaryColor
|
|
294
|
-
this.inactiveBorderColor = theme.semanticColors.teal[
|
|
298
|
+
this.inactiveBorderColor = theme.semanticColors.teal[200]
|
|
295
299
|
}
|
|
296
300
|
},
|
|
297
301
|
methods: {
|
|
298
|
-
selectItem(
|
|
299
|
-
if (this.disabled) {
|
|
302
|
+
selectItem(item) {
|
|
303
|
+
if (this.disabled || item.disabled) {
|
|
300
304
|
return
|
|
301
305
|
}
|
|
302
|
-
this.$emit('on-switch-change', value)
|
|
306
|
+
this.$emit('on-switch-change', item.value)
|
|
303
307
|
},
|
|
304
308
|
},
|
|
305
309
|
}
|