@factoringplus/pl-components-pack-v3 0.1.39 → 0.1.42

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.
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { getCurrentScope, onScopeDispose, ref, watch, unref, defineComponent, openBlock, createElementBlock, createElementVNode, warn, getCurrentInstance, computed, inject, isRef, onMounted, onBeforeUnmount, onBeforeMount, provide, mergeProps, renderSlot, shallowRef, nextTick, onUpdated, resolveComponent, withDirectives, normalizeClass, normalizeStyle, createCommentVNode, Fragment, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, vShow, toRef, Transition, reactive, cloneVNode, h, Text, Comment, Teleport, createTextVNode, readonly, useSlots, resolveDirective, renderList, onUnmounted } from "vue";
20
+ import { getCurrentScope, onScopeDispose, ref, watch, unref, defineComponent, openBlock, createElementBlock, createElementVNode, warn, getCurrentInstance, computed, inject, isRef, onMounted, onBeforeUnmount, onBeforeMount, provide, mergeProps, renderSlot, shallowRef, nextTick, onUpdated, resolveComponent, withDirectives, normalizeClass, normalizeStyle, createCommentVNode, Fragment, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, vShow, toRef, Transition, reactive, cloneVNode, h, Text, Comment, Teleport, createTextVNode, readonly, useSlots, resolveDirective, renderList, onUnmounted, toRefs } from "vue";
21
21
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
22
22
  var freeGlobal$1 = freeGlobal;
23
23
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
@@ -11292,19 +11292,21 @@ const __default__$2 = {
11292
11292
  };
