@eturnity/eturnity_reusable_components 7.12.7-EPDM-10335.0 → 7.12.7-EPDM-10528.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/.storybook/preview.js +1 -1
- package/package.json +23 -19
- package/src/App.vue +2 -2
- package/src/assets/svgIcons/charger_icon_white.svg +44 -0
- package/src/assets/svgIcons/energy_meter.svg +12 -0
- package/src/assets/svgIcons/house_3d-1.svg +8 -0
- package/src/assets/svgIcons/house_3d.svg +8 -0
- package/src/components/addNewButton/index.vue +3 -5
- package/src/components/buttons/buttonIcon/index.vue +1 -1
- package/src/components/buttons/closeButton/index.vue +1 -1
- package/src/components/buttons/mainButton/index.vue +8 -7
- package/src/components/card/index.vue +95 -0
- package/src/components/deleteIcon/DeleteIcon.stories.js +7 -7
- package/src/components/deleteIcon/index.vue +21 -25
- package/src/components/draggableInputHandle/index.vue +25 -24
- package/src/components/dropdown/index.vue +110 -129
- package/src/components/errorMessage/index.vue +5 -10
- package/src/components/filter/filterSettings.vue +97 -58
- package/src/components/filter/index.vue +3 -3
- package/src/components/filter/parentDropdown.vue +2 -2
- package/src/components/icon/iconCollection.vue +2 -2
- package/src/components/icon/index.vue +77 -67
- package/src/components/iconWrapper/index.vue +4 -1
- package/src/components/infoCard/index.vue +3 -2
- package/src/components/infoText/index.vue +1 -1
- package/src/components/inputs/checkbox/index.vue +6 -21
- package/src/components/inputs/inputNumber/index.vue +11 -8
- package/src/components/inputs/inputNumberQuestion/index.vue +1 -1
- package/src/components/inputs/inputText/index.vue +3 -3
- package/src/components/inputs/radioButton/index.vue +1 -1
- package/src/components/inputs/searchInput/index.vue +11 -28
- package/src/components/inputs/select/index.vue +67 -195
- package/src/components/inputs/select/option/index.vue +11 -36
- package/src/components/inputs/slider/index.vue +16 -16
- package/src/components/inputs/switchField/index.vue +2 -2
- package/src/components/inputs/textAreaInput/index.vue +1 -1
- package/src/components/inputs/toggle/index.vue +2 -2
- package/src/components/label/index.vue +31 -27
- package/src/components/modals/modal/index.vue +6 -2
- package/src/components/navigationTabs/index.vue +20 -27
- package/src/components/pageSubtitle/index.vue +1 -1
- package/src/components/pageTitle/index.vue +4 -4
- package/src/components/pagination/index.vue +1 -1
- package/src/components/progressBar/index.vue +1 -1
- package/src/components/projectMarker/index.vue +9 -16
- package/src/components/sideMenu/index.vue +1 -1
- package/src/components/spinner/index.vue +11 -7
- package/src/components/tableDropdown/index.vue +37 -30
- package/src/components/tables/mainTable/exampleNested.vue +1 -1
- package/src/components/tables/mainTable/index.vue +9 -10
- package/src/components/tables/viewTable/index.vue +2 -2
- package/src/components/threeDots/index.vue +1 -1
- package/src/components/videoThumbnail/index.vue +100 -95
- package/src/main.js +11 -4
- package/src/components/icon/iconCache.js +0 -23
package/.storybook/preview.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@eturnity/eturnity_reusable_components",
|
3
|
-
"version": "7.12.7-EPDM-
|
3
|
+
"version": "7.12.7-EPDM-10528.1",
|
4
4
|
"private": false,
|
5
5
|
"scripts": {
|
6
6
|
"dev": "vue-cli-service serve",
|
@@ -10,26 +10,30 @@
|
|
10
10
|
"build-storybook": "build-storybook"
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
|
-
"@
|
14
|
-
"@vue/compat": "3.3.4",
|
15
|
-
"@vueform/slider": "2.1.10",
|
16
|
-
"@vuepic/vue-datepicker": "6.1.0",
|
17
|
-
"click-outside-vue3": "4.0.1",
|
13
|
+
"@vueform/slider": "1.0.5",
|
18
14
|
"html-loader": "0.5.5",
|
19
|
-
"postcss": "8.4.25",
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
15
|
+
"postcss": "^8.4.25",
|
16
|
+
"v-click-outside": "2.1.4",
|
17
|
+
"vue": "2.6.11",
|
18
|
+
"vue-styled-components": "1.6.0",
|
19
|
+
"vue2-datepicker": "3.11.1",
|
20
|
+
"vuedraggable": "2.24.3",
|
21
|
+
"core-js": "3.31.1"
|
23
22
|
},
|
24
23
|
"devDependencies": {
|
25
|
-
"@
|
26
|
-
"@
|
27
|
-
"@
|
28
|
-
"@
|
29
|
-
"@vue
|
30
|
-
"@vue/
|
31
|
-
"eslint": "
|
32
|
-
"
|
24
|
+
"@storybook/addon-actions": "6.2.8",
|
25
|
+
"@storybook/addon-docs": "6.4.19",
|
26
|
+
"@storybook/addon-essentials": "6.2.8",
|
27
|
+
"@storybook/addon-links": "6.2.8",
|
28
|
+
"@storybook/vue": "6.4.19",
|
29
|
+
"@vue/cli-plugin-babel": "~4.5.0",
|
30
|
+
"@vue/cli-plugin-eslint": "~4.5.0",
|
31
|
+
"@vue/cli-service": "~4.5.0",
|
32
|
+
"@vue/composition-api": "1.0.0-rc.10",
|
33
|
+
"babel-eslint": "10.1.0",
|
34
|
+
"eslint": "6.7.2",
|
35
|
+
"eslint-plugin-vue": "6.2.2",
|
36
|
+
"vue-template-compiler": "2.6.11"
|
33
37
|
},
|
34
38
|
"eslintConfig": {
|
35
39
|
"root": true,
|
@@ -41,7 +45,7 @@
|
|
41
45
|
"eslint:recommended"
|
42
46
|
],
|
43
47
|
"parserOptions": {
|
44
|
-
"parser": "
|
48
|
+
"parser": "babel-eslint"
|
45
49
|
},
|
46
50
|
"rules": {}
|
47
51
|
},
|
package/src/App.vue
CHANGED
@@ -55,9 +55,9 @@
|
|
55
55
|
</template>
|
56
56
|
|
57
57
|
<script>
|
58
|
-
import { ThemeProvider } from '
|
58
|
+
import { ThemeProvider } from 'vue-styled-components'
|
59
59
|
import theme from './assets/theme'
|
60
|
-
import styled from '
|
60
|
+
import styled from 'vue-styled-components'
|
61
61
|
import InputNumber from '@/components/inputs/inputNumber'
|
62
62
|
|
63
63
|
const PageContainer = styled.div`
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4
|
+
viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
|
5
|
+
<style type="text/css">
|
6
|
+
.st0{display:none;}
|
7
|
+
.st1{display:inline;}
|
8
|
+
.st2{fill:#FFFFFF;}
|
9
|
+
</style>
|
10
|
+
<g class="st0">
|
11
|
+
<g class="st1">
|
12
|
+
<rect x="-312.013" y="-258.339" class="st2" width="2" height="16"/>
|
13
|
+
</g>
|
14
|
+
<g class="st1">
|
15
|
+
<polygon class="st2" points="-303.346,-242.339 -303.346,-248.339 -312.013,-248.426 -312.013,-242.339 "/>
|
16
|
+
</g>
|
17
|
+
<g class="st1">
|
18
|
+
<rect x="-311.673" y="-258.339" class="st2" width="8" height="2"/>
|
19
|
+
</g>
|
20
|
+
<g class="st1">
|
21
|
+
<path class="st2" d="M-294.833-255.839v-2.5h-7v2.5c0,1.933,1.567,3.5,3.5,3.5l0,0
|
22
|
+
C-296.4-252.339-294.833-253.906-294.833-255.839z"/>
|
23
|
+
</g>
|
24
|
+
<g class="st1">
|
25
|
+
<rect x="-305.346" y="-258.339" class="st2" width="2" height="16"/>
|
26
|
+
</g>
|
27
|
+
<g class="st1">
|
28
|
+
<rect x="-299.333" y="-258.339" class="st2" width="2" height="12"/>
|
29
|
+
</g>
|
30
|
+
<g class="st1">
|
31
|
+
<rect x="-303.346" y="-248.339" class="st2" width="6" height="2"/>
|
32
|
+
</g>
|
33
|
+
<g class="st1">
|
34
|
+
<rect x="-301.346" y="-260.339" class="st2" width="2" height="2"/>
|
35
|
+
</g>
|
36
|
+
<g class="st1">
|
37
|
+
<rect x="-297.346" y="-260.339" class="st2" width="2" height="2"/>
|
38
|
+
</g>
|
39
|
+
</g>
|
40
|
+
<g>
|
41
|
+
<path class="st2" d="M15.777,8.974h3v-2h-3V6h-1c-1.857,0-3.404,1.272-3.855,2.987H8.889V3V1h-2H3.223h-2v2v14v2h2h5.667v-1v-1
|
42
|
+
v-6.013h2.025C11.356,12.716,12.911,14,14.777,14h1v-1.026h3v-2h-3V8.987V8.974z M6.889,17H3.223V3h3.667v5.987v2V17z"/>
|
43
|
+
</g>
|
44
|
+
</svg>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
+
<!-- Creator: CorelDRAW 2021 (64-Bit) -->
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="462px" height="512px" version="1.1" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd"
|
5
|
+
viewBox="0 0 462 511.93"
|
6
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
7
|
+
xmlns:xodm="http://www.corel.com/coreldraw/odm/2003">
|
8
|
+
<g id="Layer_x0020_1">
|
9
|
+
<metadata id="CorelCorpID_0Corel-Layer"/>
|
10
|
+
<path fill="white" d="M22.37 0l417.26 0c12.31,0 22.37,10.06 22.37,22.37l0 400.73c0,12.3 -10.06,22.37 -22.37,22.37l-32.27 0 0 19.01c0,6.2 -5.06,11.27 -11.26,11.27l-25.1 0 0 32.03c0,2.28 -1.87,4.15 -4.15,4.15l-32.33 0c-4.56,0 -8.29,-3.73 -8.29,-8.29l0 -27.89 -33.43 0 0 32.03c0,2.28 -1.86,4.15 -4.14,4.15l-32.34 0c-4.56,0 -8.28,-3.73 -8.28,-8.29l0 -27.89 -33.43 0 0 32.03c0,2.28 -1.86,4.15 -4.14,4.15l-32.34 0c-4.56,0 -8.28,-3.73 -8.28,-8.29l0 -27.89 -33.43 0 0 32.03c0,2.28 -1.86,4.15 -4.14,4.15l-32.34 0c-4.56,0 -8.28,-3.73 -8.28,-8.29l0 -27.89 -25.76 0c-6.2,0 -11.26,-5.07 -11.26,-11.27l0 -19.01 -32.27 0c-12.31,0 -22.37,-10.07 -22.37,-22.37l0 -400.73c0,-12.31 10.06,-22.37 22.37,-22.37zm61.36 103.62l294.54 0c3.34,0 6.38,1.38 8.57,3.57 2.19,2.19 3.56,5.23 3.56,8.57l0 53.77c0,3.33 -1.37,6.37 -3.56,8.56 -2.2,2.2 -5.23,3.57 -8.57,3.57l-294.54 0c-3.34,0 -6.38,-1.37 -8.57,-3.57 -2.19,-2.19 -3.56,-5.23 -3.56,-8.56l0 -53.77c0,-3.34 1.36,-6.37 3.56,-8.57 2.2,-2.21 5.23,-3.57 8.57,-3.57zm159 210.98l15.79 0c2.29,0.01 4.15,1.87 4.15,4.16 0,0.83 -0.25,1.63 -0.7,2.32l-37.64 64.27c-0.75,1.23 -2.09,1.98 -3.53,1.98 -2.29,0 -4.15,-1.86 -4.15,-4.14 0,-0.28 0.02,-0.55 0.08,-0.81l5.55 -39.45 -18.73 0.32c-0.02,0 -0.05,0 -0.08,0 -2.25,0 -4.09,-1.81 -4.13,-4.06 0,-0.01 0,-0.01 0,-0.02 0,-0.75 0.2,-1.5 0.58,-2.15l37.06 -64.26c0.75,-1.24 2.1,-2 3.55,-2 2.29,0 4.15,1.85 4.15,4.15 0,0.18 -0.02,0.36 -0.04,0.54l-1.91 39.15zm151.34 -255.93c5.79,0 10.49,4.95 10.49,11.06 0,6.1 -4.7,11.05 -10.49,11.05 -5.8,0 -10.5,-4.95 -10.5,-11.05 0,-6.11 4.7,-11.06 10.5,-11.06zm-326.13 0c5.8,0 10.5,4.95 10.5,11.06 0,6.1 -4.7,11.05 -10.5,11.05 -5.8,0 -10.5,-4.95 -10.5,-11.05 0,-6.11 4.7,-11.06 10.5,-11.06zm0 307.96c5.8,0 10.5,4.96 10.5,11.06 0,6.11 -4.7,11.06 -10.5,11.06 -5.8,0 -10.5,-4.95 -10.5,-11.06 0,-6.1 4.7,-11.06 10.5,-11.06zm326.13 0c5.79,0 10.49,4.96 10.49,11.06 0,6.11 -4.7,11.06 -10.49,11.06 -5.8,0 -10.5,-4.95 -10.5,-11.06 0,-6.1 4.7,-11.06 10.5,-11.06zm-38.94 -206.03c-3.07,0 -5.53,-0.96 -7.39,-2.88 -1.85,-1.92 -2.77,-4.45 -2.77,-7.59l0 -14.98c0,-3.15 0.92,-5.67 2.77,-7.59 1.86,-1.92 4.32,-2.88 7.39,-2.88 3.08,0 5.55,0.96 7.4,2.88 1.85,1.92 2.78,4.44 2.78,7.59l0 14.98c0,3.14 -0.93,5.67 -2.78,7.59 -1.85,1.92 -4.32,2.88 -7.4,2.88zm0 -7.1c0.6,0 1.08,-0.26 1.42,-0.79 0.35,-0.53 0.52,-1.22 0.52,-2.08l0 -15.98c0,-0.86 -0.17,-1.56 -0.52,-2.09 -0.34,-0.52 -0.82,-0.79 -1.42,-0.79 -0.59,0 -1.06,0.27 -1.41,0.79 -0.34,0.53 -0.52,1.23 -0.52,2.09l0 15.98c0,0.86 0.18,1.55 0.52,2.08 0.35,0.53 0.82,0.79 1.41,0.79zm-61.12 7.1c-3.07,0 -5.54,-0.96 -7.39,-2.88 -1.85,-1.92 -2.78,-4.45 -2.78,-7.59l0 -14.98c0,-3.15 0.93,-5.67 2.78,-7.59 1.85,-1.92 4.32,-2.88 7.39,-2.88 3.08,0 5.55,0.96 7.4,2.88 1.85,1.92 2.77,4.44 2.77,7.59l0 14.98c0,3.14 -0.92,5.67 -2.77,7.59 -1.85,1.92 -4.32,2.88 -7.4,2.88zm0 -7.1c0.6,0 1.07,-0.26 1.42,-0.79 0.35,-0.53 0.52,-1.22 0.52,-2.08l0 -15.98c0,-0.86 -0.17,-1.56 -0.52,-2.09 -0.35,-0.52 -0.82,-0.79 -1.42,-0.79 -0.59,0 -1.07,0.27 -1.41,0.79 -0.35,0.53 -0.52,1.23 -0.52,2.09l0 15.98c0,0.86 0.17,1.55 0.52,2.08 0.34,0.53 0.82,0.79 1.41,0.79zm-63.81 7.1c-3.07,0 -5.54,-0.96 -7.39,-2.88 -1.85,-1.92 -2.77,-4.45 -2.77,-7.59l0 -14.98c0,-3.15 0.92,-5.67 2.77,-7.59 1.85,-1.92 4.32,-2.88 7.39,-2.88 3.08,0 5.54,0.96 7.4,2.88 1.85,1.92 2.77,4.44 2.77,7.59l0 14.98c0,3.14 -0.92,5.67 -2.77,7.59 -1.86,1.92 -4.32,2.88 -7.4,2.88zm0 -7.1c0.6,0 1.07,-0.26 1.42,-0.79 0.35,-0.53 0.52,-1.22 0.52,-2.08l0 -15.98c0,-0.86 -0.17,-1.56 -0.52,-2.09 -0.35,-0.52 -0.82,-0.79 -1.42,-0.79 -0.59,0 -1.06,0.27 -1.41,0.79 -0.35,0.53 -0.52,1.23 -0.52,2.09l0 15.98c0,0.86 0.17,1.55 0.52,2.08 0.35,0.53 0.82,0.79 1.41,0.79zm-61.33 7.1c-3.07,0 -5.54,-0.96 -7.39,-2.88 -1.85,-1.92 -2.77,-4.45 -2.77,-7.59l0 -14.98c0,-3.15 0.92,-5.67 2.77,-7.59 1.85,-1.92 4.32,-2.88 7.39,-2.88 3.08,0 5.55,0.96 7.4,2.88 1.85,1.92 2.77,4.44 2.77,7.59l0 14.98c0,3.14 -0.92,5.67 -2.77,7.59 -1.85,1.92 -4.32,2.88 -7.4,2.88zm0 -7.1c0.6,0 1.07,-0.26 1.42,-0.79 0.35,-0.53 0.52,-1.22 0.52,-2.08l0 -15.98c0,-0.86 -0.17,-1.56 -0.52,-2.09 -0.35,-0.52 -0.82,-0.79 -1.42,-0.79 -0.59,0 -1.06,0.27 -1.41,0.79 -0.35,0.53 -0.52,1.23 -0.52,2.09l0 15.98c0,0.86 0.17,1.55 0.52,2.08 0.35,0.53 0.82,0.79 1.41,0.79zm-61.16 7.1c-3.08,0 -5.54,-0.96 -7.39,-2.88 -1.85,-1.92 -2.78,-4.45 -2.78,-7.59l0 -14.98c0,-3.15 0.93,-5.67 2.78,-7.59 1.85,-1.92 4.31,-2.88 7.39,-2.88 3.07,0 5.54,0.96 7.39,2.88 1.85,1.92 2.78,4.44 2.78,7.59l0 14.98c0,3.14 -0.93,5.67 -2.78,7.59 -1.85,1.92 -4.32,2.88 -7.39,2.88zm0 -7.1c0.6,0 1.07,-0.26 1.41,-0.79 0.35,-0.53 0.53,-1.22 0.53,-2.08l0 -15.98c0,-0.86 -0.18,-1.56 -0.53,-2.09 -0.34,-0.52 -0.81,-0.79 -1.41,-0.79 -0.6,0 -1.07,0.27 -1.41,0.79 -0.35,0.53 -0.52,1.23 -0.52,2.09l0 15.98c0,0.86 0.17,1.55 0.52,2.08 0.34,0.53 0.81,0.79 1.41,0.79zm58.85 102.29c-4.25,0 -7.69,-3.45 -7.69,-7.69 0,-4.24 3.44,-7.68 7.69,-7.68l128.88 0c4.25,0 7.69,3.44 7.69,7.68 0,4.24 -3.44,7.69 -7.69,7.69l-128.88 0zm-50.58 -38.85c-4.24,0 -7.69,-3.44 -7.69,-7.68 0,-4.24 3.45,-7.69 7.69,-7.69l230.04 0c4.24,0 7.68,3.45 7.68,7.69 0,4.24 -3.44,7.68 -7.68,7.68l-230.04 0zm212.57 -103.71l0 58.82 49.72 0c0.69,0 1.32,-0.29 1.78,-0.75 0.46,-0.45 0.75,-1.09 0.75,-1.77l0 -53.77c0,-0.69 -0.29,-1.33 -0.75,-1.79 -0.45,-0.45 -1.09,-0.74 -1.78,-0.74l-49.72 0zm-9.61 58.82l0 -58.82 -52.26 0 0 58.82 52.26 0zm-61.87 0l0 -58.82 -52.14 0 0 58.82 52.14 0zm-61.75 0l0 -58.82 -52.3 0 0 58.82 52.3 0zm-61.91 0l0 -58.82 -49.68 0c-0.7,0 -1.33,0.29 -1.79,0.74 -0.45,0.46 -0.74,1.09 -0.74,1.79l0 53.77c0,0.69 0.29,1.32 0.74,1.77 0.46,0.46 1.1,0.75 1.79,0.75l49.68 0zm-74.08 -133.14l343.34 0c12.31,0 22.37,10.07 22.37,22.37l0 324.85c0,12.3 -10.07,22.37 -22.37,22.37l-343.34 0c-12.3,0 -22.37,-10.06 -22.37,-22.37l0 -324.85c0,-12.31 10.06,-22.37 22.37,-22.37z"/>
|
11
|
+
</g>
|
12
|
+
</svg>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
|
2
|
+
<mask id="path-1-inside-1_57915_53334" fill="white">
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.0303 2.75757L0 5.30302V11.2424L3.41022 12.4091V8.96996L4.53143 9.41845V12.7926L8.0606 14V8.0606L4.0303 2.75757Z"/>
|
4
|
+
</mask>
|
5
|
+
<path d="M0 5.30302L-0.694191 4.20389L-1.3 4.5865V5.30302H0ZM4.0303 2.75757L5.06531 1.97096L4.344 1.02187L3.33611 1.65843L4.0303 2.75757ZM0 11.2424H-1.3V12.1716L-0.420794 12.4724L0 11.2424ZM3.41022 12.4091L2.98943 13.6391L4.71022 14.2278V12.4091H3.41022ZM3.41022 8.96996L3.89303 7.76294L2.11022 7.04982V8.96996H3.41022ZM4.53143 9.41845H5.83143V8.5383L5.01424 8.21143L4.53143 9.41845ZM4.53143 12.7926H3.23143V13.7219L4.11064 14.0227L4.53143 12.7926ZM8.0606 14L7.63981 15.23L9.3606 15.8187V14H8.0606ZM8.0606 8.0606H9.3606V7.62266L9.09561 7.27399L8.0606 8.0606ZM0.694191 6.40216L4.72449 3.8567L3.33611 1.65843L-0.694191 4.20389L0.694191 6.40216ZM1.3 11.2424V5.30302H-1.3V11.2424H1.3ZM3.83102 11.1791L0.420794 10.0124L-0.420794 12.4724L2.98943 13.6391L3.83102 11.1791ZM4.71022 12.4091V8.96996H2.11022V12.4091H4.71022ZM2.92741 10.177L4.04862 10.6255L5.01424 8.21143L3.89303 7.76294L2.92741 10.177ZM3.23143 9.41845V12.7926H5.83143V9.41845H3.23143ZM8.48139 12.77L4.95223 11.5626L4.11064 14.0227L7.63981 15.23L8.48139 12.77ZM6.7606 8.0606V14H9.3606V8.0606H6.7606ZM2.99529 3.54418L7.02559 8.8472L9.09561 7.27399L5.06531 1.97096L2.99529 3.54418Z" fill="#0068DE" mask="url(#path-1-inside-1_57915_53334)"/>
|
6
|
+
<path d="M8.55859 13.2165V8.37967L13.498 6.08638V10.9232L8.55859 13.2165Z" fill="#0068DE" stroke="#0068DE"/>
|
7
|
+
<path d="M8.21608 7.43759L4.80515 2.94953L9.81611 0.623007L13.227 5.11107L8.21608 7.43759Z" fill="#0068DE" stroke="#0068DE"/>
|
8
|
+
</svg>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16" fill="none">
|
2
|
+
<mask id="path-1-inside-1_57915_3657" fill="white">
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.03081 3.71851L0 6.28736V12.2814L3.41065 13.4587V9.98801L4.532 10.4406V13.8458L8.06161 15.0643V9.07028L4.03081 3.71851Z"/>
|
4
|
+
</mask>
|
5
|
+
<path d="M0 6.28736L-0.698673 5.19107L-1.3 5.5743V6.28736H0ZM4.03081 3.71851L5.06922 2.9364L4.34595 1.9761L3.33213 2.62221L4.03081 3.71851ZM0 12.2814H-1.3V13.2079L-0.424205 13.5102L0 12.2814ZM3.41065 13.4587L2.98645 14.6876L4.71065 15.2828V13.4587H3.41065ZM3.41065 9.98801L3.89722 8.78251L2.11065 8.0614V9.98801H3.41065ZM4.532 10.4406H5.832V9.56343L5.01858 9.23511L4.532 10.4406ZM4.532 13.8458H3.232V14.7723L4.1078 15.0747L4.532 13.8458ZM8.06161 15.0643L7.63741 16.2931L9.36161 16.8883V15.0643H8.06161ZM8.06161 9.07028H9.36161V8.63549L9.10003 8.28818L8.06161 9.07028ZM0.698673 7.38365L4.72948 4.8148L3.33213 2.62221L-0.698673 5.19107L0.698673 7.38365ZM1.3 12.2814V6.28736H-1.3V12.2814H1.3ZM3.83485 12.2299L0.424205 11.0525L-0.424205 13.5102L2.98645 14.6876L3.83485 12.2299ZM4.71065 13.4587V9.98801H2.11065V13.4587H4.71065ZM2.92408 11.1935L4.04543 11.6461L5.01858 9.23511L3.89722 8.78251L2.92408 11.1935ZM3.232 10.4406V13.8458H5.832V10.4406H3.232ZM8.48582 13.8354L4.95621 12.617L4.1078 15.0747L7.63741 16.2931L8.48582 13.8354ZM6.76161 9.07028V15.0643H9.36161V9.07028H6.76161ZM2.99239 4.50061L7.0232 9.85239L9.10003 8.28818L5.06922 2.9364L2.99239 4.50061Z" fill="white" mask="url(#path-1-inside-1_57915_3657)"/>
|
6
|
+
<path d="M8.5625 14.2779V9.38818L13.5026 7.07375V11.9634L8.5625 14.2779Z" fill="white" stroke="white"/>
|
7
|
+
<path d="M8.21735 8.44534L4.80134 3.90984L9.81609 1.56045L13.2321 6.09596L8.21735 8.44534Z" fill="white" stroke="white"/>
|
8
|
+
</svg>
|
@@ -1,15 +1,14 @@
|
|
1
1
|
<template>
|
2
2
|
<page-container :shouldPosition="shouldPosition">
|
3
3
|
<button-container :data-id="dataId">
|
4
|
-
<
|
4
|
+
<plus-button :src="require('../../assets/icons/plus_button.svg')" />
|
5
5
|
</button-container>
|
6
6
|
</page-container>
|
7
7
|
</template>
|
8
8
|
|
9
9
|
<script>
|
10
10
|
// import AddNewButton from "@eturnity/eturnity_reusable_components/src/components/addNewButton"
|
11
|
-
import styled from '
|
12
|
-
import PlusButtonSvg from '../../assets/icons/plus_button.svg'
|
11
|
+
import styled from 'vue-styled-components'
|
13
12
|
|
14
13
|
const pageAttrs = { shouldPosition: Boolean }
|
15
14
|
const PageContainer = styled('div', pageAttrs)`
|
@@ -47,8 +46,7 @@ export default {
|
|
47
46
|
components: {
|
48
47
|
PageContainer,
|
49
48
|
ButtonContainer,
|
50
|
-
PlusButton
|
51
|
-
PlusButtonSvg
|
49
|
+
PlusButton
|
52
50
|
},
|
53
51
|
props: {
|
54
52
|
shouldPosition: {
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<template>
|
2
2
|
<page-container>
|
3
3
|
<button-container
|
4
|
-
:id="id"
|
5
4
|
:type="type"
|
6
5
|
:minWidth="minWidth"
|
7
6
|
:isDisabled="isDisabled"
|
8
7
|
:customColor="customColor"
|
9
8
|
:noWrap="noWrap"
|
10
9
|
:data-id="dataId"
|
10
|
+
:fontColor="fontColor"
|
11
11
|
>
|
12
12
|
{{ text }}
|
13
13
|
</button-container>
|
@@ -26,7 +26,7 @@
|
|
26
26
|
// :data-id="test_data_id"
|
27
27
|
// />
|
28
28
|
|
29
|
-
import styled from '
|
29
|
+
import styled from 'vue-styled-components'
|
30
30
|
|
31
31
|
const PageContainer = styled.div``
|
32
32
|
|
@@ -35,12 +35,14 @@ const ButtonAttrs = {
|
|
35
35
|
isDisabled: Boolean,
|
36
36
|
minWidth: String,
|
37
37
|
customColor: String,
|
38
|
+
fontColor: String,
|
38
39
|
noWrap: Boolean
|
39
40
|
}
|
40
41
|
const ButtonContainer = styled('div', ButtonAttrs)`
|
41
42
|
padding: 7px 15px;
|
42
43
|
font-size: 13px;
|
43
|
-
color: ${(props) =>
|
44
|
+
color: ${(props) =>
|
45
|
+
props.fontColor ? props.fontColor : props.theme.colors.white};
|
44
46
|
background-color: ${(props) =>
|
45
47
|
props.isDisabled
|
46
48
|
? props.theme.colors.disabled
|
@@ -91,6 +93,9 @@ export default {
|
|
91
93
|
required: false,
|
92
94
|
default: null
|
93
95
|
},
|
96
|
+
fontColor: {
|
97
|
+
required: false
|
98
|
+
},
|
94
99
|
noWrap: {
|
95
100
|
required: false,
|
96
101
|
default: false
|
@@ -99,10 +104,6 @@ export default {
|
|
99
104
|
required: false,
|
100
105
|
default: null
|
101
106
|
},
|
102
|
-
id: {
|
103
|
-
required: false,
|
104
|
-
default: null
|
105
|
-
},
|
106
107
|
dataId: {
|
107
108
|
type: String,
|
108
109
|
default: ''
|
@@ -0,0 +1,95 @@
|
|
1
|
+
<template>
|
2
|
+
<Wrapper
|
3
|
+
v-show="!isLoading"
|
4
|
+
:class="viewCardClass"
|
5
|
+
:width="width"
|
6
|
+
:minWidth="minWidth"
|
7
|
+
>
|
8
|
+
<Spinner v-if="isLoading" size="50px" :limitedToModal="true" />
|
9
|
+
<CardWrapper v-else>
|
10
|
+
<CardTitle :class="titleClass" >
|
11
|
+
{{ $gettext(title) }}
|
12
|
+
<et-popover
|
13
|
+
v-if="showPopover && popoverText !== ''"
|
14
|
+
:text="popoverText"
|
15
|
+
></et-popover>
|
16
|
+
</CardTitle>
|
17
|
+
<slot></slot>
|
18
|
+
</CardWrapper>
|
19
|
+
</Wrapper>
|
20
|
+
</template>
|
21
|
+
|
22
|
+
<script>
|
23
|
+
import styled from 'vue-styled-components'
|
24
|
+
import Spinner from '../spinner'
|
25
|
+
|
26
|
+
const WrapperProps = { width: [Number, String], minWidth: [Number, String] }
|
27
|
+
const Wrapper = styled('div', WrapperProps)`
|
28
|
+
max-width: ${(props) => props.width};
|
29
|
+
min-width: ${(props) => props.minWidth};
|
30
|
+
padding: 20px;
|
31
|
+
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
32
|
+
border-radius: 4px;
|
33
|
+
background-color: ${props => props.theme.colors.white};
|
34
|
+
height: 100%;
|
35
|
+
`
|
36
|
+
|
37
|
+
const CardWrapper = styled('div')`
|
38
|
+
height: 100%;
|
39
|
+
width: auto;
|
40
|
+
`
|
41
|
+
|
42
|
+
const CardTitle = styled('p')`
|
43
|
+
font-size: 14px;
|
44
|
+
line-height: 1;
|
45
|
+
color: ${props => props.theme.colors.black};
|
46
|
+
font-weight: 700;
|
47
|
+
margin-bottom: 10px;
|
48
|
+
`
|
49
|
+
|
50
|
+
export default {
|
51
|
+
name: 'Card',
|
52
|
+
props: {
|
53
|
+
title: {
|
54
|
+
type: String,
|
55
|
+
default: ''
|
56
|
+
},
|
57
|
+
width: {
|
58
|
+
type: [Number, String],
|
59
|
+
required: false,
|
60
|
+
default: '400px'
|
61
|
+
},
|
62
|
+
minWidth: {
|
63
|
+
type: [Number, String],
|
64
|
+
required: false,
|
65
|
+
default: null
|
66
|
+
},
|
67
|
+
titleClass: {
|
68
|
+
type: String,
|
69
|
+
default: ''
|
70
|
+
},
|
71
|
+
showPopover: {
|
72
|
+
type: Boolean,
|
73
|
+
default: false
|
74
|
+
},
|
75
|
+
viewCardClass: {
|
76
|
+
type: String,
|
77
|
+
default: ''
|
78
|
+
},
|
79
|
+
popoverText: {
|
80
|
+
type: String,
|
81
|
+
default: ''
|
82
|
+
},
|
83
|
+
isLoading: {
|
84
|
+
type: Boolean,
|
85
|
+
default: false
|
86
|
+
}
|
87
|
+
},
|
88
|
+
components: {
|
89
|
+
Spinner,
|
90
|
+
Wrapper,
|
91
|
+
CardTitle,
|
92
|
+
CardWrapper,
|
93
|
+
}
|
94
|
+
}
|
95
|
+
</script>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import DeleteIcon from
|
1
|
+
import DeleteIcon from "./index.vue"
|
2
2
|
|
3
3
|
export default {
|
4
|
-
title:
|
5
|
-
component: DeleteIcon
|
4
|
+
title: "DeleteIcon",
|
5
|
+
component: DeleteIcon,
|
6
6
|
// argTypes: {},
|
7
7
|
}
|
8
8
|
|
@@ -11,19 +11,19 @@ const Template = (args, { argTypes }) => ({
|
|
11
11
|
components: { DeleteIcon },
|
12
12
|
// The story's `args` need to be mapped into the template through the `setup()` method
|
13
13
|
props: Object.keys(argTypes),
|
14
|
-
template: '<delete-icon v-bind="$props" />'
|
14
|
+
template: '<delete-icon v-bind="$props" />',
|
15
15
|
|
16
16
|
// import DeleteIcon from "@eturnity/eturnity_reusable_components/src/components/deleteIcon"
|
17
17
|
// To use:
|
18
|
-
// <delete-icon color="gray" @click="onDeleteItem(item)" :isDisabled="true" />
|
18
|
+
// <delete-icon color="gray" @click.native="onDeleteItem(item)" :isDisabled="true" />
|
19
19
|
})
|
20
20
|
|
21
21
|
export const Default = Template.bind({})
|
22
22
|
Default.args = {
|
23
|
-
isDisabled: false
|
23
|
+
isDisabled: false,
|
24
24
|
}
|
25
25
|
|
26
26
|
export const Disabled = Template.bind({})
|
27
27
|
Disabled.args = {
|
28
|
-
isDisabled: true
|
28
|
+
isDisabled: true,
|
29
29
|
}
|
@@ -4,62 +4,58 @@
|
|
4
4
|
@mouseleave="isHovered = false"
|
5
5
|
:isDisabled="isDisabled"
|
6
6
|
>
|
7
|
-
<
|
8
|
-
|
7
|
+
<icon-image
|
8
|
+
v-if="isHovered && !isDisabled"
|
9
|
+
:hoverBg="hoverBg"
|
10
|
+
:src="require('../../assets/icons/delete_icon.svg')"
|
11
|
+
/>
|
12
|
+
<icon-image
|
13
|
+
v-else
|
14
|
+
:src="require('../../assets/icons/delete_icon_gray.svg')"
|
15
|
+
/>
|
9
16
|
</wrapper>
|
10
17
|
</template>
|
11
18
|
|
12
19
|
<script>
|
13
20
|
// To use:
|
14
|
-
// <delete-icon @click="onDeleteItem(item)" :isDisabled="true" />
|
15
|
-
import styled from
|
16
|
-
import SvgDelete from '../../assets/icons/delete_icon.svg'
|
17
|
-
import SvgDeleteGray from '../../assets/icons/delete_icon_gray.svg'
|
21
|
+
// <delete-icon @click.native="onDeleteItem(item)" :isDisabled="true" />
|
22
|
+
import styled from "vue-styled-components"
|
18
23
|
|
19
24
|
const wrapperAttrs = { isDisabled: Boolean }
|
20
|
-
const Wrapper = styled(
|
25
|
+
const Wrapper = styled("div", wrapperAttrs)`
|
21
26
|
width: 30px;
|
22
27
|
height: 30px;
|
23
|
-
cursor: ${(props) => (props.isDisabled ?
|
28
|
+
cursor: ${(props) => (props.isDisabled ? "not-allowed" : "pointer")};
|
24
29
|
`
|
25
30
|
|
26
31
|
const IconImageAttrs = { hoverBg: String }
|
27
|
-
const
|
32
|
+
const IconImage = styled('img', IconImageAttrs)`
|
28
33
|
&:hover {
|
29
|
-
background-color: ${(props) =>
|
30
|
-
props.hoverBg ? props.hoverBg : props.theme.colors.grey5};
|
31
|
-
border-radius: 4px;
|
32
|
-
}
|
33
|
-
`
|
34
|
-
|
35
|
-
const DeleteIconGray = styled(SvgDeleteGray, IconImageAttrs)`
|
36
|
-
&:hover {
|
37
|
-
background-color: ${(props) => props.theme.colors.grey5};
|
34
|
+
background-color: ${(props) => props.hoverBg ? props.hoverBg : props.theme.colors.grey5};
|
38
35
|
border-radius: 4px;
|
39
36
|
}
|
40
37
|
`
|
41
38
|
|
42
39
|
export default {
|
43
|
-
name:
|
40
|
+
name: "delete-icon",
|
44
41
|
components: {
|
45
42
|
Wrapper,
|
46
|
-
|
47
|
-
DeleteIconGray
|
43
|
+
IconImage,
|
48
44
|
},
|
49
45
|
props: {
|
50
46
|
isDisabled: {
|
51
47
|
required: false,
|
52
|
-
default: false
|
48
|
+
default: false,
|
53
49
|
},
|
54
50
|
hoverBg: {
|
55
51
|
required: false,
|
56
|
-
default: ''
|
52
|
+
default: '',
|
57
53
|
}
|
58
54
|
},
|
59
55
|
data() {
|
60
56
|
return {
|
61
|
-
isHovered: false
|
57
|
+
isHovered: false,
|
62
58
|
}
|
63
|
-
}
|
59
|
+
},
|
64
60
|
}
|
65
61
|
</script>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<Handle :height="height" class="handle">
|
2
|
+
<Handle :height = "height" class="handle">
|
3
3
|
<Dot></Dot>
|
4
4
|
<Dot></Dot>
|
5
5
|
<Dot></Dot>
|
@@ -7,34 +7,35 @@
|
|
7
7
|
</template>
|
8
8
|
|
9
9
|
<script>
|
10
|
-
import styled from 'vue3-styled-components'
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
11
|
+
import styled from 'vue-styled-components'
|
12
|
+
|
13
|
+
const Handle = styled('div',{ height : String })`
|
14
|
+
position:absolute;
|
15
|
+
left:0;
|
16
|
+
margin-right:10px;
|
17
|
+
display: flex;
|
18
|
+
align-items: stretch;
|
19
|
+
flex-direction: column;
|
20
|
+
justify-content: center;
|
21
|
+
width: 14px;
|
22
|
+
height:${props=> props.height};
|
23
|
+
padding: 0 5px;
|
24
|
+
background-color: #f3f3f7;
|
25
|
+
cursor: pointer;
|
26
|
+
align-items: center;
|
27
|
+
`
|
27
28
|
const Dot = styled.div`
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
`
|
29
|
+
display: inline-block;
|
30
|
+
width: 4px;
|
31
|
+
height: 4px;
|
32
|
+
margin:2px;
|
33
|
+
background-color: #0068de;
|
34
|
+
`
|
34
35
|
|
35
36
|
export default {
|
36
37
|
name: 'draggableInputHandle',
|
37
|
-
props:
|
38
|
+
props:['height'],
|
38
39
|
components: {
|
39
40
|
Handle,
|
40
41
|
Dot
|