@nixweb/nixloc-ui 0.0.262 → 0.0.264
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
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
<Tip :field="field" :formName="formName" />
|
|
7
7
|
</label>
|
|
8
8
|
<div class="select" :class="{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
'select-invalid': notifications.length > 0 && formDirty,
|
|
10
|
+
border: showBorder,
|
|
11
|
+
}">
|
|
12
12
|
<multiselect @open="onOpen" @select="onSelected" @search-change="onSearch" :options="data"
|
|
13
13
|
v-model.trim="currentValue" :custom-label="label" placeholder :disabled="disabled" :showLabels="true"
|
|
14
14
|
:noResult="false" :maxHeight="250" ref="multiselect" selectLabel deselectLabel selectedLabel>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</template>
|
|
77
77
|
|
|
78
78
|
<script>
|
|
79
|
-
import { mapState, mapMutations } from "vuex";
|
|
79
|
+
import { mapState, mapMutations, mapGetters } from "vuex";
|
|
80
80
|
export default {
|
|
81
81
|
name: "Menu",
|
|
82
82
|
props: {
|
|
@@ -156,8 +156,15 @@ export default {
|
|
|
156
156
|
},
|
|
157
157
|
computed: {
|
|
158
158
|
...mapState("user", ["menu", "userLogged"]),
|
|
159
|
+
...mapGetters("generic", ["event"]),
|
|
159
160
|
},
|
|
160
161
|
watch: {
|
|
162
|
+
event: {
|
|
163
|
+
handler(event) {
|
|
164
|
+
if (event.name == "closeMenu") this.hideSubMenu();
|
|
165
|
+
},
|
|
166
|
+
deep: true,
|
|
167
|
+
},
|
|
161
168
|
$route: {
|
|
162
169
|
handler: function (router) {
|
|
163
170
|
this.menuActive = router.matched[0].props.default.module;
|
|
@@ -1,28 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<FixedBar
|
|
4
|
-
|
|
5
|
-
backgroundColor="#FAFAFC"
|
|
6
|
-
v-show="formDirty && !modal.open && on || showFixed"
|
|
7
|
-
>
|
|
3
|
+
<FixedBar :position="positionFixedBar" backgroundColor="#FAFAFC"
|
|
4
|
+
v-show="formDirty && !modal.open && on || showFixed">
|
|
8
5
|
<div class="margin" :style="'margin-bottom:' + marginBottom + 'px'">
|
|
9
|
-
<Button
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
size="small"
|
|
15
|
-
:clicked="cancel"
|
|
16
|
-
/>
|
|
17
|
-
<Button
|
|
18
|
-
_key="saveSaveCancel"
|
|
19
|
-
:eventName="eventName"
|
|
20
|
-
classIcon="fa-solid fa-floppy-disk"
|
|
21
|
-
title="Salvar"
|
|
22
|
-
type="success"
|
|
23
|
-
:disabled="!isFormValid(formName)"
|
|
24
|
-
size="medium"
|
|
25
|
-
/>
|
|
6
|
+
<Button _key="cancelSaveCancel" eventName="cancelSaveCancel" title="Cancelar" type="danger" size="small"
|
|
7
|
+
:clicked="cancel" />
|
|
8
|
+
<Button _key="saveSaveCancel" :eventName="eventName" classIcon="fa-solid fa-floppy-disk" title="Salvar"
|
|
9
|
+
type="success" :disabled="!isFormValid(formName)" size="medium" />
|
|
10
|
+
<slot></slot>
|
|
26
11
|
</div>
|
|
27
12
|
</FixedBar>
|
|
28
13
|
</div>
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
+
<span v-if="play" class="pause" @click="play = false">
|
|
4
|
+
<i class="fa-solid fa-pause"></i>
|
|
5
|
+
</span>
|
|
6
|
+
<span v-else class="play" @click="play = true">
|
|
7
|
+
<i class="fa-solid fa-play"></i>
|
|
8
|
+
</span>
|
|
3
9
|
<span class="title"> {{ title }}</span>
|
|
4
|
-
<span class="title timer">
|
|
5
|
-
|
|
10
|
+
<span class="title timer">
|
|
11
|
+
{{ time }}
|
|
12
|
+
</span>
|
|
13
|
+
<span class="title"> segundos...</span>
|
|
6
14
|
</div>
|
|
7
15
|
</template>
|
|
8
16
|
<script>
|
|
@@ -22,6 +30,7 @@ export default {
|
|
|
22
30
|
data() {
|
|
23
31
|
return {
|
|
24
32
|
time: 10,
|
|
33
|
+
play: true,
|
|
25
34
|
};
|
|
26
35
|
},
|
|
27
36
|
created() {
|
|
@@ -36,7 +45,7 @@ export default {
|
|
|
36
45
|
clearInterval(this.$options.interval);
|
|
37
46
|
},
|
|
38
47
|
decrement() {
|
|
39
|
-
this.time--;
|
|
48
|
+
if (this.play) this.time--;
|
|
40
49
|
},
|
|
41
50
|
},
|
|
42
51
|
watch: {
|
|
@@ -56,4 +65,14 @@ export default {
|
|
|
56
65
|
font-size: 15px;
|
|
57
66
|
font-weight: bold;
|
|
58
67
|
}
|
|
68
|
+
|
|
69
|
+
.play {
|
|
70
|
+
color: darkblue;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.pause {
|
|
75
|
+
color: red;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
59
78
|
</style>
|
|
@@ -202,6 +202,7 @@ export default {
|
|
|
202
202
|
let paramsQuery = { url: this.urlQuery };
|
|
203
203
|
this.resetData();
|
|
204
204
|
this.getApiOdata(paramsQuery).then((response) => {
|
|
205
|
+
|
|
205
206
|
this.isLoading = true;
|
|
206
207
|
let totalRecords = response["@odata.count"];
|
|
207
208
|
this.loadingSearch = false;
|
|
@@ -234,7 +235,7 @@ export default {
|
|
|
234
235
|
let self = this;
|
|
235
236
|
setTimeout(function () {
|
|
236
237
|
self.isLoading = false;
|
|
237
|
-
},
|
|
238
|
+
}, 100);
|
|
238
239
|
},
|
|
239
240
|
loadingOnlyIfManyPages() {
|
|
240
241
|
let seq = 0;
|