@snabcentr/vue-ui-lib 3.0.5 → 3.0.6
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 -3
- package/dist/sc-vue-ui-lib.js +35 -29
- 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/page/page-with-sliding-panel.vue.d.ts +4 -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-fj+6KNVGwWIikxg8yyxBF9fW0ZmXR6X0SXryXpqYMZQ2yiVBB+myH17WUh0uBaBa"
|
|
8
8
|
},
|
|
9
9
|
"style.css": {
|
|
10
10
|
"file": "sc-vue-ui-lib.css",
|
package/dist/release_notes.tmp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## 3.0.
|
|
1
|
+
## 3.0.6 (2025-10-08)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### added (1 change)
|
|
4
4
|
|
|
5
|
-
- [#
|
|
5
|
+
- [#12173: Добавлена функциональность закрытия панели фильтров.](web_soft/libs/vue/snabcentr-ui-lib@d95f3ad2cafae7b5dcd7732526407c0c8e95b1f3) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!114))
|
|
6
6
|
|
package/dist/sc-vue-ui-lib.js
CHANGED
|
@@ -33169,20 +33169,22 @@ const $k = Ne({ name: "tabler-truck-loading", render: Tk }), Rk = { class: "flex
|
|
|
33169
33169
|
setup(t, { expose: e }) {
|
|
33170
33170
|
const i = N(!1), n = () => {
|
|
33171
33171
|
i.value = !0;
|
|
33172
|
-
}, s =
|
|
33172
|
+
}, s = () => {
|
|
33173
|
+
i.value = !1;
|
|
33174
|
+
}, r = _i("panel-component-ref");
|
|
33173
33175
|
return e({
|
|
33174
33176
|
/**
|
|
33175
33177
|
* Выполняет прокрутку страницы до начала блока панели.
|
|
33176
33178
|
*
|
|
33177
33179
|
* @param scrollOffset Смещение, на которое дополнительно необходимо выполнить прокрутку.
|
|
33178
33180
|
*/
|
|
33179
|
-
scrollToTopOfPanel: (
|
|
33180
|
-
var
|
|
33181
|
-
(
|
|
33182
|
-
var
|
|
33181
|
+
scrollToTopOfPanel: (a) => {
|
|
33182
|
+
var l;
|
|
33183
|
+
(l = r.value) == null || l.scrollIntoView({ behavior: "smooth" }), a && Ki(() => {
|
|
33184
|
+
var c, u;
|
|
33183
33185
|
window.scrollTo({
|
|
33184
33186
|
// eslint-disable-next-line vue/max-len
|
|
33185
|
-
top: (((
|
|
33187
|
+
top: (((u = (c = r.value) == null ? void 0 : c.getBoundingClientRect()) == null ? void 0 : u.top) ?? 0) + window.pageYOffset + a,
|
|
33186
33188
|
behavior: "smooth"
|
|
33187
33189
|
});
|
|
33188
33190
|
});
|
|
@@ -33190,21 +33192,25 @@ const $k = Ne({ name: "tabler-truck-loading", render: Tk }), Rk = { class: "flex
|
|
|
33190
33192
|
/**
|
|
33191
33193
|
* Отображает панель.
|
|
33192
33194
|
*/
|
|
33193
|
-
showPanel: n
|
|
33194
|
-
|
|
33195
|
-
|
|
33195
|
+
showPanel: n,
|
|
33196
|
+
/**
|
|
33197
|
+
* Закрывает панель.
|
|
33198
|
+
*/
|
|
33199
|
+
closePanel: s
|
|
33200
|
+
}), (a, l) => {
|
|
33201
|
+
const c = Ke;
|
|
33196
33202
|
return w(), te(PC, { title: t.title }, gn({
|
|
33197
33203
|
default: M(() => [
|
|
33198
|
-
|
|
33204
|
+
a.$slots["preview-panel"] || a.$slots["preview-panel-extra"] || t.isShowPanelButtonVisible ? (w(), F("div", EC, [
|
|
33199
33205
|
t.isShowPanelButtonVisible ? (w(), F("div", OC, [
|
|
33200
|
-
Se(
|
|
33206
|
+
Se(a.$slots, "show-panel-button", {
|
|
33201
33207
|
onClickHandler: () => {
|
|
33202
33208
|
i.value = !0;
|
|
33203
33209
|
}
|
|
33204
33210
|
}, () => [
|
|
33205
|
-
L(
|
|
33211
|
+
L(c, {
|
|
33206
33212
|
class: "flex-none sm:px-10 sm:py-4",
|
|
33207
|
-
onClick:
|
|
33213
|
+
onClick: l[0] || (l[0] = (u) => i.value = !0)
|
|
33208
33214
|
}, {
|
|
33209
33215
|
default: M(() => [
|
|
33210
33216
|
re(X(t.showPanelButtonText), 1)
|
|
@@ -33214,36 +33220,36 @@ const $k = Ne({ name: "tabler-truck-loading", render: Tk }), Rk = { class: "flex
|
|
|
33214
33220
|
])
|
|
33215
33221
|
])) : W("", !0),
|
|
33216
33222
|
$("div", zC, [
|
|
33217
|
-
Se(
|
|
33223
|
+
Se(a.$slots, "preview-panel")
|
|
33218
33224
|
]),
|
|
33219
|
-
|
|
33220
|
-
Se(
|
|
33225
|
+
a.$slots["preview-panel-extra"] ? (w(), F("div", IC, [
|
|
33226
|
+
Se(a.$slots, "preview-panel-extra")
|
|
33221
33227
|
])) : W("", !0)
|
|
33222
33228
|
], 512)) : W("", !0),
|
|
33223
33229
|
L(BC, {
|
|
33224
33230
|
"show-drawer": i.value,
|
|
33225
|
-
"onUpdate:showDrawer":
|
|
33231
|
+
"onUpdate:showDrawer": l[1] || (l[1] = (u) => i.value = u),
|
|
33226
33232
|
title: t.panelTitle
|
|
33227
33233
|
}, gn({
|
|
33228
33234
|
"drawer-content": M(() => [
|
|
33229
|
-
Se(
|
|
33235
|
+
Se(a.$slots, "panel-content")
|
|
33230
33236
|
]),
|
|
33231
33237
|
default: M(() => [
|
|
33232
|
-
Se(
|
|
33238
|
+
Se(a.$slots, "default")
|
|
33233
33239
|
]),
|
|
33234
33240
|
_: 2
|
|
33235
33241
|
}, [
|
|
33236
|
-
|
|
33242
|
+
a.$slots["panel-header"] ? {
|
|
33237
33243
|
name: "drawer-header",
|
|
33238
33244
|
fn: M(() => [
|
|
33239
|
-
Se(
|
|
33245
|
+
Se(a.$slots, "panel-header")
|
|
33240
33246
|
]),
|
|
33241
33247
|
key: "0"
|
|
33242
33248
|
} : void 0,
|
|
33243
|
-
|
|
33249
|
+
a.$slots["panel-bottom"] ? {
|
|
33244
33250
|
name: "drawer-footer",
|
|
33245
33251
|
fn: M(() => [
|
|
33246
|
-
Se(
|
|
33252
|
+
Se(a.$slots, "panel-bottom")
|
|
33247
33253
|
]),
|
|
33248
33254
|
key: "1"
|
|
33249
33255
|
} : void 0
|
|
@@ -33251,24 +33257,24 @@ const $k = Ne({ name: "tabler-truck-loading", render: Tk }), Rk = { class: "flex
|
|
|
33251
33257
|
]),
|
|
33252
33258
|
_: 2
|
|
33253
33259
|
}, [
|
|
33254
|
-
|
|
33260
|
+
a.$slots.title ? {
|
|
33255
33261
|
name: "title",
|
|
33256
33262
|
fn: M(() => [
|
|
33257
|
-
Se(
|
|
33263
|
+
Se(a.$slots, "title")
|
|
33258
33264
|
]),
|
|
33259
33265
|
key: "0"
|
|
33260
33266
|
} : void 0,
|
|
33261
|
-
|
|
33267
|
+
a.$slots["title-buttons"] ? {
|
|
33262
33268
|
name: "title-buttons",
|
|
33263
33269
|
fn: M(() => [
|
|
33264
|
-
Se(
|
|
33270
|
+
Se(a.$slots, "title-buttons")
|
|
33265
33271
|
]),
|
|
33266
33272
|
key: "1"
|
|
33267
33273
|
} : void 0,
|
|
33268
|
-
|
|
33274
|
+
a.$slots["title-extra"] ? {
|
|
33269
33275
|
name: "title-extra",
|
|
33270
33276
|
fn: M(() => [
|
|
33271
|
-
Se(
|
|
33277
|
+
Se(a.$slots, "title-extra")
|
|
33272
33278
|
]),
|
|
33273
33279
|
key: "2"
|
|
33274
33280
|
} : void 0
|