@webitel/ui-sdk 25.8.31 → 25.8.33

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.
Files changed (70) hide show
  1. package/dist/ui-sdk.css +1 -1
  2. package/dist/ui-sdk.js +6982 -7018
  3. package/dist/ui-sdk.umd.cjs +559 -559
  4. package/package.json +10 -1
  5. package/src/components/index.js +3 -0
  6. package/src/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue +67 -0
  7. package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +7 -10
  8. package/src/components/wt-app-header/wt-app-navigator.vue +7 -11
  9. package/src/components/wt-app-header/wt-header-actions.vue +8 -12
  10. package/src/components/wt-context-menu/wt-context-menu.vue +40 -36
  11. package/src/components/wt-copy-action/wt-copy-action.vue +7 -11
  12. package/src/components/wt-icon-action/wt-icon-action.vue +8 -12
  13. package/src/components/wt-label/wt-label.vue +2 -1
  14. package/src/components/wt-pagination/wt-pagination.vue +15 -22
  15. package/src/components/wt-popover/wt-popover.vue +36 -18
  16. package/src/components/wt-search-bar/wt-search-bar.vue +5 -9
  17. package/src/components/wt-select/wt-select.vue +16 -15
  18. package/src/components/wt-table-actions/wt-table-actions.vue +43 -55
  19. package/src/components/wt-table-column-select/wt-table-column-select.vue +6 -9
  20. package/src/locale/en/en.js +24 -3
  21. package/src/locale/es/es.js +23 -6
  22. package/src/locale/kz/kz.js +324 -294
  23. package/src/locale/pl/pl.js +23 -6
  24. package/src/locale/ro/ro.js +23 -6
  25. package/src/locale/ru/ru.js +28 -4
  26. package/src/locale/uk/uk.js +28 -4
  27. package/src/locale/uz/uz.js +23 -6
  28. package/src/locale/vi/vi.js +23 -6
  29. package/src/mixins/validationMixin/validationMixin.js +5 -3
  30. package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +5 -5
  31. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +12 -19
  32. package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options-write-row.vue +7 -10
  33. package/src/modules/Userinfo/v2/enums/GlobalActions/GlobalActions.ts +1 -0
  34. package/src/utils/displayText.ts +3 -0
  35. package/src/utils/index.ts +1 -0
  36. package/src/validations/config/errors/customZodErrorsHandler.ts +19 -2
  37. package/types/components/index.d.ts +3 -1
  38. package/types/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue.d.ts +38 -0
  39. package/types/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue.d.ts +2 -2
  40. package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +2 -2
  41. package/types/components/wt-checkbox/wt-checkbox.vue.d.ts +5 -5
  42. package/types/components/wt-context-menu/wt-context-menu.vue.d.ts +4 -1
  43. package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +2 -2
  44. package/types/components/wt-input/wt-input.vue.d.ts +2 -2
  45. package/types/components/wt-item-link/wt-item-link.vue.d.ts +2 -2
  46. package/types/components/wt-player/wt-player.vue.d.ts +2 -2
  47. package/types/components/wt-popover/wt-popover.vue.d.ts +32 -15
  48. package/types/components/wt-radio/wt-radio.vue.d.ts +6 -6
  49. package/types/components/wt-search-bar/wt-search-bar.vue.d.ts +6 -6
  50. package/types/components/wt-slider/wt-slider.vue.d.ts +2 -2
  51. package/types/components/wt-textarea/wt-textarea.vue.d.ts +2 -2
  52. package/types/components/wt-time-input/wt-time-input.vue.d.ts +1 -1
  53. package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +1 -1
  54. package/types/components/wt-tooltip/_internals/wt-tooltip-floating.vue.d.ts +1 -1
  55. package/types/components/wt-tooltip/wt-tooltip.vue.d.ts +2 -2
  56. package/types/locale/en/en.d.ts +9 -3
  57. package/types/locale/es/es.d.ts +11 -5
  58. package/types/locale/i18n.d.ts +102 -36
  59. package/types/locale/index.d.ts +103 -37
  60. package/types/locale/kz/kz.d.ts +14 -0
  61. package/types/locale/pl/pl.d.ts +11 -5
  62. package/types/locale/ro/ro.d.ts +11 -5
  63. package/types/locale/ru/ru.d.ts +12 -4
  64. package/types/locale/uk/uk.d.ts +12 -4
  65. package/types/locale/uz/uz.d.ts +11 -5
  66. package/types/locale/vi/vi.d.ts +11 -5
  67. package/types/modules/Userinfo/v2/enums/GlobalActions/GlobalActions.d.ts +1 -0
  68. package/types/scripts/sortQueryAdapters.d.ts +1 -1
  69. package/types/utils/displayText.d.ts +2 -0
  70. package/types/utils/index.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.8.31",
