@eturnity/eturnity_reusable_components 7.8.6 → 7.10.0-EPDM-10285.0
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/expand.svg +1 -0
- package/src/assets/svgIcons/split.svg +45 -0
- package/src/assets/theme.js +2 -0
- package/src/components/iconWrapper/index.vue +1 -1
- package/src/components/inputs/inputNumber/index.vue +6 -2
- package/src/components/inputs/inputText/index.vue +5 -0
- package/.eslintrc +0 -18
package/package.json
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M245.7,232.4c1,7.7-2.4,11.3-10.3,10.8l-62.1-6.9c-4.9-0.5-8-1.9-9.3-4.1c-1.3-2.2-0.6-4.7,2.3-7.5c1.9-1.6,4.1-3.9,6.8-6.8c2.7-2.9,5-5.2,6.8-7c1.9-2,2.4-3.8,1.8-5.4c-0.7-1.6-2-3.5-4-5.7c-4.7-4.4-9-8.5-12.9-12.1c-3.9-3.6-8.2-7.8-12.9-12.6c-1-1-2-2-3-3.2c-1-1.2-1.8-2.4-2.3-3.8c-0.5-1.4-0.6-2.9-0.2-4.4c0.3-1.6,1.4-3.3,3.3-5.1c1-1,1.9-1.9,2.5-2.6c0.7-0.7,1.3-1.4,2-2c0.7-0.6,1.4-1.2,2.1-2c0.7-0.7,1.7-1.8,2.9-3.1c3.4-3.3,6.5-4.7,9.3-4.2c2.9,0.5,6,2.4,9.3,5.7c3.4,3.3,6.8,6.6,10.3,10c3.5,3.4,7.5,7.2,11.8,11.5c3.2,3,5.9,5,8.2,6.2c2.3,1.2,4.5,0.6,6.7-1.5c1.5-1.5,3.4-3.3,5.7-5.3c2.3-2,4.2-3.9,5.9-5.5c2.9-2.8,5.4-3.9,7.7-3.2c2.3,0.7,3.7,3.1,4.2,7.4L245.7,232.4L245.7,232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;fill-opacity: 1;"></path></svg>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
3
|
+
<svg
|
4
|
+
version="1.1"
|
5
|
+
id="svg854"
|
6
|
+
width="838"
|
7
|
+
height="833"
|
8
|
+
viewBox="0 0 838 833"
|
9
|
+
sodipodi:docname="split.svg"
|
10
|
+
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
11
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
12
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
14
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
15
|
+
<defs
|
16
|
+
id="defs858" />
|
17
|
+
<sodipodi:namedview
|
18
|
+
id="namedview856"
|
19
|
+
pagecolor="#ffffff"
|
20
|
+
bordercolor="#666666"
|
21
|
+
borderopacity="1.0"
|
22
|
+
inkscape:pageshadow="2"
|
23
|
+
inkscape:pageopacity="0.0"
|
24
|
+
inkscape:pagecheckerboard="0"
|
25
|
+
showgrid="false"
|
26
|
+
inkscape:zoom="0.95078031"
|
27
|
+
inkscape:cx="431.22475"
|
28
|
+
inkscape:cy="326.04798"
|
29
|
+
inkscape:window-width="1920"
|
30
|
+
inkscape:window-height="1007"
|
31
|
+
inkscape:window-x="1"
|
32
|
+
inkscape:window-y="1080"
|
33
|
+
inkscape:window-maximized="1"
|
34
|
+
inkscape:current-layer="g860" />
|
35
|
+
<g
|
36
|
+
inkscape:groupmode="layer"
|
37
|
+
inkscape:label="Image"
|
38
|
+
id="g860">
|
39
|
+
<path
|
40
|
+
style="fill:#ffffff"
|
41
|
+
d="m -5.0875843,441.73292 3.3936693,-93.74987 847.237645,-2.85667 -3.71049,95.94711 z m 333.6519143,232.4369 -98.27777,-105.35245 43.34233,-0.60608 c 23.83828,-0.33335 56.95483,-0.67085 73.59233,-0.75 l 30.25,-0.14392 L 376,413.05958 374.48738,213.61969 301.67731,213.3632 228.86724,213.10671 326.58798,107.77384 C 380.33439,49.84076 424.5019,2.3657611 424.73801,2.2738411 425.25724,2.0716911 628.96623,212.59506 628.96623,213.35636 c 0,0.29424 -41.55385,0.25035 -81.97885,0.25035 h -73.5 L 475,413.0466 l 1.47122,154.25779 72.81196,0.25649 72.81196,0.25649 -91.89971,99.5 -103.35334,112.2049 z"
|
42
|
+
id="path980"
|
43
|
+
sodipodi:nodetypes="cccccccsscccccsssscccccccc" />
|
44
|
+
</g>
|
45
|
+
</svg>
|
package/src/assets/theme.js
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
:value="formatWithCurrency(value)"
|
39
39
|
@blur="onInputBlur($event)"
|
40
40
|
@focus="focusInput()"
|
41
|
-
@keyup.enter="
|
41
|
+
@keyup.enter="onEnterPress"
|
42
42
|
@input="onInput($event)"
|
43
43
|
:disabled="disabled"
|
44
44
|
:isDisabled="disabled"
|
@@ -469,6 +469,10 @@ export default {
|
|
469
469
|
}
|
470
470
|
},
|
471
471
|
methods: {
|
472
|
+
onEnterPress(event){
|
473
|
+
this.$emit('on-enter-click')
|
474
|
+
this.$refs.inputField1.$el.blur()
|
475
|
+
},
|
472
476
|
onChangeHandler(event) {
|
473
477
|
if (isNaN(event) || event === '') {
|
474
478
|
event = this.defaultNumber
|
@@ -651,7 +655,7 @@ export default {
|
|
651
655
|
e.preventDefault()
|
652
656
|
let value = parseFloat(this.value || 0)
|
653
657
|
value += parseFloat(this.interactionStep) * parseInt(e.movementX)
|
654
|
-
this.$emit('on-input', value)
|
658
|
+
this.$emit('on-input-drag', value)
|
655
659
|
|
656
660
|
this.textInput = numberToString({
|
657
661
|
value: value && value.length ? value : this.minNumber,
|
@@ -34,6 +34,7 @@
|
|
34
34
|
:value="value"
|
35
35
|
@input="onChangeHandler"
|
36
36
|
@blur="onInputBlur"
|
37
|
+
@keyup.enter="onEnterPress"
|
37
38
|
:noBorder="noBorder"
|
38
39
|
:disabled="disabled"
|
39
40
|
:isDisabled="disabled"
|
@@ -328,6 +329,10 @@ export default {
|
|
328
329
|
}
|
329
330
|
},
|
330
331
|
methods: {
|
332
|
+
onEnterPress(event){
|
333
|
+
this.$emit('on-enter-click')
|
334
|
+
this.$refs.inputElement.$el.blur()
|
335
|
+
},
|
331
336
|
onChangeHandler($event) {
|
332
337
|
this.$emit('input-change', $event)
|
333
338
|
},
|
package/.eslintrc
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"extends": ["plugin:prettier/recommended", "plugin:vue/essential"],
|
3
|
-
|
4
|
-
"plugins": ["prettier"],
|
5
|
-
|
6
|
-
"rules": {
|
7
|
-
"prettier/prettier": "error",
|
8
|
-
"vue/no-parsing-error": "off",
|
9
|
-
"vue/no-side-effects-in-computed-properties": "off",
|
10
|
-
"vue/invalid-first-character-of-tag-name": "off"
|
11
|
-
},
|
12
|
-
|
13
|
-
"parserOptions": {
|
14
|
-
"ecmaVersion": 6,
|
15
|
-
"parser": "babel-eslint",
|
16
|
-
"sourceType": "module"
|
17
|
-
}
|
18
|
-
}
|