@tagplus/components 1.0.0 → 1.0.6

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
@@ -8,7 +8,7 @@
8
8
  "email": "bruno@tagplus.com.br"
9
9
  }
10
10
  ],
11
- "version": "1.0.0",
11
+ "version": "1.0.6",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -11,6 +11,7 @@
11
11
  :manual="true"
12
12
  :value="tooltipVisible"
13
13
  :content="selectedLabel + ''"
14
+ :tabindex="-1"
14
15
  >
15
16
  <!-- Div é importante para funcionar o tooltip -->
16
17
  <div />
@@ -2,7 +2,9 @@
2
2
  <li
3
3
  :id="id"
4
4
  :class="['tp-options-list-item', itemType, active == optValue ? 'active' : '']"
5
+ tabindex="0"
5
6
  @click="updateOption"
7
+ @keyup.enter="updateOption"
6
8
  >
7
9
  <div :class="['icon', direction]">
8
10
  <i :class="[icon, 'options-icon']" />
@@ -171,6 +173,10 @@ export default {
171
173
 
172
174
  }
173
175
 
176
+ .tp-options-list-item:focus{
177
+ border: 1px solid #437cf9;
178
+ }
179
+
174
180
  .option-item-badge{
175
181
  background-color: #F56C6C;
176
182
  border: 1px solid #FFF;
@@ -143,10 +143,9 @@ export default {
143
143
  },
144
144
 
145
145
  watch: {
146
- status (newVal) {
147
- if (newVal === 'process' || newVal === 'error') {
148
- this.updateStatus(this.$parent.active)
149
- }
146
+ status () {
147
+ this.updateStatus(this.$parent.active)
148
+ this.internalStatus = this.status
150
149
  }
151
150
 
152
151
  },
@@ -19,7 +19,10 @@ import { t } from 'tp-ui/locale'
19
19
  * @param {Number} val
20
20
  */
21
21
  export const toCurrency = (val) => {
22
- return (parseInt(val * 100) / 100).toLocaleString(t('locale.prefix'))
22
+ return (parseInt(val * 100) / 100).toLocaleString(t('locale.prefix'), {
23
+ minimumFractionDigits: 2,
24
+ maximumFractionDigits: 2
25
+ })
23
26
  }
24
27
 
25
28
  /**