@nixweb/nixloc-ui 0.0.259 → 0.0.261

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.259",
3
+ "version": "0.0.261",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -1,17 +1,17 @@
1
1
  <template>
2
- <div class="c-div-button">
2
+ <div class="c-div-button" v-b-tooltip.hover :title="tooltip">
3
3
  <button :style="'background-color:' + backGroundColor + ';color:' + color" class="button" :class="{
4
- small: size === 'small',
5
- medium: size === 'medium',
6
- large: size === 'large',
7
- primary: type === 'primary',
8
- success: type === 'success',
9
- warning: type === 'warning',
10
- info: type === 'info',
11
- edit: type === 'edit',
12
- danger: type === 'danger',
13
- disabled: disabled,
14
- }" :disabled="disabled" @click="execute()">
4
+ small: size === 'small',
5
+ medium: size === 'medium',
6
+ large: size === 'large',
7
+ primary: type === 'primary',
8
+ success: type === 'success',
9
+ warning: type === 'warning',
10
+ info: type === 'info',
11
+ edit: type === 'edit',
12
+ danger: type === 'danger',
13
+ disabled: disabled,
14
+ }" :disabled="disabled" @click="execute()">
15
15
  <i class="title" :class="classIcon" v-if="!isLoading(this._key) && classIcon"></i>
16
16
  <span v-if="!isLoading(this._key)">{{ title }}</span>
17
17
  <vue-loading v-if="isLoading(this._key)" type="bubbles" color="#fff"
@@ -28,6 +28,7 @@ export default {
28
28
  props: {
29
29
  _key: String,
30
30
  title: String,
31
+ tooltip: String,
31
32
  type: String,
32
33
  size: String,
33
34
  color: String,
@@ -52,6 +53,7 @@ export default {
52
53
  });
53
54
  this.addLoading(this._key);
54
55
  if (this.clicked) this.clicked(this.params);
56
+ this.tooltip = "";
55
57
  },
56
58
  },
57
59
  };
@@ -4,16 +4,16 @@
4
4
  :precision="precision" field="discount" :required="required" :formName="formName" _style="color:red;"
5
5
  :disabled="disabled" v-model="discount.discount">
6
6
  <div class="glyphicon margin-button">
7
- <Button _key="btnDiscount" title="" type="primary" classIcon="fa-solid fa-brazilian-real-sign" size="small"
8
- :disabled="disabled" :clicked="change" />
7
+ <Button _key="btnDiscount" backGroundColor="#F36944" color="white" classIcon="fa-solid fa-brazilian-real-sign"
8
+ size="small" :disabled="disabled" :clicked="change" />
9
9
  </div>
10
10
  </InputDecimal>
11
11
  <InputNumber v-if="discount.discountByPercentage" :markFormDirty="markFormDirty" :title="title" field="discount"
12
12
  :formName="formName" :required="false" :disabled="disabled" _style="color:red;" :maxLength="5" type="float"
13
13
  v-model="discount.discount">
14
14
  <div class="glyphicon margin-button">
15
- <Button _key="btnDiscount" title="" type="primary" :disabled="disabled" classIcon="fa-solid fa-percent"
16
- size="small" :clicked="change" />
15
+ <Button _key="btnDiscount" backGroundColor="#F36944" color="white" :disabled="disabled"
16
+ classIcon="fa-solid fa-percent" size="small" :clicked="change" />
17
17
  </div>
18
18
  </InputNumber>
19
19
  </div>
@@ -5,7 +5,6 @@
5
5
  <slot></slot>
6
6
  </div>
7
7
  </transition>
8
-
9
8
  </div>
10
9
  </template>
11
10
  <script>
@@ -30,13 +29,11 @@ export default {
30
29
  },
31
30
  methods: {
32
31
  checkPosition() {
33
-
34
32
  if (this.distance == 0) {
35
33
  return true;
36
34
  }
37
35
  else {
38
36
  const currentPosition = window.scrollY;
39
-
40
37
  if (currentPosition > this.distance) {
41
38
  this.showFloating = true;
42
39
  } else {
@@ -50,7 +47,7 @@ export default {
50
47
  <style scoped>
51
48
  .div-fixed {
52
49
  position: fixed;
53
- top: 50%;
50
+ top: 90%;
54
51
  left: 57%;
55
52
  transform: translate(-50%, -50%);
56
53
  width: 75%;
@@ -21,7 +21,6 @@ export default {
21
21
  let sum = [];
22
22
  this.d.itensLocacao.forEach((item) => {
23
23
  if (item.grupo === grupo) {
24
- console.log(item);
25
24
  sum.push(item.totalValue);
26
25
  }
27
26
  });
@@ -60,7 +60,9 @@
60
60
  <div>
61
61
  <div class="a4">
62
62
  <div id="printMe">
63
- <DocumentPreview :template="documentPreview('dev')" :d="parameterExemple" />
63
+ <div :style="styleCss">
64
+ <DocumentPreview :template="documentPreview('dev')" :d="parameterExemple" />
65
+ </div>
64
66
  </div>
65
67
  </div>
66
68
  </div>
@@ -114,6 +116,7 @@ export default {
114
116
  panel: Object,
115
117
  parameterExemple: Object,
116
118
  parameterLegend: Array,
119
+ styleCss: String,
117
120
  module: String,
118
121
  },
119
122
  data() {