@webitel/ui-sdk 24.6.2 → 24.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.6.2",
3
+ "version": "24.6.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <wt-popup
3
3
  class="delete-confirmation-popup"
4
- width="500"
4
+ v-bind="attrs"
5
+ size="sm"
5
6
  @close="close"
6
7
  >
7
8
  <template #title>
@@ -37,7 +38,7 @@
37
38
  </template>
38
39
 
39
40
  <script setup>
40
- import { computed, ref } from 'vue';
41
+ import { computed, ref, useAttrs } from 'vue';
41
42
  import { useI18n } from 'vue-i18n';
42
43
 
43
44
  const props = defineProps({
@@ -55,6 +56,8 @@ const emit = defineEmits([
55
56
  'close',
56
57
  ]);
57
58
 
59
+ const attrs = useAttrs();
60
+
58
61
  const { t } = useI18n();
59
62
 
60
63
  const isDeleting = ref(false);
@@ -5,6 +5,14 @@ export const useTableFilters = (namespace) => {
5
5
 
6
6
  const filtersNamespace = `${namespace}/filters`;
7
7
 
8
+ function subscribe(payload) {
9
+ return store.dispatch(`${filtersNamespace}/SUBSCRIBE`, payload);
10
+ }
11
+
12
+ function flushSubscribers(payload) {
13
+ return store.dispatch(`${filtersNamespace}/FLUSH_SUBSCRIBERS`, payload);
14
+ }
15
+
8
16
  function restoreFilters(payload) {
9
17
  return store.dispatch(`${filtersNamespace}/RESTORE_FILTERS`, payload);
10
18
  }
@@ -12,5 +20,8 @@ export const useTableFilters = (namespace) => {
12
20
  return {
13
21
  namespace: filtersNamespace,
14
22
  restoreFilters,
23
+
24
+ subscribe,
25
+ flushSubscribers,
15
26
  };
16
27
  };