11293
11293
  const _sfc_main$3 = /* @__PURE__ */ Object.assign(__default__$2, {
11294
11294
  props: {
11295
- width: String
11295
+ width: String,
11296
+ modelValue: Number
11296
11297
  },
11297
11298
  emits: ["update:modelValue"],
11298
11299
  setup(__props, { emit }) {
11299
- const innerValue = ref(null);
11300
+ const props = __props;
11300
11301
  const options = reactive({
11301
11302
  currency: "EUR",
11302
11303
  currencyDisplay: "hidden",
11303
11304
  precision: 2
11304
11305
  });
11305
- const { inputRef } = useCurrencyInput(options);
11306
- watch(innerValue, (newValue) => {
11307
- emit("update:modelValue", newValue);
11306
+ const { inputRef, formattedValue, setValue } = useCurrencyInput(options);
11307
+ const { modelValue } = toRefs(props);
11308
+ watch(modelValue, (newValue) => {
11309
+ setValue(newValue);
11308
11310
  });
11309
11311
  return (_ctx, _cache) => {
11310
11312
  const _component_el_input = ElInput;
@@ -11313,8 +11315,8 @@ const _sfc_main$3 = /* @__PURE__ */ Object.assign(__default__$2, {
11313
11315
  }, _ctx.$attrs, {
11314
11316
  ref_key: "inputRef",
11315
11317
  ref: inputRef,
11316
- modelValue: innerValue.value,
11317
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event),
11318
+ modelValue: unref(formattedValue),
11319
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null),
11318
11320
  class: "pl-currency"
11319
11321
  }), {
11320
11322
  append: withCtx(() => [
@@ -11505,14 +11507,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11505
11507
  },
11506
11508
  emits: ["update:modelValue"],
11507
11509
  setup(__props, { emit }) {
11508
- const innerValue = ref(null);
11510
+ const props = __props;
11511
+ const { modelValue } = toRefs(props);
11512
+ const innerValue = ref([]);
11509
11513
  const innerDatePicker = ref(null);
11510
11514
  watch(innerValue, (newValue) => {
11511
11515
  emit("update:modelValue", newValue);
11512
11516
  });
11513
- onMounted(() => {
11514
- console.log("innerDatePicker", innerDatePicker.value);
11515
- });
11517
+ innerValue.value = modelValue.value;
11516
11518
  return (_ctx, _cache) => {
11517
11519
  const _component_el_date_picker = ElDatePicker;
11518
11520
  return openBlock(), createBlock(_component_el_date_picker, mergeProps({
@@ -11534,9 +11536,130 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11534
11536
  });
11535
11537
  var root = "";
11536
11538
  var common = "";
11539
+ var ru = {
11540
+ name: "ru",
11541
+ el: {
11542
+ colorpicker: {
11543
+ confirm: "OK",
11544
+ clear: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"
11545
+ },
11546
+ datepicker: {
11547
+ now: "\u0421\u0435\u0439\u0447\u0430\u0441",
11548
+ today: "\u0421\u0435\u0433\u043E\u0434\u043D\u044F",
11549
+ cancel: "\u041E\u0442\u043C\u0435\u043D\u0430",
11550
+ clear: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",
11551
+ confirm: "OK",
11552
+ selectDate: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0430\u0442\u0443",
11553
+ selectTime: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0440\u0435\u043C\u044F",
11554
+ startDate: "\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",
11555
+ startTime: "\u0412\u0440\u0435\u043C\u044F \u043D\u0430\u0447\u0430\u043B\u0430",
11556
+ endDate: "\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",
11557
+ endTime: "\u0412\u0440\u0435\u043C\u044F \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",
11558
+ prevYear: "\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0433\u043E\u0434",
11559
+ nextYear: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0433\u043E\u0434",
11560
+ prevMonth: "\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",
11561
+ nextMonth: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",
11562
+ year: "",
11563
+ month1: "\u042F\u043D\u0432\u0430\u0440\u044C",
11564
+ month2: "\u0424\u0435\u0432\u0440\u0430\u043B\u044C",
11565
+ month3: "\u041C\u0430\u0440\u0442",
11566
+ month4: "\u0410\u043F\u0440\u0435\u043B\u044C",
11567
+ month5: "\u041C\u0430\u0439",
11568
+ month6: "\u0418\u044E\u043D\u044C",
11569
+ month7: "\u0418\u044E\u043B\u044C",
11570
+ month8: "\u0410\u0432\u0433\u0443\u0441\u0442",
11571
+ month9: "\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C",
11572
+ month10: "\u041E\u043A\u0442\u044F\u0431\u0440\u044C",
11573
+ month11: "\u041D\u043E\u044F\u0431\u0440\u044C",
11574
+ month12: "\u0414\u0435\u043A\u0430\u0431\u0440\u044C",
11575
+ week: "\u043D\u0435\u0434\u0435\u043B\u044F",
11576
+ weeks: {
11577
+ sun: "\u0412\u0441",
11578
+ mon: "\u041F\u043D",
11579
+ tue: "\u0412\u0442",
11580
+ wed: "\u0421\u0440",
11581
+ thu: "\u0427\u0442",
11582
+ fri: "\u041F\u0442",
11583
+ sat: "\u0421\u0431"
11584
+ },
11585
+ months: {
11586
+ jan: "\u042F\u043D\u0432",
11587
+ feb: "\u0424\u0435\u0432",
11588
+ mar: "\u041C\u0430\u0440",
11589
+ apr: "\u0410\u043F\u0440",
11590
+ may: "\u041C\u0430\u0439",
11591
+ jun: "\u0418\u044E\u043D",
11592
+ jul: "\u0418\u044E\u043B",
11593
+ aug: "\u0410\u0432\u0433",
11594
+ sep: "\u0421\u0435\u043D",
11595
+ oct: "\u041E\u043A\u0442",
11596
+ nov: "\u041D\u043E\u044F",
11597
+ dec: "\u0414\u0435\u043A"
11598
+ }
11599
+ },
11600
+ select: {
11601
+ loading: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",
11602
+ noMatch: "\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",
11603
+ noData: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",
11604
+ placeholder: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C"
11605
+ },
11606
+ cascader: {
11607
+ noMatch: "\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",
11608
+ loading: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",
11609
+ placeholder: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C",
11610
+ noData: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"
11611
+ },
11612
+ pagination: {
11613
+ goto: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438",
11614
+ pagesize: " \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",
11615
+ total: "\u0412\u0441\u0435\u0433\u043E {total}",
11616
+ pageClassifier: ""
11617
+ },
11618
+ messagebox: {
11619
+ title: "\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",
11620
+ confirm: "OK",
11621
+ cancel: "\u041E\u0442\u043C\u0435\u043D\u0430",
11622
+ error: "\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u0430\u043D\u043D\u044B\u0445"
11623
+ },
11624
+ upload: {
11625
+ deleteTip: "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 [\u0423\u0434\u0430\u043B\u0438\u0442\u044C] \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F",
11626
+ delete: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
11627
+ preview: "\u041F\u0440\u0435\u0432\u044C\u044E",
11628
+ continue: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"
11629
+ },
11630
+ table: {
11631
+ emptyText: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",
11632
+ confirmFilter: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",
11633
+ resetFilter: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",
11634
+ clearFilter: "\u0412\u0441\u0435",
11635
+ sumText: "\u0421\u0443\u043C\u043C\u0430"
11636
+ },
11637
+ tree: {
11638
+ emptyText: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"
11639
+ },
11640
+ transfer: {
11641
+ noMatch: "\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",
11642
+ noData: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",
11643
+ titles: ["\u0421\u043F\u0438\u0441\u043E\u043A 1", "\u0421\u043F\u0438\u0441\u043E\u043A 2"],
11644
+ filterPlaceholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043B\u044E\u0447\u0435\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E",
11645
+ noCheckedFormat: "{total} \u043F\u0443\u043D\u043A\u0442\u043E\u0432",
11646
+ hasCheckedFormat: "{checked}/{total} \u0432\u044B\u0431\u0440\u0430\u043D\u043E"
11647
+ },
11648
+ image: {
11649
+ error: "FAILED"
11650
+ },
11651
+ pageHeader: {
11652
+ title: "Back"
11653
+ },
11654
+ popconfirm: {
11655
+ confirmButtonText: "OK",
11656
+ cancelButtonText: "\u041E\u0442\u043C\u0435\u043D\u0430"
11657
+ }
11658
+ }
11659
+ };
11537
11660
  const PlDatePickerRangePlugin = {
11538
11661
  install(app) {
11539
- app.component("PlDatePickerRange", _sfc_main);
11662
+ app.component("PlDatePickerRange", _sfc_main, { locale: ru });
11540
11663
  }
11541
11664
  };
11542
11665
  const TestKitPlugin = {