@webitel/ui-sdk 2.0.0-1 → 2.0.0-2

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": "2.0.0-1",
3
+ "version": "2.0.0-2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -8,6 +8,7 @@
8
8
  'wt-tooltip__popper',
9
9
  { 'wt-tooltip--contrast__popper': contrast },
10
10
  ]"
11
+ :triggers="['hover', 'focus', 'touch']"
11
12
  class="wt-tooltip"
12
13
  >
13
14
  <slot name="activator"></slot>
@@ -37,6 +38,5 @@ export default {
37
38
  .wt-tooltip {
38
39
  display: inline-block;
39
40
  line-height: 0;
40
- height: fit-content;
41
41
  }
42
42
  </style>
@@ -1,7 +1,6 @@
1
1
  import { shallowMount } from '@vue/test-utils';
2
2
  import WtIconBtn from '../wt-icon-btn.vue';
3
3
  import WtIcon from '../../../atoms/wt-icon/wt-icon.vue';
4
- import WtTooltip from '../../../atoms/wt-tooltip/wt-tooltip.vue';
5
4
 
6
5
  describe('WtIconBtn', () => {
7
6
  it('renders a component', () => {
@@ -1,60 +1,54 @@
1
1
  <template>
2
2
  <aside class="wt-table-actions">
3
3
  <slot></slot>
4
- <wt-tooltip>
4
+ <wt-tooltip v-if="isImport">
5
5
  <template v-slot:activator>
6
6
  <wt-icon-btn
7
- v-if="isImport"
8
7
  icon="download"
9
8
  @click="$emit('input', 'import')"
10
9
  ></wt-icon-btn>
11
10
  </template>
12
11
  {{ $t('reusable.import') }}
13
12
  </wt-tooltip>
14
- <wt-tooltip>
13
+ <wt-tooltip v-if="isExport">
15
14
  <template v-slot:activator>
16
15
  <wt-icon-btn
17
- v-if="isExport"
18
16
  icon="upload"
19
17
  @click="$emit('input', 'export')"
20
18
  ></wt-icon-btn>
21
19
  </template>
22
20
  {{ $t('reusable.export') }}
23
21
  </wt-tooltip>
24
- <wt-tooltip>
22
+ <wt-tooltip v-if="isFilterReset">
25
23
  <template v-slot:activator>
26
24
  <wt-icon-btn
27
- v-if="isFilterReset"
28
25
  icon="clear"
29
26
  @click="$emit('input', 'filterReset')"
30
27
  ></wt-icon-btn>
31
28
  </template>
32
29
  {{ $t('webitelUI.tableActions.filterReset') }}
33
30
  </wt-tooltip>
34
- <wt-tooltip>
31
+ <wt-tooltip v-if="isColumnSelect">
35
32
  <template v-slot:activator>
36
33
  <wt-icon-btn
37
- v-if="isColumnSelect"
38
34
  icon="column-select"
39
35
  @click="$emit('input', 'columnSelect')"
40
36
  ></wt-icon-btn>
41
37
  </template>
42
38
  {{ $t('webitelUI.tableActions.columnSelect') }}
43
39
  </wt-tooltip>
44
- <wt-tooltip>
40
+ <wt-tooltip v-if="isRefresh">
45
41
  <template v-slot:activator>
46
42
  <wt-icon-btn
47
- v-if="isRefresh"
48
43
  icon="refresh"
49
44
  @click="$emit('input', 'refresh')"
50
45
  ></wt-icon-btn>
51
46
  </template>
52
47
  {{ $t('webitelUI.tableActions.refreshTable') }}
53
48
  </wt-tooltip>
54
- <wt-tooltip>
49
+ <wt-tooltip v-if="isSettings">
55
50
  <template v-slot:activator>
56
51
  <wt-icon-btn
57
- v-if="isSettings"
58
52
  :class="{'active': isSettingsActive}"
59
53
  icon="filter"
60
54
  @click="$emit('input', 'settings')"