@nixweb/nixloc-ui 0.0.124 → 0.0.125

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.124",
3
+ "version": "0.0.125",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -17,10 +17,10 @@
17
17
  :disabled="disabled"
18
18
  @click="execute()"
19
19
  >
20
- <i class="title" :class="classIcon" v-if="!isLoading(this.key) && classIcon"></i>
21
- <span v-if="!isLoading(this.key)">{{ title }}</span>
20
+ <i class="title" :class="classIcon" v-if="!isLoading(this._key) && classIcon"></i>
21
+ <span v-if="!isLoading(this._key)">{{ title }}</span>
22
22
  <vue-loading
23
- v-if="isLoading(this.key)"
23
+ v-if="isLoading(this._key)"
24
24
  type="bubbles"
25
25
  color="#fff"
26
26
  :size="{ width: '26px', height: '26px' }"
@@ -35,7 +35,7 @@ import { mapGetters, mapMutations } from "vuex";
35
35
  export default {
36
36
  name: "Button",
37
37
  props: {
38
- key: String,
38
+ _key: String,
39
39
  title: String,
40
40
  type: String,
41
41
  size: String,
@@ -56,7 +56,7 @@ export default {
56
56
  name: this.eventName,
57
57
  data: this.eventData,
58
58
  });
59
- this.addLoading(this.key);
59
+ this.addLoading(this._key);
60
60
  if (this.clicked) this.clicked();
61
61
  },
62
62
  },
@@ -12,7 +12,7 @@
12
12
  <slot v-else></slot>
13
13
  <input
14
14
  type="text"
15
- :style="style"
15
+ :style="_style"
16
16
  :placeholder="placeholder"
17
17
  :disabled="disabled"
18
18
  @keyup.enter.prevent="pressedEnter"
