@factoringplus/pl-components-pack-v3 0.5.83-pre-02 → 0.5.83-pre-03

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.
@@ -20050,7 +20050,7 @@ function declOfNum(g, y) {
20050
20050
  const z = g % 10;
20051
20051
  return z > 1 && z < 5 ? y[1] : z == 1 ? y[0] : y[2];
20052
20052
  }
20053
- const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoisted_1$C = { class: "pl-autocomplete__wrapper" }, _hoisted_2$x = {
20053
+ const plAutocompete_vue_vue_type_style_index_0_scoped_84724376_lang = "", _hoisted_1$C = { class: "pl-autocomplete__wrapper" }, _hoisted_2$x = {
20054
20054
  key: 0,
20055
20055
  class: "pl-autocomplete__label-container"
20056
20056
  }, _hoisted_3$r = { class: "pl-autocomplete__label-container-text" }, _hoisted_4$m = {
@@ -20154,29 +20154,29 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20154
20154
  emits: ["update:modelValue", "fetchDadata", "changeValue"],
20155
20155
  setup(g, { emit: y }) {
20156
20156
  const j = g;
20157
- useCssVars((xe) => ({
20158
- "3175f9d2": j.width
20157
+ useCssVars((qe) => ({
20158
+ "086303fd": j.width
20159
20159
  }));
20160
20160
  const z = `id-${uniqid()}`, $ = ref([]);
20161
20161
  if (j.prop) {
20162
- const xe = inject("errorsState");
20162
+ const qe = inject("errorsState");
20163
20163
  watch(
20164
- xe,
20164
+ qe,
20165
20165
  () => {
20166
- $.value = xe.value.filter((qe) => qe.field === j.prop), re();
20166
+ $.value = qe.value.filter((At) => At.field === j.prop), re();
20167
20167
  },
20168
20168
  { deep: !0 }
20169
20169
  );
20170
20170
  }
20171
20171
  const V = computed$1(() => $.value.length), re = () => {
20172
20172
  nextTick(() => {
20173
- const xe = document.getElementById(`dropdown-${z}`);
20174
- if (!xe)
20173
+ const qe = document.getElementById(`dropdown-${z}`);
20174
+ if (!qe)
20175
20175
  return;
20176
- const qe = xe.previousSibling.querySelectorAll(
20176
+ const At = qe.previousSibling.querySelectorAll(
20177
20177
  ".pl-autocomplete__label-container"
20178
- )[0], At = qe ? qe.offsetHeight : -4, Dt = xe.previousSibling.offsetHeight;
20179
- xe.style.bottom = "", xe && xe.getBoundingClientRect().bottom > ae.value && (xe.style.bottom = `${Dt - At}px`), xe && xe.getBoundingClientRect().top < 0 && (xe.style.bottom = "");
20178
+ )[0], Dt = At ? At.offsetHeight : -4, Pt = qe.previousSibling.offsetHeight;
20179
+ qe.style.bottom = "", qe && qe.getBoundingClientRect().bottom > ae.value && (qe.style.bottom = `${Pt - Dt}px`), qe && qe.getBoundingClientRect().top < 0 && (qe.style.bottom = "");
20180
20180
  });
20181
20181
  }, ae = useWindowSize().height;
20182
20182
  watch(ae, () => {
@@ -20199,8 +20199,8 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20199
20199
  ue.value = !1, !j.memoryBlur && !Ie.value.value ? Ne.value = "" : Ie.value.value && (Ne.value = Ie.value.value);
20200
20200
  });
20201
20201
  }, de = ref(!1), Ne = ref("");
20202
- watch(Ne, (xe) => {
20203
- (xe == null ? void 0 : xe.length) >= j.symbolsCountSearch ? (de.value = !0, y("fetchDadata", xe)) : de.value = !1;
20202
+ watch(Ne, (qe) => {
20203
+ (qe == null ? void 0 : qe.length) >= j.symbolsCountSearch ? (de.value = !0, y("fetchDadata", qe)) : de.value = !1;
20204
20204
  }), watch(
20205
20205
  () => j.suggestionList,
20206
20206
  () => {
@@ -20209,28 +20209,28 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20209
20209
  );
20210
20210
  const Ie = computed$1({
20211
20211
  get: () => j.modelValue,
20212
- set: (xe) => {
20213
- y("update:modelValue", xe);
20212
+ set: (qe) => {
20213
+ y("update:modelValue", qe);
20214
20214
  }
20215
20215
  });
20216
- watch(Ie, (xe) => {
20217
- Ne.value = xe.value;
20218
- const qe = document.getElementById(z);
20216
+ watch(Ie, (qe) => {
20217
+ Ne.value = qe.value;
20218
+ const At = document.getElementById(z);
20219
20219
  if ("createEvent" in document) {
20220
- const At = document.createEvent("HTMLEvents");
20221
- At.initEvent("change", !1, !0), qe.dispatchEvent(At);
20220
+ const Dt = document.createEvent("HTMLEvents");
20221
+ Dt.initEvent("change", !1, !0), At.dispatchEvent(Dt);
20222
20222
  } else
20223
- qe.fireEvent("onchange");
20223
+ At.fireEvent("onchange");
20224
20224
  }), j.default && (Ie.value = JSON.parse(JSON.stringify(j.default)));
20225
- const _e = (xe) => {
20226
- xe.disabled || (pe(), Ie.value = xe, Ne.value = xe.value, y("changeValue", xe));
20225
+ const _e = (qe) => {
20226
+ qe.disabled || (pe(), Ie.value = qe, Ne.value = qe.value, y("changeValue", qe));
20227
20227
  }, Oe = () => {
20228
20228
  Ie.value = {}, Ne.value = "", y("changeValue", {}), document.getElementById(z).focus(), document.getElementById(z).blur(), pe();
20229
- }, Ce = (xe) => j.uniqKey && Ie[j.uniqKey] ? xe[j.uniqKey] === Ie.value[j.uniqKey] : Ie.value.bottomText ? xe.value === Ie.value.value && xe.bottomText === Ie.value.bottomText : xe.value === Ie.value.value, Ue = () => {
20230
- var xe, qe;
20229
+ }, Ce = (qe, At) => qe.split(".").reduce((Dt, Pt) => Dt[Pt], At), Ue = (qe) => Ce(j.uniqKey, Ie.value) ? Ce(j.uniqKey, qe) === Ce(j.uniqKey, Ie.value) : Ie.value.bottomText ? qe.value === Ie.value.value && qe.bottomText === Ie.value.bottomText : qe.value === Ie.value.value, ze = () => {
20230
+ var qe, At;
20231
20231
  if (!Ne.value && j.defaultDropText)
20232
20232
  return j.defaultDropText;
20233
- if (!Ne.value || ((xe = Ne.value) == null ? void 0 : xe.length) < j.symbolsCountSearch)
20233
+ if (!Ne.value || ((qe = Ne.value) == null ? void 0 : qe.length) < j.symbolsCountSearch)
20234
20234
  return `Введите минимум ${j.symbolsCountSearch} ${declOfNum(j.symbolsCountSearch, [
20235
20235
  "символ",
20236
20236
  "символа",
@@ -20238,9 +20238,9 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20238
20238
  ])} `;
20239
20239
  if (!j.suggestionList || de.value)
20240
20240
  return;
20241
- if (((qe = j.suggestionList) == null ? void 0 : qe.length) === 0)
20241
+ if (((At = j.suggestionList) == null ? void 0 : At.length) === 0)
20242
20242
  return j.noData;
20243
- }, ze = () => {
20243
+ }, xe = () => {
20244
20244
  j.memoryBlur && (Ie.value = {
20245
20245
  value: Ne.value,
20246
20246
  data: !1,
@@ -20249,8 +20249,8 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20249
20249
  y("changeValue", Ie.value);
20250
20250
  }));
20251
20251
  };
20252
- return (xe, qe) => {
20253
- const At = ElScrollbar, Dt = vLoading;
20252
+ return (qe, At) => {
20253
+ const Dt = ElScrollbar, Pt = vLoading;
20254
20254
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$C, [
20255
20255
  createElementVNode("div", {
20256
20256
  class: "pl-autocomplete__select-container",
@@ -20275,12 +20275,12 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20275
20275
  createVNode(_sfc_main$Y, mergeProps(j, {
20276
20276
  id: z,
20277
20277
  focus: ue.value,
20278
- "onUpdate:focus": qe[0] || (qe[0] = (Pt) => ue.value = Pt),
20278
+ "onUpdate:focus": At[0] || (At[0] = (vn) => ue.value = vn),
20279
20279
  modelValue: Ne.value,
20280
- "onUpdate:modelValue": qe[1] || (qe[1] = (Pt) => Ne.value = Pt),
20280
+ "onUpdate:modelValue": At[1] || (At[1] = (vn) => Ne.value = vn),
20281
20281
  "show-error": V.value,
20282
20282
  onReset: Oe,
20283
- onChange: ze,
20283
+ onChange: xe,
20284
20284
  onClickToBlur: pe
20285
20285
  }), null, 16, ["focus", "modelValue", "show-error"]),
20286
20286
  j.helpertext || $.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_6$c, [
@@ -20289,7 +20289,7 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20289
20289
  ]),
20290
20290
  createVNode(Transition, { name: "fade" }, {
20291
20291
  default: withCtx(() => {
20292
- var Pt;
20292
+ var vn;
20293
20293
  return [
20294
20294
  ue.value ? (openBlock(), createElementBlock("div", {
20295
20295
  key: 0,
@@ -20301,23 +20301,23 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20301
20301
  }
20302
20302
  ])
20303
20303
  }, [
20304
- de.value || !Ne.value || Ne.value.length < j.symbolsCountSearch || !((Pt = j.suggestionList) != null && Pt.length) ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
20304
+ de.value || !Ne.value || Ne.value.length < j.symbolsCountSearch || !((vn = j.suggestionList) != null && vn.length) ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
20305
20305
  de.value ? withDirectives((openBlock(), createElementBlock("div", _hoisted_11$5, null, 512)), [
20306
- [Dt, de.value]
20307
- ]) : (openBlock(), createElementBlock("span", _hoisted_12$5, toDisplayString(Ue()), 1))
20308
- ])) : (openBlock(), createBlock(At, {
20306
+ [Pt, de.value]
20307
+ ]) : (openBlock(), createElementBlock("span", _hoisted_12$5, toDisplayString(ze()), 1))
20308
+ ])) : (openBlock(), createBlock(Dt, {
20309
20309
  key: 1,
20310
20310
  "max-height": "268px"
20311
20311
  }, {
20312
20312
  default: withCtx(() => [
20313
- (openBlock(!0), createElementBlock(Fragment, null, renderList(j.suggestionList, (vn) => (openBlock(), createBlock(PlOption, {
20314
- key: vn,
20315
- active: Ce(vn),
20316
- description: vn.bottomText,
20317
- label: vn.value,
20313
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(j.suggestionList, (kt) => (openBlock(), createBlock(PlOption, {
20314
+ key: kt,
20315
+ active: Ue(kt),
20316
+ description: kt.bottomText,
20317
+ label: kt.value,
20318
20318
  "search-value": Ne.value,
20319
20319
  "disable-marker-bottom": j.disableMarkerBottom,
20320
- onMousedown: (kt) => _e(vn)
20320
+ onMousedown: (_n) => _e(kt)
20321
20321
  }, null, 8, ["active", "description", "label", "search-value", "disable-marker-bottom", "onMousedown"]))), 128))
20322
20322
  ]),
20323
20323
  _: 1
@@ -20332,7 +20332,7 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_152119b2_lang = "", _hoist
20332
20332
  ]);
20333
20333
  };
20334
20334
  }
20335
- }, PlAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-152119b2"]]), PlAutocompletePlugin = {
20335
+ }, PlAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-84724376"]]), PlAutocompletePlugin = {
20336
20336
  install(g) {
20337
20337
  g.component("PlAutocomplete", PlAutocomplete);
20338
20338
  }