@factoringplus/pl-components-pack-v3 0.5.13 → 0.5.14-pre-1
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 +61 -22
- package/dist/pl-components-pack-v3.umd.js +24 -24
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -2153,7 +2153,7 @@ var export_helper_default = (sfc, props) => {
|
|
|
2153
2153
|
var arrow_down_vue_vue_type_script_lang_default = {
|
|
2154
2154
|
name: "ArrowDown"
|
|
2155
2155
|
};
|
|
2156
|
-
var _hoisted_16$
|
|
2156
|
+
var _hoisted_16$2 = {
|
|
2157
2157
|
viewBox: "0 0 1024 1024",
|
|
2158
2158
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2159
2159
|
}, _hoisted_26$1 = /* @__PURE__ */ createElementVNode("path", {
|
|
@@ -2163,7 +2163,7 @@ var _hoisted_16$3 = {
|
|
|
2163
2163
|
_hoisted_26$1
|
|
2164
2164
|
];
|
|
2165
2165
|
function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2166
|
-
return openBlock(), createElementBlock("svg", _hoisted_16$
|
|
2166
|
+
return openBlock(), createElementBlock("svg", _hoisted_16$2, _hoisted_36);
|
|
2167
2167
|
}
|
|
2168
2168
|
var arrow_down_default = /* @__PURE__ */ export_helper_default(arrow_down_vue_vue_type_script_lang_default, [["render", _sfc_render6], ["__file", "arrow-down.vue"]]);
|
|
2169
2169
|
var arrow_left_vue_vue_type_script_lang_default = {
|
|
@@ -25387,7 +25387,7 @@ const _sfc_main$B = {
|
|
|
25387
25387
|
default: false
|
|
25388
25388
|
}
|
|
25389
25389
|
},
|
|
25390
|
-
emits: ["update:modelValue", "validate"],
|
|
25390
|
+
emits: ["update:modelValue", "validate", "blur"],
|
|
25391
25391
|
setup(__props, { emit: emit2 }) {
|
|
25392
25392
|
const props = __props;
|
|
25393
25393
|
const refInput = ref();
|
|
@@ -25519,7 +25519,7 @@ const _sfc_main$B = {
|
|
|
25519
25519
|
ref_key: "refInput",
|
|
25520
25520
|
ref: refInput,
|
|
25521
25521
|
rules: __props.rules,
|
|
25522
|
-
onSubmit: _cache[
|
|
25522
|
+
onSubmit: _cache[9] || (_cache[9] = withModifiers(() => {
|
|
25523
25523
|
}, ["prevent"]))
|
|
25524
25524
|
}, {
|
|
25525
25525
|
default: withCtx(() => [
|
|
@@ -25562,7 +25562,8 @@ const _sfc_main$B = {
|
|
|
25562
25562
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
25563
25563
|
type: unref(getTypeInput),
|
|
25564
25564
|
resize: "none",
|
|
25565
|
-
onInput: updateValue
|
|
25565
|
+
onInput: updateValue,
|
|
25566
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => emit2("blur"))
|
|
25566
25567
|
}, null, 8, ["disabled", "placeholder", "modelValue", "type"])), [
|
|
25567
25568
|
[_directive_maska, __props.mask]
|
|
25568
25569
|
]) : !unref(currency) ? (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
@@ -25573,26 +25574,27 @@ const _sfc_main$B = {
|
|
|
25573
25574
|
disabled: props.disabled,
|
|
25574
25575
|
placeholder: props.placeholder,
|
|
25575
25576
|
modelValue: unref(modelValue),
|
|
25576
|
-
"onUpdate:modelValue": _cache[
|
|
25577
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
25577
25578
|
type: unref(password) ? currentPassType.value : unref(getTypeInput),
|
|
25578
25579
|
resize: "none"
|
|
25579
25580
|
}, _ctx.$attrs, {
|
|
25580
25581
|
autosize: { minRows: 3, maxRows: 6 },
|
|
25581
25582
|
clearable: props.clearable,
|
|
25582
|
-
onInput: updateValue
|
|
25583
|
+
onInput: updateValue,
|
|
25584
|
+
onBlur: _cache[5] || (_cache[5] = ($event) => emit2("blur"))
|
|
25583
25585
|
}), createSlots({ _: 2 }, [
|
|
25584
25586
|
unref(password) ? {
|
|
25585
25587
|
name: "append",
|
|
25586
25588
|
fn: withCtx(() => [
|
|
25587
25589
|
currentPassType.value === "password" ? (openBlock(), createElementBlock("img", {
|
|
25588
25590
|
key: 0,
|
|
25589
|
-
onClick: _cache[
|
|
25591
|
+
onClick: _cache[2] || (_cache[2] = ($event) => changedPassType($event)),
|
|
25590
25592
|
class: "pass-svg",
|
|
25591
25593
|
src: _imports_2$2,
|
|
25592
25594
|
alt: ""
|
|
25593
25595
|
})) : (openBlock(), createElementBlock("img", {
|
|
25594
25596
|
key: 1,
|
|
25595
|
-
onClick: _cache[
|
|
25597
|
+
onClick: _cache[3] || (_cache[3] = ($event) => changedPassType($event)),
|
|
25596
25598
|
class: "pass-svg",
|
|
25597
25599
|
src: _imports_3$1,
|
|
25598
25600
|
alt: ""
|
|
@@ -25612,14 +25614,15 @@ const _sfc_main$B = {
|
|
|
25612
25614
|
ref_key: "inputRef",
|
|
25613
25615
|
ref: inputRef,
|
|
25614
25616
|
modelValue: unref(formattedValue),
|
|
25615
|
-
"onUpdate:modelValue": _cache[
|
|
25617
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null),
|
|
25618
|
+
onBlur: _cache[8] || (_cache[8] = ($event) => emit2("blur"))
|
|
25616
25619
|
}), createSlots({ _: 2 }, [
|
|
25617
25620
|
unref(currency) ? {
|
|
25618
25621
|
name: "append",
|
|
25619
25622
|
fn: withCtx(() => [
|
|
25620
25623
|
createElementVNode("span", {
|
|
25621
25624
|
class: "pl-currency__rub-icon",
|
|
25622
|
-
onClick: _cache[
|
|
25625
|
+
onClick: _cache[6] || (_cache[6] = ($event) => throwInput($event))
|
|
25623
25626
|
}, "\u20BD")
|
|
25624
25627
|
])
|
|
25625
25628
|
} : void 0
|
|
@@ -25933,7 +25936,7 @@ var objectSupport$1 = { exports: {} };
|
|
|
25933
25936
|
})(objectSupport$1);
|
|
25934
25937
|
var objectSupport = objectSupport$1.exports;
|
|
25935
25938
|
var plDatePickerRange_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
25936
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
25939
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-7f74f735"), n2 = n2(), popScopeId(), n2);
|
|
25937
25940
|
const _hoisted_1$v = ["id"];
|
|
25938
25941
|
const _hoisted_2$r = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("img", {
|
|
25939
25942
|
class: "date-picker__img",
|
|
@@ -25951,9 +25954,8 @@ const _hoisted_10$3 = { class: "date-switcher date-switcher__month" };
|
|
|
25951
25954
|
const _hoisted_11$3 = { class: "date-switcher__month-name" };
|
|
25952
25955
|
const _hoisted_12$3 = { class: "date-switcher date-switcher__year" };
|
|
25953
25956
|
const _hoisted_13$3 = { class: "date-switcher__year-name" };
|
|
25954
|
-
const _hoisted_14$3 =
|
|
25955
|
-
const _hoisted_15$2 =
|
|
25956
|
-
const _hoisted_16$2 = { class: "field" };
|
|
25957
|
+
const _hoisted_14$3 = ["onClick", "onMousemove"];
|
|
25958
|
+
const _hoisted_15$2 = { class: "field" };
|
|
25957
25959
|
const _sfc_main$w = {
|
|
25958
25960
|
__name: "pl-date-picker-range",
|
|
25959
25961
|
props: {
|
|
@@ -26085,6 +26087,32 @@ const _sfc_main$w = {
|
|
|
26085
26087
|
setupUpdate();
|
|
26086
26088
|
}
|
|
26087
26089
|
};
|
|
26090
|
+
const checkDateInput = (start2) => {
|
|
26091
|
+
let tempDate;
|
|
26092
|
+
if (start2) {
|
|
26093
|
+
if (!validateDateValueString(rangeStartDateValue.value)) {
|
|
26094
|
+
rangeStartDateValue.value = displayData(startDate.value);
|
|
26095
|
+
}
|
|
26096
|
+
} else {
|
|
26097
|
+
if (!validateDateValueString(rangeEndDateValue.value)) {
|
|
26098
|
+
rangeEndDateValue.value = displayData(endDate.value);
|
|
26099
|
+
}
|
|
26100
|
+
}
|
|
26101
|
+
if (dayjs(rangeStartDateValue.value.split(".").reverse().join("-")).isAfter(dayjs(rangeEndDateValue.value.split(".").reverse().join("-")))) {
|
|
26102
|
+
tempDate = rangeStartDateValue.value;
|
|
26103
|
+
rangeStartDateValue.value = rangeEndDateValue.value;
|
|
26104
|
+
rangeEndDateValue.value = tempDate;
|
|
26105
|
+
}
|
|
26106
|
+
startDate.value = dayjs(rangeStartDateValue.value.split(".").reverse().join("-"));
|
|
26107
|
+
endDate.value = dayjs(rangeEndDateValue.value.split(".").reverse().join("-"));
|
|
26108
|
+
range3 = [startDate.value, endDate.value];
|
|
26109
|
+
setupUpdate();
|
|
26110
|
+
};
|
|
26111
|
+
const checkRangeInput = () => {
|
|
26112
|
+
if (!validateDateValueString(dateValue.value)) {
|
|
26113
|
+
dateValue.value = "";
|
|
26114
|
+
}
|
|
26115
|
+
};
|
|
26088
26116
|
const setupUpdate = () => {
|
|
26089
26117
|
start = {
|
|
26090
26118
|
day: startDate.value.date(),
|
|
@@ -26184,6 +26212,10 @@ const _sfc_main$w = {
|
|
|
26184
26212
|
closeDatePicker();
|
|
26185
26213
|
});
|
|
26186
26214
|
});
|
|
26215
|
+
const daysRef = ref();
|
|
26216
|
+
onClickOutside(daysRef, () => {
|
|
26217
|
+
setupUpdate();
|
|
26218
|
+
});
|
|
26187
26219
|
const confirmDate = () => {
|
|
26188
26220
|
currentDate.value = startDate.value;
|
|
26189
26221
|
if (range3.length === 0 || range3.length === 1) {
|
|
@@ -26350,6 +26382,7 @@ const _sfc_main$w = {
|
|
|
26350
26382
|
label: __props.label,
|
|
26351
26383
|
placeholder: __props.placeholder,
|
|
26352
26384
|
onInput: updateDate,
|
|
26385
|
+
onBlur: checkRangeInput,
|
|
26353
26386
|
datePicker: ""
|
|
26354
26387
|
}, null, 8, ["mask", "modelValue", "label", "placeholder"]),
|
|
26355
26388
|
_hoisted_2$r
|
|
@@ -26374,6 +26407,7 @@ const _sfc_main$w = {
|
|
|
26374
26407
|
id: "date-mask",
|
|
26375
26408
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => rangeStartDateValue.value = $event),
|
|
26376
26409
|
onInput: updateDate,
|
|
26410
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => checkDateInput(true)),
|
|
26377
26411
|
type: "text",
|
|
26378
26412
|
placeholder: "\u0414\u0414.\u041C\u041C.\u0413\u0413\u0413\u0413",
|
|
26379
26413
|
class: "pl-date-picker__input"
|
|
@@ -26386,8 +26420,9 @@ const _sfc_main$w = {
|
|
|
26386
26420
|
_hoisted_8$4,
|
|
26387
26421
|
withDirectives(createElementVNode("input", {
|
|
26388
26422
|
id: "date-mask",
|
|
26389
|
-
"onUpdate:modelValue": _cache[
|
|
26390
|
-
onInput: _cache[
|
|
26423
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => rangeEndDateValue.value = $event),
|
|
26424
|
+
onInput: _cache[4] || (_cache[4] = ($event) => updateDate($event, true)),
|
|
26425
|
+
onBlur: _cache[5] || (_cache[5] = ($event) => checkDateInput(false)),
|
|
26391
26426
|
type: "text",
|
|
26392
26427
|
placeholder: "\u0414\u0414.\u041C\u041C.\u0413\u0413\u0413\u0413",
|
|
26393
26428
|
class: "pl-date-picker__input"
|
|
@@ -26422,7 +26457,11 @@ const _sfc_main$w = {
|
|
|
26422
26457
|
])
|
|
26423
26458
|
])
|
|
26424
26459
|
]),
|
|
26425
|
-
createElementVNode("div",
|
|
26460
|
+
createElementVNode("div", {
|
|
26461
|
+
class: "pl-date-picker__days",
|
|
26462
|
+
ref_key: "daysRef",
|
|
26463
|
+
ref: daysRef
|
|
26464
|
+
}, [
|
|
26426
26465
|
(openBlock(), createElementBlock(Fragment, null, renderList(WEEK_DAYS2, (item, index) => {
|
|
26427
26466
|
return createElementVNode("div", {
|
|
26428
26467
|
class: "pl-date-picker__week-day",
|
|
@@ -26450,10 +26489,10 @@ const _sfc_main$w = {
|
|
|
26450
26489
|
onClick: ($event) => item.type !== "previous" && item.type !== "next" ? toggleSelection(item) : "",
|
|
26451
26490
|
onMousemove: ($event) => item.type !== "previous" && item.type !== "next" ? updateSelection(item, false) : ""
|
|
26452
26491
|
}, [
|
|
26453
|
-
createElementVNode("div",
|
|
26454
|
-
], 42,
|
|
26492
|
+
createElementVNode("div", _hoisted_15$2, toDisplayString(item.type !== "previous" && item.type !== "next" ? item.day : ""), 1)
|
|
26493
|
+
], 42, _hoisted_14$3);
|
|
26455
26494
|
}), 128))
|
|
26456
|
-
]),
|
|
26495
|
+
], 512),
|
|
26457
26496
|
createElementVNode("div", { class: "pl-date-picker__buttons" }, [
|
|
26458
26497
|
createElementVNode("button", {
|
|
26459
26498
|
class: "pl-date-picker__btn pl-date-picker__btn-cancel",
|
|
@@ -26470,7 +26509,7 @@ const _sfc_main$w = {
|
|
|
26470
26509
|
};
|
|
26471
26510
|
}
|
|
26472
26511
|
};
|
|
26473
|
-
var PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-
|
|
26512
|
+
var PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-7f74f735"]]);
|
|
26474
26513
|
var datePicker = "";
|
|
26475
26514
|
var scrollbar = "";
|
|
26476
26515
|
var popper = "";
|