@factoringplus/pl-components-pack-v3 0.5.21-pre-18 → 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 +26 -20
- package/dist/pl-components-pack-v3.umd.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -25818,12 +25818,15 @@ const _hoisted_3$o = {
|
|
|
25818
25818
|
class: "pl-input__optional"
|
|
25819
25819
|
};
|
|
25820
25820
|
const _hoisted_4$i = {
|
|
25821
|
-
key:
|
|
25821
|
+
key: 0,
|
|
25822
25822
|
style: { "position": "relative", "width": "20px", "height": "20px" }
|
|
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
|
+
"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", parseInt(value.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 = () => {
|
|
@@ -25907,6 +25913,7 @@ const _sfc_main$B = {
|
|
|
25907
25913
|
}
|
|
25908
25914
|
hiddenPassword.value = !hiddenPassword.value;
|
|
25909
25915
|
};
|
|
25916
|
+
const showRightIcon = computed$1(() => !("show-word-limit" in attrs) && props.rightIcon);
|
|
25910
25917
|
return (_ctx, _cache) => {
|
|
25911
25918
|
const _component_inline_svg = resolveComponent("inline-svg");
|
|
25912
25919
|
const _component_el_input = ElInput;
|
|
@@ -25938,8 +25945,8 @@ const _sfc_main$B = {
|
|
|
25938
25945
|
id,
|
|
25939
25946
|
name: id
|
|
25940
25947
|
}, unref(attrs), {
|
|
25941
|
-
modelValue:
|
|
25942
|
-
"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)
|
|
25943
25950
|
}), {
|
|
25944
25951
|
prefix: withCtx(() => [
|
|
25945
25952
|
props.leftIcon ? (openBlock(), createBlock(_component_inline_svg, {
|
|
@@ -25960,8 +25967,8 @@ const _sfc_main$B = {
|
|
|
25960
25967
|
name: id,
|
|
25961
25968
|
type: unref(passwordType) ? "password" : ""
|
|
25962
25969
|
}, unref(attrs), {
|
|
25963
|
-
modelValue: modelValue
|
|
25964
|
-
"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)
|
|
25965
25972
|
}), {
|
|
25966
25973
|
prefix: withCtx(() => [
|
|
25967
25974
|
props.leftIcon ? (openBlock(), createBlock(_component_inline_svg, {
|
|
@@ -25970,14 +25977,10 @@ const _sfc_main$B = {
|
|
|
25970
25977
|
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
25971
25978
|
]),
|
|
25972
25979
|
suffix: withCtx(() => [
|
|
25973
|
-
!("show-word-limit" in unref(attrs)) && props.rightIcon && !props.password && !props.currency ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25974
|
-
key: 0,
|
|
25975
|
-
src: props.rightIcon
|
|
25976
|
-
}, null, 8, ["src"])) : createCommentVNode("", true),
|
|
25977
25980
|
props.password ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
25978
25981
|
createVNode(Transition, { name: "el-zoom-in-top" }, {
|
|
25979
25982
|
default: withCtx(() => [
|
|
25980
|
-
|
|
25983
|
+
unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25981
25984
|
key: 0,
|
|
25982
25985
|
class: "pl-input__eye",
|
|
25983
25986
|
src: unref(eyeCrossed),
|
|
@@ -25988,7 +25991,7 @@ const _sfc_main$B = {
|
|
|
25988
25991
|
}),
|
|
25989
25992
|
createVNode(Transition, { name: "el-zoom-in-top" }, {
|
|
25990
25993
|
default: withCtx(() => [
|
|
25991
|
-
|
|
25994
|
+
!unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25992
25995
|
key: 0,
|
|
25993
25996
|
class: "pl-input__eye",
|
|
25994
25997
|
src: unref(eye),
|
|
@@ -25997,7 +26000,10 @@ const _sfc_main$B = {
|
|
|
25997
26000
|
]),
|
|
25998
26001
|
_: 1
|
|
25999
26002
|
})
|
|
26000
|
-
])) :
|
|
26003
|
+
])) : unref(showRightIcon) ? (openBlock(), createBlock(_component_inline_svg, {
|
|
26004
|
+
key: 1,
|
|
26005
|
+
src: props.rightIcon
|
|
26006
|
+
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
26001
26007
|
]),
|
|
26002
26008
|
_: 1
|
|
26003
26009
|
}, 16, ["type", "modelValue"])),
|
|
@@ -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);
|