@nixweb/nixloc-ui 0.0.202 → 0.0.203

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.202",
3
+ "version": "0.0.203",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -12,7 +12,8 @@
12
12
  <slot v-else></slot>
13
13
  <vue-numeric :style="_style" class="form-control" v-on:keyup.enter.native="pressedEnter"
14
14
  :class="{ 'is-invalid': notifications.length > 0 && formDirty }" :placeholder="placeholder" :disabled="disabled"
15
- currency="R$" separator="." :minus="allowNegative" v-bind:precision="2" v-model="valueLocal"></vue-numeric>
15
+ currency="R$" separator="." :minus="allowNegative" v-bind:precision="precision"
16
+ v-model="valueLocal"></vue-numeric>
16
17
  </div>
17
18
 
18
19
  <div v-if="formDirty">
@@ -39,6 +40,10 @@ export default {
39
40
  placeholder: String,
40
41
  formName: String,
41
42
  _style: String,
43
+ precision: {
44
+ type: Number,
45
+ default: 2,
46
+ },
42
47
  markFormDirty: {
43
48
  type: Boolean,
44
49
  default: true,
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div>
3
- <InputDecimal v-if="!discount.discountByPercentage" :markFormDirty="markFormDirty" :title="title" field="discount"
4
- :required="required" :formName="formName" _style="color:red;" :disabled="disabled" v-model="discount.discount">
3
+ <InputDecimal v-if="!discount.discountByPercentage" :markFormDirty="markFormDirty" :title="title"
4
+ :precision="precision" field="discount" :required="required" :formName="formName" _style="color:red;"
5
+ :disabled="disabled" v-model="discount.discount">
5
6
  <div class="glyphicon margin-button">
6
7
  <Button _key="btnDiscount" title="" type="primary" classIcon="fa-solid fa-brazilian-real-sign" size="small"
7
8
  :disabled="disabled" :clicked="change" />
@@ -32,7 +33,7 @@ export default {
32
33
  InputDecimal,
33
34
  Button,
34
35
  },
35
- props: ["formName", "disabled", "_style", "required", "markFormDirty", "value"],
36
+ props: ["formName", "disabled", "_style", "required", "precision", "markFormDirty", "value"],
36
37
  data() {
37
38
  return {
38
39
  title: "Desconto em R$",
@@ -91,7 +91,7 @@ export default {
91
91
  </script>
92
92
  <style scoped>
93
93
  .div-main {
94
- margin: auto;
94
+
95
95
  padding: 0px;
96
96
  }
97
97
 
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div>
3
- {{ title }}
4
- <span class="timer">{{ time }}</span> segundos...
3
+ <span class="title"> {{ title }}</span>
4
+ <span class="title timer"> {{ time }} </span>
5
+ <span class="title">segundos...</span>
5
6
  </div>
6
7
  </template>
7
8
  <script>