@webitel/ui-sdk 23.12.41 → 23.12.44

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 (155) hide show
  1. package/dist/favicon.ico +0 -0
  2. package/dist/img/sprite/index.js +148 -1
  3. package/dist/img/sprite/variable-select.svg +9 -0
  4. package/dist/plyr.svg +70 -0
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.mjs +22671 -0
  7. package/dist/ui-sdk.umd.js +37 -43322
  8. package/package.json +33 -41
  9. package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
  10. package/src/components/transitions/wt-expand-transition.vue +2 -2
  11. package/src/components/wt-app-header/wt-app-header.vue +2 -2
  12. package/src/components/wt-app-header/wt-app-navigator.vue +6 -5
  13. package/src/components/wt-app-header/wt-header-actions.vue +30 -14
  14. package/src/components/wt-avatar/wt-avatar.vue +2 -2
  15. package/src/components/wt-badge/wt-badge.vue +3 -3
  16. package/src/components/wt-button/wt-button.vue +5 -3
  17. package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +4 -4
  18. package/src/components/wt-button-select/wt-button-select.vue +3 -3
  19. package/src/components/wt-checkbox/wt-checkbox.vue +15 -48
  20. package/src/components/wt-chip/_variables.scss +25 -2
  21. package/src/components/wt-chip/wt-chip.scss +20 -17
  22. package/src/components/wt-chip/wt-chip.vue +10 -5
  23. package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
  24. package/src/components/wt-copy-action/wt-copy-action.vue +6 -6
  25. package/src/components/wt-datepicker/wt-datepicker.vue +14 -12
  26. package/src/components/wt-divider/wt-divider.vue +1 -1
  27. package/src/components/wt-dummy/wt-dummy.vue +6 -2
  28. package/src/components/wt-error-page/wt-error-page.vue +10 -4
  29. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
  30. package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +7 -4
  31. package/src/components/wt-headline/wt-headline.vue +4 -4
  32. package/src/components/wt-headline-nav/wt-headline-nav.vue +11 -4
  33. package/src/components/wt-hint/wt-hint.vue +4 -4
  34. package/src/components/wt-icon/wt-icon.vue +5 -5
  35. package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +2 -2
  36. package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +2 -2
  37. package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +2 -2
  38. package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +2 -2
  39. package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +2 -2
  40. package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +2 -2
  41. package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
  42. package/src/components/wt-icon-btn/wt-icon-btn.vue +3 -2
  43. package/src/components/wt-indicator/wt-indicator.vue +6 -3
  44. package/src/components/wt-input/wt-input.vue +190 -199
  45. package/src/components/wt-input-info/wt-input-info.vue +2 -2
  46. package/src/components/wt-item-link/wt-item-link.vue +1 -1
  47. package/src/components/wt-label/_variables.scss +4 -2
  48. package/src/components/wt-label/wt-label.vue +5 -18
  49. package/src/components/wt-load-bar/wt-load-bar.vue +5 -2
  50. package/src/components/wt-loader/_internals/wt-loader--md.vue +11 -2
  51. package/src/components/wt-loader/_internals/wt-loader--sm.vue +9 -2
  52. package/src/components/wt-loader/wt-loader.vue +10 -3
  53. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +16 -8
  54. package/src/components/wt-notification/wt-notification.vue +3 -3
  55. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +9 -5
  56. package/src/components/wt-page-header/wt-page-header.vue +7 -8
  57. package/src/components/wt-page-wrapper/wt-page-wrapper.vue +8 -5
  58. package/src/components/wt-pagination/wt-pagination.vue +17 -15
  59. package/src/components/wt-player/wt-player.vue +16 -16
  60. package/src/components/wt-popup/_variables.scss +4 -3
  61. package/src/components/wt-popup/wt-popup.vue +18 -10
  62. package/src/components/wt-progress-bar/wt-progress-bar.vue +11 -7
  63. package/src/components/wt-radio/wt-radio.vue +15 -7
  64. package/src/components/wt-rounded-action/wt-rounded-action.vue +2 -2
  65. package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
  66. package/src/components/wt-search-bar/wt-search-bar.vue +6 -5
  67. package/src/components/wt-select/_multiselect.scss +48 -53
  68. package/src/components/wt-select/_variables.scss +0 -3
  69. package/src/components/wt-select/wt-select.vue +41 -40
  70. package/src/components/wt-slider/wt-slider.vue +5 -5
  71. package/src/components/wt-status-select/wt-status-select.vue +9 -9
  72. package/src/components/wt-stepper/wt-stepper.vue +8 -6
  73. package/src/components/wt-switcher/_variables.scss +30 -7
  74. package/src/components/wt-switcher/wt-switcher.vue +56 -35
  75. package/src/components/wt-table/_variables.scss +8 -5
  76. package/src/components/wt-table/wt-table.vue +123 -90
  77. package/src/components/wt-table-actions/wt-table-actions.vue +14 -14
  78. package/src/components/wt-table-column-select/wt-table-column-select.vue +33 -28
  79. package/src/components/wt-tabs/_variables.scss +4 -4
  80. package/src/components/wt-tabs/wt-tabs.vue +15 -13
  81. package/src/components/wt-tags-input/wt-tags-input.vue +26 -35
  82. package/src/components/wt-textarea/wt-textarea.vue +21 -33
  83. package/src/components/wt-time-input/wt-time-input.vue +24 -54
  84. package/src/components/wt-timepicker/wt-timepicker.vue +19 -27
  85. package/src/components/wt-tooltip/__tests__/WtTooltip.spec.js +0 -10
  86. package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +2 -2
  87. package/src/components/wt-tooltip/_variables.scss +2 -4
  88. package/src/components/wt-tooltip/wt-tooltip.vue +6 -18
  89. package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +5 -5
  90. package/src/css/styleguide/colors/_colors.scss +15 -14
  91. package/src/css/styleguide/colors/reusable/_text-field.scss +36 -0
  92. package/src/css/styleguide/placeholder/_placeholder.scss +9 -9
  93. package/src/locale/i18n.js +1 -1
  94. package/src/locale/kz/kz.js +74 -78
  95. package/src/mixins/validationMixin/useValidation.js +2 -2
  96. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -4
  97. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +11 -9
  98. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +6 -5
  99. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
  100. package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
  101. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +10 -6
  102. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +8 -8
  103. package/src/modules/AuditForm/components/audit-form-question.vue +8 -8
  104. package/src/modules/AuditForm/components/audit-form.vue +6 -5
  105. package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +4 -4
  106. package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +7 -4
  107. package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +3 -3
  108. package/src/modules/CSVExport/__tests__/CSVExport.spec.js +5 -2
  109. package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +6 -6
  110. package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +13 -6
  111. package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -3
  112. package/src/modules/Filters/components/filter-pagination.vue +1 -1
  113. package/src/modules/Filters/components/filter-table-fields.vue +1 -1
  114. package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +6 -6
  115. package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
  116. package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +4 -4
  117. package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +2 -2
  118. package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +4 -4
  119. package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +2 -2
  120. package/src/modules/QueryFilters/components/abstract-api-filter.vue +2 -2
  121. package/src/modules/QueryFilters/components/abstract-enum-filter.vue +2 -2
  122. package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
  123. package/src/modules/QueryFilters/components/filter-from-to.vue +12 -10
  124. package/src/modules/QueryFilters/components/filter-search.vue +2 -2
  125. package/src/modules/QueryFilters/components/filter-table-fields.vue +7 -7
  126. package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +1 -1
  127. package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +2 -2
  128. package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +2 -2
  129. package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
  130. package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +2 -2
  131. package/src/modules/Userinfo/components/__tests__/auth.spec.js +7 -8
  132. package/src/modules/Userinfo/components/the-auth.vue +7 -4
  133. package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
  134. package/dist/demo.html +0 -1
  135. package/dist/ui-sdk.common.js +0 -43304
  136. package/dist/ui-sdk.common.js.map +0 -1
  137. package/dist/ui-sdk.umd.js.map +0 -1
  138. package/dist/ui-sdk.umd.min.js +0 -35
  139. package/dist/ui-sdk.umd.min.js.map +0 -1
  140. package/src/components/wt-button/Readme.md +0 -23
  141. package/src/components/wt-button-select/Readme.md +0 -13
  142. package/src/components/wt-headline-nav/Readme.md +0 -9
  143. package/src/components/wt-icon/Readme.md +0 -327
  144. package/src/components/wt-icon/docs/cleanup-svg-fill-none.png +0 -0
  145. package/src/components/wt-icon/docs/cleanup-svg-fill.png +0 -0
  146. package/src/components/wt-icon/docs/cleanup-svg-viewbox-correct.png +0 -0
  147. package/src/components/wt-icon/docs/cleanup-svg-viewbox-incorrect.png +0 -0
  148. package/src/components/wt-icon/docs/cleanup-svg-width-height.png +0 -0
  149. package/src/components/wt-icon/docs/svg-icon-code-example.png +0 -0
  150. package/src/components/wt-icon/docs/svg-sprite-in-dom.png +0 -0
  151. package/src/components/wt-icon-btn/Readme.md +0 -10
  152. package/src/components/wt-rounded-action/Readme.md +0 -68
  153. package/src/components/wt-tags-input/_variables.scss +0 -24
  154. package/src/validators/variableSearchValidator/Readme.md +0 -13
  155. package/src/validators/websocketValidator/Readme.md +0 -7
