@snabcentr/vue-ui-lib 2.10.3 → 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.
package/dist/manifest.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"name": "index",
|
5
5
|
"src": "src/index.ts",
|
6
6
|
"isEntry": true,
|
7
|
-
"integrity": "sha384-
|
7
|
+
"integrity": "sha384-5NbwauCJHptsTPTnC1J/wyakXBpZwpZtOZzJqflJTCiADrI0+LOln7P2Eh5VrYUu"
|
8
8
|
},
|
9
9
|
"style.css": {
|
10
10
|
"file": "sc-vue-ui-lib.css",
|
package/dist/release_notes.tmp
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
## 2.10.
|
1
|
+
## 2.10.4 (2025-05-07)
|
2
2
|
|
3
|
-
|
3
|
+
### fixed (1 change)
|
4
|
+
|
5
|
+
- [#11607: Исправлены ошибки в компоненте ReferenceSelect](web_soft/libs/vue/snabcentr-ui-lib@4fcc49694599b16276bb57e543f0aae451fe46c3) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!60))
|
4
6
|
|
package/dist/sc-vue-ui-lib.js
CHANGED
@@ -29192,30 +29192,30 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
|
|
29192
29192
|
},
|
29193
29193
|
emits: ["update:value"],
|
29194
29194
|
setup(e, { expose: t, emit: i }) {
|
29195
|
-
const n = e, s = i, r = N(() => Lt(n.value)), o =
|
29196
|
-
const h = gn(n.value) ?
|
29197
|
-
return Lt(
|
29198
|
-
}), l = N(() => vn.convertReferencesToSelectOptionsList(n.referenceList, n.sortOptionsByLabel, n.showEmptyValue)), c =
|
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) => {
|
29199
29199
|
var p;
|
29200
29200
|
if (Lt(h)) {
|
29201
29201
|
const g = h.length > 0 ? h.map((m) => {
|
29202
29202
|
var v;
|
29203
29203
|
return (v = l.value.find((_) => _.value === m)) == null ? void 0 : v.item;
|
29204
|
-
}) :
|
29204
|
+
}) : [];
|
29205
29205
|
s("update:value", g);
|
29206
29206
|
} else {
|
29207
|
-
const g = h
|
29207
|
+
const g = h === o.id || (p = l.value.find((m) => m.value === h)) == null ? void 0 : p.item;
|
29208
29208
|
s("update:value", g);
|
29209
29209
|
}
|
29210
|
-
};
|
29210
|
+
}, u = wi("select-component");
|
29211
29211
|
return t({
|
29212
29212
|
focus: () => {
|
29213
29213
|
var h;
|
29214
|
-
return (h =
|
29214
|
+
return (h = u.value) == null ? void 0 : h.focus();
|
29215
29215
|
},
|
29216
29216
|
blur: () => {
|
29217
29217
|
var h;
|
29218
|
-
return (h =
|
29218
|
+
return (h = u.value) == null ? void 0 : h.blur();
|
29219
29219
|
}
|
29220
29220
|
}), (h, p) => (b(), re(K(pn), {
|
29221
29221
|
ref: "select-component",
|
@@ -29227,7 +29227,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
|
|
29227
29227
|
multiple: r.value,
|
29228
29228
|
options: l.value,
|
29229
29229
|
placeholder: "",
|
29230
|
-
"onUpdate:value":
|
29230
|
+
"onUpdate:value": c
|
29231
29231
|
}, null, 8, ["value", "clearable", "disabled", "filterable", "max-tag-count", "multiple", "options"]));
|
29232
29232
|
}
|
29233
29233
|
}), dk = {}, B5 = /* @__PURE__ */ te({
|