@webitel/ui-sdk 23.12.41 → 23.12.43

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 (144) hide show
  1. package/dist/favicon.ico +0 -0
  2. package/dist/img/sprite/index.js +147 -1
  3. package/dist/plyr.svg +70 -0
  4. package/dist/ui-sdk.css +1 -1
  5. package/dist/ui-sdk.mjs +22672 -0
  6. package/dist/ui-sdk.umd.js +37 -43322
  7. package/package.json +33 -41
  8. package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
  9. package/src/components/transitions/wt-expand-transition.vue +2 -2
  10. package/src/components/wt-app-header/wt-app-header.vue +2 -2
  11. package/src/components/wt-app-header/wt-app-navigator.vue +6 -5
  12. package/src/components/wt-app-header/wt-header-actions.vue +30 -14
  13. package/src/components/wt-avatar/wt-avatar.vue +2 -2
  14. package/src/components/wt-badge/wt-badge.vue +3 -3
  15. package/src/components/wt-button/wt-button.vue +5 -3
  16. package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +4 -4
  17. package/src/components/wt-button-select/wt-button-select.vue +3 -3
  18. package/src/components/wt-checkbox/wt-checkbox.vue +12 -7
  19. package/src/components/wt-chip/wt-chip.vue +6 -3
  20. package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
  21. package/src/components/wt-copy-action/wt-copy-action.vue +6 -6
  22. package/src/components/wt-datepicker/wt-datepicker.vue +14 -12
  23. package/src/components/wt-divider/wt-divider.vue +1 -1
  24. package/src/components/wt-dummy/wt-dummy.vue +6 -2
  25. package/src/components/wt-error-page/wt-error-page.vue +10 -4
  26. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
  27. package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +7 -4
  28. package/src/components/wt-headline/wt-headline.vue +4 -4
  29. package/src/components/wt-headline-nav/wt-headline-nav.vue +11 -4
  30. package/src/components/wt-hint/wt-hint.vue +4 -4
  31. package/src/components/wt-icon/wt-icon.vue +5 -5
  32. package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +2 -2
  33. package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +2 -2
  34. package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +2 -2
  35. package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +2 -2
  36. package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +2 -2
  37. package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +2 -2
  38. package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
  39. package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
  40. package/src/components/wt-indicator/wt-indicator.vue +6 -3
  41. package/src/components/wt-input/wt-input.vue +189 -198
  42. package/src/components/wt-input-info/wt-input-info.vue +2 -2
  43. package/src/components/wt-item-link/wt-item-link.vue +1 -1
  44. package/src/components/wt-label/_variables.scss +4 -2
  45. package/src/components/wt-label/wt-label.vue +5 -18
  46. package/src/components/wt-load-bar/wt-load-bar.vue +5 -2
  47. package/src/components/wt-loader/_internals/wt-loader--md.vue +11 -2
  48. package/src/components/wt-loader/_internals/wt-loader--sm.vue +9 -2
  49. package/src/components/wt-loader/wt-loader.vue +10 -3
  50. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +16 -8
  51. package/src/components/wt-notification/wt-notification.vue +3 -3
  52. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +9 -5
  53. package/src/components/wt-page-header/wt-page-header.vue +7 -8
  54. package/src/components/wt-page-wrapper/wt-page-wrapper.vue +8 -5
  55. package/src/components/wt-pagination/wt-pagination.vue +17 -15
  56. package/src/components/wt-player/wt-player.vue +16 -16
  57. package/src/components/wt-popup/wt-popup.vue +13 -7
  58. package/src/components/wt-progress-bar/wt-progress-bar.vue +11 -7
  59. package/src/components/wt-radio/wt-radio.vue +15 -7
  60. package/src/components/wt-rounded-action/wt-rounded-action.vue +2 -2
  61. package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
  62. package/src/components/wt-search-bar/wt-search-bar.vue +6 -5
  63. package/src/components/wt-select/_multiselect.scss +1 -2
  64. package/src/components/wt-select/wt-select.vue +33 -19
  65. package/src/components/wt-slider/wt-slider.vue +5 -5
  66. package/src/components/wt-status-select/wt-status-select.vue +9 -9
  67. package/src/components/wt-stepper/wt-stepper.vue +8 -6
  68. package/src/components/wt-switcher/wt-switcher.vue +12 -7
  69. package/src/components/wt-table/wt-table.vue +110 -72
  70. package/src/components/wt-table-actions/wt-table-actions.vue +14 -14
  71. package/src/components/wt-table-column-select/wt-table-column-select.vue +28 -26
  72. package/src/components/wt-tabs/wt-tabs.vue +7 -7
  73. package/src/components/wt-tags-input/wt-tags-input.vue +23 -15
  74. package/src/components/wt-textarea/wt-textarea.vue +16 -11
  75. package/src/components/wt-time-input/wt-time-input.vue +8 -5
  76. package/src/components/wt-timepicker/wt-timepicker.vue +20 -16
  77. package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +2 -2
  78. package/src/components/wt-tooltip/wt-tooltip.vue +4 -4
  79. package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +5 -5
  80. package/src/css/styleguide/colors/_colors.scss +9 -8
  81. package/src/css/styleguide/colors/reusable/_text-field.scss +20 -0
  82. package/src/css/styleguide/placeholder/_placeholder.scss +6 -11
  83. package/src/locale/i18n.js +1 -1
  84. package/src/locale/kz/kz.js +74 -78
  85. package/src/mixins/validationMixin/useValidation.js +2 -2
  86. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -4
  87. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +11 -9
  88. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +6 -5
  89. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
  90. package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
  91. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +10 -6
  92. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +8 -8
  93. package/src/modules/AuditForm/components/audit-form-question.vue +8 -8
  94. package/src/modules/AuditForm/components/audit-form.vue +6 -5
  95. package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +4 -4
  96. package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +7 -4
  97. package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +3 -3
  98. package/src/modules/CSVExport/__tests__/CSVExport.spec.js +5 -2
  99. package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +6 -6
  100. package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +13 -6
  101. package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -3
  102. package/src/modules/Filters/components/filter-pagination.vue +1 -1
  103. package/src/modules/Filters/components/filter-table-fields.vue +1 -1
  104. package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +6 -6
  105. package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
  106. package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +4 -4
  107. package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +2 -2
  108. package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +4 -4
  109. package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +2 -2
  110. package/src/modules/QueryFilters/components/abstract-api-filter.vue +2 -2
  111. package/src/modules/QueryFilters/components/abstract-enum-filter.vue +2 -2
  112. package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
  113. package/src/modules/QueryFilters/components/filter-from-to.vue +12 -10
  114. package/src/modules/QueryFilters/components/filter-search.vue +2 -2
  115. package/src/modules/QueryFilters/components/filter-table-fields.vue +7 -7
  116. package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +1 -1
  117. package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +2 -2
  118. package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +2 -2
  119. package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
  120. package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +2 -2
  121. package/src/modules/Userinfo/components/__tests__/auth.spec.js +7 -8
  122. package/src/modules/Userinfo/components/the-auth.vue +7 -4
  123. package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
  124. package/dist/demo.html +0 -1
  125. package/dist/ui-sdk.common.js +0 -43304
  126. package/dist/ui-sdk.common.js.map +0 -1
  127. package/dist/ui-sdk.umd.js.map +0 -1
  128. package/dist/ui-sdk.umd.min.js +0 -35
  129. package/dist/ui-sdk.umd.min.js.map +0 -1
  130. package/src/components/wt-button/Readme.md +0 -23
  131. package/src/components/wt-button-select/Readme.md +0 -13
  132. package/src/components/wt-headline-nav/Readme.md +0 -9
  133. package/src/components/wt-icon/Readme.md +0 -327
  134. package/src/components/wt-icon/docs/cleanup-svg-fill-none.png +0 -0
  135. package/src/components/wt-icon/docs/cleanup-svg-fill.png +0 -0
  136. package/src/components/wt-icon/docs/cleanup-svg-viewbox-correct.png +0 -0
  137. package/src/components/wt-icon/docs/cleanup-svg-viewbox-incorrect.png +0 -0
  138. package/src/components/wt-icon/docs/cleanup-svg-width-height.png +0 -0
  139. package/src/components/wt-icon/docs/svg-icon-code-example.png +0 -0
  140. package/src/components/wt-icon/docs/svg-sprite-in-dom.png +0 -0
  141. package/src/components/wt-icon-btn/Readme.md +0 -10
  142. package/src/components/wt-rounded-action/Readme.md +0 -68
  143. package/src/validators/variableSearchValidator/Readme.md +0 -13
  144. package/src/validators/websocketValidator/Readme.md +0 -7
