@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.
@@ -4,7 +4,7 @@
4
4
  "name": "index",
5
5
  "src": "src/index.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-PhXsb9b1yqStnc2WHUct6iK0jZByYR52esEdLo8gvtbHo7ewoIuvJXie6xvr4m18"
7
+ "integrity": "sha384-fj+6KNVGwWIikxg8yyxBF9fW0ZmXR6X0SXryXpqYMZQ2yiVBB+myH17WUh0uBaBa"
8
8
  },
9
9
  "style.css": {
10
10
  "file": "sc-vue-ui-lib.css",
@@ -1,6 +1,6 @@
1
- ## 3.0.5 (2025-10-07)
1
+ ## 3.0.6 (2025-10-08)
2
2
 
3
- ### changed (1 change)
3
+ ### added (1 change)
4
4
 
5
- - [#12396: Доработан компонент списка менеджеров и добавлена возможность...](web_soft/libs/vue/snabcentr-ui-lib@d87f3e751fc59178faad8d39fcb1721876e8cec7) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!113))
5
+ - [#12173: Добавлена функциональность закрытия панели фильтров.](web_soft/libs/vue/snabcentr-ui-lib@d95f3ad2cafae7b5dcd7732526407c0c8e95b1f3) ([merge request](web_soft/libs/vue/snabcentr-ui-lib!114))
6
6
 
@@ -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 = _i("panel-component-ref");
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: (o) => {
33180
- var a;
33181
- (a = s.value) == null || a.scrollIntoView({ behavior: "smooth" }), o && Ki(() => {
33182
- var l, c;
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: (((c = (l = s.value) == null ? void 0 : l.getBoundingClientRect()) == null ? void 0 : c.top) ?? 0) + window.pageYOffset + o,
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
- }), (o, a) => {
33195
- const l = Ke;
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
- o.$slots["preview-panel"] || o.$slots["preview-panel-extra"] || t.isShowPanelButtonVisible ? (w(), F("div", EC, [
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(o.$slots, "show-panel-button", {
33206
+ Se(a.$slots, "show-panel-button", {
33201
33207
  onClickHandler: () => {
33202
33208
  i.value = !0;
33203
33209
  }
33204
33210
  }, () => [
33205
- L(l, {
33211
+ L(c, {
33206
33212
  class: "flex-none sm:px-10 sm:py-4",
33207
- onClick: a[0] || (a[0] = (c) => i.value = !0)
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(o.$slots, "preview-panel")
33223
+ Se(a.$slots, "preview-panel")
33218
33224
  ]),
33219
- o.$slots["preview-panel-extra"] ? (w(), F("div", IC, [
33220
- Se(o.$slots, "preview-panel-extra")
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": a[1] || (a[1] = (c) => i.value = c),
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(o.$slots, "panel-content")
33235
+ Se(a.$slots, "panel-content")
33230
33236
  ]),
33231
33237
  default: M(() => [
33232
- Se(o.$slots, "default")
33238
+ Se(a.$slots, "default")
33233
33239
  ]),
33234
33240
  _: 2
33235
33241
  }, [
33236
- o.$slots["panel-header"] ? {
33242
+ a.$slots["panel-header"] ? {
33237
33243
  name: "drawer-header",
33238
33244
  fn: M(() => [
33239
- Se(o.$slots, "panel-header")
33245
+ Se(a.$slots, "panel-header")
33240
33246
  ]),
33241
33247
  key: "0"
33242
33248
  } : void 0,
33243
- o.$slots["panel-bottom"] ? {
33249
+ a.$slots["panel-bottom"] ? {
33244
33250
  name: "drawer-footer",
33245
33251
  fn: M(() => [
33246
- Se(o.$slots, "panel-bottom")
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
- o.$slots.title ? {
33260
+ a.$slots.title ? {
33255
33261
  name: "title",
33256
33262
  fn: M(() => [
33257
- Se(o.$slots, "title")
33263
+ Se(a.$slots, "title")
33258
33264
  ]),
33259
33265
  key: "0"
33260
33266
  } : void 0,
33261
- o.$slots["title-buttons"] ? {
33267
+ a.$slots["title-buttons"] ? {
33262
33268
  name: "title-buttons",
33263
33269
  fn: M(() => [
33264
- Se(o.$slots, "title-buttons")
33270
+ Se(a.$slots, "title-buttons")
33265
33271
  ]),
33266
33272
  key: "1"
33267
33273
  } : void 0,
33268
- o.$slots["title-extra"] ? {
33274
+ a.$slots["title-extra"] ? {
33269
33275
  name: "title-extra",
33270
33276
  fn: M(() => [
33271
- Se(o.$slots, "title-extra")
33277
+ Se(a.$slots, "title-extra")
33272
33278
  ]),
33273
33279
  key: "2"
33274
33280
  } : void 0