@factoringplus/pl-components-pack-v3 0.5.21-pre-19 → 0.5.21-pre-21
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 +22 -13
- package/dist/pl-components-pack-v3.umd.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -25819,11 +25819,14 @@ const _hoisted_3$o = {
|
|
|
25819
25819
|
};
|
|
25820
25820
|
const _hoisted_4$i = {
|
|
25821
25821
|
key: 0,
|
|
25822
|
-
|
|
25822
|
+
class: "pl-input__eye-container"
|
|
25823
25823
|
};
|
|
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
|
+
"785b130a": props.width
|
|
25881
25884
|
}));
|
|
25882
25885
|
const attrs = useAttrs$1();
|
|
25883
25886
|
const id = `id-${Math.random()}`;
|
|
@@ -25890,15 +25893,21 @@ 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
|
-
|
|
25898
|
-
} else {
|
|
25896
|
+
const { inputRef, formattedValue, setValue } = useCurrencyInput(options);
|
|
25897
|
+
const modelValue = computed$1({
|
|
25898
|
+
get: () => props.modelValue,
|
|
25899
|
+
set: (value) => {
|
|
25900
|
+
console.log(value);
|
|
25899
25901
|
emit2("update:modelValue", value);
|
|
25900
25902
|
}
|
|
25901
25903
|
});
|
|
25904
|
+
console.log(modelValue);
|
|
25905
|
+
if (props.currency) {
|
|
25906
|
+
watch(modelValue, (newValue) => {
|
|
25907
|
+
console.log(newValue);
|
|
25908
|
+
setValue(newValue);
|
|
25909
|
+
});
|
|
25910
|
+
}
|
|
25902
25911
|
const hiddenPassword = ref(true);
|
|
25903
25912
|
const passwordType = computed$1(() => props.password && hiddenPassword.value);
|
|
25904
25913
|
const toogleHiddenPassword = () => {
|
|
@@ -25939,8 +25948,8 @@ const _sfc_main$B = {
|
|
|
25939
25948
|
id,
|
|
25940
25949
|
name: id
|
|
25941
25950
|
}, unref(attrs), {
|
|
25942
|
-
modelValue:
|
|
25943
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
25951
|
+
modelValue: unref(formattedValue),
|
|
25952
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null)
|
|
25944
25953
|
}), {
|
|
25945
25954
|
prefix: withCtx(() => [
|
|
25946
25955
|
props.leftIcon ? (openBlock(), createBlock(_component_inline_svg, {
|
|
@@ -25961,8 +25970,8 @@ const _sfc_main$B = {
|
|
|
25961
25970
|
name: id,
|
|
25962
25971
|
type: unref(passwordType) ? "password" : ""
|
|
25963
25972
|
}, unref(attrs), {
|
|
25964
|
-
modelValue: modelValue
|
|
25965
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event)
|
|
25973
|
+
modelValue: unref(modelValue),
|
|
25974
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
|
|
25966
25975
|
}), {
|
|
25967
25976
|
prefix: withCtx(() => [
|
|
25968
25977
|
props.leftIcon ? (openBlock(), createBlock(_component_inline_svg, {
|
|
@@ -26008,7 +26017,7 @@ const _sfc_main$B = {
|
|
|
26008
26017
|
};
|
|
26009
26018
|
}
|
|
26010
26019
|
};
|
|
26011
|
-
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
26020
|
+
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-464c251e"]]);
|
|
26012
26021
|
const PlInputPlusPlugin = {
|
|
26013
26022
|
install(app) {
|
|
26014
26023
|
app.component("PlInputPlus", PlInputPlus);
|