@snabcentr/vue-ui-lib 2.11.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.
- package/dist/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -4
- package/dist/sc-vue-ui-lib.js +15 -13
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/components/selects/reference-select.vue.d.ts +2 -1
- package/dist/src/components/suggestions/address/address-suggestion.vue.d.ts +18 -3
- package/dist/src/properties/interfaces/i-consistent-menu-width.d.ts +9 -0
- package/dist/src/properties/interfaces/i-searchable-select-wrapper.d.ts +2 -5
- package/dist/src/properties/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
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-IXTvMhkPuJ6HaxD1GZdIPSSqN//7zvXsnwm9XB+rjJJpbx/xVfzLuI7pz10Q3s48"
|
8
8
|
},
|
9
9
|
"style.css": {
|
10
10
|
"file": "sc-vue-ui-lib.css",
|
package/dist/release_notes.tmp
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
## 2.
|
1
|
+
## 2.13.0 (2025-05-13)
|
2
2
|
|
3
|
-
### changed (
|
3
|
+
### changed (1 change)
|
4
4
|
|
5
|
-
- [#
|
6
|
-
- [#11515: Доработан формат дат в компонентах](web_soft/libs/vue/snabcentr-ui-lib@a44ecbceaa82963232ca832e2d866cc1a97e37eb) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!61))
|
5
|
+
- [#11478: Доработан компонент address-suggestion.vue](web_soft/libs/vue/snabcentr-ui-lib@877f1518f3365370c455282f49c829cca01e0c7e) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!64))
|
7
6
|
|
package/dist/sc-vue-ui-lib.js
CHANGED
@@ -28087,7 +28087,6 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
|
|
28087
28087
|
props: {
|
28088
28088
|
searchDataHandler: {},
|
28089
28089
|
optionsListConverter: {},
|
28090
|
-
consistentMenuWidth: { type: Boolean, default: !1 },
|
28091
28090
|
wrapContent: { type: Boolean, default: !1 },
|
28092
28091
|
renderLabel: {},
|
28093
28092
|
renderTag: {},
|
@@ -28095,6 +28094,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
|
|
28095
28094
|
clearable: { type: Boolean, default: !1 },
|
28096
28095
|
disabled: { type: Boolean, default: !1 },
|
28097
28096
|
minTermLength: { default: 3 },
|
28097
|
+
consistentMenuWidth: { type: Boolean, default: !1 },
|
28098
28098
|
placeholder: { default: "" }
|
28099
28099
|
},
|
28100
28100
|
emits: ["update:value"],
|
@@ -28169,7 +28169,6 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
|
|
28169
28169
|
...H2,
|
28170
28170
|
__name: "searchable-product-select",
|
28171
28171
|
props: {
|
28172
|
-
consistentMenuWidth: { type: Boolean, default: !1 },
|
28173
28172
|
wrapContent: { type: Boolean, default: !1 },
|
28174
28173
|
renderLabel: {},
|
28175
28174
|
renderTag: {},
|
@@ -28177,6 +28176,7 @@ const I2 = Object.assign(Object.assign({}, Ot.props), {
|
|
28177
28176
|
clearable: { type: Boolean, default: !1 },
|
28178
28177
|
disabled: { type: Boolean, default: !1 },
|
28179
28178
|
minTermLength: { default: 3 },
|
28179
|
+
consistentMenuWidth: { type: Boolean, default: !1 },
|
28180
28180
|
placeholder: { default: "" },
|
28181
28181
|
searchType: {}
|
28182
28182
|
},
|
@@ -29189,6 +29189,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
|
|
29189
29189
|
value: { default: void 0 },
|
29190
29190
|
clearable: { type: Boolean, default: !1 },
|
29191
29191
|
disabled: { type: Boolean, default: !1 },
|
29192
|
+
consistentMenuWidth: { type: Boolean, default: !0 },
|
29192
29193
|
referenceList: { default: () => [] },
|
29193
29194
|
showEmptyValue: { type: Boolean, default: !1 },
|
29194
29195
|
sortOptionsByLabel: { type: Boolean, default: !1 },
|
@@ -29226,6 +29227,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
|
|
29226
29227
|
ref: "select-component",
|
29227
29228
|
value: a.value,
|
29228
29229
|
clearable: n.clearable,
|
29230
|
+
"consistent-menu-width": f.consistentMenuWidth,
|
29229
29231
|
disabled: f.disabled || l.value.length === 0,
|
29230
29232
|
filterable: f.filterable,
|
29231
29233
|
"max-tag-count": f.maxTagCount,
|
@@ -29233,7 +29235,7 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
|
|
29233
29235
|
options: l.value,
|
29234
29236
|
placeholder: "",
|
29235
29237
|
"onUpdate:value": c
|
29236
|
-
}, null, 8, ["value", "clearable", "disabled", "filterable", "max-tag-count", "multiple", "options"]));
|
29238
|
+
}, null, 8, ["value", "clearable", "consistent-menu-width", "disabled", "filterable", "max-tag-count", "multiple", "options"]));
|
29237
29239
|
}
|
29238
29240
|
}), dk = {}, B5 = /* @__PURE__ */ te({
|
29239
29241
|
...dk,
|
@@ -29334,8 +29336,13 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
|
|
29334
29336
|
disabled: { type: Boolean },
|
29335
29337
|
value: {},
|
29336
29338
|
clearable: { type: Boolean },
|
29337
|
-
field: {}
|
29338
|
-
|
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
|
+
}),
|
29339
29346
|
emits: ["select", "update:value"],
|
29340
29347
|
setup(e, { expose: t, emit: i }) {
|
29341
29348
|
const n = e, s = i, r = H(n.value), o = H(!1), a = H([]), l = N(
|
@@ -29359,14 +29366,9 @@ const nx = Ye({ name: "tabler-truck-loading", render: ix }), sx = { class: "flex
|
|
29359
29366
|
() => u(),
|
29360
29367
|
800
|
29361
29368
|
), u = async () => {
|
29362
|
-
|
29363
|
-
o.value = !
|
29364
|
-
|
29365
|
-
a.value = await pt.getInstance(nl).searchAddresses(r.value);
|
29366
|
-
} finally {
|
29367
|
-
o.value = !1;
|
29368
|
-
}
|
29369
|
-
}
|
29369
|
+
!r.value || r.value.length < 4 || (o.value = !0, a.value = await n.searchDataHandler(r.value, o).finally(() => {
|
29370
|
+
o.value = !1;
|
29371
|
+
}));
|
29370
29372
|
}, h = (g, m) => {
|
29371
29373
|
const v = a.value.find((_) => _.id === g.value) || {};
|
29372
29374
|
return M(
|