@nixweb/nixloc-ui 0.0.195 → 0.0.196
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<InputDecimal v-if="!discount.discountByPercentage" :markFormDirty="markFormDirty" :title="title" field="discount"
|
|
4
|
-
:formName="formName" _style="color:red;" :disabled="disabled" v-model="discount.discount">
|
|
3
|
+
<InputDecimal v-if="!discount.discountByPercentage" :markFormDirty="markFormDirty" :title="title" field="discount"
|
|
4
|
+
:required="required" :formName="formName" _style="color:red;" :disabled="disabled" v-model="discount.discount">
|
|
5
5
|
<div class="glyphicon margin-button">
|
|
6
6
|
<Button _key="btnDiscount" title="" type="primary" classIcon="fa-solid fa-brazilian-real-sign" size="small"
|
|
7
7
|
:disabled="disabled" :clicked="change" />
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
props: ["formName", "disabled", "_style", "required", "markFormDirty", "value"],
|
|
36
36
|
data() {
|
|
37
37
|
return {
|
|
38
|
-
title: "Desconto em
|
|
38
|
+
title: "Desconto em R$",
|
|
39
39
|
discount: { discountByPercentage: false, discount: 0 },
|
|
40
40
|
};
|
|
41
41
|
},
|
|
@@ -50,10 +50,13 @@ export default {
|
|
|
50
50
|
change() {
|
|
51
51
|
this.discount.discountByPercentage =
|
|
52
52
|
this.discount.discountByPercentage != true;
|
|
53
|
-
|
|
54
|
-
if (!this.discount.discountByPercentage) this.title = "Desconto em R$";
|
|
53
|
+
this.titleName();
|
|
55
54
|
this.removeLoading(["btnDiscount"]);
|
|
56
55
|
},
|
|
56
|
+
titleName() {
|
|
57
|
+
if (this.discount.discountByPercentage) this.title = "Desconto em %";
|
|
58
|
+
if (!this.discount.discountByPercentage) this.title = "Desconto em R$";
|
|
59
|
+
}
|
|
57
60
|
},
|
|
58
61
|
watch: {
|
|
59
62
|
discount: {
|
|
@@ -65,6 +68,7 @@ export default {
|
|
|
65
68
|
value: {
|
|
66
69
|
handler(value) {
|
|
67
70
|
this.discount = value;
|
|
71
|
+
this.titleName();
|
|
68
72
|
},
|
|
69
73
|
deep: true,
|
|
70
74
|
},
|
|
@@ -8,15 +8,14 @@
|
|
|
8
8
|
<slot name="content-filter"></slot>
|
|
9
9
|
</VerticalFilter>
|
|
10
10
|
</div>
|
|
11
|
-
<div class="local-container">
|
|
11
|
+
<div class="local-container" :class="{ 'layout-small': layout == 'small' }">
|
|
12
12
|
<Messages v-if="!modal.open" />
|
|
13
13
|
<div class="row">
|
|
14
14
|
<div class="col-10">
|
|
15
15
|
<div class="div-title">
|
|
16
16
|
<span class="module">
|
|
17
17
|
<span class="icon-panel"><i class="fas fa-compass"></i></span>
|
|
18
|
-
{{ module }} <span v-if="title">|</span></span
|
|
19
|
-
>
|
|
18
|
+
{{ module }} <span v-if="title">|</span></span>
|
|
20
19
|
<span class="title"> {{ title }}</span>
|
|
21
20
|
</div>
|
|
22
21
|
</div>
|
|
@@ -36,7 +35,9 @@
|
|
|
36
35
|
<br v-show="showButtons || showSearch" />
|
|
37
36
|
<div v-show="showButtons || showSearch">
|
|
38
37
|
<div>
|
|
39
|
-
<div v-show="showSearch"
|
|
38
|
+
<div v-show="showSearch">
|
|
39
|
+
<Search />
|
|
40
|
+
</div>
|
|
40
41
|
</div>
|
|
41
42
|
</div>
|
|
42
43
|
<br v-show="showSearch" />
|
|
@@ -75,6 +76,10 @@ export default {
|
|
|
75
76
|
showVerticalFilter: Boolean,
|
|
76
77
|
showSearch: Boolean,
|
|
77
78
|
showButtons: Boolean,
|
|
79
|
+
layout: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: "small"
|
|
82
|
+
}
|
|
78
83
|
},
|
|
79
84
|
data() {
|
|
80
85
|
return {
|
|
@@ -100,10 +105,13 @@ export default {
|
|
|
100
105
|
};
|
|
101
106
|
</script>
|
|
102
107
|
<style scoped>
|
|
108
|
+
.layout-small {
|
|
109
|
+
max-width: 1500px;
|
|
110
|
+
}
|
|
111
|
+
|
|
103
112
|
.local-container {
|
|
104
113
|
margin: auto;
|
|
105
114
|
padding-left: 100px;
|
|
106
|
-
max-width: 1500px;
|
|
107
115
|
}
|
|
108
116
|
|
|
109
117
|
.div-title {
|
|
@@ -158,5 +166,4 @@ export default {
|
|
|
158
166
|
.div-back:hover {
|
|
159
167
|
color: #505050;
|
|
160
168
|
}
|
|
161
|
-
|
|
162
169
|
</style>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<Panel :module="panel.module" :title="panel.title" :showVerticalFilter="panel.showVerticalFilter"
|
|
3
|
+
<Panel :module="panel.module" layout="large" :title="panel.title" :showVerticalFilter="panel.showVerticalFilter"
|
|
4
4
|
:showSearch="panel.showSearch" :showButtons="panel.showButtons">
|
|
5
5
|
<div slot="content-main">
|
|
6
6
|
<br />
|
|
7
7
|
<Loading type="line" :center="false" v-show="loadingSearch" />
|
|
8
|
-
<div v-show="!showFilter">
|
|
8
|
+
<div v-show="!showFilter">
|
|
9
9
|
<div class="div-progress" v-if="liveTotalRecords != baseParams.totalRecords && !loadingSearch && !cancel">
|
|
10
10
|
<ProgressBar :text="`Carregando ${liveTotalRecords} registros de ${baseParams.totalRecords}`"
|
|
11
11
|
:value="liveTotalRecords" :max="baseParams.totalRecords" size="medium" />
|