@bagelink/vue 0.0.1270 → 0.0.1272
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/NumberInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/NumberInput.vue"],"names":[],"mappings":"AAsOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAI7C,KAAK,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAAA;AAEzD,UAAU,gBAAgB;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,QAAQ,CAAA;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;;;;;;AA4VD,wBAQG"}
|
package/dist/index.cjs
CHANGED
|
@@ -25934,11 +25934,14 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
25934
25934
|
emit2("update:modelValue", numberValue.value);
|
|
25935
25935
|
}
|
|
25936
25936
|
vue.watch(() => numberValue.value, () => {
|
|
25937
|
-
|
|
25938
|
-
|
|
25937
|
+
vue.nextTick(() => {
|
|
25938
|
+
formattedValue.value = numberValue.value !== void 0 ? formatNumber2(numberValue.value) : "";
|
|
25939
|
+
});
|
|
25940
|
+
});
|
|
25939
25941
|
vue.watch(() => __props.modelValue, (newVal) => {
|
|
25940
25942
|
if (newVal !== numberValue.value) {
|
|
25941
25943
|
numberValue.value = Number.parseFloat(`${newVal}`) || 0;
|
|
25944
|
+
console.log("newVal", numberValue.value);
|
|
25942
25945
|
}
|
|
25943
25946
|
}, { immediate: true });
|
|
25944
25947
|
return (_ctx, _cache) => {
|
|
@@ -26042,7 +26045,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
26042
26045
|
};
|
|
26043
26046
|
}
|
|
26044
26047
|
});
|
|
26045
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-
|
|
26048
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-3b46ec89"]]);
|
|
26046
26049
|
const _hoisted_1$z = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
26047
26050
|
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
26048
26051
|
__name: "OTP",
|
package/dist/index.mjs
CHANGED
|
@@ -25932,11 +25932,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
25932
25932
|
emit2("update:modelValue", numberValue.value);
|
|
25933
25933
|
}
|
|
25934
25934
|
watch(() => numberValue.value, () => {
|
|
25935
|
-
|
|
25936
|
-
|
|
25935
|
+
nextTick(() => {
|
|
25936
|
+
formattedValue.value = numberValue.value !== void 0 ? formatNumber2(numberValue.value) : "";
|
|
25937
|
+
});
|
|
25938
|
+
});
|
|
25937
25939
|
watch(() => __props.modelValue, (newVal) => {
|
|
25938
25940
|
if (newVal !== numberValue.value) {
|
|
25939
25941
|
numberValue.value = Number.parseFloat(`${newVal}`) || 0;
|
|
25942
|
+
console.log("newVal", numberValue.value);
|
|
25940
25943
|
}
|
|
25941
25944
|
}, { immediate: true });
|
|
25942
25945
|
return (_ctx, _cache) => {
|
|
@@ -26040,7 +26043,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
26040
26043
|
};
|
|
26041
26044
|
}
|
|
26042
26045
|
});
|
|
26043
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-
|
|
26046
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-3b46ec89"]]);
|
|
26044
26047
|
const _hoisted_1$z = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
26045
26048
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
26046
26049
|
__name: "OTP",
|
package/dist/style.css
CHANGED
|
@@ -1846,14 +1846,14 @@ pre code.hljs{
|
|
|
1846
1846
|
direction: ltr;
|
|
1847
1847
|
}
|
|
1848
1848
|
|
|
1849
|
-
.txtInputIconStart .iconStart[data-v-
|
|
1849
|
+
.txtInputIconStart .iconStart[data-v-3b46ec89] {
|
|
1850
1850
|
color: var(--input-color);
|
|
1851
1851
|
position: absolute;
|
|
1852
1852
|
inset-inline-start:calc(var(--input-height) / 3 - 0.25rem);
|
|
1853
1853
|
margin-top: calc(var(--input-height) / 2 );
|
|
1854
1854
|
line-height: 0;
|
|
1855
1855
|
}
|
|
1856
|
-
.textInputSpinnerWrap .spinner[data-v-
|
|
1856
|
+
.textInputSpinnerWrap .spinner[data-v-3b46ec89] {
|
|
1857
1857
|
color: var(--input-color);
|
|
1858
1858
|
position: absolute;
|
|
1859
1859
|
inset-inline-end: 0;
|
|
@@ -1863,18 +1863,18 @@ pre code.hljs{
|
|
|
1863
1863
|
flex-direction: column;
|
|
1864
1864
|
gap: 0;
|
|
1865
1865
|
}
|
|
1866
|
-
.top-bgl-ctrl-num-btn[data-v-
|
|
1866
|
+
.top-bgl-ctrl-num-btn[data-v-3b46ec89]{
|
|
1867
1867
|
margin-top: calc(var(--input-height) / 10) !important;
|
|
1868
1868
|
}
|
|
1869
|
-
.bgl-ctrl-num-btn[data-v-
|
|
1869
|
+
.bgl-ctrl-num-btn[data-v-3b46ec89]{
|
|
1870
1870
|
height: calc(var(--input-height) / 2.5) !important;
|
|
1871
1871
|
isolation: isolate;
|
|
1872
1872
|
}
|
|
1873
|
-
.bgl-big-ctrl-num-btn[data-v-
|
|
1873
|
+
.bgl-big-ctrl-num-btn[data-v-3b46ec89]{
|
|
1874
1874
|
width: 100% !important;
|
|
1875
1875
|
isolation: isolate;
|
|
1876
1876
|
}
|
|
1877
|
-
.bgl-number-input[data-v-
|
|
1877
|
+
.bgl-number-input[data-v-3b46ec89]{
|
|
1878
1878
|
padding-inline-end: 1.75rem !important;
|
|
1879
1879
|
}
|
|
1880
1880
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { IconType } from '@bagelink/vue'
|
|
3
3
|
import { Icon, Btn } from '@bagelink/vue'
|
|
4
|
-
import { onMounted, watch } from 'vue'
|
|
4
|
+
import { nextTick, onMounted, watch } from 'vue'
|
|
5
5
|
|
|
6
6
|
type NumberLayout = 'default' | 'vertical' | 'horizontal'
|
|
7
7
|
|
|
@@ -118,12 +118,15 @@ function inputHandler() {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
watch(() => numberValue, () => {
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
nextTick(() => {
|
|
122
|
+
formattedValue = numberValue !== undefined ? formatNumber(numberValue) : ''
|
|
123
|
+
})
|
|
124
|
+
})
|
|
123
125
|
|
|
124
126
|
watch(() => modelValue, (newVal) => {
|
|
125
127
|
if (newVal !== numberValue) {
|
|
126
128
|
numberValue = Number.parseFloat(`${newVal}`) || 0
|
|
129
|
+
console.log('newVal', numberValue)
|
|
127
130
|
}
|
|
128
131
|
}, { immediate: true })
|
|
129
132
|
</script>
|