@factoringplus/pl-components-pack-v3 0.4.42-pre-8 → 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 +46 -47
- 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) => {
|
|
@@ -24644,7 +24651,8 @@ const _sfc_main$y = {
|
|
|
24644
24651
|
onValidate: validateInp,
|
|
24645
24652
|
"label-position": "top",
|
|
24646
24653
|
model: ruleForm,
|
|
24647
|
-
|
|
24654
|
+
ref_key: "form",
|
|
24655
|
+
ref: form2,
|
|
24648
24656
|
rules: __props.rules
|
|
24649
24657
|
}, {
|
|
24650
24658
|
default: withCtx(() => [
|
|
@@ -24697,7 +24705,6 @@ const _sfc_main$y = {
|
|
|
24697
24705
|
}, null, 8, ["class", "formatter", "parser", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
24698
24706
|
key: 1,
|
|
24699
24707
|
onKeydown: keydown,
|
|
24700
|
-
onClick: _cache[2] || (_cache[2] = ($event) => throuInput($event)),
|
|
24701
24708
|
class: { padding: props.prefix },
|
|
24702
24709
|
minlength: __props.minLength,
|
|
24703
24710
|
maxlength: __props.maxLength,
|
|
@@ -24708,7 +24715,7 @@ const _sfc_main$y = {
|
|
|
24708
24715
|
ref_key: "inputRef",
|
|
24709
24716
|
ref: inputRef,
|
|
24710
24717
|
modelValue: unref(formattedValue),
|
|
24711
|
-
"onUpdate:modelValue": _cache[
|
|
24718
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null)
|
|
24712
24719
|
}), createSlots({ _: 2 }, [
|
|
24713
24720
|
unref(currency) ? {
|
|
24714
24721
|
name: "append",
|
|
@@ -34433,7 +34440,7 @@ const _hoisted_4$f = {
|
|
|
34433
34440
|
};
|
|
34434
34441
|
const _hoisted_5$a = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
|
|
34435
34442
|
const _hoisted_6$7 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
|
|
34436
|
-
const _hoisted_7$
|
|
34443
|
+
const _hoisted_7$4 = {
|
|
34437
34444
|
key: 1,
|
|
34438
34445
|
class: "dialog-footer"
|
|
34439
34446
|
};
|
|
@@ -34628,7 +34635,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign(__default__$6, {
|
|
|
34628
34635
|
]),
|
|
34629
34636
|
_: 1
|
|
34630
34637
|
})
|
|
34631
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
34638
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
34632
34639
|
createVNode(_component_el_button, {
|
|
34633
34640
|
type: "primary",
|
|
34634
34641
|
onClick: _cache[2] || (_cache[2] = ($event) => onAppendClick(form2.value))
|
|
@@ -34743,12 +34750,11 @@ const _hoisted_3$k = /* @__PURE__ */ createElementVNode("img", {
|
|
|
34743
34750
|
alt: "no data image"
|
|
34744
34751
|
}, null, -1);
|
|
34745
34752
|
const _hoisted_4$e = { class: "no-data__text" };
|
|
34746
|
-
const _hoisted_5$9 = {
|
|
34747
|
-
const _hoisted_6$6 = {
|
|
34753
|
+
const _hoisted_5$9 = {
|
|
34748
34754
|
key: 0,
|
|
34749
|
-
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"
|
|
34750
34756
|
};
|
|
34751
|
-
const
|
|
34757
|
+
const _hoisted_6$6 = {
|
|
34752
34758
|
key: 0,
|
|
34753
34759
|
class: "totals"
|
|
34754
34760
|
};
|
|
@@ -34787,9 +34793,9 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34787
34793
|
uniqKeyOfSelectedRow: {
|
|
34788
34794
|
type: String
|
|
34789
34795
|
},
|
|
34790
|
-
|
|
34791
|
-
type:
|
|
34792
|
-
default:
|
|
34796
|
+
layout: {
|
|
34797
|
+
type: String,
|
|
34798
|
+
default: "prev, pager, next, sizes"
|
|
34793
34799
|
},
|
|
34794
34800
|
toggleRowSelection: {
|
|
34795
34801
|
trype: Array,
|
|
@@ -34807,11 +34813,9 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34807
34813
|
],
|
|
34808
34814
|
setup(__props, { emit: emit2 }) {
|
|
34809
34815
|
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");
|
|
34816
|
+
const { form: form2, modelValue, total, layout } = toRefs(props);
|
|
34812
34817
|
const selectedRows = ref([]);
|
|
34813
34818
|
const selectRow = (onSelectedRows) => {
|
|
34814
|
-
console.log(1);
|
|
34815
34819
|
selectedRows.value = onSelectedRows;
|
|
34816
34820
|
emit2("selected-rows", selectedRows);
|
|
34817
34821
|
};
|
|
@@ -34847,42 +34851,37 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34847
34851
|
return (_ctx, _cache) => {
|
|
34848
34852
|
const _component_el_table = ElTable;
|
|
34849
34853
|
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, [
|
|
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, [
|
|
34880
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, [
|
|
34881
34880
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442",
|
|
34882
34881
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",
|
|
34883
34882
|
"\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432"
|
|
34884
34883
|
])), 513), [
|
|
34885
|
-
[vShow,
|
|
34884
|
+
[vShow, selectedRows.value.length > 0]
|
|
34886
34885
|
]),
|
|
34887
34886
|
createVNode(_component_el_pagination, {
|
|
34888
34887
|
"page-size": unref(form2).pageSize,
|
|
@@ -34894,7 +34893,7 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
34894
34893
|
total: unref(total)
|
|
34895
34894
|
}, {
|
|
34896
34895
|
default: withCtx(() => [
|
|
34897
|
-
__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)
|
|
34898
34897
|
]),
|
|
34899
34898
|
_: 1
|
|
34900
34899
|
}, 8, ["page-size", "current-page", "page-sizes", "layout", "total"]),
|