@webitel/ui-sdk 25.4.18 → 25.4.19

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": "25.04.18",
3
+ "version": "25.04.19",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -272,6 +272,7 @@ const onSecondaryClick = onClick('secondary');
272
272
  @use '../../css/main.scss';
273
273
 
274
274
  .wt-empty {
275
+ box-sizing: border-box;
275
276
  display: flex;
276
277
  align-items: center;
277
278
  flex-direction: column;
@@ -13,6 +13,8 @@ export const WtIconActionIconMappings = Object.freeze({
13
13
  [IconAction.COLUMNS]: 'column-select',
14
14
  [IconAction.VARIABLES]: 'variable-select',
15
15
  [IconAction.CLOSE]: 'close--filled',
16
+ [IconAction.CANCEL]: 'close',
16
17
  [IconAction.CLEAR]: 'clear',
17
18
  [IconAction.ADD_FILTER]: 'add-filter',
19
+ [IconAction.SAVE]: 'save',
18
20
  });
@@ -4,7 +4,8 @@
4
4
  <wt-icon-btn
5
5
  :disabled="disabled"
6
6
  :icon="iconAction.icon"
7
- @click="emit('click')"
7
+ @click="emit('click', $event)"
8
+ @mousedown="emit('mousedown', $event)"
8
9
  />
9
10
  </template>
10
11
  {{ t(iconAction.hint) }}
@@ -33,6 +34,8 @@ const props = defineProps({
33
34
  IconAction.HISTORY,
34
35
  IconAction.DOWNLOAD,
35
36
  IconAction.REFRESH,
37
+ IconAction.SAVE,
38
+ IconAction.CANCEL,
36
39
  ]).includes(v),
37
40
  },
38
41
  disabled: {
@@ -41,7 +44,7 @@ const props = defineProps({
41
44
  },
42
45
  });
43
46
 
44
- const emit = defineEmits(['click']);
47
+ const emit = defineEmits(['click', 'mousedown']);
45
48
 
46
49
  const { t } = useI18n();
47
50
 
@@ -13,9 +13,11 @@ const IconAction = Object.freeze({
13
13
  COLLAPSE: 'collapse',
14
14
  EXPAND: 'expand',
15
15
  CLOSE: 'close',
16
+ CANCEL: 'cancel',
16
17
  VARIABLES: 'variables',
17
18
  CLEAR: 'clear',
18
19
  ADD_FILTER: 'add-filter',
20
+ SAVE: 'save',
19
21
  });
20
22
 
21
23
  export default IconAction;
@@ -418,6 +418,8 @@ export default {
418
418
  [IconAction.CLEAR]: ({ linked }) =>
419
419
  linked('webitelUI.tableActions.filterReset'),
420
420
  [IconAction.ADD_FILTER]: ({ linked }) => linked('reusable.add'),
421
+ [IconAction.SAVE]: ({ linked }) => linked('reusable.save'),
422
+ [IconAction.CANCEL]: ({ linked }) => linked('reusable.cancel'),
421
423
  },
422
424
  },
423
425
  errorPages: {
@@ -416,6 +416,8 @@ export default {
416
416
  [IconAction.CLEAR]: ({ linked }) =>
417
417
  linked('webitelUI.tableActions.filterReset'),
418
418
  [IconAction.ADD_FILTER]: ({ linked }) => linked('reusable.add'),
419
+ [IconAction.SAVE]: ({ linked }) => linked('reusable.save'),
420
+ [IconAction.CANCEL]: ({ linked }) => linked('reusable.cancel'),
419
421
  },
420
422
  },
421
423
  errorPages: {
@@ -416,6 +416,8 @@ export default {
416
416
  [IconAction.CLEAR]: ({ linked }) =>
417
417
  linked('webitelUI.tableActions.filterReset'),
418
418
  [IconAction.ADD_FILTER]: ({ linked }) => linked('reusable.add'),
419
+ [IconAction.SAVE]: ({ linked }) => linked('reusable.save'),
420
+ [IconAction.CANCEL]: ({ linked }) => linked('reusable.cancel'),
419
421
  },
420
422
  },
421
423
  errorPages: {