@factoringplus/pl-components-pack-v3 0.4.41-pre-3 → 0.4.41-pre-4

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.
@@ -1809,7 +1809,7 @@ var export_helper_default = (sfc, props) => {
1809
1809
  };
1810
1810
  var _sfc_main6 = {
1811
1811
  name: "ArrowDown"
1812
- }, _hoisted_16$3 = {
1812
+ }, _hoisted_16$2 = {
1813
1813
  viewBox: "0 0 1024 1024",
1814
1814
  xmlns: "http://www.w3.org/2000/svg"
1815
1815
  }, _hoisted_26$1 = /* @__PURE__ */ createElementVNode("path", {
@@ -1819,7 +1819,7 @@ var _sfc_main6 = {
1819
1819
  _hoisted_26$1
1820
1820
  ];
1821
1821
  function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
1822
- return openBlock(), createElementBlock("svg", _hoisted_16$3, _hoisted_36);
1822
+ return openBlock(), createElementBlock("svg", _hoisted_16$2, _hoisted_36);
1823
1823
  }
1824
1824
  var arrow_down_default = /* @__PURE__ */ export_helper_default(_sfc_main6, [["render", _sfc_render6], ["__file", "arrow-down.vue"]]);
1825
1825
  var _sfc_main8 = {
@@ -25059,42 +25059,36 @@ var isBetween$2 = { exports: {} };
25059
25059
  var isBetween$1 = isBetween$2.exports;
25060
25060
  var plDatePickerRange_vue_vue_type_style_index_0_lang = "";
25061
25061
  const _hoisted_1$s = { class: "d-flex" };
25062
- const _hoisted_2$o = /* @__PURE__ */ createElementVNode("div", { class: "nav-item" }, "\u0417\u0430\u0434\u0430\u0442\u044C \u043F\u0435\u0440\u0438\u043E\u0434", -1);
25063
- const _hoisted_3$l = /* @__PURE__ */ createElementVNode("div", { class: "date-switcher__arrow date-switcher__arrow-right" }, null, -1);
25064
- const _hoisted_4$f = [
25065
- _hoisted_2$o,
25066
- _hoisted_3$l
25067
- ];
25068
- const _hoisted_5$b = { class: "date-switcher__container flex-column" };
25069
- const _hoisted_6$8 = { class: "d-flex pb-4 justify-content-between" };
25070
- const _hoisted_7$6 = { class: "date-switcher justify-content-center flex-column pe-3" };
25071
- const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "\u041D\u0430\u0447\u0430\u043B\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1);
25072
- const _hoisted_9$4 = { class: "date-switcher justify-content-center flex-column ps-3" };
25073
- const _hoisted_10$3 = /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "\u041A\u043E\u043D\u0435\u0446 \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1);
25074
- const _hoisted_11$3 = { class: "d-flex pt-2 justify-content-between" };
25075
- const _hoisted_12$3 = { class: "date-switcher date-switcher__month" };
25076
- const _hoisted_13$3 = { class: "date-switcher__month-name" };
25077
- const _hoisted_14$3 = { class: "date-switcher date-switcher__year" };
25078
- const _hoisted_15$2 = { class: "date-switcher__year-name" };
25079
- const _hoisted_16$2 = { class: "pl-date-picker__days" };
25080
- const _hoisted_17$2 = ["onClick", "onMousemove"];
25062
+ const _hoisted_2$o = { class: "date-switcher__container flex-column" };
25063
+ const _hoisted_3$l = { class: "d-flex pb-4 justify-content-between" };
25064
+ const _hoisted_4$f = { class: "date-switcher justify-content-center flex-column pe-3" };
25065
+ const _hoisted_5$b = /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "\u041D\u0430\u0447\u0430\u043B\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1);
25066
+ const _hoisted_6$8 = { class: "date-switcher justify-content-center flex-column ps-3" };
25067
+ const _hoisted_7$6 = /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "\u041A\u043E\u043D\u0435\u0446 \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1);
25068
+ const _hoisted_8$4 = { class: "d-flex pt-2 justify-content-between" };
25069
+ const _hoisted_9$4 = { class: "date-switcher date-switcher__month" };
25070
+ const _hoisted_10$3 = { class: "date-switcher__month-name" };
25071
+ const _hoisted_11$3 = { class: "date-switcher date-switcher__year" };
25072
+ const _hoisted_12$3 = { class: "date-switcher__year-name" };
25073
+ const _hoisted_13$3 = { class: "pl-date-picker__days" };
25074
+ const _hoisted_14$3 = ["onClick", "onMousemove"];
25081
25075
  const _sfc_main$s = {
25082
25076
  __name: "pl-date-picker-range",
25083
25077
  props: {
25084
25078
  modelValue: {
25085
- type: Array,
25086
- default: () => [new Date(), new Date()]
25079
+ type: String,
25080
+ default: ""
25087
25081
  },
25088
- showButton: {
25089
- type: Boolean,
25090
- default: false
25082
+ isOpen: {
25083
+ type: Boolean
25091
25084
  }
25092
25085
  },
25093
- emits: ["update:modelValue"],
25086
+ emits: ["update:modelValue", "changeOpen"],
25094
25087
  setup(__props, { emit: emit2 }) {
25095
25088
  const props = __props;
25096
25089
  dayjs.locale("ru");
25097
25090
  dayjs.extend(isBetween$1);
25091
+ const { isOpen } = toRefs(props);
25098
25092
  const currentDate = ref(dayjs());
25099
25093
  const startDate = ref(dayjs());
25100
25094
  const endDate = ref(dayjs());
@@ -25102,7 +25096,6 @@ const _sfc_main$s = {
25102
25096
  const rangeStartDateValue = ref(dayjs().format("DD.MM.YYYY"));
25103
25097
  const rangeEndDateValue = ref("");
25104
25098
  const WEEK_DAYS2 = ["\u041F\u043D", "\u0412\u0442", "\u0421\u0440", "\u0427\u0442", "\u041F\u0442", "\u0421\u0431", "\u0412\u0441"];
25105
- const isOpen = ref(true);
25106
25099
  const regMask = /^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{4})$/g;
25107
25100
  let range3 = [];
25108
25101
  const updateDate = (event, flag) => {
@@ -25170,7 +25163,7 @@ const _sfc_main$s = {
25170
25163
  };
25171
25164
  const closeDatePicker = () => {
25172
25165
  currentDate.value = confirmedDate.value;
25173
- isOpen.value = false;
25166
+ emit2("changeOpen", false);
25174
25167
  };
25175
25168
  const target = ref(null);
25176
25169
  onClickOutside(target, () => {
@@ -25186,8 +25179,8 @@ const _sfc_main$s = {
25186
25179
  confirmedDate.value = endDate.value;
25187
25180
  rangeEndDateValue.value = displayData(endDate.value);
25188
25181
  }
25189
- emit2("update:modelValue", [startDate.value.format(), endDate.value.format()]);
25190
- isOpen.value = false;
25182
+ emit2("update:modelValue", startDate.value.format("DD.MM.YY") + "-" + endDate.value.format("DD.MM.YY"));
25183
+ emit2("changeOpen", false);
25191
25184
  };
25192
25185
  const getArrayOfDays = () => {
25193
25186
  const prevMonthDays = [];
@@ -25295,25 +25288,20 @@ const _sfc_main$s = {
25295
25288
  return (_ctx, _cache) => {
25296
25289
  const _directive_maska = resolveDirective("maska");
25297
25290
  return openBlock(), createElementBlock("div", _hoisted_1$s, [
25298
- props.showButton ? (openBlock(), createElementBlock("div", {
25291
+ unref(isOpen) ? (openBlock(), createElementBlock("div", {
25299
25292
  key: 0,
25300
- class: "nav-item-container d-flex",
25301
- onMouseenter: _cache[0] || (_cache[0] = ($event) => isOpen.value = true)
25302
- }, _hoisted_4$f, 32)) : createCommentVNode("", true),
25303
- isOpen.value ? (openBlock(), createElementBlock("div", {
25304
- key: 1,
25305
25293
  id: "date-picker-popup",
25306
25294
  class: "pl-date-picker__popup",
25307
25295
  ref_key: "target",
25308
25296
  ref: target
25309
25297
  }, [
25310
- createElementVNode("div", _hoisted_5$b, [
25311
- createElementVNode("div", _hoisted_6$8, [
25312
- createElementVNode("div", _hoisted_7$6, [
25313
- _hoisted_8$4,
25298
+ createElementVNode("div", _hoisted_2$o, [
25299
+ createElementVNode("div", _hoisted_3$l, [
25300
+ createElementVNode("div", _hoisted_4$f, [
25301
+ _hoisted_5$b,
25314
25302
  withDirectives(createElementVNode("input", {
25315
25303
  id: "date-mask",
25316
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => rangeStartDateValue.value = $event),
25304
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => rangeStartDateValue.value = $event),
25317
25305
  onInput: updateDate,
25318
25306
  type: "text",
25319
25307
  placeholder: "\u0414\u0414.\u041C\u041C.\u0413\u0413\u0413\u0413"
@@ -25322,12 +25310,12 @@ const _sfc_main$s = {
25322
25310
  [vModelText, rangeStartDateValue.value]
25323
25311
  ])
25324
25312
  ]),
25325
- createElementVNode("div", _hoisted_9$4, [
25326
- _hoisted_10$3,
25313
+ createElementVNode("div", _hoisted_6$8, [
25314
+ _hoisted_7$6,
25327
25315
  withDirectives(createElementVNode("input", {
25328
25316
  id: "date-mask",
25329
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => rangeEndDateValue.value = $event),
25330
- onInput: _cache[3] || (_cache[3] = ($event) => updateDate($event, true)),
25317
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => rangeEndDateValue.value = $event),
25318
+ onInput: _cache[2] || (_cache[2] = ($event) => updateDate($event, true)),
25331
25319
  type: "text",
25332
25320
  placeholder: "\u0414\u0414.\u041C\u041C.\u0413\u0413\u0413\u0413"
25333
25321
  }, null, 544), [
@@ -25336,24 +25324,24 @@ const _sfc_main$s = {
25336
25324
  ])
25337
25325
  ])
25338
25326
  ]),
25339
- createElementVNode("div", _hoisted_11$3, [
25340
- createElementVNode("div", _hoisted_12$3, [
25327
+ createElementVNode("div", _hoisted_8$4, [
25328
+ createElementVNode("div", _hoisted_9$4, [
25341
25329
  createElementVNode("div", {
25342
25330
  class: "date-switcher__arrow date-switcher__arrow-left",
25343
25331
  onClick: switchPrevMonth
25344
25332
  }),
25345
- createElementVNode("span", _hoisted_13$3, toDisplayString(capitalize2(currentDate.value.format("MMMM"))), 1),
25333
+ createElementVNode("span", _hoisted_10$3, toDisplayString(capitalize2(currentDate.value.format("MMMM"))), 1),
25346
25334
  createElementVNode("div", {
25347
25335
  class: "date-switcher__arrow date-switcher__arrow-right",
25348
25336
  onClick: switchNextMonth
25349
25337
  })
25350
25338
  ]),
25351
- createElementVNode("div", _hoisted_14$3, [
25339
+ createElementVNode("div", _hoisted_11$3, [
25352
25340
  createElementVNode("div", {
25353
25341
  class: "date-switcher__arrow date-switcher__arrow-left",
25354
25342
  onClick: switchPrevYear
25355
25343
  }),
25356
- createElementVNode("span", _hoisted_15$2, toDisplayString(capitalize2(currentDate.value.format("YYYY"))), 1),
25344
+ createElementVNode("span", _hoisted_12$3, toDisplayString(capitalize2(currentDate.value.format("YYYY"))), 1),
25357
25345
  createElementVNode("div", {
25358
25346
  class: "date-switcher__arrow date-switcher__arrow-right",
25359
25347
  onClick: switchNextYear
@@ -25361,7 +25349,7 @@ const _sfc_main$s = {
25361
25349
  ])
25362
25350
  ])
25363
25351
  ]),
25364
- createElementVNode("div", _hoisted_16$2, [
25352
+ createElementVNode("div", _hoisted_13$3, [
25365
25353
  (openBlock(), createElementBlock(Fragment, null, renderList(WEEK_DAYS2, (item, index) => {
25366
25354
  return createElementVNode("div", {
25367
25355
  class: "pl-date-picker__week-day",
@@ -25382,7 +25370,7 @@ const _sfc_main$s = {
25382
25370
  key: `dd${index}`,
25383
25371
  onClick: ($event) => toggleSelection(item),
25384
25372
  onMousemove: ($event) => updateSelection(item)
25385
- }, toDisplayString(item.day), 43, _hoisted_17$2);
25373
+ }, toDisplayString(item.day), 43, _hoisted_14$3);
25386
25374
  }), 128))
25387
25375
  ]),
25388
25376
  createElementVNode("div", { class: "pl-date-picker__buttons" }, [