@@ -1,31 +1,37 @@
1
1
  <template>
2
2
  <div
3
- class="wt-switcher"
4
3
  :class="{
5
4
  'wt-switcher--off': !value,
6
5
  'wt-switcher--on': value,
7
6
  'wt-switcher--disabled': disabled,
8
7
  }"
8
+ class="wt-switcher"
9
9
  >
10
10
  <wt-label
11
- v-bind="labelProps"
12
- class="wt-switcher__wrapper"
13
11
  :class="{'wt-switcher__wrapper--label-left': labelLeft}"
12
+ :disabled="disabled"
13
+ class="wt-switcher__wrapper"
14
+ v-bind="labelProps"
14
15
  >
15
16
  <input
16
- class="wt-switcher__input"
17
- type="checkbox"
18
17
  :checked="value"
19
18
  :disabled="disabled"
19
+ class="wt-switcher__input"
20
+ type="checkbox"
20
21
  @change="inputHandler"
21
22
  >
22
- <span class="wt-switcher__checkmark"></span>
23
+ <span class="wt-switcher__checkmark" />
23
24
  <!-- @slot Custom input label -->
24
25
  <slot
25
- v-bind="{ label, value, disabled }"
26
26
  name="label"
27
+ v-bind="{ label, value, disabled }"
27
28
  >
