@eturnity/eturnity_reusable_components 1.2.31-3d-master.3 → 1.2.31-3d-master.6
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/App.vue +66 -250
- package/src/components/inputs/inputNumber/index.vue +4 -6
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -3,146 +3,58 @@
|
|
|
3
3
|
<page-container>
|
|
4
4
|
<br />
|
|
5
5
|
|
|
6
|
-
<iconWrapper name="bell"/>
|
|
7
6
|
<modal backdrop="dark" :isLoading="false" :isOpen="true">
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<main-table titleText="My Table">
|
|
12
|
-
<thead>
|
|
13
|
-
<tr>
|
|
14
|
-
<th>Column 1</th>
|
|
15
|
-
<th>Column 2</th>
|
|
16
|
-
<th>Column 3</th>
|
|
17
|
-
<div />
|
|
18
|
-
</tr>
|
|
19
|
-
</thead>
|
|
20
|
-
<tbody>
|
|
21
|
-
<tr> -->
|
|
22
|
-
<!-- <table-dropdown
|
|
23
|
-
:colSpan="3"
|
|
24
|
-
:tableItems="getDropdownValues()"
|
|
25
|
-
@toggle-dropdown-open="toggleDropdownOpen()"
|
|
26
|
-
@item-selected="onItemSelected({ item: $event, index })"
|
|
27
|
-
:isOpen="isDropdownOpen()"
|
|
28
|
-
:optionItems="itemOptions"
|
|
29
|
-
:optionsDisplay="['display_name', 'company_item_number', 'model']"
|
|
30
|
-
/> -->
|
|
31
|
-
<!-- <td>Test</td>
|
|
32
|
-
<div class="icons-container">
|
|
33
|
-
<three-dots :options="listOptions" :isLoading="false" />
|
|
34
|
-
</div>
|
|
35
|
-
</tr>
|
|
36
|
-
</tbody>
|
|
37
|
-
</main-table>
|
|
38
|
-
</modal>
|
|
39
|
-
<row-container>
|
|
40
|
-
<div v-for="(item, index) in markersArray" :key="item.index">
|
|
41
|
-
<project-marker
|
|
42
|
-
:activeLanguage="'en-us'"
|
|
43
|
-
:markerData="item"
|
|
44
|
-
:isLimitedPartner="false"
|
|
45
|
-
:isGroupSupport="false"
|
|
46
|
-
:isEditable="true"
|
|
47
|
-
:gettext="gettext"
|
|
48
|
-
:date="'23.07.2022'"
|
|
49
|
-
@editHandler="consoleLog('edit index ' + index)"
|
|
50
|
-
@deleteHandler="consoleLog('delete id ' + item.id)"
|
|
51
|
-
/>
|
|
52
|
-
</div>
|
|
53
|
-
</row-container>
|
|
54
|
-
<br />
|
|
55
|
-
<iconCollection />
|
|
56
|
-
<br />
|
|
57
|
-
<toggle
|
|
58
|
-
@on-toggle-change="onInputChange($event)"
|
|
59
|
-
:isChecked="inputValue"
|
|
60
|
-
label="My Label Text"
|
|
61
|
-
infoTextMessage="This is my test message"
|
|
62
|
-
infoTextAlign="right"
|
|
63
|
-
labelAlign="right"
|
|
64
|
-
:disabled="false"
|
|
65
|
-
/>
|
|
66
|
-
<<<<<<< HEAD
|
|
67
|
-
<br />
|
|
68
|
-
>>>>>>> EPDM-5448
|
|
69
|
-
<input-number
|
|
70
|
-
:value="inputValue"
|
|
71
|
-
@input-change="inputValue = $event"
|
|
72
|
-
inputWidth="250px"
|
|
73
|
-
slotSize="50%"
|
|
74
|
-
><InputAnnexContainer>
|
|
75
|
-
<span>123m2</span>
|
|
76
|
-
<info-text size="10px" alignArrow="right" text="infoText ceci est le text"></info-text>
|
|
77
|
-
</InputAnnexContainer>
|
|
78
|
-
</input-number>
|
|
79
|
-
<input-number
|
|
80
|
-
:value="inputValue"
|
|
81
|
-
@input-change="inputValue = $event"
|
|
82
|
-
inputWidth="250px"
|
|
83
|
-
slotSize="50%"
|
|
84
|
-
:isError="true"
|
|
85
|
-
><InputAnnexContainer>
|
|
86
|
-
<span>123m2</span>
|
|
87
|
-
<info-text :style="{'justify-self': 'end'}" size="12px" alignArrow="center" text="infoText ceci est le text">This is the tooltip text</info-text>
|
|
88
|
-
</InputAnnexContainer>
|
|
89
|
-
</input-number>
|
|
90
|
-
<br />
|
|
8
|
+
<div :style="{padding:'50px'}">
|
|
91
9
|
|
|
92
|
-
<p>InputText</p>
|
|
93
|
-
<input-text
|
|
94
|
-
placeholder="Company name"
|
|
95
|
-
:value="inputValue"
|
|
96
|
-
:isError="true"
|
|
97
|
-
errorMessage="This is my error message"
|
|
98
|
-
infoTextAlign="right"
|
|
99
|
-
infoTextMessage="My info message"
|
|
100
|
-
label="Question 5"
|
|
101
|
-
alignItems="vertical"
|
|
102
|
-
inputWidth="250px"
|
|
103
|
-
minWidth="100px"
|
|
104
|
-
/>
|
|
105
|
-
<br/>
|
|
106
10
|
<input-number
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
label="Do you accept the Terms?"
|
|
130
|
-
:isChecked="true"
|
|
131
|
-
size="small"
|
|
132
|
-
:isDisabled="false"
|
|
133
|
-
/> -->
|
|
134
|
-
<!-- <external-button text="Click me!" minWidth="500px" /> -->
|
|
135
|
-
>>>>>>> master
|
|
136
|
-
=======
|
|
11
|
+
:value="value"
|
|
12
|
+
:minNumber="0"
|
|
13
|
+
unitName="mm"
|
|
14
|
+
:numberPrecision="0"
|
|
15
|
+
backgroundColor="transparent"
|
|
16
|
+
inputHeight="34px"
|
|
17
|
+
inputWidth="420px"
|
|
18
|
+
textAlign="left"
|
|
19
|
+
:isInteractive="true"
|
|
20
|
+
:interactionStep="50"
|
|
21
|
+
alignItems="horizontal"
|
|
22
|
+
@on-input="value=$event"
|
|
23
|
+
@input-change="changeHandler"
|
|
24
|
+
@input-focus="focusHandler"
|
|
25
|
+
@input-blur="blurHandler"
|
|
26
|
+
>
|
|
27
|
+
<template v-slot:label>
|
|
28
|
+
<div>
|
|
29
|
+
Interactive Label
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
</input-number>
|
|
137
33
|
<input-number
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
34
|
+
:value="value2"
|
|
35
|
+
:minNumber="0"
|
|
36
|
+
unitName="mm"
|
|
37
|
+
:numberPrecision="0"
|
|
38
|
+
backgroundColor="transparent"
|
|
39
|
+
inputHeight="34px"
|
|
40
|
+
inputWidth="420px"
|
|
41
|
+
textAlign="left"
|
|
42
|
+
:isInteractive="true"
|
|
43
|
+
:interactionStep="50"
|
|
44
|
+
alignItems="horizontal"
|
|
45
|
+
@input-change="changeHandler"
|
|
46
|
+
@input-focus="focusHandler"
|
|
47
|
+
@input-blur="blurHandler"
|
|
48
|
+
@on-input="inputHandler"
|
|
49
|
+
>
|
|
50
|
+
<template v-slot:label>
|
|
51
|
+
<div>
|
|
52
|
+
Interactive Label
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
</input-number>
|
|
56
|
+
</div>
|
|
57
|
+
</modal>
|
|
146
58
|
</page-container>
|
|
147
59
|
</ThemeProvider>
|
|
148
60
|
</template>
|
|
@@ -151,15 +63,8 @@
|
|
|
151
63
|
import { ThemeProvider } from "vue-styled-components"
|
|
152
64
|
import theme from "./assets/theme"
|
|
153
65
|
import styled from "vue-styled-components"
|
|
154
|
-
import MainTable from "@/components/tables/mainTable"
|
|
155
|
-
import ThreeDots from "@/components/threeDots"
|
|
156
|
-
import Toggle from "@/components/inputs/toggle"
|
|
157
66
|
import InputNumber from "@/components/inputs/inputNumber"
|
|
158
|
-
import
|
|
159
|
-
import PageSubtitle from "@/components/pageSubtitle"
|
|
160
|
-
import Spinner from "@/components/spinner"
|
|
161
|
-
import ExternalButton from "@/components/buttons/externalButton"
|
|
162
|
-
import InputText from "@/components/inputs/inputText"
|
|
67
|
+
import Modal from "@/components/modals/modal"
|
|
163
68
|
// import TableDropdown from "@/components/tableDropdown"
|
|
164
69
|
|
|
165
70
|
const PageContainer = styled.div`
|
|
@@ -178,117 +83,28 @@ export default {
|
|
|
178
83
|
ThemeProvider,
|
|
179
84
|
PageContainer,
|
|
180
85
|
InputNumber,
|
|
181
|
-
|
|
182
|
-
Spinner,
|
|
183
|
-
Checkbox,
|
|
184
|
-
InputText,
|
|
185
|
-
ExternalButton,
|
|
186
|
-
iconWrapper,
|
|
187
|
-
Modal,
|
|
188
|
-
ProjectMarker,
|
|
189
|
-
iconCollection,
|
|
190
|
-
RowContainer
|
|
86
|
+
Modal
|
|
191
87
|
},
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
itemOptions: [
|
|
197
|
-
{
|
|
198
|
-
display_name: 'Test 1',
|
|
199
|
-
company_item_number: '123',
|
|
200
|
-
model: 'BTB-2145 Long Text Long Text Long Text Long Text Long Text',
|
|
201
|
-
id: 1
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
display_name: 'Test 2',
|
|
205
|
-
company_item_number: '1234',
|
|
206
|
-
model: 'BTB-123',
|
|
207
|
-
id: 2
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
display_name: 'Test 3',
|
|
211
|
-
company_item_number: '12345',
|
|
212
|
-
model: 'BTB-543',
|
|
213
|
-
id: 3
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
display_name: 'Test 4',
|
|
217
|
-
company_item_number: '123456',
|
|
218
|
-
model: 'BTB-4930',
|
|
219
|
-
id: 4
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
markersArray: [
|
|
223
|
-
{
|
|
224
|
-
id: 1180,
|
|
225
|
-
choice: 'project-on-hold',
|
|
226
|
-
translations: {
|
|
227
|
-
fr: { name: 'fr - Project on hold' },
|
|
228
|
-
'en-us': { name: 'Project on hold' },
|
|
229
|
-
'it-ch': { name: 'it-ch - Project on hold' },
|
|
230
|
-
'de-ch': { name: 'de-ch - Project on hold' },
|
|
231
|
-
'fr-be': { name: 'fr-be - Project on hold' }
|
|
232
|
-
},
|
|
233
|
-
color: '#D27CCA',
|
|
234
|
-
can_be_deleted: true
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: 266,
|
|
238
|
-
choice: 'transferred',
|
|
239
|
-
translations: {
|
|
240
|
-
'en-us': { name: 'Transferred' },
|
|
241
|
-
fr: { name: 'fr - Transferred' },
|
|
242
|
-
'de-ch': { name: 'de-ch - Transferred' },
|
|
243
|
-
'it-ch': { name: 'it-ch - Transferred' },
|
|
244
|
-
'fr-be': { name: 'fr-be - Transferred' }
|
|
245
|
-
},
|
|
246
|
-
color: '#20A4CA',
|
|
247
|
-
can_be_deleted: false
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
id: 267,
|
|
251
|
-
choice: 'sold',
|
|
252
|
-
translations: {
|
|
253
|
-
'en-us': { name: 'Sold' },
|
|
254
|
-
fr: { name: 'Vendu' },
|
|
255
|
-
'de-ch': { name: 'Verkauft' },
|
|
256
|
-
'it-ch': { name: 'Venduto' },
|
|
257
|
-
'fr-be': { name: 'Vendu' }
|
|
258
|
-
},
|
|
259
|
-
color: '#008351',
|
|
260
|
-
can_be_deleted: false
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
id: 268,
|
|
264
|
-
choice: 'lost',
|
|
265
|
-
translations: {
|
|
266
|
-
'en-us': { name: 'Lost' },
|
|
267
|
-
fr: { name: 'Perdu' },
|
|
268
|
-
'de-ch': { name: 'Verloren' },
|
|
269
|
-
'it-ch': { name: 'Perso' },
|
|
270
|
-
'fr-be': { name: 'Perdu' }
|
|
271
|
-
},
|
|
272
|
-
color: '#A52019',
|
|
273
|
-
can_be_deleted: false
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
id: 1181,
|
|
277
|
-
choice: 'project-created',
|
|
278
|
-
translations: {
|
|
279
|
-
fr: { name: 'Project created' },
|
|
280
|
-
'en-us': { name: 'Project created' },
|
|
281
|
-
'it-ch': { name: 'Project created' },
|
|
282
|
-
'de-ch': { name: 'Project created' },
|
|
283
|
-
'fr-be': { name: 'Project created' }
|
|
284
|
-
},
|
|
285
|
-
color: '#FDB813',
|
|
286
|
-
can_be_deleted: true
|
|
287
|
-
}
|
|
288
|
-
]
|
|
88
|
+
data() {
|
|
89
|
+
return {
|
|
90
|
+
value:42,
|
|
91
|
+
value2:42
|
|
289
92
|
}
|
|
290
93
|
},
|
|
291
94
|
methods: {
|
|
95
|
+
blurHandler(e){
|
|
96
|
+
console.log('blur',e)
|
|
97
|
+
},
|
|
98
|
+
changeHandler(e){
|
|
99
|
+
console.log('change',e)
|
|
100
|
+
},
|
|
101
|
+
focusHandler(e){
|
|
102
|
+
console.log('focus',e)
|
|
103
|
+
},
|
|
104
|
+
inputHandler(e){
|
|
105
|
+
this.value2=e
|
|
106
|
+
console.log('input',e)
|
|
107
|
+
},
|
|
292
108
|
keydownHandler(e) {
|
|
293
109
|
console.log('test', e)
|
|
294
110
|
},
|
|
@@ -402,9 +402,6 @@ export default {
|
|
|
402
402
|
hasLabelSlot(){
|
|
403
403
|
return !!this.$slots.label
|
|
404
404
|
},
|
|
405
|
-
computedSlotSize() {
|
|
406
|
-
return this.slotSize || this.$slots['default'][0].elm.clientWidth
|
|
407
|
-
}
|
|
408
405
|
},
|
|
409
406
|
methods: {
|
|
410
407
|
onChangeHandler(event) {
|
|
@@ -525,10 +522,10 @@ export default {
|
|
|
525
522
|
}
|
|
526
523
|
},
|
|
527
524
|
initInteraction(e) {
|
|
528
|
-
this.focusInput()
|
|
529
525
|
window.addEventListener('mousemove', this.interact, false);
|
|
530
526
|
window.addEventListener('mouseup', this.stopInteract, false);
|
|
531
527
|
e.preventDefault()
|
|
528
|
+
this.focusInput()
|
|
532
529
|
},
|
|
533
530
|
interact(e) {
|
|
534
531
|
e.preventDefault()
|
|
@@ -546,8 +543,9 @@ export default {
|
|
|
546
543
|
},
|
|
547
544
|
stopInteract(e) {
|
|
548
545
|
e.preventDefault()
|
|
549
|
-
|
|
550
|
-
|
|
546
|
+
window.removeEventListener('mousemove', this.interact, false);
|
|
547
|
+
window.removeEventListener('mouseup', this.stopInteract, false);
|
|
548
|
+
this.blurInput()
|
|
551
549
|
},
|
|
552
550
|
},
|
|
553
551
|
created() {
|