@factoringplus/pl-components-pack-v3 0.4.57-pre-2 → 0.4.58
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 +80 -92
- package/dist/pl-components-pack-v3.umd.js +14 -14
- package/dist/style.css +2 -2
- package/package.json +1 -1
|
@@ -17554,7 +17554,7 @@ const _hoisted_2$y = ["aria-current", "tabindex"];
|
|
|
17554
17554
|
const _hoisted_3$q = ["tabindex"];
|
|
17555
17555
|
const _hoisted_4$i = ["aria-current", "tabindex"];
|
|
17556
17556
|
const _hoisted_5$d = ["tabindex"];
|
|
17557
|
-
const _hoisted_6$
|
|
17557
|
+
const _hoisted_6$8 = ["aria-current", "tabindex"];
|
|
17558
17558
|
const __default__$j = defineComponent({
|
|
17559
17559
|
name: "ElPaginationPager"
|
|
17560
17560
|
});
|
|
@@ -17744,7 +17744,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
17744
17744
|
], "number"]),
|
|
17745
17745
|
"aria-current": _ctx.currentPage === _ctx.pageCount,
|
|
17746
17746
|
tabindex: unref(tabindex)
|
|
17747
|
-
}, toDisplayString(_ctx.pageCount), 11, _hoisted_6$
|
|
17747
|
+
}, toDisplayString(_ctx.pageCount), 11, _hoisted_6$8)) : createCommentVNode("v-if", true)
|
|
17748
17748
|
], 42, _hoisted_1$F);
|
|
17749
17749
|
};
|
|
17750
17750
|
}
|
|
@@ -25314,10 +25314,6 @@ const _sfc_main$z = {
|
|
|
25314
25314
|
type: Boolean,
|
|
25315
25315
|
default: false
|
|
25316
25316
|
},
|
|
25317
|
-
datePicker: {
|
|
25318
|
-
type: Boolean,
|
|
25319
|
-
default: false
|
|
25320
|
-
},
|
|
25321
25317
|
maxLength: {
|
|
25322
25318
|
type: Number,
|
|
25323
25319
|
default: 210
|
|
@@ -25377,7 +25373,7 @@ const _sfc_main$z = {
|
|
|
25377
25373
|
default: () => ({ min: 0 })
|
|
25378
25374
|
}
|
|
25379
25375
|
},
|
|
25380
|
-
emits: ["update:modelValue", "validate"],
|
|
25376
|
+
emits: ["update:modelValue", "validate", "isValid"],
|
|
25381
25377
|
setup(__props, { emit: emit2 }) {
|
|
25382
25378
|
const props = __props;
|
|
25383
25379
|
const refInput = ref();
|
|
@@ -25494,7 +25490,6 @@ const _sfc_main$z = {
|
|
|
25494
25490
|
const _component_el_input = ElInput;
|
|
25495
25491
|
const _component_el_form_item = ElFormItem;
|
|
25496
25492
|
const _component_el_form = ElForm;
|
|
25497
|
-
const _directive_maska = resolveDirective("maska");
|
|
25498
25493
|
return openBlock(), createElementBlock("div", null, [
|
|
25499
25494
|
createVNode(_component_el_form, {
|
|
25500
25495
|
onValidate: validateInp,
|
|
@@ -25536,26 +25531,15 @@ const _sfc_main$z = {
|
|
|
25536
25531
|
prop: __props.prop
|
|
25537
25532
|
}, {
|
|
25538
25533
|
default: withCtx(() => [
|
|
25539
|
-
|
|
25534
|
+
!unref(currency) ? (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
25540
25535
|
key: 0,
|
|
25541
|
-
disabled: props.disabled,
|
|
25542
|
-
placeholder: props.placeholder,
|
|
25543
|
-
modelValue: unref(modelValue),
|
|
25544
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
25545
|
-
type: unref(getTypeInput),
|
|
25546
|
-
resize: "none",
|
|
25547
|
-
onInput: updateValue
|
|
25548
|
-
}, null, 8, ["disabled", "placeholder", "modelValue", "type"])), [
|
|
25549
|
-
[_directive_maska, "##.##.####"]
|
|
25550
|
-
]) : !unref(currency) ? (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
25551
|
-
key: 1,
|
|
25552
25536
|
class: { padding: props.prefix },
|
|
25553
25537
|
minlength: __props.minLength,
|
|
25554
25538
|
maxlength: __props.maxLength,
|
|
25555
25539
|
disabled: props.disabled,
|
|
25556
25540
|
placeholder: props.placeholder,
|
|
25557
25541
|
modelValue: unref(modelValue),
|
|
25558
|
-
"onUpdate:modelValue": _cache[
|
|
25542
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
25559
25543
|
type: unref(getTypeInput),
|
|
25560
25544
|
resize: "none"
|
|
25561
25545
|
}, _ctx.$attrs, {
|
|
@@ -25563,7 +25547,7 @@ const _sfc_main$z = {
|
|
|
25563
25547
|
clearable: props.clearable,
|
|
25564
25548
|
onInput: updateValue
|
|
25565
25549
|
}), null, 16, ["class", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
25566
|
-
key:
|
|
25550
|
+
key: 1,
|
|
25567
25551
|
onKeydown: keydown,
|
|
25568
25552
|
class: { padding: props.prefix },
|
|
25569
25553
|
minlength: __props.minLength,
|
|
@@ -25575,14 +25559,14 @@ const _sfc_main$z = {
|
|
|
25575
25559
|
ref_key: "inputRef",
|
|
25576
25560
|
ref: inputRef,
|
|
25577
25561
|
modelValue: unref(formattedValue),
|
|
25578
|
-
"onUpdate:modelValue": _cache[
|
|
25562
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null)
|
|
25579
25563
|
}), createSlots({ _: 2 }, [
|
|
25580
25564
|
unref(currency) ? {
|
|
25581
25565
|
name: "append",
|
|
25582
25566
|
fn: withCtx(() => [
|
|
25583
25567
|
createElementVNode("span", {
|
|
25584
25568
|
class: "pl-currency__rub-icon",
|
|
25585
|
-
onClick: _cache[
|
|
25569
|
+
onClick: _cache[1] || (_cache[1] = ($event) => throuInput($event))
|
|
25586
25570
|
}, "\u20BD")
|
|
25587
25571
|
])
|
|
25588
25572
|
} : void 0
|
|
@@ -35299,7 +35283,7 @@ const _hoisted_4$f = {
|
|
|
35299
35283
|
class: "dialog-footer"
|
|
35300
35284
|
};
|
|
35301
35285
|
const _hoisted_5$a = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
|
|
35302
|
-
const _hoisted_6$
|
|
35286
|
+
const _hoisted_6$7 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
|
|
35303
35287
|
const _hoisted_7$4 = {
|
|
35304
35288
|
key: 1,
|
|
35305
35289
|
class: "dialog-footer"
|
|
@@ -35491,7 +35475,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign(__default__$6, {
|
|
|
35491
35475
|
}, 8, ["disabled"]),
|
|
35492
35476
|
createVNode(_component_el_button, { onClick: hide }, {
|
|
35493
35477
|
default: withCtx(() => [
|
|
35494
|
-
_hoisted_6$
|
|
35478
|
+
_hoisted_6$7
|
|
35495
35479
|
]),
|
|
35496
35480
|
_: 1
|
|
35497
35481
|
})
|
|
@@ -35614,7 +35598,7 @@ const _hoisted_5$9 = {
|
|
|
35614
35598
|
key: 0,
|
|
35615
35599
|
class: "d-flex pl-table-footer position-relative align-items-center justify-content-end"
|
|
35616
35600
|
};
|
|
35617
|
-
const _hoisted_6$
|
|
35601
|
+
const _hoisted_6$6 = {
|
|
35618
35602
|
key: 0,
|
|
35619
35603
|
class: "totals"
|
|
35620
35604
|
};
|
|
@@ -35754,7 +35738,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign(__default__$5, {
|
|
|
35754
35738
|
"hide-on-single-page": true
|
|
35755
35739
|
}, {
|
|
35756
35740
|
default: withCtx(() => [
|
|
35757
|
-
__props.isTotalVisible && unref(layout).includes("slot") ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
35741
|
+
__props.isTotalVisible && unref(layout).includes("slot") ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(displayTotal()), 1)) : createCommentVNode("", true)
|
|
35758
35742
|
]),
|
|
35759
35743
|
_: 1
|
|
35760
35744
|
}, 8, ["page-size", "current-page", "page-sizes", "layout", "total"]),
|
|
@@ -38136,12 +38120,37 @@ var calendar = [
|
|
|
38136
38120
|
}
|
|
38137
38121
|
];
|
|
38138
38122
|
const WEEK_DAYS = ["\u041F\u043D", "\u0412\u0442", "\u0421\u0440", "\u0427\u0442", "\u041F\u0442", "\u0421\u0431", "\u0412\u0441"];
|
|
38123
|
+
const DISPLAY_MONTHS = [
|
|
38124
|
+
"\u042F\u043D\u0432\u0430\u0440\u044F",
|
|
38125
|
+
"\u0424\u0435\u0432\u0440\u0430\u043B\u044F",
|
|
38126
|
+
"\u041C\u0430\u0440\u0442\u0430",
|
|
38127
|
+
"\u0410\u043F\u0440\u0435\u043B\u044F",
|
|
38128
|
+
"\u041C\u0430\u044F",
|
|
38129
|
+
"\u0418\u044E\u043D\u044F",
|
|
38130
|
+
"\u0418\u044E\u043B\u044F",
|
|
38131
|
+
"\u0410\u0432\u0433\u0443\u0441\u0442\u0430",
|
|
38132
|
+
"\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044F",
|
|
38133
|
+
"\u041E\u043A\u0442\u044F\u0431\u0440\u044F",
|
|
38134
|
+
"\u041D\u043E\u044F\u0431\u0440\u044F",
|
|
38135
|
+
"\u0414\u0435\u043A\u0430\u0431\u0440\u044F"
|
|
38136
|
+
];
|
|
38139
38137
|
var plDatePickerPlus_vue_vue_type_style_index_0_lang = "";
|
|
38140
38138
|
const _hoisted_1$d = { class: "date-picker-plus" };
|
|
38141
|
-
const _hoisted_2$c = {
|
|
38142
|
-
|
|
38143
|
-
|
|
38144
|
-
|
|
38139
|
+
const _hoisted_2$c = {
|
|
38140
|
+
key: 0,
|
|
38141
|
+
class: "date-picker-plus__title"
|
|
38142
|
+
};
|
|
38143
|
+
const _hoisted_3$b = {
|
|
38144
|
+
key: 1,
|
|
38145
|
+
class: "date-picker-plus__placeholder"
|
|
38146
|
+
};
|
|
38147
|
+
const _hoisted_4$7 = /* @__PURE__ */ createElementVNode("img", {
|
|
38148
|
+
class: "date-picker-plus__img",
|
|
38149
|
+
src: _imports_0$4,
|
|
38150
|
+
alt: "date-picker icon"
|
|
38151
|
+
}, null, -1);
|
|
38152
|
+
const _hoisted_5$6 = { class: "date-picker-plus__days" };
|
|
38153
|
+
const _hoisted_6$5 = ["onClick"];
|
|
38145
38154
|
const _sfc_main$d = {
|
|
38146
38155
|
__name: "pl-date-picker-plus",
|
|
38147
38156
|
props: {
|
|
@@ -38153,10 +38162,6 @@ const _sfc_main$d = {
|
|
|
38153
38162
|
type: String,
|
|
38154
38163
|
default: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0430\u0442\u0443"
|
|
38155
38164
|
},
|
|
38156
|
-
label: {
|
|
38157
|
-
type: String,
|
|
38158
|
-
default: ""
|
|
38159
|
-
},
|
|
38160
38165
|
weekendsDisabled: {
|
|
38161
38166
|
type: Boolean,
|
|
38162
38167
|
default: true
|
|
@@ -38171,46 +38176,42 @@ const _sfc_main$d = {
|
|
|
38171
38176
|
const selectedDate = ref(dayjs());
|
|
38172
38177
|
const confirmedDate = ref(dayjs());
|
|
38173
38178
|
const isOpen = ref(false);
|
|
38174
|
-
const datePickerRef = ref(null);
|
|
38175
|
-
const dateValue = ref(dayjs().format("DD.MM.YYYY"));
|
|
38176
38179
|
const weekendsDate = calendar;
|
|
38180
|
+
const displayDate = (value) => {
|
|
38181
|
+
const dayjsDate = dayjs.isDayjs(value) ? value : dayjs(value);
|
|
38182
|
+
return `${dayjsDate.date()} ${DISPLAY_MONTHS[dayjsDate.month()]}, ${dayjsDate.year()}`;
|
|
38183
|
+
};
|
|
38177
38184
|
const checkCurrentMonthDays = (dayItem) => {
|
|
38178
38185
|
return selectedDate.value.date() === dayItem.day && selectedDate.value.month() === dayItem.month && selectedDate.value.year() === dayItem.year && dayItem.type === "current";
|
|
38179
38186
|
};
|
|
38180
|
-
|
|
38181
|
-
|
|
38187
|
+
const closeDatePicker = () => {
|
|
38188
|
+
currentDate.value = confirmedDate.value;
|
|
38189
|
+
selectedDate.value = confirmedDate.value;
|
|
38190
|
+
isOpen.value = false;
|
|
38191
|
+
};
|
|
38192
|
+
const toggleDatePicker = () => {
|
|
38193
|
+
currentDate.value = confirmedDate.value;
|
|
38194
|
+
selectedDate.value = confirmedDate.value;
|
|
38195
|
+
isOpen.value = !isOpen.value;
|
|
38196
|
+
};
|
|
38197
|
+
const target = ref(null);
|
|
38198
|
+
onClickOutside(target, () => {
|
|
38199
|
+
setTimeout(() => {
|
|
38200
|
+
closeDatePicker();
|
|
38201
|
+
});
|
|
38202
|
+
});
|
|
38182
38203
|
const confirmDate = () => {
|
|
38183
38204
|
confirmedDate.value = selectedDate.value;
|
|
38184
|
-
|
|
38185
|
-
emit2("update:modelValue",
|
|
38205
|
+
currentDate.value = selectedDate.value;
|
|
38206
|
+
emit2("update:modelValue", confirmedDate.value.toDate());
|
|
38207
|
+
isOpen.value = false;
|
|
38186
38208
|
};
|
|
38187
38209
|
const selectDate = (item) => {
|
|
38188
|
-
|
|
38189
|
-
|
|
38190
|
-
|
|
38191
|
-
const validate = (date4, format2) => {
|
|
38192
|
-
return dayjs(date4, format2).format(format2) === date4;
|
|
38193
|
-
};
|
|
38194
|
-
const savedDate = ref();
|
|
38195
|
-
const updateDate = (event) => {
|
|
38196
|
-
savedDate.value = dayjs(event.target.value.split(".").reverse().join("-"));
|
|
38197
|
-
if (validate(dateValue.value, "DD.MM.YYYY")) {
|
|
38198
|
-
if (savedDate.value) {
|
|
38199
|
-
currentDate.value = savedDate.value;
|
|
38200
|
-
selectedDate.value = savedDate.value;
|
|
38201
|
-
emit2("update:modelValue", selectedDate.value.format("DD.MM.YYYY"));
|
|
38202
|
-
} else {
|
|
38203
|
-
savedDate.value = confirmedDate.value;
|
|
38204
|
-
}
|
|
38205
|
-
} else {
|
|
38206
|
-
dateValue.value = displayData(selectedDate.value);
|
|
38210
|
+
if (item.type === "current") {
|
|
38211
|
+
selectedDate.value = dayjs().set("date", item.day).set("month", item.month).set("year", item.year);
|
|
38212
|
+
confirmDate();
|
|
38207
38213
|
}
|
|
38208
38214
|
};
|
|
38209
|
-
onClickOutside(datePickerRef, () => {
|
|
38210
|
-
setTimeout(() => {
|
|
38211
|
-
isOpen.value = false;
|
|
38212
|
-
});
|
|
38213
|
-
});
|
|
38214
38215
|
const getArrayOfDays = () => {
|
|
38215
38216
|
const prevMonthDays = [];
|
|
38216
38217
|
const currMonthDays = [];
|
|
@@ -38250,35 +38251,24 @@ const _sfc_main$d = {
|
|
|
38250
38251
|
});
|
|
38251
38252
|
return (_ctx, _cache) => {
|
|
38252
38253
|
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
38253
|
-
createElementVNode("div",
|
|
38254
|
-
|
|
38255
|
-
|
|
38256
|
-
|
|
38257
|
-
|
|
38258
|
-
|
|
38259
|
-
placeholder: __props.placeholder,
|
|
38260
|
-
onInput: updateDate,
|
|
38261
|
-
datePicker: ""
|
|
38262
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
38263
|
-
createElementVNode("img", {
|
|
38264
|
-
class: "date-picker-plus__img",
|
|
38265
|
-
src: _imports_0$4,
|
|
38266
|
-
alt: "date-picker icon",
|
|
38267
|
-
onClick: _cache[1] || (_cache[1] = ($event) => isOpen.value = !isOpen.value)
|
|
38268
|
-
})
|
|
38269
|
-
]),
|
|
38254
|
+
createElementVNode("div", {
|
|
38255
|
+
class: "date-picker-plus__wrapper",
|
|
38256
|
+
onClick: toggleDatePicker
|
|
38257
|
+
}),
|
|
38258
|
+
__props.modelValue ? (openBlock(), createElementBlock("span", _hoisted_2$c, toDisplayString(displayDate(__props.modelValue)), 1)) : (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(__props.placeholder), 1)),
|
|
38259
|
+
_hoisted_4$7,
|
|
38270
38260
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
38271
|
-
key:
|
|
38261
|
+
key: 2,
|
|
38272
38262
|
id: "date-picker-popup",
|
|
38273
38263
|
class: "date-picker-plus__popup",
|
|
38274
|
-
ref_key: "
|
|
38275
|
-
ref:
|
|
38264
|
+
ref_key: "target",
|
|
38265
|
+
ref: target
|
|
38276
38266
|
}, [
|
|
38277
38267
|
createVNode(_sfc_main$e, {
|
|
38278
38268
|
modelValue: currentDate.value,
|
|
38279
|
-
"onUpdate:modelValue": _cache[
|
|
38269
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currentDate.value = $event)
|
|
38280
38270
|
}, null, 8, ["modelValue"]),
|
|
38281
|
-
createElementVNode("div",
|
|
38271
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
38282
38272
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(WEEK_DAYS), (item, index) => {
|
|
38283
38273
|
return openBlock(), createElementBlock("div", {
|
|
38284
38274
|
class: "date-picker-plus__week-day",
|
|
@@ -38295,10 +38285,8 @@ const _sfc_main$d = {
|
|
|
38295
38285
|
{ "date-picker-plus__day-item_active-item": checkCurrentMonthDays(item) }
|
|
38296
38286
|
]),
|
|
38297
38287
|
key: `dd${index}`,
|
|
38298
|
-
onClick: ($event) =>
|
|
38299
|
-
},
|
|
38300
|
-
createElementVNode("div", _hoisted_5$6, toDisplayString(item.type !== "previous" && item.type !== "next" ? item.day : ""), 1)
|
|
38301
|
-
], 10, _hoisted_4$7);
|
|
38288
|
+
onClick: ($event) => item.weekend ? {} : selectDate(item)
|
|
38289
|
+
}, toDisplayString(item.day), 11, _hoisted_6$5);
|
|
38302
38290
|
}), 128))
|
|
38303
38291
|
])
|
|
38304
38292
|
], 512)) : createCommentVNode("", true)
|