@nixweb/nixloc-ui 0.0.234 → 0.0.236
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/component/forms/FileUpload.vue +1 -0
- package/src/component/forms/InputTag.vue +3 -0
- package/src/component/layout/Header.vue +1 -1
- package/src/component/shared/TableButton.vue +20 -10
- package/src/component/shared/TableItem.vue +14 -13
- package/src/component/value-objects/Person.vue +29 -23
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ export default {
|
|
|
24
24
|
required: Boolean,
|
|
25
25
|
initialValue: Array,
|
|
26
26
|
value: Array,
|
|
27
|
+
change: Function
|
|
27
28
|
},
|
|
28
29
|
data() {
|
|
29
30
|
return {
|
|
@@ -39,10 +40,12 @@ export default {
|
|
|
39
40
|
if (this.newItem) {
|
|
40
41
|
this.tos.push(this.newItem);
|
|
41
42
|
this.newItem = "";
|
|
43
|
+
this.change();
|
|
42
44
|
}
|
|
43
45
|
},
|
|
44
46
|
removeEmail(index) {
|
|
45
47
|
this.tos.splice(index, 1);
|
|
48
|
+
this.change();
|
|
46
49
|
}
|
|
47
50
|
},
|
|
48
51
|
watch: {
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
<Button
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
:
|
|
2
|
+
<div>
|
|
3
|
+
<Button
|
|
4
|
+
v-if="obj.typeButton == 'default'"
|
|
5
|
+
:key="row.id"
|
|
6
|
+
:title="obj.button.title"
|
|
7
|
+
:type="obj.button.type"
|
|
8
|
+
:size="obj.button.size"
|
|
9
|
+
:classIcon="obj.button.classIcon"
|
|
10
|
+
:eventName="obj.button.eventName"
|
|
11
|
+
:eventData="row"
|
|
12
|
+
/>
|
|
13
|
+
<Dropdown
|
|
14
|
+
v-if="obj.typeButton == 'dropdown'"
|
|
15
|
+
:title="obj.button.title"
|
|
16
|
+
:type="obj.button.type"
|
|
17
|
+
:size="obj.button.size"
|
|
18
|
+
:classIcon="obj.button.classIcon"
|
|
19
|
+
:param="row"
|
|
20
|
+
:items="obj.button.items"
|
|
21
|
+
/>
|
|
7
22
|
</div>
|
|
8
23
|
</template>
|
|
9
24
|
|
|
@@ -19,8 +34,3 @@ export default {
|
|
|
19
34
|
},
|
|
20
35
|
};
|
|
21
36
|
</script>
|
|
22
|
-
<style scoped>
|
|
23
|
-
.div-btn {
|
|
24
|
-
min-width: 80px;
|
|
25
|
-
}
|
|
26
|
-
</style>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{{ row[obj.field] }}
|
|
10
10
|
<div>{{ row[obj.fieldSecond] }}</div>
|
|
11
11
|
</div>
|
|
12
|
-
<div v-if="obj.type === 'image'">
|
|
12
|
+
<div v-if="obj.type === 'image'" :style="obj.styleBody">
|
|
13
13
|
<img :class="convertClass(row[obj.fieldComparison], obj.classCssBody)" class="img"
|
|
14
14
|
:src="urlImage + obj.container + '/' + row[obj.field]" />
|
|
15
15
|
</div>
|
|
@@ -18,28 +18,33 @@
|
|
|
18
18
|
{{ row[obj.field] }}
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
|
-
<div v-if="obj.type === 'html'" :
|
|
21
|
+
<div v-if="obj.type === 'html'" :style="obj.styleBody"
|
|
22
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)">
|
|
22
23
|
<div v-if="row[obj.field]" v-html="row[obj.field]"></div>
|
|
23
24
|
<div v-else v-html="obj.html"></div>
|
|
24
25
|
</div>
|
|
25
|
-
<div v-if="obj.type === 'select'" :
|
|
26
|
+
<div v-if="obj.type === 'select'" :style="obj.styleBody"
|
|
27
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)">
|
|
26
28
|
{{ row[obj.field].content }}
|
|
27
29
|
</div>
|
|
28
|
-
<div v-if="obj.type === 'date'" :
|
|
30
|
+
<div v-if="obj.type === 'date'" :style="obj.styleBody"
|
|
31
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)">
|
|
29
32
|
{{ row[obj.field] | moment("DD/MM/YYYY") }}
|
|
30
33
|
</div>
|
|
31
|
-
<div v-if="obj.type === 'dateTime'" :
|
|
34
|
+
<div v-if="obj.type === 'dateTime'" :style="obj.styleBody"
|
|
35
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)">
|
|
32
36
|
{{ row[obj.field] | moment("DD/MM/YYYY HH:mm") }}
|
|
33
37
|
</div>
|
|
34
|
-
<div
|
|
38
|
+
<div v-if="obj.type === 'currency'" :style="obj.styleBody"
|
|
35
39
|
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)">
|
|
36
40
|
{{ row[obj.field] | currency }}
|
|
37
41
|
</div>
|
|
38
|
-
<div v-if="obj.type === 'button'" :
|
|
42
|
+
<div v-if="obj.type === 'button'" :style="obj.styleBody"
|
|
43
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)">
|
|
39
44
|
<TableButton v-if="obj.ifFieldEqual == row[obj.field]" :obj="obj" :row="row" />
|
|
40
45
|
</div>
|
|
41
|
-
<div v-if="obj.type === 'link'" class="link" :
|
|
42
|
-
@click="navegateTo(obj, row)">
|
|
46
|
+
<div v-if="obj.type === 'link'" class="link" :style="obj.styleBody"
|
|
47
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)" @click="navegateTo(obj, row)">
|
|
43
48
|
<span> {{ row[obj.field] }}</span>
|
|
44
49
|
<div class="field-second">{{ row[obj.fieldSecond] }}</div>
|
|
45
50
|
</div>
|
|
@@ -163,10 +168,6 @@ export default {
|
|
|
163
168
|
border-radius: 20px;
|
|
164
169
|
}
|
|
165
170
|
|
|
166
|
-
.div-currency {
|
|
167
|
-
min-width: 100px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
171
|
.period-rent {
|
|
171
172
|
cursor: pointer;
|
|
172
173
|
}
|
|
@@ -8,29 +8,31 @@
|
|
|
8
8
|
]" v-model="person.typePerson" :markFormDirty="markFormDirty" />
|
|
9
9
|
</b-col>
|
|
10
10
|
</b-row>
|
|
11
|
-
<
|
|
12
|
-
<b-
|
|
13
|
-
<
|
|
14
|
-
" :
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
<div v-if="showDocument">
|
|
12
|
+
<b-row>
|
|
13
|
+
<b-col xs="12" sm="12" md="12" lg="4" xl="4">
|
|
14
|
+
<InputText :title="person.typePerson == 2 ? 'CNPJ' : 'CPF'" field="document" :formName="formName" :mask="person.typePerson == 2 ? ['##.###.###/####-##'] : ['###.###.###-##']
|
|
15
|
+
" :maxLength="30" :required="required" v-model="person.document" :markFormDirty="markFormDirty">
|
|
16
|
+
<div class="glyphicon margin-button">
|
|
17
|
+
<Button v-if="person.typePerson == 2" _key="searchDocumentFederalRecipe" type="success"
|
|
18
|
+
classIcon="fas fa-search" :disabled="person.document.length < 18" size="small"
|
|
19
|
+
:clicked="searchDocumentFederalRecipe" />
|
|
20
|
+
</div>
|
|
21
|
+
</InputText>
|
|
22
|
+
</b-col>
|
|
23
|
+
<b-col xs="12" sm="12" md="12" lg="4" xl="4">
|
|
24
|
+
<InputText :title="person.typePerson == 2 ? 'Inscrição Estadual' : 'RG'" field="stateInscription"
|
|
25
|
+
:formName="formName" :maxLength="50" :required="required" v-model="person.stateInscription"
|
|
26
|
+
:markFormDirty="markFormDirty" />
|
|
27
|
+
</b-col>
|
|
28
|
+
<b-col xs="12" sm="12" md="12" lg="4" xl="4">
|
|
29
|
+
<InputText v-if="person.typePerson == 2" title="Inscrição Municipal" field="municipalInscription"
|
|
30
|
+
:formName="formName" :maxLength="50" :required="false" v-model="person.municipalInscription"
|
|
31
|
+
:markFormDirty="markFormDirty" />
|
|
32
|
+
</b-col>
|
|
33
|
+
</b-row>
|
|
34
|
+
</div>
|
|
35
|
+
<br v-if="person.typePerson == 2 && showDocument" />
|
|
34
36
|
<b-row>
|
|
35
37
|
<b-col xs="12" sm="12" md="12" lg="8" xl="8">
|
|
36
38
|
<InputText :title="person.typePerson == 2 ? 'Razão Social' : 'Nome'" field="companyName" :formName="formName"
|
|
@@ -64,6 +66,10 @@ export default {
|
|
|
64
66
|
type: Boolean,
|
|
65
67
|
default: true,
|
|
66
68
|
},
|
|
69
|
+
showDocument: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: true,
|
|
72
|
+
},
|
|
67
73
|
markFormDirty: {
|
|
68
74
|
type: Boolean,
|
|
69
75
|
default: true,
|