@@ -17,9 +17,9 @@ and swapping height/width of this component in order to have the correct output.
17
17
  <template>
18
18
  <div
19
19
  :class="{
20
- 'wt-slider--disabled': disabled,
21
- 'wt-slider--vertical': vertical,
22
- }"
20
+ 'wt-slider--disabled': disabled,
21
+ 'wt-slider--vertical': vertical,
22
+ }"
23
23
  :style="{ height: vertical && verticalHeight }"
24
24
  class="wt-slider"
25
25
  >
@@ -38,14 +38,14 @@ and swapping height/width of this component in order to have the correct output.
38
38
  class="wt-slider__slider"
39
39
  type="range"
40
40
  @input="inputHandler"
41
- />
41
+ >
42
42
  </div>
43
43
  </div>
44
44
  </template>
45
45
 
46
46
  <script>
47
47
  export default {
48
- name: 'wt-slider',
48
+ name: 'WtSlider',
49
49
  props: {
50
50
  value: {
51
51
  type: Number,
@@ -8,17 +8,17 @@
8
8
  :searchable="false"
9
9
  @input="inputHandler"
10
10
  >
11
- <template v-slot:singleLabel="{ option }">
11
+ <template #singleLabel="{ option }">
12
12
  <wt-indicator
13
13
  :color="option.color"
14
14
  :text="duration"
15
- ></wt-indicator>
15
+ />
16
16
  </template>
17
- <template v-slot:option="{ option }">
17
+ <template #option="{ option }">
18
18
  <wt-indicator
19
19
  :color="option.color"
20
20
  :text="option.text"
21
- ></wt-indicator>
21
+ />
22
22
  </template>
23
23
  </wt-select>
24
24
  </template>
@@ -29,7 +29,11 @@ import convertDuration from '../../scripts/convertDuration';
29
29
  import StatusOptions from './_internals/StatusOptions.lookup';
30
30
 
31
31
  export default {
32
- name: 'wt-status-select',
32
+ name: 'WtStatusSelect',
33
+ model: {
34
+ prop: 'status',
35
+ event: 'change',
36
+ },
33
37
  props: {
34
38
  status: {
35
39
  type: String,
@@ -48,10 +52,6 @@ export default {
48
52
  // options: ['sm', 'md'],
49
53
  // },
50
54
  },
51
- model: {
52
- prop: 'status',
53
- event: 'change',
54
- },
55
55
  computed: {
56
56
  selectedOption() {
57
57
  return this.statusOptions.find((option) => option.value === this.status);
@@ -5,29 +5,31 @@
5
5
  class="wt-stepper-steps"
6
6
  >
7
7
  <div
8
- class="wt-stepper-steps__wrapper"
9
8
  v-for="({name, completed}, idx) in stepWithCompleted"
9
+ class="wt-stepper-steps__wrapper"
10
10
  >
11
11
  <div
12
12
  v-if="idx !== 0"
13
13
  class="wt-stepper-steps__divider"
14
14
  :class="{ 'wt-stepper-steps__divider--completed': completed }"
15
- ></div>
15
+ />
16
16
  <wt-chip
17
17
  class="wt-stepper-steps__item"
18
18
  :color="!completed && 'secondary'"
19
- >{{ name }}
19
+ >
20
+ {{ name }}
20
21
  </wt-chip>
21
22
  </div>
22
23
  </div>
23
24
  </div>
24
25
 
25
26
  <slot name="description">
26
- <p class="wt-stepper-description">{{ description }}</p>
27
+ <p class="wt-stepper-description">
28
+ {{ description }}
29
+ </p>
27
30
  </slot>
28
31
 
29
- <slot name="main"></slot>
30
-
32
+ <slot name="main" />
31
33
  </div>
32
34
  </template>
33
35
  <script setup>
@@ -19,13 +19,18 @@
19
19
  :disabled="disabled"
20
20
  @change="inputHandler"
21
21
  >
22
- <span class="wt-switcher__checkmark"></span>
22
+ <span class="wt-switcher__checkmark" />
23
23
  <!-- @slot Custom input label -->
24
24
  <slot
25
25
  v-bind="{ label, value, disabled }"
26
26
  name="label"
27
27
  >
28
- <div v-if="label" class="wt-switcher__label">{{ label }}</div>
28
+ <div
29
+ v-if="label"
30
+ class="wt-switcher__label"
31
+ >
32
+ {{ label }}
33
+ </div>
29
34
  </slot>
30
35
  </wt-label>
31
36
  </div>
@@ -33,7 +38,11 @@
33
38
 
34
39
  <script>
35
40
  export default {
36
- name: 'wt-switcher',
41
+ name: 'WtSwitcher',
42
+ model: {
43
+ prop: 'value',
44
+ event: 'change',
45
+ },
37
46
  props: {
38
47
  value: {
39
48
  type: Boolean,
@@ -56,10 +65,6 @@ export default {
56
65
  description: 'Object with props, passed down to wt-label as props',
57
66
  },
58
67
  },
59
- model: {
60
- prop: 'value',
61
- event: 'change',
62
- },
63
68
  methods: {
64
69
  inputHandler() {
65
70
  this.$emit('change', !this.value);
@@ -2,86 +2,124 @@
2
2
  <div class="wt-table">
3
3
  <table class="wt-table__table">
4
4
  <thead class="wt-table__head">
5
- <tr :style="columnsStyle" class="wt-table__tr wt-table__tr__head">
6
- <th v-if="selectable" class="wt-table__th wt-table__th--checkbox">
7
- <wt-checkbox
8
- :selected="isAllSelected"
9
- @change="selectAll"
10
- ></wt-checkbox>
11
- </th>
12
- <th
13
- v-for="(col, key) of dataHeaders"
14
- :key="key"
15
- :class="[
16
- {'wt-table__th--sortable': isColSortable(col)},
17
- `wt-table__th--sort-${col.sort}`,
18
- ]"
19
- class="wt-table__th"
20
- @click="sort(col)"
5
+ <tr
6
+ :style="columnsStyle"
7
+ class="wt-table__tr wt-table__tr__head"
21
8
  >
22
- <div class="wt-table__th__text">{{ col.text }}</div>
23
- <wt-icon
24
- v-if="sortable"
25
- class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
26
- icon="sort-arrow-up"
27
- size="sm"
28
- ></wt-icon>
29
- <wt-icon
30
- v-if="sortable"
31
- class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
32
- icon="sort-arrow-down"
33
- size="sm"
34
- ></wt-icon>
35
- </th>
36
- <th v-if="gridActions" class="wt-table__th__actions">
37
- <slot name="actions-header"></slot>
38
- </th>
39
- </tr>
9
+ <th
10
+ v-if="selectable"
11
+ class="wt-table__th wt-table__th--checkbox"
12
+ >
13
+ <wt-checkbox
14
+ :selected="isAllSelected"
15
+ @change="selectAll"
16
+ />
17
+ </th>
18
+ <th
19
+ v-for="(col, key) of dataHeaders"
20
+ :key="key"
21
+ :class="[
22
+ {'wt-table__th--sortable': isColSortable(col)},
23
+ `wt-table__th--sort-${col.sort}`,
24
+ ]"
25
+ class="wt-table__th"
26
+ @click="sort(col)"
27
+ >
28
+ <div class="wt-table__th__text">
29
+ {{ col.text }}
30
+ </div>
31
+ <wt-icon
32
+ v-if="sortable"
33
+ class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
34
+ icon="sort-arrow-up"
35
+ size="sm"
36
+ />
37
+ <wt-icon
38
+ v-if="sortable"
39
+ class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
40
+ icon="sort-arrow-down"
41
+ size="sm"
42
+ />
43
+ </th>
44
+ <th
45
+ v-if="gridActions"
46
+ class="wt-table__th__actions"
47
+ >
48
+ <slot name="actions-header" />
49
+ </th>
50
+ </tr>
40
51
  </thead>
41
52
 
42
53
  <tbody class="wt-table__body">
43
- <tr
44
- v-for="(row, dataKey) of data"
45
- :key="dataKey"
46
- :class="`wt-table__tr__${row.id || dataKey}`"
47
- :style="columnsStyle"
48
- class="wt-table__tr wt-table__tr__body"
49
- >
50
- <td v-if="selectable" class="wt-table__td wt-table__td--checkbox">
51
- <wt-checkbox
52
- :selected="row._isSelected"
53
- @change="row._isSelected = !row._isSelected"
54
- ></wt-checkbox>
55
- </td>
56
-
57
- <td
58
- v-for="(col, headerKey) of dataHeaders"
59
- :key="headerKey"
60
- class="wt-table__td"
54
+ <tr
55
+ v-for="(row, dataKey) of data"
56
+ :key="dataKey"
57
+ :class="`wt-table__tr__${row.id || dataKey}`"
58
+ :style="columnsStyle"
59
+ class="wt-table__tr wt-table__tr__body"
61
60
  >
62
- <slot :index="dataKey" :item="row" :name="col.value">
63
- <div>{{ row[col.value] }}</div>
64
- </slot>
65
- </td>
61
+ <td
62
+ v-if="selectable"
63
+ class="wt-table__td wt-table__td--checkbox"
64
+ >
65
+ <wt-checkbox
66
+ :selected="row._isSelected"
67
+ @change="row._isSelected = !row._isSelected"
68
+ />
69
+ </td>
66
70
 
67
- <td v-if="gridActions" class="wt-table__td__actions">
68
- <slot :index="dataKey" :item="row" name="actions"></slot>
69
- </td>
70
- </tr>
71
+ <td
72
+ v-for="(col, headerKey) of dataHeaders"
73
+ :key="headerKey"
74
+ class="wt-table__td"
75
+ >
76
+ <slot
77
+ :index="dataKey"
78
+ :item="row"
79
+ :name="col.value"
80
+ >
81
+ <div>{{ row[col.value] }}</div>
82
+ </slot>
83
+ </td>
84
+
85
+ <td
86
+ v-if="gridActions"
87
+ class="wt-table__td__actions"
88
+ >
89
+ <slot
90
+ :index="dataKey"
91
+ :item="row"
92
+ name="actions"
93
+ />
94
+ </td>
95
+ </tr>
71
96
  </tbody>
72
97
 
73
- <tfoot v-if="isTableFooter" class="wt-table__foot">
74
- <tr :style="columnsStyle" class="wt-table__tr wt-table__tr__foot">
75
- <!-- empty checkbox column -->
76
- <th v-if="selectable" class="wt-table__th__checkbox"></th>
77
- <td
78
- v-for="(col, headerKey) of dataHeaders"
79
- :key="headerKey"
80
- class="wt-table__td"
98
+ <tfoot
99
+ v-if="isTableFooter"
100
+ class="wt-table__foot"
101
+ >
102
+ <tr
103
+ :style="columnsStyle"
104
+ class="wt-table__tr wt-table__tr__foot"
81
105
  >
82
- <slot :header="col" :index="headerKey" :name="`${col.value}-footer`"></slot>
83
- </td>
84
- </tr>
106
+ <!-- empty checkbox column -->
107
+ <th
108
+ v-if="selectable"
109
+ class="wt-table__th__checkbox"
110
+ />
111
+ <td
112
+ v-for="(col, headerKey) of dataHeaders"
113
+ :key="headerKey"
114
+ class="wt-table__td"
115
+ >
116
+ <slot
117
+ :header="col"
118
+ :index="headerKey"
119
+ :name="`${col.value}-footer`"
120
+ />
121
+ </td>
122
+ </tr>
85
123
  </tfoot>
86
124
  </table>
87
125
  </div>
@@ -91,7 +129,7 @@
91
129
  import getNextSortOrder from './_internals/getSortOrder';
92
130
 
93
131
  export default {
94
- name: 'wt-table',
132
+ name: 'WtTable',
95
133
  props: {
96
134
  headers: {
97
135
  type: Array,
@@ -1,58 +1,58 @@
1
1
  <template>
2
2
  <aside class="wt-table-actions">
3
- <slot></slot>
3
+ <slot />
4
4
  <wt-tooltip v-if="isImport">
5
- <template v-slot:activator>
5
+ <template #activator>
6
6
  <wt-icon-btn
7
7
  icon="download"
8
8
  @click="$emit('input', 'import')"
9
- ></wt-icon-btn>
9
+ />
10
10
  </template>
11
11
  {{ $t('reusable.import') }}
12
12
  </wt-tooltip>
13
13
  <wt-tooltip v-if="isExport">
14
- <template v-slot:activator>
14
+ <template #activator>
15
15
  <wt-icon-btn
16
16
  icon="upload"
17
17
  @click="$emit('input', 'export')"
18
- ></wt-icon-btn>
18
+ />
19
19
  </template>
20
20
  {{ $t('reusable.export') }}
21
21
  </wt-tooltip>
22
22
  <wt-tooltip v-if="isFilterReset">
23
- <template v-slot:activator>
23
+ <template #activator>
24
24
  <wt-icon-btn
25
25
  icon="clear"
26
26
  @click="$emit('input', 'filterReset')"
27
- ></wt-icon-btn>
27
+ />
28
28
  </template>
29
29
  {{ $t('webitelUI.tableActions.filterReset') }}
30
30
  </wt-tooltip>
31
31
  <wt-tooltip v-if="isColumnSelect">
32
- <template v-slot:activator>
32
+ <template #activator>
33
33
  <wt-icon-btn
34
34
  icon="column-select"
35
35
  @click="$emit('input', 'columnSelect')"
36
- ></wt-icon-btn>
36
+ />
37
37
  </template>
38
38
  {{ $t('webitelUI.tableActions.columnSelect') }}
39
39
  </wt-tooltip>
40
40
  <wt-tooltip v-if="isRefresh">
41
- <template v-slot:activator>
41
+ <template #activator>
42
42
  <wt-icon-btn
43
43
  icon="refresh"
44
44
  @click="$emit('input', 'refresh')"
45
- ></wt-icon-btn>
45
+ />
46
46
  </template>
47
47
  {{ $t('webitelUI.tableActions.refreshTable') }}
48
48
  </wt-tooltip>
49
49
  <wt-tooltip v-if="isSettings">
50
- <template v-slot:activator>
50
+ <template #activator>
51
51
  <wt-icon-btn
52
52
  :class="{'active': isSettingsActive}"
53
53
  icon="filter"
54
54
  @click="$emit('input', 'settings')"
55
- ></wt-icon-btn>
55
+ />
56
56
  </template>
57
57
  {{ $t('webitelUI.tableActions.expandFilters') }}
58
58
  </wt-tooltip>
@@ -61,7 +61,7 @@
61
61
 
62
62
  <script>
63
63
  export default {
64
- name: 'wt-table-actions',
64
+ name: 'WtTableActions',
65
65
  props: {
66
66
  icons: {
67
67
  type: Array,
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <div class="wt-table-column-select">
3
3
  <wt-tooltip>
4
- <template v-slot:activator>
4
+ <template #activator>
5
5
  <wt-icon-btn
6
6
  icon="column-select"
7
7
  @click="openPopup"
8
- ></wt-icon-btn>
8
+ />
9
9
  </template>
10
10
  {{ $t('webitelUI.tableColumnSelect.title') }}
11
11
  </wt-tooltip>
@@ -14,18 +14,18 @@
14
14
  class="wt-table-column-select__popup"
15
15
  @close="close"
16
16
  >
17
- <template v-slot:title>
17
+ <template #title>
18
18
  {{ $t('webitelUI.tableColumnSelect.title') }}
19
19
  </template>
20
- <template v-slot:main>
20
+ <template #main>
21
21
  <div class="wt-table-column-select__popup-list-wrap">
22
22
  <ul
23
23
  class="wt-table-column-select__popup-list"
24
24
  :class="{
25
- 'wt-table-column-select__popup-list--md':
26
- changeableDraft.length > 10 && changeableDraft.length <= 20,
27
- 'wt-table-column-select__popup-list--lg':
28
- changeableDraft.length > 20
25
+ 'wt-table-column-select__popup-list--md':
26
+ changeableDraft.length > 10 && changeableDraft.length <= 20,
27
+ 'wt-table-column-select__popup-list--lg':
28
+ changeableDraft.length > 20
29
29
  }"
30
30
  >
31
31
  <li
@@ -37,20 +37,22 @@
37
37
  <wt-checkbox
38
38
  v-model="column.show"
39
39
  :label="shownColLabel(column)"
40
- ></wt-checkbox>
40
+ />
41
41
  </li>
42
42
  </ul>
43
43
  </div>
44
44
  </template>
45
- <template v-slot:actions>
45
+ <template #actions>
46
46
  <wt-button
47
47
  @click="setShownColumns"
48
- >{{ $t('reusable.add') }}
48
+ >
49
+ {{ $t('reusable.add') }}
49
50
  </wt-button>
50
51
  <wt-button
51
52
  color="secondary"
52
53
  @click="close"
53
- >{{ $t('reusable.cancel') }}
54
+ >
55
+ {{ $t('reusable.cancel') }}
54
56
  </wt-button>
55
57
  </template>
56
58
  </wt-popup>
@@ -61,7 +63,12 @@
61
63
  import deepCopy from 'deep-copy';
62
64
 
63
65
  export default {
64
- name: 'wt-table-column-select',
66
+ name: 'WtTableColumnSelect',
67
+
68
+ model: {
69
+ prop: 'headers',
70
+ event: 'change',
71
+ },
65
72
  props: {
66
73
  headers: {
67
74
  type: Array,
@@ -75,23 +82,10 @@ export default {
75
82
  },
76
83
  },
77
84
 
78
- model: {
79
- prop: 'headers',
80
- event: 'change',
81
- },
82
-
83
85
  data: () => ({
84
86
  draft: [], // headers draft
85
87
  isColumnSelectPopup: false,
86
88
  }),
87
-
88
- watch: {
89
- isColumnSelectPopup: {
90
- handler() {
91
- this.fillHeadersDraft();
92
- },
93
- },
94
- },
95
89
  computed: {
96
90
  changeableDraft() {
97
91
  return this.draft.filter((header) => !this.staticHeaders.includes(header.value)).sort((a, b) => {
@@ -100,6 +94,14 @@ export default {
100
94
  });
101
95
  },
102
96
  },
97
+
98
+ watch: {
99
+ isColumnSelectPopup: {
100
+ handler() {
101
+ this.fillHeadersDraft();
102
+ },
103
+ },
104
+ },
103
105
  methods: {
104
106
  shownColLabel({ text, locale }) {
105
107
  if (!text && locale) {
@@ -26,14 +26,19 @@
26
26
  transform: `translateX(${activeLineOffset}px)`
27
27
  }"
28
28
  class="wt-tab__underline--highlight"
29
- ></div>
29
+ />
30
30
  </div>
31
31
  </nav>
32
32
  </template>
33
33
 
34
34
  <script>
35
35
  export default {
36
- name: 'wt-tabs',
36
+ name: 'WtTabs',
37
+
38
+ model: {
39
+ prop: 'current',
40
+ event: 'change',
41
+ },
37
42
  props: {
38
43
  current: {
39
44
  type: Object,
@@ -45,11 +50,6 @@ export default {
45
50
  },
46
51
  },
47
52
 
48
- model: {
49
- prop: 'current',
50
- event: 'change',
51
- },
52
-
53
53
  data: () => ({
54
54
  activeLineWidth: 0,
55
55
  activeLineOffset: 0,