@factoringplus/pl-components-pack-v3 0.5.29 → 0.5.30-pre-2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { unref, getCurrentScope, onScopeDispose, ref, watch, getCurrentInstance, onMounted, nextTick, readonly, shallowRef, watchEffect, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, provide, inject, onBeforeUnmount, toRef, onUnmounted, isRef, onBeforeMount, defineComponent, mergeProps, renderSlot, useAttrs as useAttrs$1, useSlots, withDirectives, createCommentVNode, Fragment, normalizeClass, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow, Transition, reactive, onUpdated, cloneVNode, Text, Comment, Teleport, onDeactivated, renderList, createTextVNode, toRaw as toRaw$1, vModelCheckbox, toRefs, withKeys, h as h$2, createSlots, triggerRef, resolveComponent, resolveDirective, vModelText, TransitionGroup, createApp, shallowReactive, render, useCssVars, pushScopeId, popScopeId, normalizeProps, guardReactiveProps, createStaticVNode } from "vue";
|
|
1
|
+
import { unref, getCurrentScope, onScopeDispose, ref, watch, getCurrentInstance, onMounted, nextTick, readonly, shallowRef, watchEffect, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, provide, inject, onBeforeUnmount, toRef, onUnmounted, isRef, onBeforeMount, defineComponent, mergeProps, renderSlot, useAttrs as useAttrs$1, useSlots, withDirectives, createCommentVNode, Fragment, normalizeClass, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow, Transition, reactive, onUpdated, cloneVNode, Text, Comment, Teleport, onDeactivated, renderList, createTextVNode, toRaw as toRaw$1, vModelCheckbox, toRefs, withKeys, h as h$2, createSlots, triggerRef, resolveComponent, resolveDirective, vModelText, TransitionGroup, createApp, shallowReactive, render, useCssVars, vModelDynamic, pushScopeId, popScopeId, normalizeProps, guardReactiveProps, createStaticVNode } from "vue";
|
|
2
2
|
import moment from "moment";
|
|
3
3
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
4
4
|
var freeGlobal$1 = freeGlobal;
|
|
@@ -2177,7 +2177,7 @@ var export_helper_default = (sfc, props) => {
|
|
|
2177
2177
|
var arrow_down_vue_vue_type_script_lang_default = {
|
|
2178
2178
|
name: "ArrowDown"
|
|
2179
2179
|
};
|
|
2180
|
-
var _hoisted_16$
|
|
2180
|
+
var _hoisted_16$4 = {
|
|
2181
2181
|
viewBox: "0 0 1024 1024",
|
|
2182
2182
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2183
2183
|
}, _hoisted_26$1 = /* @__PURE__ */ createElementVNode("path", {
|
|
@@ -2187,13 +2187,13 @@ var _hoisted_16$3 = {
|
|
|
2187
2187
|
_hoisted_26$1
|
|
2188
2188
|
];
|
|
2189
2189
|
function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2190
|
-
return openBlock(), createElementBlock("svg", _hoisted_16$
|
|
2190
|
+
return openBlock(), createElementBlock("svg", _hoisted_16$4, _hoisted_36);
|
|
2191
2191
|
}
|
|
2192
2192
|
var arrow_down_default = /* @__PURE__ */ export_helper_default(arrow_down_vue_vue_type_script_lang_default, [["render", _sfc_render6], ["__file", "arrow-down.vue"]]);
|
|
2193
2193
|
var arrow_left_vue_vue_type_script_lang_default = {
|
|
2194
2194
|
name: "ArrowLeft"
|
|
2195
2195
|
};
|
|
2196
|
-
var _hoisted_18$
|
|
2196
|
+
var _hoisted_18$3 = {
|
|
2197
2197
|
viewBox: "0 0 1024 1024",
|
|
2198
2198
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2199
2199
|
}, _hoisted_28$1 = /* @__PURE__ */ createElementVNode("path", {
|
|
@@ -2203,7 +2203,7 @@ var _hoisted_18$2 = {
|
|
|
2203
2203
|
_hoisted_28$1
|
|
2204
2204
|
];
|
|
2205
2205
|
function _sfc_render8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2206
|
-
return openBlock(), createElementBlock("svg", _hoisted_18$
|
|
2206
|
+
return openBlock(), createElementBlock("svg", _hoisted_18$3, _hoisted_38);
|
|
2207
2207
|
}
|
|
2208
2208
|
var arrow_left_default = /* @__PURE__ */ export_helper_default(arrow_left_vue_vue_type_script_lang_default, [["render", _sfc_render8], ["__file", "arrow-left.vue"]]);
|
|
2209
2209
|
var arrow_right_vue_vue_type_script_lang_default = {
|
|
@@ -17660,7 +17660,7 @@ const _hoisted_2$B = ["aria-current", "tabindex"];
|
|
|
17660
17660
|
const _hoisted_3$t = ["tabindex"];
|
|
17661
17661
|
const _hoisted_4$l = ["aria-current", "tabindex"];
|
|
17662
17662
|
const _hoisted_5$f = ["tabindex"];
|
|
17663
|
-
const _hoisted_6$
|
|
17663
|
+
const _hoisted_6$9 = ["aria-current", "tabindex"];
|
|
17664
17664
|
const __default__$i = defineComponent({
|
|
17665
17665
|
name: "ElPaginationPager"
|
|
17666
17666
|
});
|
|
@@ -17850,7 +17850,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
17850
17850
|
], "number"]),
|
|
17851
17851
|
"aria-current": _ctx.currentPage === _ctx.pageCount,
|
|
17852
17852
|
tabindex: unref(tabindex)
|
|
17853
|
-
}, toDisplayString(_ctx.pageCount), 11, _hoisted_6$
|
|
17853
|
+
}, toDisplayString(_ctx.pageCount), 11, _hoisted_6$9)) : createCommentVNode("v-if", true)
|
|
17854
17854
|
], 42, _hoisted_1$J);
|
|
17855
17855
|
};
|
|
17856
17856
|
}
|
|
@@ -25358,25 +25358,117 @@ const PlCurrencyPlugin = {
|
|
|
25358
25358
|
app.component("PlCurrency", _sfc_main$F);
|
|
25359
25359
|
}
|
|
25360
25360
|
};
|
|
25361
|
-
var form = "";
|
|
25362
25361
|
const _sfc_main$E = {
|
|
25363
25362
|
__name: "pl-form",
|
|
25363
|
+
props: {
|
|
25364
|
+
model: {
|
|
25365
|
+
type: Object,
|
|
25366
|
+
required: true
|
|
25367
|
+
},
|
|
25368
|
+
rules: {
|
|
25369
|
+
type: Object,
|
|
25370
|
+
default: () => {
|
|
25371
|
+
}
|
|
25372
|
+
}
|
|
25373
|
+
},
|
|
25364
25374
|
setup(__props, { expose }) {
|
|
25365
|
-
const
|
|
25366
|
-
|
|
25367
|
-
|
|
25375
|
+
const props = __props;
|
|
25376
|
+
const { model, rules: rules2 } = toRefs(props);
|
|
25377
|
+
const errorsState = ref([]);
|
|
25378
|
+
provide("errorsState", errorsState);
|
|
25379
|
+
const validate = (callback) => {
|
|
25380
|
+
return new Promise((resolve, reject) => {
|
|
25381
|
+
const validator2 = new Schema(rules2.value);
|
|
25382
|
+
validator2.validate(model.value, (errors, fields) => {
|
|
25383
|
+
if (errors) {
|
|
25384
|
+
errorsState.value = errors;
|
|
25385
|
+
callback == null ? void 0 : callback(false);
|
|
25386
|
+
reject();
|
|
25387
|
+
return;
|
|
25388
|
+
}
|
|
25389
|
+
errorsState.value = [];
|
|
25390
|
+
callback == null ? void 0 : callback(true);
|
|
25391
|
+
resolve();
|
|
25392
|
+
});
|
|
25393
|
+
});
|
|
25394
|
+
};
|
|
25395
|
+
const validateField = (prop) => {
|
|
25396
|
+
const rulesValidate = {};
|
|
25397
|
+
const source2 = {};
|
|
25398
|
+
rulesValidate[prop] = rules2.value[prop];
|
|
25399
|
+
source2[prop] = model.value[prop];
|
|
25400
|
+
const validator2 = new Schema(rulesValidate);
|
|
25401
|
+
validator2.validate(source2, (errors, fields) => {
|
|
25402
|
+
errorsState.value = errorsState.value.filter((error2) => error2.field !== prop);
|
|
25403
|
+
if (errors) {
|
|
25404
|
+
errorsState.value = errorsState.value.concat(errors);
|
|
25405
|
+
}
|
|
25406
|
+
});
|
|
25407
|
+
};
|
|
25408
|
+
const clearValidate = (props2 = []) => {
|
|
25409
|
+
if (Array.isArray(props2) && props2.length > 0) {
|
|
25410
|
+
props2.forEach((prop) => {
|
|
25411
|
+
errorsState.value = errorsState.value.filter((error2) => error2.field !== prop);
|
|
25412
|
+
});
|
|
25413
|
+
} else if (!Array.isArray(props2)) {
|
|
25414
|
+
errorsState.value = errorsState.value.filter((error2) => error2.field !== props2);
|
|
25415
|
+
} else {
|
|
25416
|
+
errorsState.value = [];
|
|
25417
|
+
}
|
|
25418
|
+
};
|
|
25419
|
+
const resetFields = (props2 = []) => {
|
|
25420
|
+
if (Array.isArray(props2) && props2.length > 0) {
|
|
25421
|
+
props2.forEach((prop) => {
|
|
25422
|
+
clearValidate(prop);
|
|
25423
|
+
model.value[prop] = null;
|
|
25424
|
+
});
|
|
25425
|
+
} else if (!Array.isArray(props2)) {
|
|
25426
|
+
clearValidate(props2);
|
|
25427
|
+
model.value[props2] = null;
|
|
25428
|
+
} else {
|
|
25429
|
+
clearValidate(props2);
|
|
25430
|
+
for (let prop in model.value) {
|
|
25431
|
+
model.value[prop] = null;
|
|
25432
|
+
}
|
|
25433
|
+
}
|
|
25434
|
+
};
|
|
25435
|
+
const plFormRef = ref(null);
|
|
25436
|
+
onMounted(() => {
|
|
25437
|
+
const ref2 = plFormRef.value;
|
|
25438
|
+
for (let index = 0; index < ref2.length; index++) {
|
|
25439
|
+
const element = ref2[index];
|
|
25440
|
+
const prop = element.__vueParentComponent.ctx.prop;
|
|
25441
|
+
if (prop in rules2.value) {
|
|
25442
|
+
rules2.value[prop].forEach((rule) => {
|
|
25443
|
+
if (rule.trigger) {
|
|
25444
|
+
const triggers = rule.trigger.replace(/\s/g, "").split(",");
|
|
25445
|
+
triggers.forEach((trigger) => {
|
|
25446
|
+
useEventListener(element, trigger, (evt) => {
|
|
25447
|
+
validateField(prop);
|
|
25448
|
+
});
|
|
25449
|
+
});
|
|
25450
|
+
} else {
|
|
25451
|
+
const triggers = ["blur", "change", "input"];
|
|
25452
|
+
triggers.forEach((trigger) => {
|
|
25453
|
+
useEventListener(element, trigger, (evt) => {
|
|
25454
|
+
validateField(prop);
|
|
25455
|
+
});
|
|
25456
|
+
});
|
|
25457
|
+
}
|
|
25458
|
+
});
|
|
25459
|
+
}
|
|
25460
|
+
}
|
|
25368
25461
|
});
|
|
25462
|
+
expose({ validate, validateField, clearValidate, resetFields });
|
|
25369
25463
|
return (_ctx, _cache) => {
|
|
25370
|
-
|
|
25371
|
-
|
|
25372
|
-
|
|
25373
|
-
|
|
25374
|
-
|
|
25375
|
-
|
|
25376
|
-
|
|
25377
|
-
|
|
25378
|
-
_: 3
|
|
25379
|
-
}, 16);
|
|
25464
|
+
return openBlock(), createElementBlock("form", {
|
|
25465
|
+
ref_key: "plFormRef",
|
|
25466
|
+
ref: plFormRef,
|
|
25467
|
+
onSubmit: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
25468
|
+
}, ["prevent"]))
|
|
25469
|
+
}, [
|
|
25470
|
+
renderSlot(_ctx.$slots, "default")
|
|
25471
|
+
], 544);
|
|
25380
25472
|
};
|
|
25381
25473
|
}
|
|
25382
25474
|
};
|
|
@@ -25385,6 +25477,7 @@ const PlFormPlugin = {
|
|
|
25385
25477
|
app.component("PlForm", _sfc_main$E);
|
|
25386
25478
|
}
|
|
25387
25479
|
};
|
|
25480
|
+
var form = "";
|
|
25388
25481
|
var formItem = "";
|
|
25389
25482
|
var _imports_0$9 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMi41OTk5IDguMDAwMzlDMi41OTk5IDUuMDE3NzYgNS4wMTcyNyAyLjYwMDM5IDcuOTk5OSAyLjYwMDM5QzEwLjk4MjUgMi42MDAzOSAxMy4zOTk5IDUuMDE3NzYgMTMuMzk5OSA4LjAwMDM5QzEzLjM5OTkgMTAuOTgzIDEwLjk4MjUgMTMuNDAwNCA3Ljk5OTkgMTMuNDAwNEM1LjAxNzI3IDEzLjQwMDQgMi41OTk5IDEwLjk4MyAyLjU5OTkgOC4wMDAzOVpNNy45OTk5IDEuNDAwMzlDNC4zNTQ1MyAxLjQwMDM5IDEuMzk5OSA0LjM1NTAyIDEuMzk5OSA4LjAwMDM5QzEuMzk5OSAxMS42NDU4IDQuMzU0NTMgMTQuNjAwNCA3Ljk5OTkgMTQuNjAwNEMxMS42NDUzIDE0LjYwMDQgMTQuNTk5OSAxMS42NDU4IDE0LjU5OTkgOC4wMDAzOUMxNC41OTk5IDQuMzU1MDIgMTEuNjQ1MyAxLjQwMDM5IDcuOTk5OSAxLjQwMDM5Wk04LjU5OTkgNS4wMDAzOUM4LjU5OTkgNC42NjkwMiA4LjMzMTI3IDQuNDAwMzkgNy45OTk5IDQuNDAwMzlDNy42Njg1MyA0LjQwMDM5IDcuMzk5OSA0LjY2OTAyIDcuMzk5OSA1LjAwMDM5VjguMzMzNzJDNy4zOTk5IDguNjY1MDkgNy42Njg1MyA4LjkzMzcyIDcuOTk5OSA4LjkzMzcyQzguMzMxMjcgOC45MzM3MiA4LjU5OTkgOC42NjUwOSA4LjU5OTkgOC4zMzM3MlY1LjAwMDM5Wk03Ljk5OTkgMTEuNDkyNkM4LjM4NTYxIDExLjQ5MjYgOC42OTgyOCAxMS4xNzk5IDguNjk4MjggMTAuNzk0MkM4LjY5ODI4IDEwLjQwODUgOC4zODU2MSAxMC4wOTU4IDcuOTk5OSAxMC4wOTU4QzcuNjE0MiAxMC4wOTU4IDcuMzAxNTIgMTAuNDA4NSA3LjMwMTUyIDEwLjc5NDJDNy4zMDE1MiAxMS4xNzk5IDcuNjE0MiAxMS40OTI2IDcuOTk5OSAxMS40OTI2WiIgZmlsbD0iIzY1NjU2NyIvPg0KPC9zdmc+DQo=";
|
|
25390
25483
|
var _imports_2$3 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik03Ljk5OTAyIDhMMTUuOTk5IDE2IiBzdHJva2U9IiM1MDUwNTEiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjxwYXRoIGQ9Ik0xNS45OTkgOEw3Ljk5OTAyIDE2IiBzdHJva2U9IiM1MDUwNTEiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjwvc3ZnPg0K";
|
|
@@ -25808,7 +25901,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
25808
25901
|
}
|
|
25809
25902
|
return target;
|
|
25810
25903
|
};
|
|
25811
|
-
const _withScopeId$1 = (n2) => (pushScopeId("data-v-
|
|
25904
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-71920af7"), n2 = n2(), popScopeId(), n2);
|
|
25812
25905
|
const _hoisted_1$y = { class: "pl-input__container" };
|
|
25813
25906
|
const _hoisted_2$t = {
|
|
25814
25907
|
key: 0,
|
|
@@ -25818,14 +25911,52 @@ const _hoisted_3$o = {
|
|
|
25818
25911
|
key: 1,
|
|
25819
25912
|
class: "pl-input__optional"
|
|
25820
25913
|
};
|
|
25821
|
-
const _hoisted_4$i =
|
|
25914
|
+
const _hoisted_4$i = { class: "pl-input__wrapper" };
|
|
25822
25915
|
const _hoisted_5$c = {
|
|
25916
|
+
key: 0,
|
|
25917
|
+
class: "pl-input__prefix"
|
|
25918
|
+
};
|
|
25919
|
+
const _hoisted_6$8 = ["disabled"];
|
|
25920
|
+
const _hoisted_7$6 = {
|
|
25921
|
+
key: 1,
|
|
25922
|
+
class: "pl-input__suffix"
|
|
25923
|
+
};
|
|
25924
|
+
const _hoisted_8$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-input__currency" }, "\u20BD", -1));
|
|
25925
|
+
const _hoisted_9$5 = [
|
|
25926
|
+
_hoisted_8$5
|
|
25927
|
+
];
|
|
25928
|
+
const _hoisted_10$4 = { class: "pl-input__wrapper" };
|
|
25929
|
+
const _hoisted_11$4 = {
|
|
25930
|
+
key: 0,
|
|
25931
|
+
class: "pl-input__prefix"
|
|
25932
|
+
};
|
|
25933
|
+
const _hoisted_12$4 = ["type", "disabled"];
|
|
25934
|
+
const _hoisted_13$4 = {
|
|
25935
|
+
key: 1,
|
|
25936
|
+
class: "pl-input__suffix"
|
|
25937
|
+
};
|
|
25938
|
+
const _hoisted_14$4 = {
|
|
25823
25939
|
key: 0,
|
|
25824
25940
|
class: "pl-input__eye-container"
|
|
25825
25941
|
};
|
|
25942
|
+
const _hoisted_15$3 = {
|
|
25943
|
+
key: 2,
|
|
25944
|
+
class: "pl-input__count"
|
|
25945
|
+
};
|
|
25946
|
+
const _hoisted_16$3 = { class: "pl-input__count-inner" };
|
|
25947
|
+
const _hoisted_17$2 = { class: "pl-input__helpertext" };
|
|
25948
|
+
const _hoisted_18$2 = {
|
|
25949
|
+
key: 0,
|
|
25950
|
+
class: "pl-form-item__error"
|
|
25951
|
+
};
|
|
25952
|
+
const _hoisted_19$2 = { key: 1 };
|
|
25826
25953
|
const _sfc_main$B = {
|
|
25827
25954
|
__name: "pl-input-plus",
|
|
25828
25955
|
props: {
|
|
25956
|
+
prop: {
|
|
25957
|
+
type: String,
|
|
25958
|
+
default: ""
|
|
25959
|
+
},
|
|
25829
25960
|
modelValue: {
|
|
25830
25961
|
required: true
|
|
25831
25962
|
},
|
|
@@ -25873,18 +26004,37 @@ const _sfc_main$B = {
|
|
|
25873
26004
|
type: Object,
|
|
25874
26005
|
default: () => ({ min: 0 })
|
|
25875
26006
|
},
|
|
26007
|
+
id: {
|
|
26008
|
+
type: String,
|
|
26009
|
+
default: ""
|
|
26010
|
+
},
|
|
25876
26011
|
currencyInputOptions: {
|
|
25877
26012
|
type: Object,
|
|
25878
26013
|
default: () => ({})
|
|
26014
|
+
},
|
|
26015
|
+
"show-word-limit": {
|
|
26016
|
+
type: Boolean,
|
|
26017
|
+
default: false
|
|
26018
|
+
},
|
|
26019
|
+
disabled: {
|
|
26020
|
+
type: Boolean,
|
|
26021
|
+
default: false
|
|
25879
26022
|
}
|
|
25880
26023
|
},
|
|
25881
26024
|
emits: ["update:modelValue"],
|
|
25882
26025
|
setup(__props, { emit: emit2 }) {
|
|
25883
26026
|
const props = __props;
|
|
25884
26027
|
useCssVars((_ctx) => ({
|
|
25885
|
-
"
|
|
26028
|
+
"e2f9bf06": props.width
|
|
25886
26029
|
}));
|
|
25887
26030
|
const attrs = useAttrs$1();
|
|
26031
|
+
const errors = ref([]);
|
|
26032
|
+
if (props.prop) {
|
|
26033
|
+
const errorsState = inject("errorsState");
|
|
26034
|
+
watch(errorsState, () => {
|
|
26035
|
+
errors.value = errorsState.value.filter((error2) => error2.field === props.prop);
|
|
26036
|
+
}, { deep: true });
|
|
26037
|
+
}
|
|
25888
26038
|
const id = `id-${Math.random()}`;
|
|
25889
26039
|
const options = reactive({
|
|
25890
26040
|
currency: "RUB",
|
|
@@ -25915,10 +26065,9 @@ const _sfc_main$B = {
|
|
|
25915
26065
|
}
|
|
25916
26066
|
hiddenPassword.value = !hiddenPassword.value;
|
|
25917
26067
|
};
|
|
25918
|
-
const showRightIcon = computed$1(() => !
|
|
26068
|
+
const showRightIcon = computed$1(() => !props.showWordLimit && props.rightIcon);
|
|
25919
26069
|
return (_ctx, _cache) => {
|
|
25920
26070
|
const _component_inline_svg = resolveComponent("inline-svg");
|
|
25921
|
-
const _component_el_input = ElInput;
|
|
25922
26071
|
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
25923
26072
|
createElementVNode("label", {
|
|
25924
26073
|
class: "pl-input__label-container",
|
|
@@ -25940,52 +26089,54 @@ const _sfc_main$B = {
|
|
|
25940
26089
|
_: 1
|
|
25941
26090
|
}, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
25942
26091
|
]),
|
|
25943
|
-
props.currency ? (openBlock(),
|
|
26092
|
+
props.currency ? (openBlock(), createElementBlock("div", {
|
|
25944
26093
|
key: 0,
|
|
25945
|
-
|
|
25946
|
-
|
|
25947
|
-
|
|
25948
|
-
|
|
25949
|
-
}, unref(attrs), {
|
|
25950
|
-
modelValue: unref(formattedValue),
|
|
25951
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null)
|
|
25952
|
-
}), createSlots({ _: 2 }, [
|
|
25953
|
-
props.leftIcon ? {
|
|
25954
|
-
name: "prefix",
|
|
25955
|
-
fn: withCtx(() => [
|
|
26094
|
+
class: normalizeClass(["pl-input", { "is-disabled": props.disabled }])
|
|
26095
|
+
}, [
|
|
26096
|
+
createElementVNode("div", _hoisted_4$i, [
|
|
26097
|
+
props.leftIcon ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
25956
26098
|
createVNode(_component_inline_svg, {
|
|
25957
26099
|
src: props.leftIcon
|
|
25958
26100
|
}, null, 8, ["src"])
|
|
25959
|
-
])
|
|
25960
|
-
|
|
25961
|
-
|
|
25962
|
-
|
|
25963
|
-
|
|
25964
|
-
|
|
25965
|
-
|
|
25966
|
-
|
|
25967
|
-
|
|
26101
|
+
])) : createCommentVNode("", true),
|
|
26102
|
+
withDirectives(createElementVNode("input", mergeProps({
|
|
26103
|
+
class: "pl-input__inner",
|
|
26104
|
+
ref_key: "inputRef",
|
|
26105
|
+
ref: inputRef,
|
|
26106
|
+
id,
|
|
26107
|
+
name: id
|
|
26108
|
+
}, unref(attrs), {
|
|
26109
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null),
|
|
26110
|
+
disabled: props.disabled
|
|
26111
|
+
}), null, 16, _hoisted_6$8), [
|
|
26112
|
+
[vModelDynamic, unref(formattedValue)]
|
|
26113
|
+
]),
|
|
26114
|
+
props.currency ? (openBlock(), createElementBlock("div", _hoisted_7$6, _hoisted_9$5)) : createCommentVNode("", true)
|
|
26115
|
+
])
|
|
26116
|
+
], 2)) : (openBlock(), createElementBlock("div", {
|
|
25968
26117
|
key: 1,
|
|
25969
|
-
|
|
25970
|
-
|
|
25971
|
-
|
|
25972
|
-
|
|
25973
|
-
modelValue: unref(modelValue),
|
|
25974
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
|
|
25975
|
-
}), createSlots({ _: 2 }, [
|
|
25976
|
-
props.leftIcon ? {
|
|
25977
|
-
name: "prefix",
|
|
25978
|
-
fn: withCtx(() => [
|
|
26118
|
+
class: normalizeClass(["pl-input", { "is-disabled": props.disabled }])
|
|
26119
|
+
}, [
|
|
26120
|
+
createElementVNode("div", _hoisted_10$4, [
|
|
26121
|
+
props.leftIcon ? (openBlock(), createElementBlock("div", _hoisted_11$4, [
|
|
25979
26122
|
createVNode(_component_inline_svg, {
|
|
25980
26123
|
src: props.leftIcon
|
|
25981
26124
|
}, null, 8, ["src"])
|
|
25982
|
-
])
|
|
25983
|
-
|
|
25984
|
-
|
|
25985
|
-
|
|
25986
|
-
|
|
25987
|
-
|
|
25988
|
-
|
|
26125
|
+
])) : createCommentVNode("", true),
|
|
26126
|
+
withDirectives(createElementVNode("input", mergeProps({
|
|
26127
|
+
class: "pl-input__inner",
|
|
26128
|
+
id,
|
|
26129
|
+
name: id,
|
|
26130
|
+
type: unref(passwordType) ? "password" : "text"
|
|
26131
|
+
}, unref(attrs), {
|
|
26132
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
26133
|
+
disabled: props.disabled
|
|
26134
|
+
}), null, 16, _hoisted_12$4), [
|
|
26135
|
+
[vModelDynamic, unref(modelValue)]
|
|
26136
|
+
]),
|
|
26137
|
+
props.password || unref(showRightIcon) ? (openBlock(), createElementBlock("div", _hoisted_13$4, [
|
|
26138
|
+
props.password ? (openBlock(), createElementBlock("div", _hoisted_14$4, [
|
|
26139
|
+
createVNode(Transition, { name: "pl-zoom-in-top" }, {
|
|
25989
26140
|
default: withCtx(() => [
|
|
25990
26141
|
unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
|
|
25991
26142
|
key: 0,
|
|
@@ -25996,7 +26147,7 @@ const _sfc_main$B = {
|
|
|
25996
26147
|
]),
|
|
25997
26148
|
_: 1
|
|
25998
26149
|
}),
|
|
25999
|
-
createVNode(Transition, { name: "
|
|
26150
|
+
createVNode(Transition, { name: "pl-zoom-in-top" }, {
|
|
26000
26151
|
default: withCtx(() => [
|
|
26001
26152
|
!unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
|
|
26002
26153
|
key: 0,
|
|
@@ -26011,17 +26162,21 @@ const _sfc_main$B = {
|
|
|
26011
26162
|
key: 1,
|
|
26012
26163
|
src: props.rightIcon
|
|
26013
26164
|
}, null, 8, ["src"])) : createCommentVNode("", true)
|
|
26014
|
-
])
|
|
26015
|
-
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
|
|
26165
|
+
])) : props.showWordLimit ? (openBlock(), createElementBlock("div", _hoisted_15$3, [
|
|
26166
|
+
createElementVNode("span", _hoisted_16$3, toDisplayString(unref(modelValue).length) + "/" + toDisplayString(unref(attrs).maxlength), 1)
|
|
26167
|
+
])) : createCommentVNode("", true)
|
|
26168
|
+
])
|
|
26169
|
+
], 2)),
|
|
26170
|
+
withDirectives(createElementVNode("span", _hoisted_17$2, [
|
|
26171
|
+
errors.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_18$2, toDisplayString(errors.value[0].message), 1)) : props.helpertext ? (openBlock(), createElementBlock("span", _hoisted_19$2, toDisplayString(props.helpertext), 1)) : createCommentVNode("", true)
|
|
26172
|
+
], 512), [
|
|
26173
|
+
[vShow, props.helpertext || errors.value.length > 0]
|
|
26019
26174
|
])
|
|
26020
26175
|
]);
|
|
26021
26176
|
};
|
|
26022
26177
|
}
|
|
26023
26178
|
};
|
|
26024
|
-
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
26179
|
+
var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-71920af7"]]);
|
|
26025
26180
|
const PlInputPlusPlugin = {
|
|
26026
26181
|
install(app) {
|
|
26027
26182
|
app.component("PlInputPlus", PlInputPlus);
|