@factoringplus/pl-components-pack-v3 0.5.21-pre-17 → 0.5.21-pre-19
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 +38 -19
- package/dist/pl-components-pack-v3.umd.js +14 -14
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -25818,7 +25818,7 @@ 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 = {
|
|
@@ -25877,7 +25877,7 @@ const _sfc_main$B = {
|
|
|
25877
25877
|
setup(__props, { emit: emit2 }) {
|
|
25878
25878
|
const props = __props;
|
|
25879
25879
|
useCssVars((_ctx) => ({
|
|
25880
|
-
"
|
|
25880
|
+
"95447988": props.width
|
|
25881
25881
|
}));
|
|
25882
25882
|
const attrs = useAttrs$1();
|
|
25883
25883
|
const id = `id-${Math.random()}`;
|
|
@@ -25890,11 +25890,11 @@ const _sfc_main$B = {
|
|
|
25890
25890
|
valueRange: props.valueRange,
|
|
25891
25891
|
...props.currencyInputOptions
|
|
25892
25892
|
});
|
|
25893
|
-
|
|
25893
|
+
const { inputRef } = useCurrencyInput(options);
|
|
25894
25894
|
const modelValue = ref(props.modelValue);
|
|
25895
25895
|
watch(modelValue, (value) => {
|
|
25896
25896
|
if (value && props.currency) {
|
|
25897
|
-
emit2("update:modelValue",
|
|
25897
|
+
emit2("update:modelValue", Number(value.replace(",", ".").replace(/\s/g, "")));
|
|
25898
25898
|
} else {
|
|
25899
25899
|
emit2("update:modelValue", value);
|
|
25900
25900
|
}
|
|
@@ -25907,6 +25907,7 @@ const _sfc_main$B = {
|
|
|
25907
25907
|
}
|
|
25908
25908
|
hiddenPassword.value = !hiddenPassword.value;
|
|
25909
25909
|
};
|
|
25910
|
+
const showRightIcon = computed$1(() => !("show-word-limit" in attrs) && props.rightIcon);
|
|
25910
25911
|
return (_ctx, _cache) => {
|
|
25911
25912
|
const _component_inline_svg = resolveComponent("inline-svg");
|
|
25912
25913
|
const _component_el_input = ElInput;
|
|
@@ -25931,11 +25932,12 @@ const _sfc_main$B = {
|
|
|
25931
25932
|
_: 1
|
|
25932
25933
|
}, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
25933
25934
|
]),
|
|
25934
|
-
|
|
25935
|
+
props.currency ? (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
25936
|
+
key: 0,
|
|
25937
|
+
ref_key: "inputRef",
|
|
25938
|
+
ref: inputRef,
|
|
25935
25939
|
id,
|
|
25936
|
-
name: id
|
|
25937
|
-
type: unref(passwordType) ? "password" : "",
|
|
25938
|
-
ref: props.currency ? "plInputRef" : ""
|
|
25940
|
+
name: id
|
|
25939
25941
|
}, unref(attrs), {
|
|
25940
25942
|
modelValue: modelValue.value,
|
|
25941
25943
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue.value = $event)
|
|
@@ -25947,18 +25949,32 @@ const _sfc_main$B = {
|
|
|
25947
25949
|
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
25948
25950
|
]),
|
|
25949
25951
|
suffix: withCtx(() => [
|
|
25950
|
-
!("show-word-limit" in unref(attrs)) && props.rightIcon && !props.password && !props.currency ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25951
|
-
key: 0,
|
|
25952
|
-
src: props.rightIcon
|
|
25953
|
-
}, null, 8, ["src"])) : createCommentVNode("", true),
|
|
25954
25952
|
props.currency ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25955
|
-
key:
|
|
25953
|
+
key: 0,
|
|
25956
25954
|
src: unref(ruble)
|
|
25957
|
-
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
25955
|
+
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
25956
|
+
]),
|
|
25957
|
+
_: 1
|
|
25958
|
+
}, 16, ["modelValue"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
25959
|
+
key: 1,
|
|
25960
|
+
id,
|
|
25961
|
+
name: id,
|
|
25962
|
+
type: unref(passwordType) ? "password" : ""
|
|
25963
|
+
}, unref(attrs), {
|
|
25964
|
+
modelValue: modelValue.value,
|
|
25965
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event)
|
|
25966
|
+
}), {
|
|
25967
|
+
prefix: withCtx(() => [
|
|
25968
|
+
props.leftIcon ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25969
|
+
key: 0,
|
|
25970
|
+
src: props.leftIcon
|
|
25971
|
+
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
25972
|
+
]),
|
|
25973
|
+
suffix: withCtx(() => [
|
|
25958
25974
|
props.password ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
25959
25975
|
createVNode(Transition, { name: "el-zoom-in-top" }, {
|
|
25960
25976
|
default: withCtx(() => [
|
|
25961
|
-
|
|
25977
|
+
unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25962
25978
|
key: 0,
|
|
25963
25979
|
class: "pl-input__eye",
|
|
25964
25980
|
src: unref(eyeCrossed),
|
|
@@ -25969,7 +25985,7 @@ const _sfc_main$B = {
|
|
|
25969
25985
|
}),
|
|
25970
25986
|
createVNode(Transition, { name: "el-zoom-in-top" }, {
|
|
25971
25987
|
default: withCtx(() => [
|
|
25972
|
-
|
|
25988
|
+
!unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25973
25989
|
key: 0,
|
|
25974
25990
|
class: "pl-input__eye",
|
|
25975
25991
|
src: unref(eye),
|
|
@@ -25978,10 +25994,13 @@ const _sfc_main$B = {
|
|
|
25978
25994
|
]),
|
|
25979
25995
|
_: 1
|
|
25980
25996
|
})
|
|
25981
|
-
])) :
|
|
25997
|
+
])) : unref(showRightIcon) ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25998
|
+
key: 1,
|
|
25999
|
+
src: props.rightIcon
|
|
26000
|
+
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
25982
26001
|
]),
|
|
25983
26002
|
_: 1
|
|
25984
|
-
}, 16, ["type", "modelValue"]),
|
|
26003
|
+
}, 16, ["type", "modelValue"])),
|
|
25985
26004
|
withDirectives(createElementVNode("span", { class: "pl-input__helpertext" }, toDisplayString(props.helpertext), 513), [
|
|
25986
26005
|
[vShow, props.helpertext]
|
|
25987
26006
|
])
|
|
@@ -25989,7 +26008,7 @@ const _sfc_main$B = {
|
|
|
25989
26008
|
};
|
|
25990
26009
|
}
|
|
25991
26010
|
};
|
|
25992
|
-
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
26011
|
+
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-691ed98b"]]);
|
|
25993
26012
|
const PlInputPlusPlugin = {
|
|
25994
26013
|
install(app) {
|
|
25995
26014
|
app.component("PlInputPlus", PlInputPlus);
|