@snabcentr/vue-ui-lib 2.12.0 → 2.13.0

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-zXOosZJBUQAToMAKS2Dn5HZL/fF+6sNVJei1PYAIBHzVvTNmmj3tl+DyaSUlDCqs"
7
+ "integrity": "sha384-IXTvMhkPuJ6HaxD1GZdIPSSqN//7zvXsnwm9XB+rjJJpbx/xVfzLuI7pz10Q3s48"
8
8
  },
9
9
  "style.css": {
10
10
  "file": "sc-vue-ui-lib.css",
@@ -1,6 +1,6 @@
1
- ## 2.12.0 (2025-05-07)
1
+ ## 2.13.0 (2025-05-13)
2
2
 
3
- ### added (1 change)
3
+ ### changed (1 change)
4
4
 
5
- - [#11607: В компонент ReferenceSelect добавлена возможность установки свойства consistentMenuWidth](web_soft/libs/vue/snabcentr-ui-lib@cf2b9f2a05e404e93b63f48bc19edffb98440bd6) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!63))
5
+ - [#11478: Доработан компонент address-suggestion.vue](web_soft/libs/vue/snabcentr-ui-lib@877f1518f3365370c455282f49c829cca01e0c7e) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!64))
6
6
 
@@ -29336,8 +29336,13 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29336
29336
  disabled: { type: Boolean },
29337
29337
  value: {},
29338
29338
  clearable: { type: Boolean },
29339
- field: {}
29340
- }, vl),
29339
+ field: {},
29340
+ searchDataHandler: {}
29341
+ }, {
29342
+ ...vl,
29343
+ // eslint-disable-next-line unicorn/consistent-function-scoping
29344
+ searchDataHandler: () => (e) => pt.getInstance(nl).searchAddresses(e)
29345
+ }),
29341
29346
  emits: ["select", "update:value"],
29342
29347
  setup(e, { expose: t, emit: i }) {
29343
29348
  const n = e, s = i, r = H(n.value), o = H(!1), a = H([]), l = N(
@@ -29361,14 +29366,9 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
29361
29366
  () => u(),
29362
29367
  800
29363
29368
  ), u = async () => {
29364
- if (!(!r.value || r.value.length < 4)) {
29365
- o.value = !0;
29366
- try {
29367
- a.value = await pt.getInstance(nl).searchAddresses(r.value);
29368
- } finally {
29369
- o.value = !1;
29370
- }
29371
- }
29369
+ !r.value || r.value.length < 4 || (o.value = !0, a.value = await n.searchDataHandler(r.value, o).finally(() => {
29370
+ o.value = !1;
29371
+ }));
29372
29372
  }, h = (g, m) => {
29373
29373
  const v = a.value.find((_) => _.id === g.value) || {};
29374
29374
  return M(