@coders-tm/vue-number-format
Advanced tools
Comparing version 3.2.12 to 3.3.0
@@ -252,5 +252,4 @@ /** | ||
) { | ||
const { config } = el[CONFIG_KEY$1]; | ||
let { oldValue } = el[CONFIG_KEY$1]; | ||
let currentValue = vnode && vnode.props ? vnode.props.value : el.value; | ||
let { config, oldValue } = el[CONFIG_KEY$1]; | ||
let currentValue = vnode?.props?.value || el.value; | ||
@@ -273,3 +272,3 @@ if (force || oldValue !== currentValue) { | ||
el[CONFIG_KEY$1].oldValue = masked; | ||
el[CONFIG_KEY$1].masked = masked; | ||
el.unmaskedValue = unmasked; | ||
@@ -306,3 +305,3 @@ | ||
let positionFromEnd = target.value.length - target.selectionEnd; | ||
const { oldValue, config } = target[CONFIG_KEY$1]; | ||
const { oldValue, config, masked } = target[CONFIG_KEY$1]; | ||
@@ -318,2 +317,3 @@ updateValue(target, null, { emit: false }); | ||
if (oldValue !== target.value) { | ||
target[CONFIG_KEY$1].oldValue = masked; | ||
target.dispatchEvent(FacadeInputEvent()); | ||
@@ -335,8 +335,8 @@ } | ||
} | ||
const { oldValue, masked } = target[CONFIG_KEY$1]; | ||
const { oldValue } = target[CONFIG_KEY$1]; | ||
updateValue(target, null, { force: true, emit: true, clean: true }); | ||
if (oldValue !== target.value) { | ||
target[CONFIG_KEY$1].oldValue = masked; | ||
target.dispatchEvent(FacadeChangeEvent()); | ||
@@ -343,0 +343,0 @@ } |
@@ -248,5 +248,4 @@ /** | ||
) { | ||
const { config } = el[CONFIG_KEY$1]; | ||
let { oldValue } = el[CONFIG_KEY$1]; | ||
let currentValue = vnode && vnode.props ? vnode.props.value : el.value; | ||
let { config, oldValue } = el[CONFIG_KEY$1]; | ||
let currentValue = vnode?.props?.value || el.value; | ||
@@ -269,3 +268,3 @@ if (force || oldValue !== currentValue) { | ||
el[CONFIG_KEY$1].oldValue = masked; | ||
el[CONFIG_KEY$1].masked = masked; | ||
el.unmaskedValue = unmasked; | ||
@@ -302,3 +301,3 @@ | ||
let positionFromEnd = target.value.length - target.selectionEnd; | ||
const { oldValue, config } = target[CONFIG_KEY$1]; | ||
const { oldValue, config, masked } = target[CONFIG_KEY$1]; | ||
@@ -314,2 +313,3 @@ updateValue(target, null, { emit: false }); | ||
if (oldValue !== target.value) { | ||
target[CONFIG_KEY$1].oldValue = masked; | ||
target.dispatchEvent(FacadeInputEvent()); | ||
@@ -331,8 +331,8 @@ } | ||
} | ||
const { oldValue, masked } = target[CONFIG_KEY$1]; | ||
const { oldValue } = target[CONFIG_KEY$1]; | ||
updateValue(target, null, { force: true, emit: true, clean: true }); | ||
if (oldValue !== target.value) { | ||
target[CONFIG_KEY$1].oldValue = masked; | ||
target.dispatchEvent(FacadeChangeEvent()); | ||
@@ -339,0 +339,0 @@ } |
@@ -249,5 +249,4 @@ /** | ||
) { | ||
const { config } = el[CONFIG_KEY$1]; | ||
let { oldValue } = el[CONFIG_KEY$1]; | ||
let currentValue = vnode && vnode.props ? vnode.props.value : el.value; | ||
let { config, oldValue } = el[CONFIG_KEY$1]; | ||
let currentValue = vnode?.props?.value || el.value; | ||
@@ -270,3 +269,3 @@ if (force || oldValue !== currentValue) { | ||
el[CONFIG_KEY$1].oldValue = masked; | ||
el[CONFIG_KEY$1].masked = masked; | ||
el.unmaskedValue = unmasked; | ||
@@ -303,3 +302,3 @@ | ||
let positionFromEnd = target.value.length - target.selectionEnd; | ||
const { oldValue, config } = target[CONFIG_KEY$1]; | ||
const { oldValue, config, masked } = target[CONFIG_KEY$1]; | ||
@@ -315,2 +314,3 @@ updateValue(target, null, { emit: false }); | ||
if (oldValue !== target.value) { | ||
target[CONFIG_KEY$1].oldValue = masked; | ||
target.dispatchEvent(FacadeInputEvent()); | ||
@@ -332,8 +332,8 @@ } | ||
} | ||
const { oldValue, masked } = target[CONFIG_KEY$1]; | ||
const { oldValue } = target[CONFIG_KEY$1]; | ||
updateValue(target, null, { force: true, emit: true, clean: true }); | ||
if (oldValue !== target.value) { | ||
target[CONFIG_KEY$1].oldValue = masked; | ||
target.dispatchEvent(FacadeChangeEvent()); | ||
@@ -340,0 +340,0 @@ } |
{ | ||
"name": "@coders-tm/vue-number-format", | ||
"version": "3.2.12", | ||
"version": "3.3.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Easy formatted numbers, currency and percentage with input/directive mask for Vue.js", |
54670
1484