28
- <div v-if="label" class="wt-switcher__label">{{ label }}</div>
29
+ <div
30
+ v-if="label"
31
+ class="wt-switcher__label"
32
+ >
33
+ {{ label }}
34
+ </div>
29
35
  </slot>
30
36
  </wt-label>
31
37
  </div>
@@ -33,7 +39,11 @@
33
39
 
34
40
  <script>
35
41
  export default {
36
- name: 'wt-switcher',
42
+ name: 'WtSwitcher',
43
+ model: {
44
+ prop: 'value',
45
+ event: 'change',
46
+ },
37
47
  props: {
38
48
  value: {
39
49
  type: Boolean,
@@ -56,10 +66,9 @@ export default {
56
66
  description: 'Object with props, passed down to wt-label as props',
57
67
  },
58
68
  },
59
- model: {
60
- prop: 'value',
61
- event: 'change',
62
- },
69
+ emits: [
70
+ 'change',
71
+ ],
63
72
  methods: {
64
73
  inputHandler() {
65
74
  this.$emit('change', !this.value);
@@ -88,8 +97,8 @@ export default {
88
97
  position: relative;
89
98
  display: flex;
90
99
  align-items: center;
91
- user-select: none;
92
100
  cursor: pointer;
101
+ user-select: none;
93
102
 
94
103
  &.wt-switcher__wrapper--label-left {
95
104
  flex-direction: row-reverse;
@@ -101,12 +110,8 @@ export default {
101
110
  transition: var(--transition);
102
111
 
103
112
  .wt-switcher__wrapper--label-left & {
104
- margin-left: 0;
105
113
  margin-right: var(--switcher-icon-margin);
106
- }
107
-
108
- .wt-switcher:hover & {
109
- color: var(--form-label--hover-color);
114
+ margin-left: 0;
110
115
  }
111
116
  }
112
117
 
@@ -114,8 +119,8 @@ export default {
114
119
  position: absolute;
115
120
  width: 0;
116
121
  height: 0;
117
- opacity: 0;
118
122
  pointer-events: none;
123
+ opacity: 0;
119
124
  }
120
125
 
121
126
  .wt-switcher__checkmark {
@@ -124,68 +129,84 @@ export default {
124
129
  flex: 0 0 var(--switcher-width);
125
130
  width: var(--switcher-width);
126
131
  height: var(--switcher-height);
127
- border-radius: var(--switcher-border-radius);
128
132
  transition: var(--transition);
133
+ border-radius: var(--switcher-border-radius);
129
134
 
130
135
  &:before {
131
- content: '';
132
136
  position: absolute;
133
137
  bottom: var(--switcher-cicle-margin);
134
138
  left: var(--switcher-cicle-margin);
135
- height: var(--switcher-cicle-size);
136
139
  width: var(--switcher-cicle-size);
137
- background: var(--switcher-circle-bg-color);
138
- border-radius: 50%;
140
+ height: var(--switcher-cicle-size);
141
+ content: '';
139
142
  transition: var(--transition);
143
+ border-radius: 50%;
140
144
  }
141
145
  }
142
146
 
143
147
  .wt-switcher--off {
144
148
  .wt-switcher__checkmark {
145
- background: var(--switcher-bg-color--off);
149
+ background: var(--wt-switcher-background-color-off);
150
+
151
+ &:before {
152
+ background: var(--wt-switcher-circle-background-color-off);
153
+ }
146
154
  }
147
155
 
148
156
  &:hover {
149
157
  .wt-switcher__checkmark {
150
- background: var(--switcher-bg-color--off--hover);
158
+ background: var(--wt-switcher-background-color-off-hover);
159
+
160
+ &:before {
161
+ background: var(--wt-switcher-circle-background-color-off-hover);
162
+ }
151
163
  }
152
164
  }
153
165
 
154
166
  &.wt-switcher--disabled {
155
167
  .wt-switcher__checkmark {
156
- background: var(--switcher-bg-color--off--disabled);
168
+ background: var(--wt-switcher-background-color-off-disabled);
169
+
170
+ &:before {
171
+ background: var(--wt-switcher-circle-background-color-off-disabled);
172
+ }
157
173
  }
158
174
  }
159
175
  }
160
176
 
161
177
  .wt-switcher--on {
162
178
  .wt-switcher__checkmark {
163
- background: var(--switcher-bg-color--on);
179
+ background: var(--wt-switcher-background-color-on);
164
180
 
165
181
  /* Show the indicator (dot/circle) when checked */
166
182
  &:before {
167
183
  transform: translateX(var(--switcher-cicle-translateX));
184
+ background: var(--wt-switcher-circle-background-color-on);
168
185
  }
169
186
  }
170
187
 
171
188
  &:hover {
172
189
  .wt-switcher__checkmark {
173
- background: var(--switcher-bg-color--on--hover);
190
+ background: var(--wt-switcher-background-color-on-hover);
191
+
192
+ &:before {
193
+ background: var(--wt-switcher-circle-background-color-on-hover);
194
+ }
174
195
  }
175
196
  }
176
197
 
177
198
  &.wt-switcher--disabled {
178
199
  .wt-switcher__checkmark {
179
- background: var(--switcher-bg-color--on--disabled);
200
+ background: var(--wt-switcher-background-color-on-disabled);
201
+
202
+ &:before {
203
+ background: var(--wt-switcher-circle-background-color-on-disabled);
204
+ }
180
205
  }
181
206
  }
182
207
  }
183
208
 
184
209
  .wt-switcher--disabled {
185
210
  pointer-events: none;
186
-
187
- .wt-switcher__label {
188
- color: var(--form-label--disabled-color);
189
- }
190
211
  }
191
212
  </style>
@@ -4,13 +4,16 @@
4
4
 
5
5
  --table-head-sort-arrow-margin: var(--spacing-xs);
6
6
  --table-head-border: 1px solid;
7
- --table-head-border-color: var(--secondary-color);
8
7
 
9
8
  --table-min-height: 24px; // 24px icon size or body-1 lh
10
9
  --table-column-gap: var(--spacing-xs);
11
10
  --table-row-padding: var(--spacing-xs);
12
11
 
13
- --table-primary-color: var(--main-color);
14
- --table--hover-color: var(--accent-secondary-color);
15
- --table-secondary-color: var(--secondary-color-50); // zebra
16
- }
12
+ --wt-table-head-border-color: var(--grey-lighten-1);
13
+ --wt-table-primary-color: var(--content-wrapper-color);
14
+ --wt-table-zebra-color: var(--dp-18-surface-color);
15
+ }
16
+
17
+ :root.theme--dark {
18
+ --table-head-border-color: var(--grey-darken-1);
19
+ }
@@ -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,
@@ -191,31 +229,26 @@ export default {
191
229
  border-collapse: collapse;
192
230
  }
193
231
 
194
- .wt-table__head {
195
- display: block;
196
- box-sizing: border-box;
197
- background: var(--table-primary-color);
198
- border: var(--table-head-border);
199
- border-color: var(--table-head-border-color);
200
- border-radius: var(--border-radius);
201
- }
202
-
203
- //.wt-table__head {
204
- // display: block;
205
- //}
206
-
207
232
  .wt-table__tr {
208
233
  display: grid;
209
234
  padding: var(--table-row-padding);
210
235
  transition: var(--transition);
211
236
  grid-template-columns: repeat(auto-fit, var(--table-col-min-width));
212
237
  grid-column-gap: var(--table-column-gap);
238
+ background: var(--wt-table-primary-color);
213
239
 
214
240
  &:nth-child(2n) {
215
- background: var(--table-secondary-color);
241
+ background: var(--wt-table-zebra-color);
216
242
  }
217
243
  }
218
244
 
245
+ .wt-table__tr__head {
246
+ border: var(--table-head-border);
247
+ border-color: var(--wt-table-head-border-color);
248
+ border-radius: var(--border-radius);
249
+ background: transparent;
250
+ }
251
+
219
252
  .wt-table__th,
220
253
  .wt-table__td {
221
254
  @extend %typo-body-1;
@@ -243,8 +276,8 @@ export default {
243
276
  &--sortable {
244
277
  cursor: pointer;
245
278
 
246
- &:hover ::v-deep .wt-icon__icon {
247
- fill: var(--icon-color--hover);
279
+ &:hover :deep .wt-icon__icon {
280
+ fill: var(--icon-active-color);
248
281
  }
249
282
  }
250
283
 
@@ -263,7 +296,7 @@ export default {
263
296
  }
264
297
 
265
298
  .wt-table__foot {
266
- border-color: var(--table-head-border-color);
267
- border-top: var(--table-head-border);
299
+ border-color: var(--wt-table-head-border-color);
300
+ border-top: var(--wt-table-head-border-color);
268
301
  }
269
302
  </style>
@@ -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,