@factoringplus/pl-components-pack-v3 0.3.32 → 0.3.33

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.
@@ -41958,6 +41958,7 @@ const _sfc_main$1 = {
41958
41958
  setup(__props, { emit: emit2 }) {
41959
41959
  dayjs.locale("ru");
41960
41960
  const displayDate = ref(dayjs());
41961
+ const capitalize2 = (value) => value.charAt(0).toUpperCase() + value.slice(1);
41961
41962
  const switchPrevMonth = () => {
41962
41963
  displayDate.value = displayDate.value.subtract(1, "month");
41963
41964
  emit2("update:modelValue", displayDate.value);
@@ -41983,7 +41984,7 @@ const _sfc_main$1 = {
41983
41984
  alt: "arrow-left",
41984
41985
  onClick: switchPrevMonth
41985
41986
  }),
41986
- createElementVNode("span", null, toDisplayString(_ctx.$filters.capitalize(__props.modelValue.format("MMMM"))), 1),
41987
+ createElementVNode("span", null, toDisplayString(capitalize2(__props.modelValue.format("MMMM"))), 1),
41987
41988
  createElementVNode("img", {
41988
41989
  class: "date-switcher__arrow",
41989
41990
  src: _imports_1,
@@ -41998,7 +41999,7 @@ const _sfc_main$1 = {
41998
41999
  alt: "arrow-left",
41999
42000
  onClick: switchPrevYear
42000
42001
  }),
42001
- createElementVNode("span", null, toDisplayString(_ctx.$filters.capitalize(__props.modelValue.format("YYYY"))), 1),
42002
+ createElementVNode("span", null, toDisplayString(capitalize2(__props.modelValue.format("YYYY"))), 1),
42002
42003
  createElementVNode("img", {
42003
42004
  class: "date-switcher__arrow",
42004
42005
  src: _imports_1,
@@ -42011,6 +42012,20 @@ const _sfc_main$1 = {
42011
42012
  }
42012
42013
  };
42013
42014
  const WEEK_DAYS = ["\u041F\u043D", "\u0412\u0442", "\u0421\u0440", "\u0427\u0442", "\u041F\u0442", "\u0421\u0431", "\u0412\u0441"];
42015
+ const DISPLAY_MONTHS = [
42016
+ "\u042F\u043D\u0432\u0430\u0440\u044F",
42017
+ "\u0424\u0435\u0432\u0440\u0430\u043B\u044F",
42018
+ "\u041C\u0430\u0440\u0442\u0430",
42019
+ "\u0410\u043F\u0440\u0435\u043B\u044F",
42020
+ "\u041C\u0430\u044F",
42021
+ "\u0418\u044E\u043D\u044F",
42022
+ "\u0418\u044E\u043B\u044F",
42023
+ "\u0410\u0432\u0433\u0443\u0441\u0442\u0430",
42024
+ "\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044F",
42025
+ "\u041E\u043A\u0442\u044F\u0431\u0440\u044F",
42026
+ "\u041D\u043E\u044F\u0431\u0440\u044F",
42027
+ "\u0414\u0435\u043A\u0430\u0431\u0440\u044F"
42028
+ ];
42014
42029
  var plDatePickerPlus_vue_vue_type_style_index_0_lang = "";
42015
42030
  const _hoisted_1 = { class: "date-picker-plus" };
42016
42031
  const _hoisted_2 = { class: "date-picker-plus__title" };
@@ -42031,6 +42046,10 @@ const _sfc_main = {
42031
42046
  const currentDate = ref(dayjs());
42032
42047
  const selectedDate = ref(dayjs());
42033
42048
  const isOpen = ref(false);
42049
+ const displayDate = (value) => {
42050
+ const dayjsDate = dayjs.isDayjs(value) ? value : dayjs(value);
42051
+ return `${dayjsDate.date()} ${DISPLAY_MONTHS[dayjsDate.month()]}, ${dayjsDate.year()}`;
42052
+ };
42034
42053
  const checkCurrentMonthDays = (dayItem) => {
42035
42054
  return selectedDate.value.date() === dayItem.day && selectedDate.value.month() === dayItem.month && selectedDate.value.year() === dayItem.year && dayItem.type === "current";
42036
42055
  };
@@ -42079,7 +42098,7 @@ const _sfc_main = {
42079
42098
  });
42080
42099
  return (_ctx, _cache) => {
42081
42100
  return openBlock(), createElementBlock("div", _hoisted_1, [
42082
- createElementVNode("span", _hoisted_2, toDisplayString(_ctx.$filters.displayDate(__props.modelValue)), 1),
42101
+ createElementVNode("span", _hoisted_2, toDisplayString(displayDate(__props.modelValue)), 1),
42083
42102
  createElementVNode("img", {
42084
42103
  class: "date-picker-plus__img",
42085
42104
  src: _imports_0$1,