@nixweb/nixloc-ui 0.0.260 → 0.0.262

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.260",
3
+ "version": "0.0.262",
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%;
@@ -250,9 +250,9 @@ export default {
250
250
  response.value.forEach(function (obj) {
251
251
  self.content.data.push(obj);
252
252
  });
253
+ this.content.totalPages.pop();
254
+ this.baseParams.currentPage++;
253
255
  });
254
- this.content.totalPages.pop();
255
- this.baseParams.currentPage++;
256
256
  },
257
257
  resetData() {
258
258
  this.isLoading = false;