@factoringplus/pl-components-pack-v3 0.4.42-pre-7 → 0.4.42-pre-9
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 +65 -48
- package/dist/pl-components-pack-v3.umd.js +20 -20
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -24583,7 +24583,7 @@ const _sfc_main$y = {
|
|
|
24583
24583
|
currencyDisplay: "hidden",
|
|
24584
24584
|
precision: round.value ? 0 : 2,
|
|
24585
24585
|
hideNegligibleDecimalDigitsOnFocus: false,
|
|
24586
|
-
hideGroupingSeparatorOnFocus:
|
|
24586
|
+
hideGroupingSeparatorOnFocus: false,
|
|
24587
24587
|
valueRange: unref(valueRange),
|
|
24588
24588
|
...unref(currencyInputOptions)
|
|
24589
24589
|
});
|
|
@@ -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) => {
|
|
@@ -24618,6 +24625,23 @@ const _sfc_main$y = {
|
|
|
24618
24625
|
input2.focus();
|
|
24619
24626
|
});
|
|
24620
24627
|
};
|
|
24628
|
+
const keydown = (e2) => {
|
|
24629
|
+
const { keyCode } = e2;
|
|
24630
|
+
if (keyCode >= 96 && keyCode <= 105 || keyCode >= 48 && keyCode <= 57 || keyCode === 46 || keyCode === 8) {
|
|
24631
|
+
const { selectionStart, selectionEnd } = e2.target;
|
|
24632
|
+
const memoryLength = e2.target.value.length;
|
|
24633
|
+
setTimeout(() => {
|
|
24634
|
+
let newLength = e2.target.value.length;
|
|
24635
|
+
if (keyCode === 46)
|
|
24636
|
+
newLength += 1;
|
|
24637
|
+
let cursorShift = selectionStart + (newLength - memoryLength);
|
|
24638
|
+
if (cursorShift < 0)
|
|
24639
|
+
cursorShift = 0;
|
|
24640
|
+
e2.target.selectionStart = cursorShift;
|
|
24641
|
+
e2.target.selectionEnd = cursorShift;
|
|
24642
|
+
});
|
|
24643
|
+
}
|
|
24644
|
+
};
|
|
24621
24645
|
return (_ctx, _cache) => {
|
|
24622
24646
|
const _component_el_input = ElInput;
|
|
24623
24647
|
const _component_el_form_item = ElFormItem;
|
|
@@ -24627,7 +24651,8 @@ const _sfc_main$y = {
|
|
|
24627
24651
|
onValidate: validateInp,
|
|
24628
24652
|
"label-position": "top",
|
|
24629
24653
|
model: ruleForm,
|
|
24630
|
-
|
|
24654
|
+
ref_key: "form",
|
|
24655
|
+
ref: form2,
|
|
24631
24656
|
rules: __props.rules
|
|
24632
24657
|
}, {
|
|
24633
24658
|
default: withCtx(() => [
|
|
@@ -24679,7 +24704,7 @@ const _sfc_main$y = {
|
|
|
24679
24704
|
clearable: props.clearable && _ctx.area
|
|
24680
24705
|
}, null, 8, ["class", "formatter", "parser", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
24681
24706
|
key: 1,
|
|
24682
|
-
|
|
24707
|
+
onKeydown: keydown,
|
|
24683
24708
|
class: { padding: props.prefix },
|
|
24684
24709
|
minlength: __props.minLength,
|
|
24685
24710
|
maxlength: __props.maxLength,
|
|
@@ -24690,7 +24715,7 @@ const _sfc_main$y = {
|
|
|
24690
24715
|
ref_key: "inputRef",
|
|
24691
24716
|
ref: inputRef,
|
|
24692
24717
|
modelValue: unref(formattedValue),
|
|
24693
|
-
"onUpdate:modelValue": _cache[
|
|
24718
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null)
|
|
24694
24719
|
}), createSlots({ _: 2 }, [
|
|
24695
24720
|
unref(currency) ? {
|
|
24696
24721
|
name: "append",
|
|
@@ -34415,7 +34440,7 @@ const _hoisted_4$f = {
|
|
|
34415
34440
|
};
|
|
34416
34441
|
const _hoisted_5$a = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
|
|
34417
34442
|
const _hoisted_6$7 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
|
|
34418
|
-
const _hoisted_7$
|
|
34443
|
+
const _hoisted_7$4 = {
|
|
34419
34444
|
key: 1,
|
|
34420
34445
|
class: "dialog-footer"
|
|
34421
34446
|
};
|
|
@@ -34610,7 +34635,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign(__default__$6, {
|
|
|
34610
34635
|
]),
|
|
34611
34636
|
_: 1
|
|
34612
34637
|
})
|
|
34613
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
34638
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
34614
34639
|
createVNode(_component_el_button, {
|
|
34615
34640
|
type: "primary",
|
|
34616
34641
|
onClick: _cache[2] || (_cache[2] = ($event) => onAppendClick(form2.value))
|
|
@@ -34725,12 +34750,11 @@ const _hoisted_3$k = /* @__PURE__ */ createElementVNode("img", {
|
|
|
34725
34750
|
alt: "no data image"
|
|
34726
34751
|
}, null, -1);
|
|
34727
34752
|
const _hoisted_4$e = { class: "no-data__text" };
|
|
34728
|
-
const _hoisted_5$9 = {
|
|
34729
|
-
const _hoisted_6$6 = {
|
|
34753
|
+
const _hoisted_5$9 = {
|
|
34730
34754
|
key: 0,
|
|
34731
|
-
class: "d-flex mt-3 pl-table position-relative align-items-center"
|
|
34755
|
+
class: "d-flex mt-3 pl-table position-relative align-items-center justify-content-end"
|
|
34732
34756
|
};
|
|
34733
|
-
const
|
|
34757
|
+
const _hoisted_6$6 = {
|
|
34734
34758
|
key: 0,
|
|
34735
34759
|
class: "totals"
|
|
34736
34760
|
};
|
|
@@ -34769,9 +34793,9 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34769
34793
|
uniqKeyOfSelectedRow: {
|
|
34770
34794
|
type: String
|
|
34771
34795
|
},
|
|
34772
|
-
|
|
34773
|
-
type:
|
|
34774
|
-
default:
|
|
34796
|
+
layout: {
|
|
34797
|
+
type: String,
|
|
34798
|
+
default: "prev, pager, next, sizes"
|
|
34775
34799
|
},
|
|
34776
34800
|
toggleRowSelection: {
|
|
34777
34801
|
trype: Array,
|
|
@@ -34789,11 +34813,9 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34789
34813
|
],
|
|
34790
34814
|
setup(__props, { emit: emit2 }) {
|
|
34791
34815
|
const props = __props;
|
|
34792
|
-
const { form: form2, modelValue, total,
|
|
34793
|
-
const layout = computed(() => fullFooter.value ? "sizes, prev, pager, next, jumper, slot" : "prev, pager, next, sizes");
|
|
34816
|
+
const { form: form2, modelValue, total, layout } = toRefs(props);
|
|
34794
34817
|
const selectedRows = ref([]);
|
|
34795
34818
|
const selectRow = (onSelectedRows) => {
|
|
34796
|
-
console.log(1);
|
|
34797
34819
|
selectedRows.value = onSelectedRows;
|
|
34798
34820
|
emit2("selected-rows", selectedRows);
|
|
34799
34821
|
};
|
|
@@ -34829,42 +34851,37 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34829
34851
|
return (_ctx, _cache) => {
|
|
34830
34852
|
const _component_el_table = ElTable;
|
|
34831
34853
|
const _component_el_pagination = ElPagination;
|
|
34832
|
-
return openBlock(), createElementBlock("div",
|
|
34833
|
-
|
|
34834
|
-
|
|
34835
|
-
|
|
34836
|
-
|
|
34837
|
-
|
|
34838
|
-
|
|
34839
|
-
|
|
34840
|
-
|
|
34841
|
-
|
|
34842
|
-
|
|
34843
|
-
|
|
34844
|
-
|
|
34845
|
-
|
|
34846
|
-
|
|
34847
|
-
|
|
34848
|
-
|
|
34849
|
-
default
|
|
34850
|
-
|
|
34851
|
-
|
|
34852
|
-
|
|
34853
|
-
|
|
34854
|
-
|
|
34855
|
-
|
|
34856
|
-
|
|
34857
|
-
]),
|
|
34858
|
-
withDirectives(createElementVNode("hr", _hoisted_5$9, null, 512), [
|
|
34859
|
-
[vShow, unref(fullFooter)]
|
|
34860
|
-
]),
|
|
34861
|
-
__props.hasPagination ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
34854
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
34855
|
+
createVNode(unref(ElConfigProvider), { locale: unref(ru$1) }, {
|
|
34856
|
+
default: withCtx(() => [
|
|
34857
|
+
createVNode(_component_el_table, mergeProps({
|
|
34858
|
+
ref_key: "plTable",
|
|
34859
|
+
ref: plTable,
|
|
34860
|
+
data: unref(modelValue),
|
|
34861
|
+
onSelect: selectRow,
|
|
34862
|
+
onSelectAll: selectRow
|
|
34863
|
+
}, _ctx.$attrs), {
|
|
34864
|
+
empty: withCtx(() => [
|
|
34865
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
34866
|
+
_hoisted_3$k,
|
|
34867
|
+
createElementVNode("span", _hoisted_4$e, toDisplayString(__props.noDataText), 1)
|
|
34868
|
+
])
|
|
34869
|
+
]),
|
|
34870
|
+
default: withCtx(() => [
|
|
34871
|
+
renderSlot(_ctx.$slots, "default")
|
|
34872
|
+
]),
|
|
34873
|
+
_: 3
|
|
34874
|
+
}, 16, ["data"])
|
|
34875
|
+
]),
|
|
34876
|
+
_: 3
|
|
34877
|
+
}, 8, ["locale"]),
|
|
34878
|
+
__props.hasPagination ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
|
|
34862
34879
|
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, [
|
|
34863
34880
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442",
|
|
34864
34881
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",
|
|
34865
34882
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432"
|
|
34866
34883
|
])), 513), [
|
|
34867
|
-
[vShow,
|
|
34884
|
+
[vShow, selectedRows.value.length > 0]
|
|
34868
34885
|
]),
|
|
34869
34886
|
createVNode(_component_el_pagination, {
|
|
34870
34887
|
"page-size": unref(form2).pageSize,
|
|
@@ -34876,7 +34893,7 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34876
34893
|
total: unref(total)
|
|
34877
34894
|
}, {
|
|
34878
34895
|
default: withCtx(() => [
|
|
34879
|
-
__props.isTotalVisible && unref(layout).includes("slot") ? (openBlock(), createElementBlock("span",
|
|
34896
|
+
__props.isTotalVisible && unref(layout).includes("slot") ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(displayTotal()), 1)) : createCommentVNode("", true)
|
|
34880
34897
|
]),
|
|
34881
34898
|
_: 1
|
|
34882
34899
|
}, 8, ["page-size", "current-page", "page-sizes", "layout", "total"]),
|