@webitel/ui-sdk 24.12.46 → 24.12.47

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.12.46",
3
+ "version": "24.12.47",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -148,10 +148,12 @@ const actions = {
148
148
 
149
149
  context.commit('SET', { path: 'dataList', value: items });
150
150
  context.commit('SET', { path: 'isNextPage', value: next });
151
+ context.commit('SET', { path: 'selected', value: [] });
151
152
  } catch (err) {
152
153
  context.commit('SET', { path: 'error', value: err });
153
154
  throw err;
154
155
  } finally {
156
+
155
157
  setTimeout(() => {
156
158
  context.commit('SET', { path: 'isLoading', value: false });
157
159
  }, 100); // why 1s? https://ux.stackexchange.com/a/104782
@@ -240,21 +242,10 @@ const actions = {
240
242
  context.dispatch('api/PATCH_ITEM', payload),
241
243
  DELETE_ITEM_API: (context, payload) =>
242
244
  context.dispatch('api/DELETE_ITEM', payload),
243
-
244
- RESET_TABLE_STATE: async (context) => {
245
- context.commit('RESET_TABLE_STATE');
246
- },
247
- };
248
-
249
- const mutations = {
250
- RESET_TABLE_STATE: (state) => {
251
- Object.assign(state, deepCopy(state._resettable));
252
- },
253
245
  };
254
246
 
255
247
  export default () => ({
256
248
  state: state(),
257
249
  getters,
258
250
  actions,
259
- mutations,
260
251
  });
@@ -58,10 +58,6 @@ export const useTableStore = (namespace) => {
58
58
  return store.dispatch(`${tableNamespace}/SET_SELECTED`, payload);
59
59
  }
60
60
 
61
- function resetState(payload) {
62
- return store.dispatch(`${tableNamespace}/RESET_TABLE_STATE`, payload);
63
- }
64
-
65
61
  return {
66
62
  namespace: tableNamespace,
67
63
 
@@ -78,6 +74,5 @@ export const useTableStore = (namespace) => {
78
74
  deleteData,
79
75
  sort,
80
76
  setSelected,
81
- resetState,
82
77
  };
83
78
  };