@nixweb/nixloc-ui 0.0.211 → 0.0.235

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nixweb/nixloc-ui",
3
- "version": "0.0.211",
3
+ "version": "0.0.235",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -52,6 +52,7 @@ export default {
52
52
  ...mapActions("generic", ["postFileApi", "deleteFileApi"]),
53
53
  upload() {
54
54
  this.file = this.$refs.file.files[0];
55
+
55
56
  let params = {
56
57
  url: this.urlPost,
57
58
  file: this.file,
@@ -34,7 +34,7 @@ export default {
34
34
  box-shadow: 0px 10px 30px -6px rgb(0 0 0 / 10%);
35
35
  border-bottom: 0px solid #eff0f1;
36
36
  position: fixed;
37
- z-index: 5;
37
+ z-index: 100;
38
38
  }
39
39
 
40
40
  .top-space {
@@ -8,29 +8,31 @@
8
8
  ]" v-model="person.typePerson" :markFormDirty="markFormDirty" />
9
9
  </b-col>
10
10
  </b-row>
11
- <b-row>
12
- <b-col xs="12" sm="12" md="12" lg="4" xl="4">
13
- <InputText :title="person.typePerson == 2 ? 'CNPJ' : 'CPF'" field="document" :formName="formName" :mask="person.typePerson == 2 ? ['##.###.###/####-##'] : ['###.###.###-##']
14
- " :maxLength="30" :required="required" v-model="person.document" :markFormDirty="markFormDirty">
15
- <div class="glyphicon margin-button">
16
- <Button v-if="person.typePerson == 2" _key="searchDocumentFederalRecipe" type="success"
17
- classIcon="fas fa-search" :disabled="person.document.length < 18" size="small"
18
- :clicked="searchDocumentFederalRecipe" />
19
- </div>
20
- </InputText>
21
- </b-col>
22
- <b-col xs="12" sm="12" md="12" lg="4" xl="4">
23
- <InputText :title="person.typePerson == 2 ? 'Inscrição Estadual' : 'RG'" field="stateInscription"
24
- :formName="formName" :maxLength="50" :required="required" v-model="person.stateInscription"
25
- :markFormDirty="markFormDirty" />
26
- </b-col>
27
- <b-col xs="12" sm="12" md="12" lg="4" xl="4">
28
- <InputText v-if="person.typePerson == 2" title="Inscrição Municipal" field="municipalInscription"
29
- :formName="formName" :maxLength="50" :required="false" v-model="person.municipalInscription"
30
- :markFormDirty="markFormDirty" />
31
- </b-col>
32
- </b-row>
33
- <br v-if="person.typePerson == 2" />
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,