@factoringplus/pl-components-pack-v3 0.5.21-pre-19 → 0.5.21-pre-20
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/dist/pl-components-pack-v3.es.js +18 -12
- package/dist/pl-components-pack-v3.umd.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -25824,6 +25824,9 @@ const _hoisted_4$i = {
|
|
|
25824
25824
|
const _sfc_main$B = {
|
|
25825
25825
|
__name: "pl-input-plus",
|
|
25826
25826
|
props: {
|
|
25827
|
+
modelValue: {
|
|
25828
|
+
required: true
|
|
25829
|
+
},
|
|
25827
25830
|
currency: {
|
|
25828
25831
|
type: Boolean,
|
|
25829
25832
|
default: false
|
|
@@ -25877,7 +25880,7 @@ const _sfc_main$B = {
|
|
|
25877
25880
|
setup(__props, { emit: emit2 }) {
|
|
25878
25881
|
const props = __props;
|
|
25879
25882
|
useCssVars((_ctx) => ({
|
|
25880
|
-
"
|
|
25883
|
+
"33cfa45b": props.width
|
|
25881
25884
|
}));
|
|
25882
25885
|
const attrs = useAttrs$1();
|
|
25883
25886
|
const id = `id-${Math.random()}`;
|
|
@@ -25890,15 +25893,18 @@ const _sfc_main$B = {
|
|
|
25890
25893
|
valueRange: props.valueRange,
|
|
25891
25894
|
...props.currencyInputOptions
|
|
25892
25895
|
});
|
|
25893
|
-
const { inputRef } = useCurrencyInput(options);
|
|
25894
|
-
const modelValue =
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
emit2("update:modelValue", Number(value.replace(",", ".").replace(/\s/g, "")));
|
|
25898
|
-
} else {
|
|
25896
|
+
const { inputRef, formattedValue, setValue } = useCurrencyInput(options);
|
|
25897
|
+
const modelValue = computed$1({
|
|
25898
|
+
get: () => props.modelValue,
|
|
25899
|
+
set: (value) => {
|
|
25899
25900
|
emit2("update:modelValue", value);
|
|
25900
25901
|
}
|
|
25901
25902
|
});
|
|
25903
|
+
if (props.currency) {
|
|
25904
|
+
watch(modelValue, (newValue) => {
|
|
25905
|
+
setValue(newValue);
|
|
25906
|
+
});
|
|
25907
|
+
}
|
|
25902
25908
|
const hiddenPassword = ref(true);
|
|
25903
25909
|
const passwordType = computed$1(() => props.password && hiddenPassword.value);
|
|
25904
25910
|
const toogleHiddenPassword = () => {
|
|
@@ -25939,8 +25945,8 @@ const _sfc_main$B = {
|
|
|
25939
25945
|
id,
|
|
25940
25946
|
name: id
|
|
25941
25947
|
}, unref(attrs), {
|
|
25942
|
-
modelValue:
|
|
25943
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
25948
|
+
modelValue: unref(formattedValue),
|
|
25949
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null)
|
|
25944
25950
|
}), {
|
|
25945
25951
|
prefix: withCtx(() => [
|
|
25946
25952
|
props.leftIcon ? (openBlock(), createBlock(_component_inline_svg, {
|
|
@@ -25961,8 +25967,8 @@ const _sfc_main$B = {
|
|
|
25961
25967
|
name: id,
|
|
25962
25968
|
type: unref(passwordType) ? "password" : ""
|
|
25963
25969
|
}, unref(attrs), {
|
|
25964
|
-
modelValue: modelValue
|
|
25965
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event)
|
|
25970
|
+
modelValue: unref(modelValue),
|
|
25971
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
|
|
25966
25972
|
}), {
|
|
25967
25973
|
prefix: withCtx(() => [
|
|
25968
25974
|
props.leftIcon ? (openBlock(), createBlock(_component_inline_svg, {
|
|
@@ -26008,7 +26014,7 @@ const _sfc_main$B = {
|
|
|
26008
26014
|
};
|
|
26009
26015
|
}
|
|
26010
26016
|
};
|
|
26011
|
-
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
26017
|
+
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-98596170"]]);
|
|
26012
26018
|
const PlInputPlusPlugin = {
|
|
26013
26019
|
install(app) {
|
|
26014
26020
|
app.component("PlInputPlus", PlInputPlus);
|