@tekkare/auriga 0.1.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/README.md +89 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.mts +7 -0
- package/dist/module.d.ts +7 -0
- package/dist/module.json +8 -0
- package/dist/module.mjs +23 -0
- package/dist/runtime/components/argAdvancedSearchBar.vue +866 -0
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +4 -0
- package/dist/runtime/components/argBtn.vue +108 -0
- package/dist/runtime/components/argBtn.vue.d.ts +4 -0
- package/dist/runtime/components/argComplexSelect.vue +558 -0
- package/dist/runtime/components/argComplexSelect.vue.d.ts +4 -0
- package/dist/runtime/components/argDataLoader.vue +337 -0
- package/dist/runtime/components/argDataLoader.vue.d.ts +4 -0
- package/dist/runtime/components/argDropdownSelect.vue +321 -0
- package/dist/runtime/components/argDropdownSelect.vue.d.ts +4 -0
- package/dist/runtime/components/argFileBtn.vue +136 -0
- package/dist/runtime/components/argFileBtn.vue.d.ts +4 -0
- package/dist/runtime/components/argHeaderTabs.vue +216 -0
- package/dist/runtime/components/argHeaderTabs.vue.d.ts +4 -0
- package/dist/runtime/components/argIcon.vue +3135 -0
- package/dist/runtime/components/argIcon.vue.d.ts +4 -0
- package/dist/runtime/components/argMultipleChoice.vue +149 -0
- package/dist/runtime/components/argMultipleChoice.vue.d.ts +4 -0
- package/dist/runtime/components/argNoData.vue +83 -0
- package/dist/runtime/components/argNoData.vue.d.ts +4 -0
- package/dist/runtime/components/argSearchInput.vue +123 -0
- package/dist/runtime/components/argSearchInput.vue.d.ts +4 -0
- package/dist/runtime/components/argSimpleLabel.vue +214 -0
- package/dist/runtime/components/argSimpleLabel.vue.d.ts +4 -0
- package/dist/runtime/components/argStyle.vue +975 -0
- package/dist/runtime/components/argStyle.vue.d.ts +4 -0
- package/dist/runtime/components/argTable.vue +863 -0
- package/dist/runtime/components/argTable.vue.d.ts +4 -0
- package/dist/runtime/components/argTags.vue +26 -0
- package/dist/runtime/components/argTags.vue.d.ts +4 -0
- package/dist/runtime/components/argTekkareLoader.vue +72 -0
- package/dist/runtime/components/argTekkareLoader.vue.d.ts +4 -0
- package/dist/runtime/components/argTooltip.vue +141 -0
- package/dist/runtime/components/argTooltip.vue.d.ts +4 -0
- package/dist/runtime/plugin.d.ts +2 -0
- package/dist/runtime/plugin.mjs +4 -0
- package/dist/types.d.mts +15 -0
- package/dist/types.d.ts +15 -0
- package/package.json +45 -0
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="oip_data_loader_container">
|
|
3
|
+
<div class="oip_data_loader">
|
|
4
|
+
<div class="oip_data_loader_text_group">
|
|
5
|
+
<h1 class="oip_data_loader_title">Doing data science</h1>
|
|
6
|
+
<h2 class="oip_data_loader_subtitle">Thanks for waiting</h2>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="oip_data_loader_background_container">
|
|
9
|
+
<arg-icon
|
|
10
|
+
name="Percent"
|
|
11
|
+
color="#2176FF"
|
|
12
|
+
size="31"
|
|
13
|
+
class="oip_data_loader_icon_1"
|
|
14
|
+
/>
|
|
15
|
+
<arg-icon
|
|
16
|
+
name="MagicWand"
|
|
17
|
+
color="#2176FF"
|
|
18
|
+
size="31"
|
|
19
|
+
class="oip_data_loader_icon_2"
|
|
20
|
+
/>
|
|
21
|
+
<arg-icon
|
|
22
|
+
name="TestTube"
|
|
23
|
+
color="#2176FF"
|
|
24
|
+
size="31"
|
|
25
|
+
class="oip_data_loader_icon_3"
|
|
26
|
+
/>
|
|
27
|
+
<div class="oip_data_loader_outer_circle">
|
|
28
|
+
<div class="oip_data_loader_inner_circle"></div>
|
|
29
|
+
</div>
|
|
30
|
+
<arg-icon
|
|
31
|
+
name="Flask"
|
|
32
|
+
color="#2176FF"
|
|
33
|
+
size="31"
|
|
34
|
+
class="oip_data_loader_icon_4"
|
|
35
|
+
/>
|
|
36
|
+
<arg-icon
|
|
37
|
+
name="Lightning"
|
|
38
|
+
color="#2176FF"
|
|
39
|
+
size="31"
|
|
40
|
+
class="oip_data_loader_icon_5"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script>
|
|
48
|
+
export default {
|
|
49
|
+
name: "argDataLoader"
|
|
50
|
+
};
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<style scoped>
|
|
54
|
+
.oip_data_loader_container {
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
padding: 100px 20px;
|
|
58
|
+
}
|
|
59
|
+
.oip_data_loader {
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
.oip_data_loader_text_group {
|
|
63
|
+
position: relative;
|
|
64
|
+
z-index: 2;
|
|
65
|
+
margin-bottom: -5px;
|
|
66
|
+
}
|
|
67
|
+
.oip_data_loader_title {
|
|
68
|
+
font-family: "Figtree", sans-serif !important;
|
|
69
|
+
color: #2176ff;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: 700;
|
|
72
|
+
font-size: 20px;
|
|
73
|
+
line-height: 23px;
|
|
74
|
+
text-align: center;
|
|
75
|
+
}
|
|
76
|
+
.oip_data_loader_subtitle {
|
|
77
|
+
font-family: "Figtree", sans-serif !important;
|
|
78
|
+
font-style: normal;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
font-size: 12px;
|
|
81
|
+
line-height: 170%;
|
|
82
|
+
text-align: center;
|
|
83
|
+
color: #2176ff;
|
|
84
|
+
}
|
|
85
|
+
.oip_data_loader_background_container {
|
|
86
|
+
position: static;
|
|
87
|
+
z-index: 1;
|
|
88
|
+
}
|
|
89
|
+
.oip_data_loader_outer_circle {
|
|
90
|
+
background: #eaeaf5;
|
|
91
|
+
border-radius: 50%;
|
|
92
|
+
position: absolute;
|
|
93
|
+
animation: outer-circle-scale 10s ease infinite both;
|
|
94
|
+
left: 0;
|
|
95
|
+
right: 0;
|
|
96
|
+
top: 0;
|
|
97
|
+
bottom: 0;
|
|
98
|
+
margin: auto;
|
|
99
|
+
z-index: 1;
|
|
100
|
+
height: 42px;
|
|
101
|
+
width: 42px;
|
|
102
|
+
}
|
|
103
|
+
.oip_data_loader_inner_circle {
|
|
104
|
+
background: #f5f5f9;
|
|
105
|
+
width: 41.33px;
|
|
106
|
+
height: 41.33px;
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
position: absolute;
|
|
109
|
+
left: 0;
|
|
110
|
+
right: 0;
|
|
111
|
+
top: 0;
|
|
112
|
+
bottom: 0;
|
|
113
|
+
margin: auto;
|
|
114
|
+
z-index: 1;
|
|
115
|
+
animation: inner-circle-scale 10s ease infinite both;
|
|
116
|
+
}
|
|
117
|
+
@keyframes outer-circle-scale {
|
|
118
|
+
0% {
|
|
119
|
+
transform: scale(1);
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
7.7% {
|
|
123
|
+
transform: scale(2.6);
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
30.7% {
|
|
127
|
+
transform: scale(3.6);
|
|
128
|
+
opacity: 1;
|
|
129
|
+
}
|
|
130
|
+
53.7% {
|
|
131
|
+
transform: scale(3);
|
|
132
|
+
opacity: 1;
|
|
133
|
+
}
|
|
134
|
+
76.7% {
|
|
135
|
+
transform: scale(3.9);
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
84.4% {
|
|
139
|
+
transform: scale(3);
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
100% {
|
|
143
|
+
transform: scale(1);
|
|
144
|
+
opacity: 0;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
@keyframes inner-circle-scale {
|
|
148
|
+
0% {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
}
|
|
151
|
+
7.7% {
|
|
152
|
+
opacity: 0;
|
|
153
|
+
}
|
|
154
|
+
30.7% {
|
|
155
|
+
opacity: 0;
|
|
156
|
+
}
|
|
157
|
+
53.7% {
|
|
158
|
+
opacity: 0;
|
|
159
|
+
}
|
|
160
|
+
76.7% {
|
|
161
|
+
opacity: 0;
|
|
162
|
+
}
|
|
163
|
+
84.4% {
|
|
164
|
+
opacity: 0;
|
|
165
|
+
}
|
|
166
|
+
100% {
|
|
167
|
+
opacity: 1;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
.oip_data_loader_icon_1,
|
|
171
|
+
.oip_data_loader_icon_2,
|
|
172
|
+
.oip_data_loader_icon_3,
|
|
173
|
+
.oip_data_loader_icon_4,
|
|
174
|
+
.oip_data_loader_icon_5 {
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 0;
|
|
177
|
+
right: 0;
|
|
178
|
+
top: 0;
|
|
179
|
+
bottom: 0;
|
|
180
|
+
margin: auto;
|
|
181
|
+
}
|
|
182
|
+
.oip_data_loader_icon_1 {
|
|
183
|
+
animation: icon1-scale 10s ease infinite both;
|
|
184
|
+
}
|
|
185
|
+
.oip_data_loader_icon_2 {
|
|
186
|
+
animation: icon2-scale 10s ease infinite both;
|
|
187
|
+
}
|
|
188
|
+
.oip_data_loader_icon_3 {
|
|
189
|
+
animation: icon3-scale 10s ease infinite both;
|
|
190
|
+
}
|
|
191
|
+
.oip_data_loader_icon_4 {
|
|
192
|
+
animation: icon4-scale 10s ease infinite both;
|
|
193
|
+
}
|
|
194
|
+
.oip_data_loader_icon_5 {
|
|
195
|
+
animation: icon5-scale 10s ease infinite both;
|
|
196
|
+
}
|
|
197
|
+
@keyframes icon1-scale {
|
|
198
|
+
0% {
|
|
199
|
+
opacity: 0;
|
|
200
|
+
}
|
|
201
|
+
7.7% {
|
|
202
|
+
transform: translate(-74px, -57px);
|
|
203
|
+
opacity: 1;
|
|
204
|
+
}
|
|
205
|
+
30.7% {
|
|
206
|
+
transform: translate(-74px, -59px) rotate(15deg);
|
|
207
|
+
opacity: 1;
|
|
208
|
+
}
|
|
209
|
+
53.7% {
|
|
210
|
+
transform: translate(-74px, -59px);
|
|
211
|
+
opacity: 1;
|
|
212
|
+
}
|
|
213
|
+
76.7% {
|
|
214
|
+
transform: translate(-74px, -59px) rotate(15deg);
|
|
215
|
+
opacity: 1;
|
|
216
|
+
}
|
|
217
|
+
84.4% {
|
|
218
|
+
transform: translate(-74px, -59px);
|
|
219
|
+
opacity: 1;
|
|
220
|
+
}
|
|
221
|
+
100% {
|
|
222
|
+
opacity: 0;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
@keyframes icon2-scale {
|
|
226
|
+
0% {
|
|
227
|
+
opacity: 0;
|
|
228
|
+
}
|
|
229
|
+
7.7% {
|
|
230
|
+
transform: translate(40px, -89px);
|
|
231
|
+
opacity: 1;
|
|
232
|
+
}
|
|
233
|
+
30.7% {
|
|
234
|
+
transform: translate(40px, -89px) rotate(-15deg);
|
|
235
|
+
opacity: 1;
|
|
236
|
+
}
|
|
237
|
+
53.7% {
|
|
238
|
+
transform: translate(40px, -89px);
|
|
239
|
+
opacity: 1;
|
|
240
|
+
}
|
|
241
|
+
76.7% {
|
|
242
|
+
transform: translate(40px, -89px) rotate(-15deg);
|
|
243
|
+
opacity: 1;
|
|
244
|
+
}
|
|
245
|
+
84.4% {
|
|
246
|
+
transform: translate(40px, -89px);
|
|
247
|
+
opacity: 1;
|
|
248
|
+
}
|
|
249
|
+
100% {
|
|
250
|
+
opacity: 0;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
@keyframes icon3-scale {
|
|
254
|
+
0% {
|
|
255
|
+
opacity: 0;
|
|
256
|
+
}
|
|
257
|
+
7.7% {
|
|
258
|
+
transform: translate(112px, -35px);
|
|
259
|
+
opacity: 1;
|
|
260
|
+
}
|
|
261
|
+
30.7% {
|
|
262
|
+
transform: translate(112px, -35px) rotate(15deg);
|
|
263
|
+
opacity: 1;
|
|
264
|
+
}
|
|
265
|
+
53.7% {
|
|
266
|
+
transform: translate(112px, -35px);
|
|
267
|
+
opacity: 1;
|
|
268
|
+
}
|
|
269
|
+
76.7% {
|
|
270
|
+
transform: translate(112px, -35px) rotate(15deg);
|
|
271
|
+
opacity: 1;
|
|
272
|
+
}
|
|
273
|
+
84.4% {
|
|
274
|
+
transform: translate(112px, -35px);
|
|
275
|
+
opacity: 1;
|
|
276
|
+
}
|
|
277
|
+
100% {
|
|
278
|
+
opacity: 0;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
@keyframes icon4-scale {
|
|
282
|
+
0% {
|
|
283
|
+
opacity: 0;
|
|
284
|
+
}
|
|
285
|
+
7.7% {
|
|
286
|
+
transform: translate(-57px, 69px);
|
|
287
|
+
opacity: 1;
|
|
288
|
+
}
|
|
289
|
+
30.7% {
|
|
290
|
+
transform: translate(-57px, 69px) rotate(-15deg);
|
|
291
|
+
opacity: 1;
|
|
292
|
+
}
|
|
293
|
+
53.7% {
|
|
294
|
+
transform: translate(-57px, 69px);
|
|
295
|
+
opacity: 1;
|
|
296
|
+
}
|
|
297
|
+
76.7% {
|
|
298
|
+
transform: translate(-57px, 69px) rotate(-15deg);
|
|
299
|
+
opacity: 1;
|
|
300
|
+
}
|
|
301
|
+
84.4% {
|
|
302
|
+
transform: translate(-57px, 69px);
|
|
303
|
+
opacity: 1;
|
|
304
|
+
}
|
|
305
|
+
100% {
|
|
306
|
+
opacity: 0;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
@keyframes icon5-scale {
|
|
310
|
+
0% {
|
|
311
|
+
opacity: 0;
|
|
312
|
+
}
|
|
313
|
+
7.7% {
|
|
314
|
+
transform: translate(48px, 87px);
|
|
315
|
+
opacity: 1;
|
|
316
|
+
}
|
|
317
|
+
30.7% {
|
|
318
|
+
transform: translate(48px, 87px) rotate(-15deg);
|
|
319
|
+
opacity: 1;
|
|
320
|
+
}
|
|
321
|
+
53.7% {
|
|
322
|
+
transform: translate(48px, 87px);
|
|
323
|
+
opacity: 1;
|
|
324
|
+
}
|
|
325
|
+
76.7% {
|
|
326
|
+
transform: translate(48px, 87px) rotate(-15deg);
|
|
327
|
+
opacity: 1;
|
|
328
|
+
}
|
|
329
|
+
84.4% {
|
|
330
|
+
transform: translate(48px, 87px);
|
|
331
|
+
opacity: 1;
|
|
332
|
+
}
|
|
333
|
+
100% {
|
|
334
|
+
opacity: 0;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
</style>
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<!-- Simple select -->
|
|
4
|
+
<arg-simple-label
|
|
5
|
+
:disabled="disabled"
|
|
6
|
+
@click="changeDisplay()"
|
|
7
|
+
:class="isDisplay ? 'open' : ''"
|
|
8
|
+
>
|
|
9
|
+
<span
|
|
10
|
+
v-if="
|
|
11
|
+
selected_item === null ||
|
|
12
|
+
selected_item.length === 0 ||
|
|
13
|
+
change_title === false
|
|
14
|
+
"
|
|
15
|
+
>
|
|
16
|
+
<slot></slot>
|
|
17
|
+
</span>
|
|
18
|
+
<arg-tooltip
|
|
19
|
+
v-else
|
|
20
|
+
class="full_width"
|
|
21
|
+
:disable="!isEllipsisActive"
|
|
22
|
+
:tooltipText="selected_item"
|
|
23
|
+
>
|
|
24
|
+
<p :id="`label_${selected_item}`">{{ selected_item }}</p>
|
|
25
|
+
</arg-tooltip>
|
|
26
|
+
</arg-simple-label>
|
|
27
|
+
<!-- Dropdown select -->
|
|
28
|
+
<div
|
|
29
|
+
:style="isDisplay === false ? 'display : none' : ''"
|
|
30
|
+
class="oip_select_dropdown_block"
|
|
31
|
+
@click.stop
|
|
32
|
+
>
|
|
33
|
+
<!--<div v-if="filter_placeholder" class="oip_select_dropdown_title">{{ filter_placeholder }}</div>-->
|
|
34
|
+
<!-- Input search -->
|
|
35
|
+
<div v-if="search === true" class="oip_search_container">
|
|
36
|
+
<arg-icon size="20" name="MagnifyingGlass"></arg-icon>
|
|
37
|
+
<input
|
|
38
|
+
class="oip_search_name"
|
|
39
|
+
v-model="searchName"
|
|
40
|
+
:placeholder="filter_placeholder"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
<!-- List -->
|
|
44
|
+
<div class="oip_select_dropdown_selection_container">
|
|
45
|
+
<div
|
|
46
|
+
class="oip_select_complex_selection_loop"
|
|
47
|
+
v-for="(element, index) of filterName()"
|
|
48
|
+
:key="index"
|
|
49
|
+
:class="values_disabled.includes(index) ? 'disabled_option' : ''"
|
|
50
|
+
@click="add_element(element, index)"
|
|
51
|
+
>
|
|
52
|
+
<arg-icon
|
|
53
|
+
v-if="values_disabled.includes(index)"
|
|
54
|
+
name="MinusCircleDisable"
|
|
55
|
+
size="16"
|
|
56
|
+
color="var(--independence)"
|
|
57
|
+
class="disable"
|
|
58
|
+
/>
|
|
59
|
+
<arg-icon
|
|
60
|
+
v-else
|
|
61
|
+
:class="
|
|
62
|
+
(
|
|
63
|
+
return_value
|
|
64
|
+
? selected_item === element
|
|
65
|
+
: selected_number === index
|
|
66
|
+
)
|
|
67
|
+
? 'add'
|
|
68
|
+
: ''
|
|
69
|
+
"
|
|
70
|
+
:color="
|
|
71
|
+
(
|
|
72
|
+
return_value
|
|
73
|
+
? selected_item === element
|
|
74
|
+
: selected_number === index
|
|
75
|
+
)
|
|
76
|
+
? 'var(--primary)'
|
|
77
|
+
: 'var(--lavendar-grey)'
|
|
78
|
+
"
|
|
79
|
+
size="16"
|
|
80
|
+
:name="
|
|
81
|
+
(
|
|
82
|
+
return_value
|
|
83
|
+
? selected_item === element
|
|
84
|
+
: selected_number === index
|
|
85
|
+
)
|
|
86
|
+
? 'CircleSelectFill'
|
|
87
|
+
: 'Circle'
|
|
88
|
+
"
|
|
89
|
+
/>
|
|
90
|
+
<div
|
|
91
|
+
:class="[
|
|
92
|
+
'oip_select_complex_selection_loop_name',
|
|
93
|
+
(
|
|
94
|
+
return_value
|
|
95
|
+
? selected_item === element
|
|
96
|
+
: selected_number === index
|
|
97
|
+
)
|
|
98
|
+
? 'add'
|
|
99
|
+
: 'del',
|
|
100
|
+
]"
|
|
101
|
+
>
|
|
102
|
+
{{ element }}
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</template>
|
|
109
|
+
|
|
110
|
+
<script>
|
|
111
|
+
export default {
|
|
112
|
+
name: "argDropdownSelect"
|
|
113
|
+
};
|
|
114
|
+
</script>
|
|
115
|
+
|
|
116
|
+
<script setup lang="ts">
|
|
117
|
+
import argIcon from "./argIcon.vue";
|
|
118
|
+
import {
|
|
119
|
+
onMounted,
|
|
120
|
+
onUpdated,
|
|
121
|
+
onUnmounted,
|
|
122
|
+
ref,
|
|
123
|
+
computed,
|
|
124
|
+
defineProps,
|
|
125
|
+
defineEmits,
|
|
126
|
+
watch,
|
|
127
|
+
} from "vue";
|
|
128
|
+
const props = defineProps({
|
|
129
|
+
element_table: { type: Array<string>, required: true },
|
|
130
|
+
search: { type: Boolean, default: true },
|
|
131
|
+
filter_placeholder: {
|
|
132
|
+
type: String,
|
|
133
|
+
required: false,
|
|
134
|
+
default: "Search options...",
|
|
135
|
+
},
|
|
136
|
+
change_title: { type: Boolean, default: true },
|
|
137
|
+
close_on_click: { type: Boolean, default: true },
|
|
138
|
+
default_select: { type: Number, required: false, default: null },
|
|
139
|
+
watch_default_change: { type: Boolean, default: true },
|
|
140
|
+
disabled: { type: Boolean, default: false },
|
|
141
|
+
return_value: { type: Boolean, default: false },
|
|
142
|
+
values_disabled: { type: Array, default: () => [] },
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
var isDisplay = ref(false);
|
|
146
|
+
var searchName = ref("");
|
|
147
|
+
var labelElement: HTMLElement | null;
|
|
148
|
+
var isEllipsisActive = ref(false);
|
|
149
|
+
|
|
150
|
+
var table_values = ref(props.element_table);
|
|
151
|
+
var selected_item = ref(props.element_table[props.default_select]);
|
|
152
|
+
var selected_number = ref(props.default_select);
|
|
153
|
+
|
|
154
|
+
const emit = defineEmits(["changeElement", "update:Value"]);
|
|
155
|
+
|
|
156
|
+
watch(
|
|
157
|
+
() => props.element_table,
|
|
158
|
+
(new_element_table: string[]) => {
|
|
159
|
+
if (props.watch_default_change) {
|
|
160
|
+
selected_item.value = new_element_table[props.default_select];
|
|
161
|
+
selected_number.value = props.default_select;
|
|
162
|
+
emit(
|
|
163
|
+
"changeElement",
|
|
164
|
+
props.return_value ? selected_item.value : selected_number.value
|
|
165
|
+
);
|
|
166
|
+
emit(
|
|
167
|
+
"update:Value",
|
|
168
|
+
props.return_value ? selected_item.value : selected_number.value
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
watch(
|
|
175
|
+
() => props.default_select,
|
|
176
|
+
(new_default_select: number) => {
|
|
177
|
+
if (!props.values_disabled.includes(new_default_select)) {
|
|
178
|
+
selected_item.value = props.element_table[new_default_select];
|
|
179
|
+
selected_number.value = new_default_select;
|
|
180
|
+
emit(
|
|
181
|
+
"changeElement",
|
|
182
|
+
props.return_value ? selected_item.value : selected_number.value
|
|
183
|
+
);
|
|
184
|
+
emit(
|
|
185
|
+
"update:Value",
|
|
186
|
+
props.return_value ? selected_item.value : selected_number.value
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
function checkActiveEllipsis() {
|
|
193
|
+
if (labelElement !== null) {
|
|
194
|
+
if (labelElement.offsetWidth < labelElement.scrollWidth) {
|
|
195
|
+
isEllipsisActive.value = true;
|
|
196
|
+
} else isEllipsisActive.value = false;
|
|
197
|
+
} else isEllipsisActive.value = false;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function add_element(element: string, index: number) {
|
|
201
|
+
if (!props.values_disabled.includes(index)) {
|
|
202
|
+
selected_item.value = element;
|
|
203
|
+
selected_number.value = index;
|
|
204
|
+
if (props.close_on_click === true) {
|
|
205
|
+
close();
|
|
206
|
+
}
|
|
207
|
+
emit(
|
|
208
|
+
"changeElement",
|
|
209
|
+
props.return_value ? selected_item.value : selected_number.value
|
|
210
|
+
);
|
|
211
|
+
emit(
|
|
212
|
+
"update:Value",
|
|
213
|
+
props.return_value ? selected_item.value : selected_number.value
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function close() {
|
|
219
|
+
if (isDisplay) {
|
|
220
|
+
isDisplay.value = false;
|
|
221
|
+
document?.removeEventListener("click", close);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function filterName() {
|
|
226
|
+
if (searchName.value !== null) {
|
|
227
|
+
return props.element_table.filter((element) =>
|
|
228
|
+
element.toLowerCase().includes(searchName.value.toLowerCase())
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
return props.element_table;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function changeDisplay() {
|
|
235
|
+
if (props.disabled === false) {
|
|
236
|
+
if (isDisplay.value === true) {
|
|
237
|
+
isDisplay.value = !isDisplay.value;
|
|
238
|
+
} else {
|
|
239
|
+
isDisplay.value = !isDisplay.value;
|
|
240
|
+
setTimeout(() => {
|
|
241
|
+
document?.addEventListener("click", close);
|
|
242
|
+
}, 100);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
onMounted(() => {
|
|
248
|
+
if (props.default_select !== null) {
|
|
249
|
+
add_element(selected_item.value, selected_number.value);
|
|
250
|
+
}
|
|
251
|
+
labelElement = document?.getElementById(`label_${selected_item.value}`);
|
|
252
|
+
checkActiveEllipsis();
|
|
253
|
+
});
|
|
254
|
+
onUpdated(() => {
|
|
255
|
+
labelElement = document?.getElementById(`label_${selected_item.value}`);
|
|
256
|
+
checkActiveEllipsis();
|
|
257
|
+
});
|
|
258
|
+
onUnmounted(() => {
|
|
259
|
+
document?.removeEventListener("click", close);
|
|
260
|
+
});
|
|
261
|
+
</script>
|
|
262
|
+
|
|
263
|
+
<style scoped>
|
|
264
|
+
/* .oip_select_complex_selection_loop > svg.add {
|
|
265
|
+
fill: var(--accent) !important;
|
|
266
|
+
color: var(--pure-white) !important;
|
|
267
|
+
width: 19px;
|
|
268
|
+
height: 19px;
|
|
269
|
+
margin: -2px;
|
|
270
|
+
} */
|
|
271
|
+
|
|
272
|
+
.disabled_option {
|
|
273
|
+
cursor: initial !important;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.disabled_option .oip_select_complex_selection_loop_name {
|
|
277
|
+
color: var(--lavendar-grey);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.oip_select_complex_selection_loop.disabled_option:hover svg {
|
|
281
|
+
color: var(--lavendar-grey) !important;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.oip_select_complex_selection_loop > svg.add {
|
|
285
|
+
color: var(--primary) !important;
|
|
286
|
+
}
|
|
287
|
+
.oip_select_complex_selection_loop > svg.disable,
|
|
288
|
+
.oip_select_complex_selection_loop.disabled_option:hover svg {
|
|
289
|
+
color: var(--independence) !important;
|
|
290
|
+
}
|
|
291
|
+
.oip_select_complex_selection_loop:hover > svg.add {
|
|
292
|
+
color: var(--primary-hover2) !important;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.oip_select_complex_selection_loop:hover svg {
|
|
296
|
+
color: var(--primary) !important;
|
|
297
|
+
}
|
|
298
|
+
.oip_select_complex_selection_loop .add {
|
|
299
|
+
font-weight: 700 !important;
|
|
300
|
+
}
|
|
301
|
+
.oip_select_complex_selection_loop:hover {
|
|
302
|
+
background: rgba(33, 118, 255, 0.05) !important;
|
|
303
|
+
border-radius: 4px !important;
|
|
304
|
+
}
|
|
305
|
+
.oip_select_complex_selection_loop {
|
|
306
|
+
padding: 2px 4px;
|
|
307
|
+
}
|
|
308
|
+
.oip_select_complex_selection_loop.disabled_option:hover {
|
|
309
|
+
background: transparent !important;
|
|
310
|
+
}
|
|
311
|
+
.oip_select_complex_selection_loop {
|
|
312
|
+
margin: 4px 0px !important;
|
|
313
|
+
}
|
|
314
|
+
svg.add {
|
|
315
|
+
flex-shrink: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.full_width {
|
|
319
|
+
width: 100%;
|
|
320
|
+
}
|
|
321
|
+
</style>
|