@snabcentr/vue-ui-lib 2.10.2 → 2.10.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.
@@ -4,7 +4,7 @@
4
4
  "name": "index",
5
5
  "src": "src/index.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-lRVy8o5vMT40GcE4xSa7O3ZqfVNU7wOr7SCjFwSFFcTV/+i2JJCGz+J7qHwDeHGe"
7
+ "integrity": "sha384-5NbwauCJHptsTPTnC1J/wyakXBpZwpZtOZzJqflJTCiADrI0+LOln7P2Eh5VrYUu"
8
8
  },
9
9
  "style.css": {
10
10
  "file": "sc-vue-ui-lib.css",
@@ -1,6 +1,6 @@
1
- ## 2.10.2 (2025-04-30)
1
+ ## 2.10.4 (2025-05-07)
2
2
 
3
- ### changed (1 change)
3
+ ### fixed (1 change)
4
4
 
5
- - [#11455: Доработан внешний вид с учетом обратной связи](web_soft/libs/vue/snabcentr-ui-lib@c2384d187a5b728b74cf64a4decc562d44541a3c) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!59))
5
+ - [#11607: Исправлены ошибки в компоненте ReferenceSelect](web_soft/libs/vue/snabcentr-ui-lib@4fcc49694599b16276bb57e543f0aae451fe46c3) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!60))
6
6
 
@@ -1572,6 +1572,7 @@ const Mp = {
1572
1572
  const n = Nu, s = tn;
1573
1573
  return b(), re(s, {
1574
1574
  trigger: "click",
1575
+ placement: "top-start",
1575
1576
  class: "sc-stock-count"
1576
1577
  }, {
1577
1578
  trigger: F(() => [
@@ -1652,7 +1653,7 @@ const Mp = {
1652
1653
  T("div", Dp, [
1653
1654
  T("span", null, [
1654
1655
  T("span", {
1655
- class: tt({ "cursor-pointer underline decoration-dashed": a.value && c.eventEmitter }),
1656
+ class: tt({ "cursor-pointer": a.value && c.eventEmitter }),
1656
1657
  onClick: l
1657
1658
  }, Y(c.product.name), 3),
1658
1659
  c.product.onOrder ? (b(), M("span", Np, " [Под заказ] ")) : X("", !0)
@@ -29191,30 +29192,30 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29191
29192
  },
29192
29193
  emits: ["update:value"],
29193
29194
  setup(e, { expose: t, emit: i }) {
29194
- const n = e, s = i, r = N(() => Lt(n.value)), o = () => r.value ? [] : new kf(), a = N(() => {
29195
- const h = gn(n.value) ? o() : n.value;
29196
- return Lt(h) ? h.map((p) => p.id) : h == null ? void 0 : h.id;
29197
- }), l = N(() => vn.convertReferencesToSelectOptionsList(n.referenceList, n.sortOptionsByLabel, n.showEmptyValue)), c = wi("select-component"), u = (h) => {
29195
+ const n = e, s = i, r = N(() => Lt(n.value)), o = new kf(), a = N(() => {
29196
+ const h = r.value ? [] : o, p = gn(n.value) ? h : n.value;
29197
+ return Lt(p) ? p.map((g) => g.id) : p == null ? void 0 : p.id;
29198
+ }), l = N(() => vn.convertReferencesToSelectOptionsList(n.referenceList, n.sortOptionsByLabel, n.showEmptyValue)), c = (h) => {
29198
29199
  var p;
29199
29200
  if (Lt(h)) {
29200
29201
  const g = h.length > 0 ? h.map((m) => {
29201
29202
  var v;
29202
29203
  return (v = l.value.find((_) => _.value === m)) == null ? void 0 : v.item;
29203
- }) : o();
29204
+ }) : [];
29204
29205
  s("update:value", g);
29205
29206
  } else {
29206
- const g = h > 0 ? (p = l.value.find((m) => m.value === h)) == null ? void 0 : p.item : o();
29207
+ const g = h === o.id || (p = l.value.find((m) => m.value === h)) == null ? void 0 : p.item;
29207
29208
  s("update:value", g);
29208
29209
  }
29209
- };
29210
+ }, u = wi("select-component");
29210
29211
  return t({
29211
29212
  focus: () => {
29212
29213
  var h;
29213
- return (h = c.value) == null ? void 0 : h.focus();
29214
+ return (h = u.value) == null ? void 0 : h.focus();
29214
29215
  },
29215
29216
  blur: () => {
29216
29217
  var h;
29217
- return (h = c.value) == null ? void 0 : h.blur();
29218
+ return (h = u.value) == null ? void 0 : h.blur();
29218
29219
  }
29219
29220
  }), (h, p) => (b(), re(K(pn), {
29220
29221
  ref: "select-component",
@@ -29226,7 +29227,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29226
29227
  multiple: r.value,
29227
29228
  options: l.value,
29228
29229
  placeholder: "",
29229
- "onUpdate:value": u
29230
+ "onUpdate:value": c
29230
29231
  }, null, 8, ["value", "clearable", "disabled", "filterable", "max-tag-count", "multiple", "options"]));
29231
29232
  }
29232
29233
  }), dk = {}, B5 = /* @__PURE__ */ te({