@@ -47,7 +47,7 @@ export default {
47
47
  "disabled",
48
48
  "titleColor",
49
49
  "mask",
50
- "style",
50
+ "_style",
51
51
  "formName",
52
52
  "required",
53
53
  "maxLength",
@@ -12,7 +12,7 @@
12
12
  import { mapMutations } from "vuex";
13
13
 
14
14
  export default {
15
- name: "Scrollbar",
15
+ name: "ScrollBar",
16
16
  props: {
17
17
  id: String,
18
18
  maxHeight: Number,
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <Pesquisa />
3
+ <Search />
4
4
  <br />
5
5
  <ScrollBar :minHeight="400" :maxHeight="400">
6
6
  <table class="table table-responsive-xs">
@@ -32,7 +32,7 @@
32
32
  </div>
33
33
  </template>
34
34
  <script>
35
- import Pesquisa from "@nixweb/nixloc-ui/src/component/shared/Pesquisa.vue";
35
+ import Search from "@nixweb/nixloc-ui/src/component/shared/Search.vue";
36
36
  import ScrollBar from "@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue";
37
37
 
38
38
  import { mapGetters, mapState, mapMutations } from "vuex";
@@ -41,7 +41,7 @@ export default {
41
41
  name: "LegendaParametro",
42
42
  components: {
43
43
  ScrollBar,
44
- Pesquisa,
44
+ Search,
45
45
  },
46
46
  props: {
47
47
  legenda: [],
@@ -10,7 +10,7 @@
10
10
  :eventName="obj.button.eventName"
11
11
  :eventData="row"
12
12
  />
13
- <BotaoDropdown
13
+ <Dropdown
14
14
  v-if="obj.qualBotao == 'botaodropdown'"
15
15
  :title="obj.button.title"
16
16
  :type="obj.button.type"
@@ -23,11 +23,11 @@
23
23
  </template>
24
24
 
25
25
  <script>
26
- import BotaoDropdown from "../forms/BotaoDropdown";
26
+ import Dropdown from "../forms/Dropdown";
27
27
  import Button from "../forms/Button";
28
28
  export default {
29
29
  name: "TableButton",
30
- components: { Button, BotaoDropdown },
30
+ components: { Button, Dropdown },
31
31
  props: {
32
32
  obj: Object,
33
33
  row: Object,
@@ -33,7 +33,7 @@
33
33
  import SelectRule from "./SelectRule.vue";
34
34
  import DynamicComponent from "./DynamicComponent.vue";
35
35
  import RadioGroup from "@nixweb/nixloc-ui/src/component/forms/RadioGroup.vue";
36
- import ListDynamicComponent from "@nixweb/nixloc-ui/src/component/shared/construtor-query/ListDynamicComponent.vue";
36
+ import ListDynamicComponent from "@nixweb/nixloc-ui/src/component/shared/query-builder/ListDynamicComponent.vue";
37
37
 
38
38
  import deepClone from "./utilities.js";
39
39
 
@@ -14,7 +14,7 @@
14
14
  </ScrollBar>
15
15
  </b-col>
16
16
  <b-col sm="6">
17
- <options
17
+ <RadioGroup
18
18
  :options="[
19
19
  { text: 'Crescente', value: 'asc' },
20
20
  { text: 'Decrescente', value: 'desc' },
@@ -34,7 +34,7 @@
34
34
  </template>
35
35
  <script>
36
36
  import SelectStatic from "@nixweb/nixloc-ui/src/component/forms/SelectStatic";
37
- import options from "@nixweb/nixloc-ui/src/component/forms/options";
37
+ import RadioGroup from "@nixweb/nixloc-ui/src/component/forms/RadioGroup";
38
38
  import CheckboxGroup from "@nixweb/nixloc-ui/src/component/forms/CheckboxGroup";
39
39
  import ScrollBar from "@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue";
40
40
 
@@ -46,7 +46,7 @@ export default {
46
46
  CheckboxGroup,
47
47
  SelectStatic,
48
48
  ScrollBar,
49
- options,
49
+ RadioGroup,
50
50
  },
51
51
  props: {
52
52
  fields: Array,
@@ -115,8 +115,8 @@
115
115
  </template>
116
116
 
117
117
  <script>
118
- import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel";
119
118
 
119
+ import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel";
120
120
  import DocumentEditor from "@nixweb/nixloc-ui/src/component/shared/DocumentEditor.vue";
121
121
  import DocumentPreview from "@nixweb/nixloc-ui/src/component/shared/DocumentPreview.vue";
122
122
  import CodeEditor from "@nixweb/nixloc-ui/src/component/shared/CodeEditor.vue";
@@ -77,7 +77,7 @@
77
77
  </b-col>
78
78
  </b-row>
79
79
  <Modal title="Filtros" :width="900" v-show="showModal('filter')">
80
- <slot name="filter"></slot>
80
+ <Rules :rules="rules" />
81
81
  <br />
82
82
  <b-row>
83
83
  <b-col class="text-right" sm="12">
@@ -95,7 +95,7 @@
95
95
  </b-row>
96
96
  </Modal>
97
97
  <Modal title="fields" :width="600" v-show="showModal('field')">
98
- <slot name="field"></slot>
98
+ <Fields :fields="fields" />
99
99
  <b-row>
100
100
  <b-col class="text-right" sm="12">
101
101
  <div class="side-by-side">
@@ -173,8 +173,8 @@
173
173
  <span> Nenhum registro foi encontrato!</span>
174
174
  </Alert>
175
175
  </div>
176
- <div class="div-rodape" v-if="content.totalization.length > 0">
177
- <Rodape :data="content.totalization" />
176
+ <div class="div-Totalization" v-if="content.totalization.length > 0">
177
+ <Totalization :data="content.totalization" />
178
178
  </div>
179
179
  </div>
180
180
  </Panel>
@@ -193,9 +193,11 @@ import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel.vue";
193
193
  import ScrollBar from "@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue";
194
194
  import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
195
195
  import ProgressBar from "@nixweb/nixloc-ui/src/component/shared/ProgressBar";
196
- import Rodape from "@nixweb/nixloc-ui/src/component/shared/construtor-query/Rodape.vue";
197
- import Tags from "@nixweb/nixloc-ui/src/component/shared/construtor-query/Tags.vue";
196
+ import Totalization from "@nixweb/nixloc-ui/src/component/shared/query-builder/Totalization.vue";
197
+ import Tags from "@nixweb/nixloc-ui/src/component/shared/query-builder/Tags.vue";
198
198
  import AddEditReport from "@nixweb/nixloc-ui/src/component/template/AddEditReport.vue";
199
+ import Fields from "@nixweb/nixloc-ui/src/component/shared/query-builder/Fields.vue";
200
+ import Rules from "@nixweb/nixloc-ui/src/component/shared/query-builder/Rules.vue";
199
201
  import print from "vue-print-nb";
200
202
 
201
203
  import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
@@ -206,9 +208,11 @@ export default {
206
208
  print,
207
209
  },
208
210
  props: {
211
+ panel: Object,
209
212
  templateList: Object,
213
+ rules: Array,
214
+ fields: Array,
210
215
  field: Array,
211
- panel: Object,
212
216
  },
213
217
  components: {
214
218
  Alert,
@@ -219,12 +223,14 @@ export default {
219
223
  Panel,
220
224
  ScrollBar,
221
225
  Molded,
222
- Rodape,
226
+ Totalization,
223
227
  ProgressBar,
224
228
  Tags,
225
229
  AddEditReport,
226
230
  ExportExcel,
227
231
  HeaderPrint,
232
+ Fields,
233
+ Rules,
228
234
  },
229
235
  data() {
230
236
  return {
@@ -294,12 +300,7 @@ export default {
294
300
  },
295
301
  methods: {
296
302
  ...mapActions("generic", ["getApiOdata"]),
297
- ...mapMutations("generic", [
298
- "addEvent",
299
- "showModal",
300
- "hideModal",
301
- "removeLoading",
302
- ]),
303
+ ...mapMutations("generic", ["addEvent", "showModal", "hideModal", "removeLoading"]),
303
304
  ...mapMutations("report", [
304
305
  "atualizaFiltroSelecionado",
305
306
  "atualizaCampoOrdenado",
@@ -328,9 +329,7 @@ export default {
328
329
  let totalRecords = response["@odata.count"];
329
330
  if (totalRecords == 0) this.nenhumDadoRetornado = true;
330
331
  this.content.totalRecords = totalRecords;
331
- this.content.pagination = Math.round(
332
- totalRecords / this.content.totalPerPage
333
- );
332
+ this.content.pagination = Math.round(totalRecords / this.content.totalPerPage);
334
333
 
335
334
  if (totalRecords <= this.content.totalPerPage) {
336
335
  this.consultaOdata();
@@ -482,7 +481,7 @@ export default {
482
481
  margin-right: 5px;
483
482
  }
484
483
 
485
- .div-rodape {
484
+ .div-Totalization {
486
485
  margin-top: 20px;
487
486
  }
488
487