@nixweb/nixloc-ui 0.0.38 → 0.0.42
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 +9 -7
- package/src/component/forms/Botao.vue +2 -1
- package/src/component/forms/EscolherEstatico.vue +13 -10
- package/src/component/forms/Opcoes.vue +6 -2
- package/src/component/forms/Toggle.vue +20 -0
- package/src/component/layout/Menu.vue +10 -7
- package/src/component/layout/Painel.vue +3 -3
- package/src/component/shared/EsconderMostrar.vue +0 -6
- package/src/component/shared/FiltroHorizontal.vue +6 -6
- package/src/component/template/InserirEditarModeloView.vue +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nixweb/nixloc-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"description": "Componentes UI",
|
|
5
5
|
"author": "Fábio Ávila <fabio@nixweb.com.br>",
|
|
6
6
|
"private": false,
|
|
@@ -10,19 +10,21 @@
|
|
|
10
10
|
"lint": "vue-cli-service lint"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"bootstrap-vue": "^2.0.0-rc.11",
|
|
14
13
|
"@babel/polyfill": "^7.2.5",
|
|
14
|
+
"bootstrap-vue": "^2.0.0-rc.11",
|
|
15
15
|
"vodal": "^2.4.0",
|
|
16
16
|
"vue-color": "^2.7.0",
|
|
17
|
-
"vue-
|
|
18
|
-
"vue2-datepicker": "^2.13.0",
|
|
19
|
-
"vue2-editor": "^2.6.6",
|
|
17
|
+
"vue-js-toggle-button": "^1.3.0",
|
|
20
18
|
"vue-loading-template": "^1.3.0",
|
|
21
19
|
"vue-moment": "^4.0.0",
|
|
22
20
|
"vue-multiselect": "^2.1.0",
|
|
23
21
|
"vue-numeric": "^2.4.1",
|
|
22
|
+
"vue-the-mask": "^0.11.1",
|
|
24
23
|
"vue-toasted": "^1.1.28",
|
|
25
|
-
"vue-
|
|
24
|
+
"vue-toggles": "^1.1.4",
|
|
25
|
+
"vue-upload-file": "^1.1.0",
|
|
26
|
+
"vue2-datepicker": "^2.13.0",
|
|
27
|
+
"vue2-editor": "^2.6.6"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
30
|
"@vue/cli-plugin-babel": "~4.5.0",
|
|
@@ -60,4 +62,4 @@
|
|
|
60
62
|
"type": "git",
|
|
61
63
|
"url": "git+https://github.com/nixweb-sistemas/nixloc-ui.git"
|
|
62
64
|
}
|
|
63
|
-
}
|
|
65
|
+
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
v-if="carregando(this.chave)"
|
|
28
28
|
type="bubbles"
|
|
29
29
|
color="#fff"
|
|
30
|
-
:size="{ width: '
|
|
30
|
+
:size="{ width: '26px', height: '26px' }"
|
|
31
31
|
></vue-loading>
|
|
32
32
|
</button>
|
|
33
33
|
</div>
|
|
@@ -83,6 +83,7 @@ export default {
|
|
|
83
83
|
border-radius: 40px !important;
|
|
84
84
|
font-size: 14px;
|
|
85
85
|
font-weight: 400;
|
|
86
|
+
letter-spacing: 0.5px !important;
|
|
86
87
|
-webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
|
|
87
88
|
-moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12);
|
|
88
89
|
box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
:options="dados"
|
|
12
12
|
v-model.trim="valorAtual"
|
|
13
13
|
:custom-label="rotulo"
|
|
14
|
+
:disabled="desabilitado"
|
|
14
15
|
placeholder
|
|
15
16
|
:showLabels="true"
|
|
16
17
|
:noResult="false"
|
|
@@ -55,6 +56,10 @@ export default {
|
|
|
55
56
|
formNome: String,
|
|
56
57
|
campoAlvo: String,
|
|
57
58
|
valorInicial: Object,
|
|
59
|
+
desabilitado: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false,
|
|
62
|
+
},
|
|
58
63
|
dados: Array,
|
|
59
64
|
value: Object,
|
|
60
65
|
},
|
|
@@ -78,20 +83,15 @@ export default {
|
|
|
78
83
|
aoAbrir() {},
|
|
79
84
|
aoSelecionar(value) {
|
|
80
85
|
this.$emit("input", value);
|
|
81
|
-
let obj = { campoAlvo: this.campoAlvo, valor: value.
|
|
86
|
+
let obj = { campoAlvo: this.campoAlvo, valor: value.id };
|
|
82
87
|
this.insereFiltro(obj);
|
|
83
|
-
|
|
84
|
-
// antigo
|
|
85
|
-
this.$store.commit("ADICIONA_TOTAL_REGISTRO_POR_PAGINA", obj.valor);
|
|
86
|
-
this.$store.commit("CARREGANDO_FULL", true);
|
|
87
|
-
eventBus.$emit("aoSelecionarTotalRegistroPorPagina", obj.valor);
|
|
88
88
|
},
|
|
89
89
|
aoPesquisar(value) {},
|
|
90
90
|
rotulo(value) {
|
|
91
|
-
return `${value.
|
|
91
|
+
return `${value.conteudo}`;
|
|
92
92
|
},
|
|
93
93
|
limpaEscolherEstatico() {
|
|
94
|
-
let objLimpo = {
|
|
94
|
+
let objLimpo = { conteudo: "", id: "" };
|
|
95
95
|
this.valorAtual = objLimpo;
|
|
96
96
|
this.$emit("input", objLimpo);
|
|
97
97
|
this.$refs.multiselect.deactivate();
|
|
@@ -104,8 +104,11 @@ export default {
|
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
106
|
watch: {
|
|
107
|
-
"value.
|
|
108
|
-
this.valorAtual = {
|
|
107
|
+
"value.id": function () {
|
|
108
|
+
this.valorAtual = { id: this.value.id, conteudo: this.value.conteudo };
|
|
109
|
+
},
|
|
110
|
+
"valorInicial.id": function () {
|
|
111
|
+
this.valorAtual = { id: this.value.id, conteudo: this.value.conteudo };
|
|
109
112
|
},
|
|
110
113
|
},
|
|
111
114
|
};
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
<Dica :campo="campo" :formNome="formNome" />
|
|
5
5
|
<div class="opcoes">
|
|
6
6
|
<b-form-group>
|
|
7
|
-
<b-form-radio-group
|
|
7
|
+
<b-form-radio-group
|
|
8
|
+
v-model="selecionado"
|
|
9
|
+
:options="opcoes"
|
|
10
|
+
:disabled="desabilitado"
|
|
11
|
+
></b-form-radio-group>
|
|
8
12
|
</b-form-group>
|
|
9
13
|
</div>
|
|
10
14
|
</div>
|
|
@@ -15,7 +19,7 @@ import Dica from "../shared/Dica.vue";
|
|
|
15
19
|
export default {
|
|
16
20
|
components: { Dica },
|
|
17
21
|
name: "Opcoes",
|
|
18
|
-
props: ["titulo", "opcoes", "value", "alterou", "campo", "formNome"],
|
|
22
|
+
props: ["titulo", "opcoes", "value", "alterou", "campo", "formNome", "desabilitado"],
|
|
19
23
|
data() {
|
|
20
24
|
return {
|
|
21
25
|
selecionado: this.value,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<VueToggles
|
|
4
|
+
height="30"
|
|
5
|
+
width="90"
|
|
6
|
+
checkedText="On"
|
|
7
|
+
uncheckedText="Off"
|
|
8
|
+
checkedBg="#b4d455"
|
|
9
|
+
uncheckedBg="lightgrey"
|
|
10
|
+
:value="value"
|
|
11
|
+
@click="value = !value"
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
export default {
|
|
18
|
+
name: "Toggle",
|
|
19
|
+
};
|
|
20
|
+
</script>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="page">
|
|
3
3
|
<div id="header" :style="'background-color:' + corTopo">
|
|
4
|
-
<a href="#menu"><span></span></a>
|
|
4
|
+
<!-- <a href="#menu"><span></span></a> -->
|
|
5
5
|
</div>
|
|
6
6
|
<nav id="menu">
|
|
7
7
|
<div id="panel-menu">
|
|
@@ -64,18 +64,21 @@ export default {
|
|
|
64
64
|
backButton: {
|
|
65
65
|
close: true,
|
|
66
66
|
},
|
|
67
|
-
|
|
68
67
|
setSelected: {
|
|
69
|
-
hover:
|
|
70
|
-
parent:
|
|
68
|
+
hover: false,
|
|
69
|
+
parent: false,
|
|
71
70
|
},
|
|
72
71
|
counters: {
|
|
73
72
|
add: true,
|
|
74
73
|
},
|
|
74
|
+
iconbar: {
|
|
75
|
+
use: "(min-width: 450px)",
|
|
76
|
+
top: ['<a href="#/"><span class="fas fa-bars"></span></a>'],
|
|
77
|
+
},
|
|
75
78
|
searchfield: {
|
|
76
79
|
add: true,
|
|
77
80
|
placeholder: "Pesquisar",
|
|
78
|
-
splash: "<p>
|
|
81
|
+
splash: "<p>Digite sua pesquisa</p>",
|
|
79
82
|
title: "Pesquisar",
|
|
80
83
|
noResults: "Nenhum resultado",
|
|
81
84
|
},
|
|
@@ -85,7 +88,7 @@ export default {
|
|
|
85
88
|
},
|
|
86
89
|
sidebar: {
|
|
87
90
|
collapsed: {
|
|
88
|
-
use:
|
|
91
|
+
use: "(min-width: 450px)",
|
|
89
92
|
},
|
|
90
93
|
expanded: {
|
|
91
94
|
use: "(min-width: 1000px)",
|
|
@@ -98,7 +101,7 @@ export default {
|
|
|
98
101
|
{
|
|
99
102
|
type: "tabs",
|
|
100
103
|
content: [
|
|
101
|
-
'<a href="#panel-menu"><i class="
|
|
104
|
+
'<a href="#panel-menu"><i class="fas fa-ellipsis-h"></i> <span style="margin-left:5px"> Menu</span></a>',
|
|
102
105
|
'<a href="#panel-account"><i class="fa fa-user"></i> <span style="margin-left:5px"> Conta</span></a>',
|
|
103
106
|
],
|
|
104
107
|
},
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
|
-
<br />
|
|
28
|
+
<br v-show="mostrarBotoes"/>
|
|
29
29
|
<div class="row" v-show="mostrarBotoes">
|
|
30
30
|
<div class="col-12" v-show="mostrarBotoes">
|
|
31
31
|
<slot name="conteudo-botoes"></slot>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
|
-
<br />
|
|
34
|
+
<br v-show="mostrarBotoes || mostrarPesquisa"/>
|
|
35
35
|
<div class="row" v-show="mostrarBotoes || mostrarPesquisa">
|
|
36
36
|
<div class="col-8">
|
|
37
37
|
<div v-show="mostrarPesquisa"><Pesquisa /></div>
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
40
|
-
<br />
|
|
40
|
+
<br v-show="mostrarPesquisa"/>
|
|
41
41
|
<div>
|
|
42
42
|
<slot name="conteudo-principal"></slot>
|
|
43
43
|
</div>
|
|
@@ -96,9 +96,6 @@ export default {
|
|
|
96
96
|
self.mostrarCollapse = true;
|
|
97
97
|
}, 200);
|
|
98
98
|
this.removeCarregandoBotao();
|
|
99
|
-
|
|
100
|
-
// antigo
|
|
101
|
-
eventBus.$emit("maisFiltros");
|
|
102
99
|
},
|
|
103
100
|
esconder() {
|
|
104
101
|
let self = this;
|
|
@@ -106,9 +103,6 @@ export default {
|
|
|
106
103
|
self.mostrarCollapse = false;
|
|
107
104
|
}, 200);
|
|
108
105
|
this.removeCarregandoBotao();
|
|
109
|
-
|
|
110
|
-
// antigo
|
|
111
|
-
eventBus.$emit("esconderFiltros");
|
|
112
106
|
},
|
|
113
107
|
removeCarregandoBotao() {
|
|
114
108
|
this.removeCarregando(["mostrarCollapse", "esconderCollapse"]);
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
<EscolherEstatico
|
|
21
21
|
titulo="Mostrar"
|
|
22
22
|
campoAlvo="totalPorPagina"
|
|
23
|
-
:valorInicial="{
|
|
23
|
+
:valorInicial="{ conteudo: '10', id: 10 }"
|
|
24
24
|
:dados="[
|
|
25
|
-
{
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
25
|
+
{ conteudo: '10', id: 10 },
|
|
26
|
+
{ conteudo: '20', id: 20 },
|
|
27
|
+
{ conteudo: '30', id: 30 },
|
|
28
|
+
{ conteudo: '50', id: 50 },
|
|
29
|
+
{ conteudo: '100', id: 100 },
|
|
30
30
|
]"
|
|
31
31
|
/>
|
|
32
32
|
</b-col>
|