3
+ "version": "25.8.33",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
@@ -37,6 +37,7 @@
37
37
  "src/enums/*",
38
38
  "src/mixins/*",
39
39
  "src/scripts/*",
40
+ "src/utils/*",
40
41
  "src/validations/*",
41
42
  "src/modules/*",
42
43
  "src/plugins/*",
@@ -196,6 +197,14 @@
196
197
  "types": "./types/scripts*",
197
198
  "import": "./src/scripts*"
198
199
  },
200
+ "./utils*": {
201
+ "types": "./types/utils*",
202
+ "import": "./src/utils*"
203
+ },
204
+ "./utils": {
205
+ "types": "./types/utils/index.d.ts",
206
+ "import": "./src/utils/index.ts"
207
+ },
199
208
  "./api*": {
200
209
  "types": "./types/api*",
201
210
  "import": "./src/api*"
@@ -1,3 +1,4 @@
1
+ import WtDisplayChipItems from './on-demand/wt-display-chip-items/wt-display-chip-items.vue';
1
2
  import WtNavigationMenu from './on-demand/wt-navigation-menu/components/wt-navigation-menu.vue';
2
3
  import WtSelectionPopup from './on-demand/wt-selection-popup/wt-selection-popup.vue';
3
4
  import WtStartPage from './on-demand/wt-start-page/components/wt-start-page.vue';
@@ -141,6 +142,7 @@ const Components = {
141
142
  WtNavigationMenu,
142
143
  WtStartPage,
143
144
  WtSelectionPopup,
145
+ WtDisplayChipItems,
144
146
  };
145
147
 
146
148
  export {
@@ -157,6 +159,7 @@ export {
157
159
  WtContextMenu,
158
160
  WtCopyAction,
159
161
  WtDatepicker,
162
+ WtDisplayChipItems,
160
163
  WtDivider,
161
164
  WtDualPanel,
162
165
  WtDummy,
@@ -0,0 +1,67 @@
1
+ <template>
2
+ <div class="wt-display-chip-items">
3
+ <p v-if="props.title">{{ title }}:</p>
4
+
5
+ <slot v-if="!props.hideFirstItem" name="first-item">
6
+ {{ displayText(firstItemName) }}
7
+ </slot>
8
+
9
+ <wt-popover>
10
+ <template #activator="{ toggle }">
11
+ <slot name="activator" :toggle="toggle">
12
+ <div v-if="displayList.length" @click="toggle">
13
+ <wt-chip>
14
+ +{{ displayList.length }}
15
+ </wt-chip>
16
+ </div>
17
+ </slot>
18
+ </template>
19
+
20
+ <template #default>
21
+ <slot name="items" :items="displayList">
22
+ <div
23
+ v-for="({ name, id }) of displayList"
24
+ :key="id"
25
+ >
26
+ {{ name }}
27
+ </div>
28
+ </slot>
29
+ </template>
30
+ </wt-popover>
31
+ </div>
32
+ </template>
33
+
34
+ <script setup lang="ts">
35
+ import { WtChip,WtPopover } from '@webitel/ui-sdk/components';
36
+ import { computed } from 'vue';
37
+
38
+ import { displayText, EMPTY_SYMBOL } from '../../../utils';
39
+
40
+ interface Props {
41
+ hideFirstItem?: boolean
42
+ useEmptySymbol?: boolean
43
+ title?: string
44
+ items: unknown[]
45
+ }
46
+ const props = defineProps<Props>()
47
+
48
+ const firstItemName = computed(() => {
49
+ if(!props.items?.length) return props.useEmptySymbol ? EMPTY_SYMBOL : '';
50
+
51
+ return props.items[0]?.name
52
+ });
53
+
54
+ const displayList = computed(() => {
55
+ if(!props.items?.length) return [];
56
+
57
+ return !props.hideFirstItem ? props.items.slice(1) : props.items
58
+ })
59
+ </script>
60
+
61
+ <style lang="scss" scoped>
62
+ .wt-display-chip-items {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: var(--spacing-xs);
66
+ }
67
+ </style>
@@ -36,16 +36,13 @@
36
36
  >
37
37
  {{ option.description }}
38
38
  </p>
39
- <wt-tooltip>
40
- <template #activator>
41
- <wt-icon-btn
42
- v-if="option.description"
43
- color="info"
44
- icon="rounded-info"
45
- />
46
- </template>
47
- {{ option.description }}
48
- </wt-tooltip>
39
+
40
+ <wt-icon-btn
41
+ v-if="option.description"
42
+ v-tooltip="option.description"
43
+ color="info"
44
+ icon="rounded-info"
45
+ />
49
46
  </slot>
50
47
  </li>
51
48
  </ul>
@@ -3,17 +3,13 @@
3
3
  v-clickaway="close"
4
4
  class="wt-app-navigator"
5
5
  >
6
- <wt-tooltip>
7
- <template #activator>
8
- <wt-icon-btn
9
- :class="{ active: isOpened }"
10
- class="wt-app-navigator__btn"
11
- icon="app-navigator"
12
- @click="isOpened = !isOpened"
13
- />
14
- </template>
15
- {{ $t('webitelUI.appNavigator.title') }}
16
- </wt-tooltip>
6
+ <wt-icon-btn
7
+ v-tooltip="$t('webitelUI.appNavigator.title')"
8
+ :class="{ active: isOpened }"
9
+ class="wt-app-navigator__btn"
10
+ icon="app-navigator"
11
+ @click="isOpened = !isOpened"
12
+ />
17
13
 
18
14
  <transition name="fade">
19
15
  <nav
@@ -1,17 +1,13 @@
1
1
  <template>
2
2
  <div class="wt-header-actions">
3
- <wt-tooltip>
4
- <template #activator>
5
- <wt-icon-btn
6
- v-clickaway="close"
7
- :class="{ active: isOpened }"
8
- class="wt-header-actions__btn"
9
- icon="account"
10
- @click="isOpened = !isOpened"
11
- />
12
- </template>
13
- {{ $t('webitelUI.headerActions.account') }}
14
- </wt-tooltip>
3
+ <wt-icon-btn
4
+ v-clickaway="close"
5
+ v-tooltip="$t('webitelUI.headerActions.account')"
6
+ :class="{ active: isOpened }"
7
+ class="wt-header-actions__btn"
8
+ icon="account"
9
+ @click="isOpened = !isOpened"
10
+ />
15
11
 
16
12
  <transition name="fade">
17
13
  <section
@@ -1,43 +1,47 @@
1
1
  <template>
2
- <wt-tooltip
3
- :triggers="tooltipTriggers"
4
- :visible="visible"
5
- :disabled="disabled"
6
- class="wt-context-menu"
7
- placement="bottom-end"
8
- popper-class="wt-context-menu__floating-wrapper"
9
- @update:visible="visible = $event"
10
- >
11
- <template #activator>
12
- <slot name="activator" />
13
- </template>
14
- <template #default="{ hide }">
15
- <ul
16
- :style="`width: ${width}; min-width: ${minWidth}; max-width: ${maxWidth};`"
17
- class="wt-context-menu__menu"
18
- >
19
- <li
20
- v-for="(option, index) of options"
21
- :key="index"
22
- class="wt-context-menu__option-wrapper"
2
+ <div class="wt-context-menu">
3
+ <wt-popover
4
+ :visible="visible"
5
+ :disabled="disabled"
6
+ unstyled
7
+ placement="bottom-end"
8
+ class="wt-context-menu__floating-wrapper"
9
+ >
10
+ <template #activator="{ toggle, show }">
11
+ <slot
12
+ name="activator"
13
+ v-bind="{ toggle, show }"
14
+ />
15
+ </template>
16
+
17
+ <template #default="{ hide }">
18
+ <ul
19
+ :style="`width: ${width}; min-width: ${minWidth}; max-width: ${maxWidth};`"
20
+ class="wt-context-menu__menu"
23
21
  >
24
- <a
25
- :class="[{ 'wt-context-menu__option--disabled': option.disabled }]"
26
- class="wt-context-menu__option"
27
- href="#"
28
- @click.prevent="handleOptionClick({ option, index, hide })"
22
+ <li
23
+ v-for="(option, index) of options"
24
+ :key="index"
25
+ class="wt-context-menu__option-wrapper"
29
26
  >
30
- <slot
31
- name="option"
32
- v-bind="option"
27
+ <a
28
+ :class="[{ 'wt-context-menu__option--disabled': option.disabled }]"
29
+ class="wt-context-menu__option"
30
+ href="#"
31
+ @click.prevent="handleOptionClick({ option, index, hide })"
33
32
  >
34
- {{ option.text || option }}
35
- </slot>
36
- </a>
37
- </li>
38
- </ul>
39
- </template>
40
- </wt-tooltip>
33
+ <slot
34
+ name="option"
35
+ v-bind="option"
36
+ >
37
+ {{ option.text || option }}
38
+ </slot>
39
+ </a>
40
+ </li>
41
+ </ul>
42
+ </template>
43
+ </wt-popover>
44
+ </div>
41
45
  </template>
42
46
 
43
47
  <script setup>
@@ -1,15 +1,11 @@
1
1
  <template>
2
- <wt-tooltip class="wt-copy-action">
3
- <template #activator>
4
- <wt-icon-btn
5
- :icon="copied ? 'done' : 'copy'"
6
- class="copy-action"
7
- v-bind="$attrs"
8
- @click="copy"
9
- />
10
- </template>
11
- {{ copied ? copiedTooltip : copyTooltip }}
12
- </wt-tooltip>
2
+ <wt-icon-btn
3
+ v-tooltip="copied ? copiedTooltip : copyTooltip"
4
+ :icon="copied ? 'done' : 'copy'"
5
+ class="copy-action"
6
+ v-bind="$attrs"
7
+ @click="copy"
8
+ />
13
9
  </template>
14
10
 
15
11
  <script>
@@ -1,16 +1,12 @@
1
1
  <template>
2
- <wt-tooltip>
3
- <template #activator>
4
- <wt-icon-btn
5
- :disabled="disabled"
6
- :icon="iconAction.icon"
7
- :size="size"
8
- @click="emit('click', $event)"
9
- @mousedown="emit('mousedown', $event)"
10
- />
11
- </template>
12
- {{ t(iconAction.hint) }}
13
- </wt-tooltip>
2
+ <wt-icon-btn
3
+ v-tooltip="t(iconAction.hint)"
4
+ :disabled="disabled"
5
+ :icon="iconAction.icon"
6
+ :size="size"
7
+ @click="emit('click', $event)"
8
+ @mousedown="emit('mousedown', $event)"
9
+ />
14
10
  </template>
15
11
 
16
12
  <script setup>
@@ -8,7 +8,8 @@
8
8
  class="wt-label"
9
9
  >
10
10
  <slot />
11
- <wt-hint v-if="hint">{{ hint }} </wt-hint>
11
+
12
+ <div v-if="hint" v-tooltip="hint" />
12
13
  </label>
13
14
  </template>
14
15
 
@@ -14,28 +14,21 @@
14
14
  />
15
15
  </div>
16
16
  <div class="wt-pagination__page-controls">
17
- <wt-tooltip>
18
- <template #activator>
19
- <wt-icon-btn
20
- :disabled="!prev"
21
- class="wt-pagination__page-control"
22
- icon="arrow-left"
23
- @click="goPrev"
24
- />
25
- </template>
26
- {{ $t('webitelUI.pagination.prev') }}
27
- </wt-tooltip>
28
- <wt-tooltip>
29
- <template #activator>
30
- <wt-icon-btn
31
- :disabled="!next"
32
- class="wt-pagination__page-control"
33
- icon="arrow-right"
34
- @click="goNext"
35
- />
36
- </template>
37
- {{ $t('webitelUI.pagination.next') }}
38
- </wt-tooltip>
17
+ <wt-icon-btn
18
+ v-tooltip="$t('webitelUI.pagination.prev')"
19
+ :disabled="!prev"
20
+ class="wt-pagination__page-control"
21
+ icon="arrow-left"
22
+ @click="goPrev"
23
+ />
24
+
25
+ <wt-icon-btn
26
+ v-tooltip="$t('webitelUI.pagination.next')"
27
+ :disabled="!next"
28
+ class="wt-pagination__page-control"
29
+ icon="arrow-right"
30
+ @click="goNext"
31
+ />
39
32
  </div>
40
33
  </footer>
41
34
  </template>
@@ -1,19 +1,24 @@
1
1
  <template>
2
- <p-popover
3
- ref="innerPopover"
4
- v-bind="attrs"
5
- :append-to="appendTo"
6
- :base-z-index="baseZIndex"
7
- :auto-z-index="autoZIndex"
8
- :breakpoints="breakpoints"
9
- :dt="dt"
10
- :pt="pt"
11
- :pt-options="ptOptions"
12
- :close-on-escape="closeOnEscape"
13
- v-on="attrs"
14
- >
15
- <slot />
16
- </p-popover>
2
+ <div>
3
+ <slot name="activator" v-bind="{ show, toggle, hide }" />
4
+
5
+ <p-popover
6
+ ref="innerPopover"
7
+ v-bind="attrs"
8
+ :append-to="appendTo"
9
+ :base-z-index="baseZIndex"
10
+ :auto-z-index="autoZIndex"
11
+ :breakpoints="breakpoints"
12
+ :dt="dt"
13
+ :pt="pt"
14
+ :pt-options="ptOptions"
15
+ :close-on-escape="closeOnEscape"
16
+ :unstyled="unstyled"
17
+ v-on="attrs"
18
+ >
19
+ <slot name="default" v-bind="{ hide, toggle }" />
20
+ </p-popover>
21
+ </div>
17
22
  </template>
18
23
 
19
24
  <script setup lang="ts">
@@ -32,13 +37,26 @@ withDefaults(defineProps<PopoverProps>(), {
32
37
  pt: null,
33
38
  ptOptions: null,
34
39
  closeOnEscape: true,
40
+ unstyled: false
35
41
  });
36
42
  defineEmits<PopoverEmitsOptions>();
37
43
 
44
+ const toggle = (event?: Event) => {
45
+ innerPopover.value?.toggle(event);
46
+ };
47
+
48
+ const show = (event?: Event) => {
49
+ innerPopover.value?.show(event);
50
+ };
51
+
52
+ const hide = (event?: Event) => {
53
+ innerPopover.value?.hide(event);
54
+ };
55
+
38
56
  // Expose useful Popover methods
39
57
  defineExpose({
40
- toggle: (...args) => innerPopover.value?.toggle?.(...args),
41
- show: (...args) => innerPopover.value?.show?.(...args),
42
- hide: (...args) => innerPopover.value?.hide?.(...args),
58
+ toggle,
59
+ show,
60
+ hide,
43
61
  });
44
62
  </script>
@@ -46,15 +46,11 @@
46
46
  @click="updateSearchMode"
47
47
  >
48
48
  <template #activator>
49
- <wt-tooltip>
50
- <template #activator>
51
- <wt-icon-btn
52
- :color="invalid ? 'error' : 'default'"
53
- icon="filter"
54
- />
55
- </template>
56
- {{ $t('webitelUI.searchBar.settingsHint') }}
57
- </wt-tooltip>
49
+ <wt-icon-btn
50
+ v-tooltip="$t('webitelUI.searchBar.settingsHint')"
51
+ :color="invalid ? 'error' : 'default'"
52
+ icon="filter"
53
+ />
58
54
  </template>
59
55
  <template #option="{ value, text }">
60
56
  <wt-radio
@@ -52,23 +52,24 @@
52
52
  v-if="!isOpened"
53
53
  #limit
54
54
  >
55
- <wt-tooltip
56
- :triggers="['click']"
57
- class="multiselect__limit"
58
- >
59
- <template #activator>
60
- <wt-chip> +{{ value.length - 1 }}</wt-chip>
55
+ <wt-popover class="multiselect__limit">
56
+ <template #activator="{ toggle }">
57
+ <div @click.stop.prevent="toggle">
58
+ <wt-chip> +{{ value.length - 1 }}</wt-chip>
59
+ </div>
61
60
  </template>
62
61
 
63
- <div>
64
- <p
65
- v-for="(option, idx) of value.slice(1)"
66
- :key="idx"
67
- >
68
- {{ getOptionLabel({ option, optionLabel }) }}
69
- </p>
70
- </div>
71
- </wt-tooltip>
62
+ <template #default>
63
+ <div>
64
+ <p
65
+ v-for="(option, idx) of value.slice(1)"
66
+ :key="idx"
67
+ >
68
+ {{ getOptionLabel({ option, optionLabel }) }}
69
+ </p>
70
+ </div>
71
+ </template>
72
+ </wt-popover>
72
73
  </template>
73
74
 
74
75
  <!-- Slot that is used for all selected options (tags)-->
@@ -1,61 +1,49 @@
1
1
  <template>
2
2
  <aside class="wt-table-actions">
3
3
  <slot />
4
- <wt-tooltip v-if="isImport">
5
- <template #activator>
6
- <wt-icon-btn
7
- icon="download"
8
- @click="$emit('input', 'import')"
9
- />
10
- </template>
11
- {{ $t('reusable.import') }}
12
- </wt-tooltip>
13
- <wt-tooltip v-if="isExport">
14
- <template #activator>
15
- <wt-icon-btn
16
- icon="upload"
17
- @click="$emit('input', 'export')"
18
- />
19
- </template>
20
- {{ $t('reusable.export') }}
21
- </wt-tooltip>
22
- <wt-tooltip v-if="isFilterReset">
23
- <template #activator>
24
- <wt-icon-btn
25
- icon="clear"
26
- @click="$emit('input', 'filterReset')"
27
- />
28
- </template>
29
- {{ $t('webitelUI.tableActions.filterReset') }}
30
- </wt-tooltip>
31
- <wt-tooltip v-if="isColumnSelect">
32
- <template #activator>
33
- <wt-icon-btn
34
- icon="column-select"
35
- @click="$emit('input', 'columnSelect')"
36
- />
37
- </template>
38
- {{ $t('webitelUI.tableActions.columnSelect') }}
39
- </wt-tooltip>
40
- <wt-tooltip v-if="isRefresh">
41
- <template #activator>
42
- <wt-icon-btn
43
- icon="refresh"
44
- @click="$emit('input', 'refresh')"
45
- />
46
- </template>
47
- {{ $t('webitelUI.tableActions.refreshTable') }}
48
- </wt-tooltip>
49
- <wt-tooltip v-if="isSettings">
50
- <template #activator>
51
- <wt-icon-btn
52
- :class="{ active: isSettingsActive }"
53
- icon="filter"
54
- @click="$emit('input', 'settings')"
55
- />
56
- </template>
57
- {{ $t('webitelUI.tableActions.expandFilters') }}
58
- </wt-tooltip>
4
+
5
+ <wt-icon-btn
6
+ v-if="isImport"
7
+ v-tooltip="$t('reusable.import')"
8
+ icon="download"
9
+ @click="$emit('input', 'import')"
10
+ />
11
+
12
+ <wt-icon-btn
13
+ v-if="isExport"
14
+ v-tooltip="$t('reusable.export')"
15
+ icon="upload"
16
+ @click="$emit('input', 'export')"
17
+ />
18
+
19
+ <wt-icon-btn
20
+ v-if="isFilterReset"
21
+ v-tooltip="$t('webitelUI.tableActions.filterReset')"
22
+ icon="clear"
23
+ @click="$emit('input', 'filterReset')"
24
+ />
25
+
26
+ <wt-icon-btn
27
+ v-if="isColumnSelect"
28
+ v-tooltip="$t('webitelUI.tableActions.columnSelect')"
29
+ icon="column-select"
30
+ @click="$emit('input', 'columnSelect')"
31
+ />
32
+
33
+ <wt-icon-btn
34
+ v-if="isRefresh"
35
+ v-tooltip="$t('webitelUI.tableActions.refreshTable')"
36
+ icon="refresh"
37
+ @click="$emit('input', 'refresh')"
38
+ />
39
+
40
+ <wt-icon-btn
41
+ v-if="isSettings"
42
+ v-tooltip="$t('webitelUI.tableActions.expandFilters')"
43
+ :class="{ active: isSettingsActive }"
44
+ icon="filter"
45
+ @click="$emit('input', 'settings')"
46
+ />
59
47
  </aside>
60
48
  </template>
61
49
 
@@ -1,14 +1,11 @@
1
1
  <template>
2
2
  <div class="wt-table-column-select">
3
- <wt-tooltip>
4
- <template #activator>
5
- <wt-icon-btn
6
- icon="column-select"
7
- @click="openPopup"
8
- />
9
- </template>
10
- {{ $t('webitelUI.tableColumnSelect.title') }}
11
- </wt-tooltip>
3
+ <wt-icon-btn
4
+ v-tooltip="$t('webitelUI.tableColumnSelect.title')"
5
+ icon="column-select"
6
+ @click="openPopup"
7
+ />
8
+
12
9
  <wt-popup
13
10
  :shown="isColumnSelectPopup"
14
11
  class="wt-table-column-select__popup"