@factoringplus/pl-components-pack-v3 0.5.31 → 0.5.32
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.
|
@@ -25902,7 +25902,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
25902
25902
|
}
|
|
25903
25903
|
return target;
|
|
25904
25904
|
};
|
|
25905
|
-
const _withScopeId$1 = (n2) => (pushScopeId("data-v-
|
|
25905
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-3a4be331"), n2 = n2(), popScopeId(), n2);
|
|
25906
25906
|
const _hoisted_1$y = { class: "pl-input__container" };
|
|
25907
25907
|
const _hoisted_2$t = {
|
|
25908
25908
|
key: 0,
|
|
@@ -25944,13 +25944,23 @@ const _hoisted_15$3 = {
|
|
|
25944
25944
|
key: 2,
|
|
25945
25945
|
class: "pl-input__count"
|
|
25946
25946
|
};
|
|
25947
|
-
const _hoisted_16$3 = {
|
|
25948
|
-
|
|
25947
|
+
const _hoisted_16$3 = {
|
|
25948
|
+
key: 0,
|
|
25949
|
+
class: "pl-input__count-inner"
|
|
25950
|
+
};
|
|
25951
|
+
const _hoisted_17$2 = {
|
|
25952
|
+
key: 1,
|
|
25953
|
+
class: "pl-input__count-inner"
|
|
25954
|
+
};
|
|
25949
25955
|
const _hoisted_18$2 = {
|
|
25956
|
+
key: 2,
|
|
25957
|
+
class: "pl-input__helpertext"
|
|
25958
|
+
};
|
|
25959
|
+
const _hoisted_19$2 = {
|
|
25950
25960
|
key: 0,
|
|
25951
25961
|
class: "pl-form-item__error"
|
|
25952
25962
|
};
|
|
25953
|
-
const
|
|
25963
|
+
const _hoisted_20$2 = { key: 1 };
|
|
25954
25964
|
const _sfc_main$B = {
|
|
25955
25965
|
__name: "pl-input-plus",
|
|
25956
25966
|
props: {
|
|
@@ -26020,13 +26030,16 @@ const _sfc_main$B = {
|
|
|
26020
26030
|
disabled: {
|
|
26021
26031
|
type: Boolean,
|
|
26022
26032
|
default: false
|
|
26033
|
+
},
|
|
26034
|
+
formatter: {
|
|
26035
|
+
type: Function
|
|
26023
26036
|
}
|
|
26024
26037
|
},
|
|
26025
26038
|
emits: ["update:modelValue"],
|
|
26026
26039
|
setup(__props, { emit: emit2 }) {
|
|
26027
26040
|
const props = __props;
|
|
26028
26041
|
useCssVars((_ctx) => ({
|
|
26029
|
-
"
|
|
26042
|
+
"3d8adc0a": props.width
|
|
26030
26043
|
}));
|
|
26031
26044
|
const attrs = useAttrs$1();
|
|
26032
26045
|
const errors = ref([]);
|
|
@@ -26053,6 +26066,13 @@ const _sfc_main$B = {
|
|
|
26053
26066
|
emit2("update:modelValue", value);
|
|
26054
26067
|
}
|
|
26055
26068
|
});
|
|
26069
|
+
if (props.formatter) {
|
|
26070
|
+
watch(modelValue, (newValue) => {
|
|
26071
|
+
if (newValue) {
|
|
26072
|
+
modelValue.value = props.formatter(newValue);
|
|
26073
|
+
}
|
|
26074
|
+
});
|
|
26075
|
+
}
|
|
26056
26076
|
if (props.currency) {
|
|
26057
26077
|
watch(modelValue, (newValue) => {
|
|
26058
26078
|
setValue(newValue);
|
|
@@ -26164,20 +26184,18 @@ const _sfc_main$B = {
|
|
|
26164
26184
|
src: props.rightIcon
|
|
26165
26185
|
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
26166
26186
|
])) : props.showWordLimit ? (openBlock(), createElementBlock("div", _hoisted_15$3, [
|
|
26167
|
-
|
|
26187
|
+
unref(modelValue) ? (openBlock(), createElementBlock("span", _hoisted_16$3, toDisplayString(unref(modelValue).length) + "/" + toDisplayString(unref(attrs).maxlength), 1)) : (openBlock(), createElementBlock("span", _hoisted_17$2, " 0/" + toDisplayString(unref(attrs).maxlength), 1))
|
|
26168
26188
|
])) : createCommentVNode("", true)
|
|
26169
26189
|
])
|
|
26170
26190
|
], 2)),
|
|
26171
|
-
|
|
26172
|
-
errors.value.length > 0 ? (openBlock(), createElementBlock("span",
|
|
26173
|
-
],
|
|
26174
|
-
[vShow, props.helpertext || errors.value.length > 0]
|
|
26175
|
-
])
|
|
26191
|
+
props.helpertext || errors.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_18$2, [
|
|
26192
|
+
errors.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_19$2, toDisplayString(errors.value[0].message), 1)) : props.helpertext ? (openBlock(), createElementBlock("span", _hoisted_20$2, toDisplayString(props.helpertext), 1)) : createCommentVNode("", true)
|
|
26193
|
+
])) : createCommentVNode("", true)
|
|
26176
26194
|
]);
|
|
26177
26195
|
};
|
|
26178
26196
|
}
|
|
26179
26197
|
};
|
|
26180
|
-
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
26198
|
+
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-3a4be331"]]);
|
|
26181
26199
|
const PlInputPlusPlugin = {
|
|
26182
26200
|
install(app) {
|
|
26183
26201
|
app.component("PlInputPlus", PlInputPlus);
|
|
@@ -26325,35 +26343,32 @@ const _sfc_main$x = {
|
|
|
26325
26343
|
"button-secondary": props.type === "secondary",
|
|
26326
26344
|
"button-error": props.type === "error",
|
|
26327
26345
|
"button-empty": props.type === "empty",
|
|
26328
|
-
"full-width": props.fullWidth
|
|
26346
|
+
"full-width": props.fullWidth,
|
|
26347
|
+
"pl-button": true
|
|
26329
26348
|
}));
|
|
26330
26349
|
const onClick = () => !props.disabled && emit2("click");
|
|
26331
26350
|
return (_ctx, _cache) => {
|
|
26332
26351
|
const _component_inline_svg = resolveComponent("inline-svg");
|
|
26333
|
-
|
|
26334
|
-
return openBlock(), createBlock(_component_el_button, {
|
|
26352
|
+
return openBlock(), createElementBlock("button", {
|
|
26335
26353
|
class: normalizeClass(unref(buttonClasses)),
|
|
26336
26354
|
onClick
|
|
26337
|
-
},
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26345
|
-
|
|
26346
|
-
|
|
26347
|
-
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
]),
|
|
26351
|
-
_: 3
|
|
26352
|
-
}, 8, ["class"]);
|
|
26355
|
+
}, [
|
|
26356
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
26357
|
+
props.iconPosition === "left" ? (openBlock(), createBlock(_component_inline_svg, {
|
|
26358
|
+
key: 0,
|
|
26359
|
+
src: props.icon
|
|
26360
|
+
}, null, 8, ["src"])) : createCommentVNode("", true),
|
|
26361
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
26362
|
+
props.iconPosition === "right" ? (openBlock(), createBlock(_component_inline_svg, {
|
|
26363
|
+
key: 1,
|
|
26364
|
+
src: props.icon
|
|
26365
|
+
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
26366
|
+
])
|
|
26367
|
+
], 2);
|
|
26353
26368
|
};
|
|
26354
26369
|
}
|
|
26355
26370
|
};
|
|
26356
|
-
var PlButton = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-
|
|
26371
|
+
var PlButton = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-f7ae6c80"]]);
|
|
26357
26372
|
const cache = {};
|
|
26358
26373
|
function filterAttrs(attrs) {
|
|
26359
26374
|
return Object.keys(attrs).reduce((result, key) => {
|
|
@@ -42953,6 +42968,7 @@ var bootstrapCustom = "";
|
|
|
42953
42968
|
var root = "";
|
|
42954
42969
|
var inter = "";
|
|
42955
42970
|
var color = "";
|
|
42971
|
+
var resetElement = "";
|
|
42956
42972
|
const PlPlugin = {
|
|
42957
42973
|
install(app) {
|
|
42958
42974
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u, _v, _w;
|