@webitel/ui-sdk 24.12.45 → 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.45",
3
+ "version": "24.12.47",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -0,0 +1,5 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Cases">
3
+ <path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M2 5C2 3.34315 3.34315 2 5 2H9.67544C9.99789 2 10.3182 2.05198 10.6241 2.15395L13.0083 2.94868C13.1103 2.98267 13.2171 3 13.3246 3H19C20.6569 3 22 4.34315 22 6V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5ZM20 6V11.1707C19.6872 11.0602 19.3506 11 19 11V9C19 7.89543 18.1046 7 17 7H7C5.89543 7 5 7.89543 5 9V11C4.64936 11 4.31278 11.0602 4 11.1707V5C4 4.44772 4.44772 4 5 4H9.67544C9.78293 4 9.88971 4.01733 9.99167 4.05132L12.3759 4.84605C12.6818 4.94802 13.0021 5 13.3246 5H19C19.5523 5 20 5.44772 20 6ZM5 13C4.44772 13 4 13.4477 4 14V19C4 19.5523 4.44772 20 5 20H19C19.5523 20 20 19.5523 20 19V14C20 13.4477 19.5523 13 19 13H5ZM17 11H7V9H17L17 11Z"/>
4
+ </g>
5
+ </svg>
@@ -39,6 +39,7 @@ import callRingingFilled from './call-ringing--filled.svg';
39
39
  import callTransfer from './call-transfer.svg';
40
40
  import callTransferFilled from './call-transfer--filled.svg';
41
41
  import caseAuthor from './case-author.svg';
42
+ import cases from './cases.svg';
42
43
  import chat from './chat.svg';
43
44
  import chatFilled from './chat--filled.svg';
44
45
  import chatEmoji from './chat-emoji.svg';
@@ -238,6 +239,7 @@ export default objCamelToKebab({
238
239
  'call-transfer--filled': callTransferFilled,
239
240
 
240
241
  caseAuthor,
242
+ cases,
241
243
  chat,
242
244
  'chat--filled': chatFilled,
243
245
  chatEmoji,
@@ -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
  };