@factoringplus/pl-components-pack-v3 0.4.42-pre-8 → 0.4.42-pre-10
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 +63 -50
- package/dist/pl-components-pack-v3.umd.js +20 -20
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -24596,7 +24596,14 @@ const _sfc_main$y = {
|
|
|
24596
24596
|
const ruleForm = reactive({
|
|
24597
24597
|
[props.prop]: modelValue
|
|
24598
24598
|
});
|
|
24599
|
+
const form2 = ref(null);
|
|
24600
|
+
let firstClick = false;
|
|
24599
24601
|
const validateInp = (prop, isValid, message2) => {
|
|
24602
|
+
if (unref(currency) && !firstClick) {
|
|
24603
|
+
firstClick = !firstClick;
|
|
24604
|
+
form2.value.resetFields();
|
|
24605
|
+
return;
|
|
24606
|
+
}
|
|
24600
24607
|
emit2("validate", prop, isValid, message2);
|
|
24601
24608
|
};
|
|
24602
24609
|
watch(modelValue, (newValue) => {
|
|
@@ -24627,9 +24634,23 @@ const _sfc_main$y = {
|
|
|
24627
24634
|
let newLength = e2.target.value.length;
|
|
24628
24635
|
if (keyCode === 46)
|
|
24629
24636
|
newLength += 1;
|
|
24630
|
-
let cursorShift
|
|
24631
|
-
if (
|
|
24632
|
-
cursorShift =
|
|
24637
|
+
let cursorShift;
|
|
24638
|
+
if (selectionStart === selectionEnd || selectionStart + 1 === selectionEnd) {
|
|
24639
|
+
cursorShift = selectionStart + (newLength - memoryLength);
|
|
24640
|
+
if (keyCode === 8) {
|
|
24641
|
+
if (newLength === memoryLength) {
|
|
24642
|
+
cursorShift -= 1;
|
|
24643
|
+
} else if (selectionEnd !== selectionStart) {
|
|
24644
|
+
cursorShift += 1;
|
|
24645
|
+
}
|
|
24646
|
+
}
|
|
24647
|
+
if (cursorShift < 0)
|
|
24648
|
+
cursorShift = 0;
|
|
24649
|
+
if (selectionEnd === selectionStart && selectionEnd === cursorShift && newLength === memoryLength && keyCode !== 8 && keyCode !== 46)
|
|
24650
|
+
cursorShift += 1;
|
|
24651
|
+
} else {
|
|
24652
|
+
cursorShift = selectionEnd - memoryLength + newLength;
|
|
24653
|
+
}
|
|
24633
24654
|
e2.target.selectionStart = cursorShift;
|
|
24634
24655
|
e2.target.selectionEnd = cursorShift;
|
|
24635
24656
|
});
|
|
@@ -24644,7 +24665,8 @@ const _sfc_main$y = {
|
|
|
24644
24665
|
onValidate: validateInp,
|
|
24645
24666
|
"label-position": "top",
|
|
24646
24667
|
model: ruleForm,
|
|
24647
|
-
|
|
24668
|
+
ref_key: "form",
|
|
24669
|
+
ref: form2,
|
|
24648
24670
|
rules: __props.rules
|
|
24649
24671
|
}, {
|
|
24650
24672
|
default: withCtx(() => [
|
|
@@ -24697,7 +24719,6 @@ const _sfc_main$y = {
|
|
|
24697
24719
|
}, null, 8, ["class", "formatter", "parser", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
24698
24720
|
key: 1,
|
|
24699
24721
|
onKeydown: keydown,
|
|
24700
|
-
onClick: _cache[2] || (_cache[2] = ($event) => throuInput($event)),
|
|
24701
24722
|
class: { padding: props.prefix },
|
|
24702
24723
|
minlength: __props.minLength,
|
|
24703
24724
|
maxlength: __props.maxLength,
|
|
@@ -24708,7 +24729,7 @@ const _sfc_main$y = {
|
|
|
24708
24729
|
ref_key: "inputRef",
|
|
24709
24730
|
ref: inputRef,
|
|
24710
24731
|
modelValue: unref(formattedValue),
|
|
24711
|
-
"onUpdate:modelValue": _cache[
|
|
24732
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null)
|
|
24712
24733
|
}), createSlots({ _: 2 }, [
|
|
24713
24734
|
unref(currency) ? {
|
|
24714
24735
|
name: "append",
|
|
@@ -34433,7 +34454,7 @@ const _hoisted_4$f = {
|
|
|
34433
34454
|
};
|
|
34434
34455
|
const _hoisted_5$a = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
|
|
34435
34456
|
const _hoisted_6$7 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
|
|
34436
|
-
const _hoisted_7$
|
|
34457
|
+
const _hoisted_7$4 = {
|
|
34437
34458
|
key: 1,
|
|
34438
34459
|
class: "dialog-footer"
|
|
34439
34460
|
};
|
|
@@ -34628,7 +34649,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign(__default__$6, {
|
|
|
34628
34649
|
]),
|
|
34629
34650
|
_: 1
|
|
34630
34651
|
})
|
|
34631
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
34652
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
34632
34653
|
createVNode(_component_el_button, {
|
|
34633
34654
|
type: "primary",
|
|
34634
34655
|
onClick: _cache[2] || (_cache[2] = ($event) => onAppendClick(form2.value))
|
|
@@ -34743,12 +34764,11 @@ const _hoisted_3$k = /* @__PURE__ */ createElementVNode("img", {
|
|
|
34743
34764
|
alt: "no data image"
|
|
34744
34765
|
}, null, -1);
|
|
34745
34766
|
const _hoisted_4$e = { class: "no-data__text" };
|
|
34746
|
-
const _hoisted_5$9 = {
|
|
34747
|
-
const _hoisted_6$6 = {
|
|
34767
|
+
const _hoisted_5$9 = {
|
|
34748
34768
|
key: 0,
|
|
34749
|
-
class: "d-flex mt-3 pl-table position-relative align-items-center"
|
|
34769
|
+
class: "d-flex mt-3 pl-table position-relative align-items-center justify-content-end"
|
|
34750
34770
|
};
|
|
34751
|
-
const
|
|
34771
|
+
const _hoisted_6$6 = {
|
|
34752
34772
|
key: 0,
|
|
34753
34773
|
class: "totals"
|
|
34754
34774
|
};
|
|
@@ -34787,9 +34807,9 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34787
34807
|
uniqKeyOfSelectedRow: {
|
|
34788
34808
|
type: String
|
|
34789
34809
|
},
|
|
34790
|
-
|
|
34791
|
-
type:
|
|
34792
|
-
default:
|
|
34810
|
+
layout: {
|
|
34811
|
+
type: String,
|
|
34812
|
+
default: "prev, pager, next, sizes"
|
|
34793
34813
|
},
|
|
34794
34814
|
toggleRowSelection: {
|
|
34795
34815
|
trype: Array,
|
|
@@ -34807,11 +34827,9 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34807
34827
|
],
|
|
34808
34828
|
setup(__props, { emit: emit2 }) {
|
|
34809
34829
|
const props = __props;
|
|
34810
|
-
const { form: form2, modelValue, total,
|
|
34811
|
-
const layout = computed(() => fullFooter.value ? "sizes, prev, pager, next, jumper, slot" : "prev, pager, next, sizes");
|
|
34830
|
+
const { form: form2, modelValue, total, layout } = toRefs(props);
|
|
34812
34831
|
const selectedRows = ref([]);
|
|
34813
34832
|
const selectRow = (onSelectedRows) => {
|
|
34814
|
-
console.log(1);
|
|
34815
34833
|
selectedRows.value = onSelectedRows;
|
|
34816
34834
|
emit2("selected-rows", selectedRows);
|
|
34817
34835
|
};
|
|
@@ -34847,42 +34865,37 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34847
34865
|
return (_ctx, _cache) => {
|
|
34848
34866
|
const _component_el_table = ElTable;
|
|
34849
34867
|
const _component_el_pagination = ElPagination;
|
|
34850
|
-
return openBlock(), createElementBlock("div",
|
|
34851
|
-
|
|
34852
|
-
|
|
34853
|
-
|
|
34854
|
-
|
|
34855
|
-
|
|
34856
|
-
|
|
34857
|
-
|
|
34858
|
-
|
|
34859
|
-
|
|
34860
|
-
|
|
34861
|
-
|
|
34862
|
-
|
|
34863
|
-
|
|
34864
|
-
|
|
34865
|
-
|
|
34866
|
-
|
|
34867
|
-
default
|
|
34868
|
-
|
|
34869
|
-
|
|
34870
|
-
|
|
34871
|
-
|
|
34872
|
-
|
|
34873
|
-
|
|
34874
|
-
|
|
34875
|
-
]),
|
|
34876
|
-
withDirectives(createElementVNode("hr", _hoisted_5$9, null, 512), [
|
|
34877
|
-
[vShow, unref(fullFooter)]
|
|
34878
|
-
]),
|
|
34879
|
-
__props.hasPagination ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
34868
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
34869
|
+
createVNode(unref(ElConfigProvider), { locale: unref(ru$1) }, {
|
|
34870
|
+
default: withCtx(() => [
|
|
34871
|
+
createVNode(_component_el_table, mergeProps({
|
|
34872
|
+
ref_key: "plTable",
|
|
34873
|
+
ref: plTable,
|
|
34874
|
+
data: unref(modelValue),
|
|
34875
|
+
onSelect: selectRow,
|
|
34876
|
+
onSelectAll: selectRow
|
|
34877
|
+
}, _ctx.$attrs), {
|
|
34878
|
+
empty: withCtx(() => [
|
|
34879
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
34880
|
+
_hoisted_3$k,
|
|
34881
|
+
createElementVNode("span", _hoisted_4$e, toDisplayString(__props.noDataText), 1)
|
|
34882
|
+
])
|
|
34883
|
+
]),
|
|
34884
|
+
default: withCtx(() => [
|
|
34885
|
+
renderSlot(_ctx.$slots, "default")
|
|
34886
|
+
]),
|
|
34887
|
+
_: 3
|
|
34888
|
+
}, 16, ["data"])
|
|
34889
|
+
]),
|
|
34890
|
+
_: 3
|
|
34891
|
+
}, 8, ["locale"]),
|
|
34892
|
+
__props.hasPagination ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
|
|
34880
34893
|
withDirectives(createElementVNode("div", { style: { "line-height": "33px" } }, toDisplayString(unref(declOfNum)(selectedRows.value.length, ["\u0412\u044B\u0431\u0440\u0430\u043D", "\u0412\u044B\u0431\u0440\u0430\u043D\u043E", "\u0412\u044B\u0431\u0440\u0430\u043D\u043E"])) + " " + toDisplayString(selectedRows.value.length) + " " + toDisplayString(unref(declOfNum)(selectedRows.value.length, [
|
|
34881
34894
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442",
|
|
34882
34895
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",
|
|
34883
34896
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432"
|
|
34884
34897
|
])), 513), [
|
|
34885
|
-
[vShow,
|
|
34898
|
+
[vShow, selectedRows.value.length > 0]
|
|
34886
34899
|
]),
|
|
34887
34900
|
createVNode(_component_el_pagination, {
|
|
34888
34901
|
"page-size": unref(form2).pageSize,
|
|
@@ -34894,7 +34907,7 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34894
34907
|
total: unref(total)
|
|
34895
34908
|
}, {
|
|
34896
34909
|
default: withCtx(() => [
|
|
34897
|
-
__props.isTotalVisible && unref(layout).includes("slot") ? (openBlock(), createElementBlock("span",
|
|
34910
|
+
__props.isTotalVisible && unref(layout).includes("slot") ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(displayTotal()), 1)) : createCommentVNode("", true)
|
|
34898
34911
|
]),
|
|
34899
34912
|
_: 1
|
|
34900
34913
|
}, 8, ["page-size", "current-page", "page-sizes", "layout", "total"]),
|