@webitel/ui-sdk 0.1.3-vue3 → 0.1.4-vite

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 (374) hide show
  1. package/README.md +1 -1
  2. package/dist/img/sprite/arrow-mix.svg +5 -0
  3. package/dist/img/sprite/azure.svg +19 -0
  4. package/dist/img/sprite/email.svg +3 -0
  5. package/dist/img/sprite/index.js +1 -1
  6. package/dist/img/sprite/meta.svg +17 -0
  7. package/dist/img/sprite/options.svg +5 -0
  8. package/dist/img/sprite/role.svg +3 -0
  9. package/dist/img/sprite/scorecard.svg +4 -0
  10. package/dist/img/sprite/user.svg +3 -0
  11. package/dist/ui-sdk.common.js +36397 -11631
  12. package/dist/ui-sdk.common.js.map +1 -1
  13. package/dist/ui-sdk.css +1 -1
  14. package/dist/ui-sdk.umd.js +36402 -11636
  15. package/dist/ui-sdk.umd.js.map +1 -1
  16. package/dist/ui-sdk.umd.min.js +27 -4
  17. package/dist/ui-sdk.umd.min.js.map +1 -1
  18. package/package.json +24 -8
  19. package/src/api/axios/generateInstance.js +25 -0
  20. package/src/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.js +6 -0
  21. package/src/api/defaults/getDefaultGetParams/getDefaultGetParams.js +9 -0
  22. package/src/api/defaults/index.js +7 -0
  23. package/src/api/interceptors/request/updateToken.interceptor.js +10 -0
  24. package/src/api/interceptors/response/handleUnauthorized.interceptor.js +12 -0
  25. package/src/api/transformers/applyTransform.js +8 -0
  26. package/src/api/transformers/camelToSnake/camelToSnake.transformer.js +4 -0
  27. package/src/api/transformers/generateUrl/generateUrl.transformer.js +13 -0
  28. package/src/api/transformers/index.js +23 -0
  29. package/src/api/transformers/log/log.transformer.js +6 -0
  30. package/src/api/transformers/merge/merge.transformer.js +5 -0
  31. package/src/api/transformers/mergeEach/mergeEach.transformer.js +8 -0
  32. package/src/api/transformers/notify/notify.transformer.js +32 -0
  33. package/src/api/transformers/sanitize/sanitize.transformer.js +12 -0
  34. package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.js +4 -0
  35. package/src/api/transformers/starToSearch/starToSearch.transformer.js +12 -0
  36. package/src/components/index.js +63 -55
  37. package/src/components/on-demand/wt-cc-agent-status-timers/__tests__/wt-cc-agent-status-timers.spec.js +25 -0
  38. package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +48 -0
  39. package/src/components/transitions/wt-expand-transition.vue +41 -39
  40. package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppNavigator.spec.js +2 -2
  41. package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtHeaderActions.spec.js +1 -1
  42. package/src/{css/components/organisms → components}/wt-app-header/_variables.scss +3 -2
  43. package/src/components/wt-app-header/wt-app-header.vue +29 -0
  44. package/src/components/{organisms/wt-app-header → wt-app-header}/wt-app-navigator.vue +69 -40
  45. package/src/components/wt-avatar/_variables.scss +32 -0
  46. package/src/components/wt-avatar/wt-avatar.vue +187 -0
  47. package/src/components/{atoms/wt-badge → wt-badge}/wt-badge.vue +20 -13
  48. package/src/components/wt-button/Readme.md +23 -0
  49. package/src/components/{atoms/wt-button → wt-button}/__tests__/WtButton.spec.js +1 -1
  50. package/src/components/wt-button/_variables.scss +41 -0
  51. package/src/components/wt-button/wt-button.vue +205 -0
  52. package/src/components/wt-button-select/Readme.md +13 -0
  53. package/src/components/{molecules/wt-button-select → wt-button-select}/__tests__/WtButtonSelect.spec.js +16 -5
  54. package/src/components/wt-button-select/_variables.scss +7 -0
  55. package/src/components/wt-button-select/wt-button-select.vue +130 -0
  56. package/src/components/{molecules/wt-checkbox → wt-checkbox}/__tests__/WtCheckbox.spec.js +6 -6
  57. package/src/components/wt-checkbox/wt-checkbox.vue +191 -0
  58. package/src/{css/components/atoms → components}/wt-chip/wt-chip.scss +1 -1
  59. package/src/components/wt-chip/wt-chip.vue +24 -0
  60. package/src/components/{atoms/wt-context-menu → wt-context-menu}/__tests__/WtContextMenu.spec.js +1 -1
  61. package/src/{css/components/atoms → components}/wt-context-menu/_variables.scss +2 -0
  62. package/src/components/{atoms/wt-context-menu → wt-context-menu}/wt-context-menu.vue +68 -42
  63. package/src/components/{molecules/wt-datepicker → wt-datepicker}/__tests__/WtDatepicker.spec.js +4 -4
  64. package/src/components/wt-datepicker/_variables.scss +56 -0
  65. package/src/components/wt-datepicker/wt-datepicker.vue +240 -0
  66. package/src/components/wt-divider/wt-divider.vue +30 -0
  67. package/src/components/wt-dummy/__tests__/WtDummy.spec.js +9 -0
  68. package/src/components/wt-dummy/wt-dummy.vue +73 -0
  69. package/src/components/{organisms/wt-error-page → wt-error-page}/__tests__/wt-error-page.spec.js +3 -3
  70. package/src/components/{organisms/wt-error-page → wt-error-page}/wt-error-page.vue +2 -2
  71. package/src/components/wt-expansion-panel/__tests__/WtExpansionPanel.spec.js +9 -0
  72. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +67 -0
  73. package/src/components/{organisms/wt-filters-panel-wrapper → wt-filters-panel-wrapper}/wt-filters-panel-wrapper.vue +6 -6
  74. package/src/components/{organisms/wt-headline → wt-headline}/wt-headline.vue +5 -0
  75. package/src/components/wt-headline-nav/Readme.md +9 -0
  76. package/src/components/{organisms/wt-headline-nav → wt-headline-nav}/__tests__/wt-headline-nav.spec.js +1 -1
  77. package/src/components/wt-headline-nav/_variables.scss +8 -0
  78. package/src/components/{organisms/wt-headline-nav → wt-headline-nav}/wt-headline-nav.vue +41 -29
  79. package/src/components/{molecules/wt-hint → wt-hint}/wt-hint.vue +7 -1
  80. package/src/components/wt-icon/Readme.md +327 -0
  81. package/src/components/{atoms/wt-icon → wt-icon}/__tests__/WtIcon.spec.js +2 -2
  82. package/src/components/wt-icon/_variables.scss +31 -0
  83. package/src/components/wt-icon/docs/cleanup-svg-fill-none.png +0 -0
  84. package/src/components/wt-icon/docs/cleanup-svg-fill.png +0 -0
  85. package/src/components/wt-icon/docs/cleanup-svg-viewbox-correct.png +0 -0
  86. package/src/components/wt-icon/docs/cleanup-svg-viewbox-incorrect.png +0 -0
  87. package/src/components/wt-icon/docs/cleanup-svg-width-height.png +0 -0
  88. package/src/components/wt-icon/docs/svg-icon-code-example.png +0 -0
  89. package/src/components/wt-icon/docs/svg-sprite-in-dom.png +0 -0
  90. package/src/components/wt-icon/wt-icon.vue +172 -0
  91. package/src/components/wt-icon-action/__tests__/WtIconAction.spec.js +9 -0
  92. package/src/components/wt-icon-action/_internals/__tests__/WtAddIconAction.spec.js +9 -0
  93. package/src/components/wt-icon-action/_internals/__tests__/WtDeleteIconAction.spec.js +9 -0
  94. package/src/components/wt-icon-action/_internals/__tests__/WtDownloadIconAction.spec.js +9 -0
  95. package/src/components/wt-icon-action/_internals/__tests__/WtEditIconAction.spec.js +9 -0
  96. package/src/components/wt-icon-action/_internals/__tests__/WtHistoryIconAction.spec.js +9 -0
  97. package/src/components/wt-icon-action/_internals/__tests__/WtRefreshIconAction.spec.js +9 -0
  98. package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +27 -0
  99. package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +27 -0
  100. package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +27 -0
  101. package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +27 -0
  102. package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +27 -0
  103. package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +27 -0
  104. package/src/components/wt-icon-action/wt-icon-action.vue +54 -0
  105. package/src/components/wt-icon-btn/Readme.md +10 -0
  106. package/src/components/{molecules/wt-icon-btn → wt-icon-btn}/__tests__/WtIconBtn.spec.js +2 -2
  107. package/src/components/wt-icon-btn/_variables.scss +9 -0
  108. package/src/components/wt-icon-btn/wt-icon-btn.vue +47 -0
  109. package/src/components/{atoms/wt-indicator → wt-indicator}/__tests__/WtIndicator.spec.js +2 -2
  110. package/src/{css/components/atoms → components}/wt-indicator/_variables.scss +3 -3
  111. package/src/components/{atoms/wt-indicator → wt-indicator}/wt-indicator.vue +5 -0
  112. package/src/components/{molecules/wt-input → wt-input}/__tests__/WtInput.spec.js +3 -3
  113. package/src/components/{molecules/wt-input → wt-input}/wt-input.vue +40 -20
  114. package/src/{css/components/atoms → components}/wt-input-info/_variables.scss +2 -2
  115. package/src/components/wt-input-info/wt-input-info.vue +40 -0
  116. package/src/components/wt-item-link/__tests__/WtItemLink.spec.js +9 -0
  117. package/src/components/wt-item-link/wt-item-link.vue +57 -0
  118. package/src/components/{molecules/wt-label → wt-label}/wt-label.vue +5 -0
  119. package/src/components/{molecules/wt-load-bar → wt-load-bar}/wt-load-bar.vue +7 -2
  120. package/src/{css/components/atoms → components}/wt-loader/_variables.scss +2 -2
  121. package/src/components/{atoms/wt-loader → wt-loader}/wt-loader.vue +22 -17
  122. package/src/components/{organisms/wt-navigation-bar → wt-navigation-bar}/__tests__/WtNavigationBar.spec.js +22 -18
  123. package/src/components/{organisms/wt-navigation-bar → wt-navigation-bar}/wt-navigation-bar.vue +27 -16
  124. package/src/components/{molecules/wt-notification → wt-notification}/__tests__/WtNotification.spec.js +1 -1
  125. package/src/components/wt-notification/wt-notification.vue +86 -0
  126. package/src/components/{organisms/wt-notifications-bar → wt-notifications-bar}/__tests__/WtNotificationsBar.spec.js +6 -6
  127. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +78 -0
  128. package/src/components/wt-page-header/__tests__/wt-page-header.spec.js +9 -0
  129. package/src/components/wt-page-header/wt-page-header.vue +83 -0
  130. package/src/components/{organisms/wt-page-wrapper → wt-page-wrapper}/wt-page-wrapper.vue +6 -0
  131. package/src/components/{organisms/wt-pagination → wt-pagination}/__tests__/WtPagination.spec.js +2 -1
  132. package/src/components/{organisms/wt-pagination → wt-pagination}/wt-pagination.vue +7 -1
  133. package/src/{css/components/organisms → components}/wt-player/_variables.scss +1 -1
  134. package/src/components/{organisms/wt-player → wt-player}/wt-player.vue +10 -5
  135. package/src/components/{molecules/wt-popup → wt-popup}/wt-popup.vue +5 -0
  136. package/src/components/{molecules/wt-progress-bar → wt-progress-bar}/__tests__/WtProgressBar.spec.js +2 -2
  137. package/src/{css/components/molecules → components}/wt-progress-bar/_variables.scss +2 -2
  138. package/src/components/{molecules/wt-progress-bar → wt-progress-bar}/wt-progress-bar.vue +13 -3
  139. package/src/components/{molecules/wt-radio → wt-radio}/__tests__/WtRadio.spec.js +6 -6
  140. package/src/components/wt-radio/wt-radio.vue +180 -0
  141. package/src/components/wt-rounded-action/Readme.md +68 -0
  142. package/src/components/{atoms/wt-rounded-action → wt-rounded-action}/__tests__/WtRoundedAction.spec.js +1 -1
  143. package/src/components/wt-rounded-action/_variables.scss +14 -0
  144. package/src/components/wt-rounded-action/wt-rounded-action.vue +139 -0
  145. package/src/components/{molecules/wt-search-bar → wt-search-bar}/__tests__/WtSearchBar.spec.js +9 -0
  146. package/src/components/wt-search-bar/wt-search-bar.vue +222 -0
  147. package/src/components/{molecules/wt-select → wt-select}/__tests__/WtSelect.spec.js +3 -3
  148. package/src/components/{molecules/wt-select → wt-select}/mixins/__tests__/multiselectMixin.spec.js +4 -4
  149. package/src/components/{molecules/wt-select → wt-select}/mixins/multiselectMixin.js +9 -4
  150. package/src/components/{molecules/wt-select → wt-select}/wt-select.vue +23 -9
  151. package/src/components/{molecules/wt-slider → wt-slider}/wt-slider.vue +8 -3
  152. package/src/components/{organisms/wt-status-select → wt-status-select}/__tests__/WtStatusSelect.spec.js +1 -1
  153. package/src/components/{organisms/wt-status-select → wt-status-select}/_internals/StatusOptions.lookup.js +1 -1
  154. package/src/components/{organisms/wt-status-select → wt-status-select}/wt-status-select.vue +27 -23
  155. package/src/components/wt-stepper/__tests__/WtStepper.spec.vue.js +18 -0
  156. package/src/components/wt-stepper/wt-stepper.vue +89 -0
  157. package/src/components/{molecules/wt-switcher → wt-switcher}/__tests__/WtSwitcher.spec.js +5 -5
  158. package/src/components/wt-switcher/wt-switcher.vue +191 -0
  159. package/src/components/{organisms/wt-table → wt-table}/__tests__/WtTable.spec.js +11 -11
  160. package/src/components/{organisms/wt-table → wt-table}/wt-table.vue +20 -3
  161. package/src/components/{organisms/wt-table-actions → wt-table-actions}/wt-table-actions.vue +5 -0
  162. package/src/components/{organisms/wt-table-column-select → wt-table-column-select}/__tests__/WtTableColumnSelect.spec.js +3 -3
  163. package/src/components/wt-table-column-select/wt-table-column-select.vue +178 -0
  164. package/src/components/{molecules/wt-tabs → wt-tabs}/__tests__/WtTabs.spec.js +3 -3
  165. package/src/{css/components/molecules → components}/wt-tabs/_variables.scss +1 -1
  166. package/src/components/{molecules/wt-tabs → wt-tabs}/wt-tabs.vue +9 -1
  167. package/src/components/{molecules/wt-tags-input → wt-tags-input}/__tests__/WtTagsInput.spec.js +7 -7
  168. package/src/components/{molecules/wt-tags-input → wt-tags-input}/wt-tags-input.vue +18 -7
  169. package/src/components/{molecules/wt-textarea → wt-textarea}/__tests__/WtTextarea.spec.js +4 -4
  170. package/src/components/wt-textarea/wt-textarea.vue +223 -0
  171. package/src/components/{molecules/wt-time-input → wt-time-input}/__tests__/WtTimeInput.spec.js +3 -3
  172. package/src/components/wt-time-input/wt-time-input.vue +187 -0
  173. package/src/components/{molecules/wt-timepicker → wt-timepicker}/__tests__/WtTimepicker.spec.js +13 -13
  174. package/src/components/{molecules/wt-timepicker → wt-timepicker}/wt-timepicker.vue +13 -5
  175. package/src/components/{atoms/wt-tooltip → wt-tooltip}/__tests__/WtTooltip.spec.js +1 -1
  176. package/src/components/wt-tooltip/_internals/useTooltipTriggerSubscriptions.js +68 -0
  177. package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +48 -0
  178. package/src/components/wt-tooltip/_variables.scss +11 -0
  179. package/src/components/wt-tooltip/wt-tooltip.vue +150 -0
  180. package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +14 -0
  181. package/src/composables/useCachedInterval/useCachedInterval.js +21 -0
  182. package/src/composables/useDestroyableSortable/useDestroyableSortable.js +66 -0
  183. package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +83 -0
  184. package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +37 -0
  185. package/src/css/main.scss +0 -3
  186. package/src/css/styleguide/colors/_colors.scss +177 -147
  187. package/src/css/styleguide/colors/_deprecated.scss +151 -0
  188. package/src/css/styleguide/colors/_palette.scss +358 -0
  189. package/src/directives/clickaway/clickaway.js +3 -0
  190. package/src/directives/index.js +7 -0
  191. package/src/enums/WebitelApplications/AdminSections.enum.js +4 -0
  192. package/src/enums/WebitelApplications/AuditorSections.enum.js +5 -0
  193. package/src/enums/WebitelApplications/CrmSections.enum.js +5 -0
  194. package/src/enums/WebitelApplications/WebitelApplications.enum.js +1 -0
  195. package/src/locale/.DS_Store +0 -0
  196. package/src/locale/en/en.js +96 -13
  197. package/src/locale/es/es.js +282 -0
  198. package/src/locale/i18n.js +4 -0
  199. package/src/locale/ru/ru.js +97 -12
  200. package/src/locale/ua/ua.js +98 -13
  201. package/src/mixins/dataFilterMixins/__tests__/apiFilterMixin.spec.js +5 -7
  202. package/src/mixins/dataFilterMixins/__tests__/enumFilterMixin.spec.js +17 -13
  203. package/src/mixins/dataFilterMixins/__tests__/paginationFilterMixin.spec.js +23 -31
  204. package/src/mixins/dataFilterMixins/__tests__/sortFilterMixin.spec.js +12 -15
  205. package/src/mixins/dataFilterMixins/__tests__/urlControllerMixin.spec.js +12 -12
  206. package/src/mixins/dataFilterMixins/_urlControllerMixin/_urlControllerMixin.js +2 -2
  207. package/src/mixins/dataFilterMixins/paginationFilterMixin.js +3 -3
  208. package/src/mixins/dataFilterMixins/sortFilterMixin.js +2 -2
  209. package/src/mixins/validationMixin/__tests__/validationMixin.spec.js +5 -5
  210. package/src/mixins/validationMixin/useValidation.js +41 -0
  211. package/src/mixins/validationMixin/validationMixin.js +17 -12
  212. package/src/modules/AgentStatusSelect/api/agent-status.js +24 -0
  213. package/src/modules/AgentStatusSelect/api/pause-cause.js +47 -0
  214. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +83 -0
  215. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-pause-cause-popup.spec.js +18 -0
  216. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +122 -0
  217. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +55 -0
  218. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +107 -0
  219. package/src/modules/AuditForm/components/__tests__/audit-form-question-read-wrapper.spec.js +14 -0
  220. package/src/modules/AuditForm/components/__tests__/audit-form-question-write-wrapper.spec.js +60 -0
  221. package/src/modules/AuditForm/components/__tests__/audit-form-question.spec.js +14 -0
  222. package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +70 -0
  223. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +132 -0
  224. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +154 -0
  225. package/src/modules/AuditForm/components/audit-form-question.vue +136 -0
  226. package/src/modules/AuditForm/components/audit-form.vue +183 -0
  227. package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options-write-row.spec.js +24 -0
  228. package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options.spec.js +45 -0
  229. package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +89 -0
  230. package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +97 -0
  231. package/src/modules/AuditForm/components/questions/score/__tests__/audit-form-question-score.spec.js +30 -0
  232. package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +132 -0
  233. package/src/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.js +13 -0
  234. package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.js +8 -0
  235. package/src/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.js +8 -0
  236. package/src/modules/CardStoreModule/composables/useCardStore.js +55 -0
  237. package/src/modules/CardStoreModule/store/CardStoreModule.js +84 -0
  238. package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +87 -0
  239. package/src/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup.js +28 -0
  240. package/src/modules/FilesExport/FilesExport.js +4 -1
  241. package/src/modules/FilesExport/scripts/generateMediaURL.js +1 -1
  242. package/src/modules/Filters/classes/BaseFilterSchema.js +13 -0
  243. package/src/modules/Filters/components/filter-pagination.vue +61 -0
  244. package/src/modules/Filters/components/filter-table-fields.vue +61 -0
  245. package/src/modules/Filters/composables/useTableFilters.js +17 -0
  246. package/src/modules/Filters/restores/filterFieldsRestore.js +9 -0
  247. package/src/modules/Filters/restores/readme.md +1 -0
  248. package/src/modules/Filters/store/FiltersStoreModule.js +181 -0
  249. package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +10 -12
  250. package/src/modules/QueryFilters/components/__tests__/abstract-enum-filter.spec.js +10 -12
  251. package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +12 -12
  252. package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +10 -12
  253. package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +10 -12
  254. package/src/modules/QueryFilters/components/abstract-api-filter.vue +1 -1
  255. package/src/modules/QueryFilters/components/abstract-enum-filter.vue +1 -1
  256. package/src/modules/QueryFilters/components/filter-datetime.vue +4 -3
  257. package/src/modules/QueryFilters/components/filter-from-to.vue +15 -8
  258. package/src/modules/QueryFilters/components/filter-table-fields.vue +101 -0
  259. package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +11 -11
  260. package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +11 -13
  261. package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +18 -25
  262. package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +14 -9
  263. package/src/modules/QueryFilters/mixins/__tests__/urlControllerMixin.spec.js +12 -14
  264. package/src/modules/QueryFilters/mixins/_urlControllerMixin/_urlControllerMixin.js +2 -2
  265. package/src/modules/QueryFilters/mixins/paginationFilterMixin.js +4 -4
  266. package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +21 -8
  267. package/src/modules/TableStoreModule/composables/useTableStore.js +58 -0
  268. package/src/modules/TableStoreModule/store/TableStoreModule.js +207 -0
  269. package/src/modules/Userinfo/api/auth.js +6 -4
  270. package/src/modules/Userinfo/api/userinfo.js +16 -4
  271. package/src/modules/Userinfo/classes/ApplicationsAccess.js +27 -0
  272. package/src/modules/Userinfo/components/__tests__/auth.spec.js +11 -12
  273. package/src/modules/Userinfo/components/the-auth.vue +1 -1
  274. package/src/modules/Userinfo/enums/Permissions.enum.js +7 -0
  275. package/src/modules/Userinfo/store/UserinfoStoreModule.js +41 -1
  276. package/src/plugins/breakpoint/breakpoint.plugin.js +5 -4
  277. package/src/scripts/__tests__/updateObject.spec.js +19 -0
  278. package/src/scripts/caseConverters.js +2 -2
  279. package/src/scripts/debounce.js +3 -9
  280. package/src/scripts/eventBus.js +7 -3
  281. package/src/scripts/updateObject.js +6 -0
  282. package/src/store/BaseStoreModules/ApiStoreModule.js +93 -0
  283. package/src/store/ReactiveNowStoreModule/ReactiveNowStoreModule.js +27 -0
  284. package/src/validators/decimalValidator.js +9 -0
  285. package/src/validators/domainValidator.js +5 -0
  286. package/src/components/atoms/wt-avatar/wt-avatar.vue +0 -102
  287. package/src/components/atoms/wt-button/wt-button.vue +0 -288
  288. package/src/components/atoms/wt-chip/wt-chip.vue +0 -23
  289. package/src/components/atoms/wt-divider/wt-divider.vue +0 -25
  290. package/src/components/atoms/wt-icon/wt-icon.vue +0 -150
  291. package/src/components/atoms/wt-input-info/wt-input-info.vue +0 -35
  292. package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +0 -156
  293. package/src/components/atoms/wt-tooltip/wt-tooltip.vue +0 -48
  294. package/src/components/molecules/wt-button-select/wt-button-select.vue +0 -184
  295. package/src/components/molecules/wt-checkbox/wt-checkbox.vue +0 -179
  296. package/src/components/molecules/wt-datepicker/wt-datepicker.vue +0 -203
  297. package/src/components/molecules/wt-datetimepicker/__tests__/WtDatetimepicker.spec.js +0 -79
  298. package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +0 -300
  299. package/src/components/molecules/wt-icon-btn/wt-icon-btn.vue +0 -75
  300. package/src/components/molecules/wt-notification/wt-notification.vue +0 -75
  301. package/src/components/molecules/wt-radio/wt-radio.vue +0 -170
  302. package/src/components/molecules/wt-search-bar/wt-search-bar.vue +0 -194
  303. package/src/components/molecules/wt-switcher/wt-switcher.vue +0 -182
  304. package/src/components/molecules/wt-textarea/wt-textarea.vue +0 -215
  305. package/src/components/molecules/wt-time-input/wt-time-input.vue +0 -190
  306. package/src/components/organisms/wt-app-header/wt-app-header.vue +0 -24
  307. package/src/components/organisms/wt-notifications-bar/wt-notifications-bar.vue +0 -71
  308. package/src/components/organisms/wt-table/__tests__/WtTableDeleteAction.spec.js +0 -9
  309. package/src/components/organisms/wt-table/__tests__/WtTableEditAction.spec.js +0 -9
  310. package/src/components/organisms/wt-table/table-cells/wt-table-delete-action.vue +0 -21
  311. package/src/components/organisms/wt-table/table-cells/wt-table-edit-action.vue +0 -22
  312. package/src/components/organisms/wt-table-column-select/wt-table-column-select.vue +0 -120
  313. package/src/css/components/_components.scss +0 -45
  314. package/src/css/components/atoms/wt-avatar/_variables.scss +0 -14
  315. package/src/css/components/atoms/wt-button/_variables.scss +0 -47
  316. package/src/css/components/atoms/wt-icon/_variables.scss +0 -8
  317. package/src/css/components/atoms/wt-rounded-action/_variables.scss +0 -7
  318. package/src/css/components/atoms/wt-tooltip/_variables.scss +0 -29
  319. package/src/css/components/molecules/wt-button-select/_variables.scss +0 -18
  320. package/src/css/components/molecules/wt-datepicker/_variables.scss +0 -21
  321. package/src/css/components/molecules/wt-datepicker/datepicker-calendar.scss +0 -90
  322. package/src/css/components/molecules/wt-datetimepicker/_variables.scss +0 -11
  323. package/src/css/components/molecules/wt-icon-btn/_variables.scss +0 -3
  324. package/src/css/components/organisms/wt-headline-nav/_variables.scss +0 -5
  325. /package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppHeader.spec.js +0 -0
  326. /package/src/components/{organisms/wt-app-header → wt-app-header}/wt-header-actions.vue +0 -0
  327. /package/src/components/{atoms/wt-avatar → wt-avatar}/__tests__/wt-avatar.spec.js +0 -0
  328. /package/src/components/{atoms/wt-badge → wt-badge}/__tests__/wt-badge.spec.js +0 -0
  329. /package/src/{css/components/atoms → components}/wt-badge/_variables.scss +0 -0
  330. /package/src/{css/components/molecules → components}/wt-checkbox/_variables.scss +0 -0
  331. /package/src/components/{atoms/wt-chip → wt-chip}/__tests__/WtChip.spec.js +0 -0
  332. /package/src/{css/components/atoms → components}/wt-chip/_variables.scss +0 -0
  333. /package/src/components/{molecules/wt-copy-action → wt-copy-action}/__tests__/WtCopyAction.spec.js +0 -0
  334. /package/src/components/{molecules/wt-copy-action → wt-copy-action}/wt-copy-action.vue +0 -0
  335. /package/src/components/{atoms/wt-divider → wt-divider}/__tests__/WtDivider.spec.js +0 -0
  336. /package/src/{css/components/atoms → components}/wt-divider/_variables.scss +0 -0
  337. /package/src/components/{organisms/wt-filters-panel-wrapper/__tests__/wt-filters-panel-wrapper.spec.js → wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js} +0 -0
  338. /package/src/components/{organisms/wt-headline → wt-headline}/__tests__/WtHeadline.spec.js +0 -0
  339. /package/src/{css/components/organisms → components}/wt-headline/_variables.scss +0 -0
  340. /package/src/components/{molecules/wt-hint → wt-hint}/__tests__/WtHint.spec.js +0 -0
  341. /package/src/{css/components/molecules → components}/wt-input/_variables.scss +0 -0
  342. /package/src/components/{atoms/wt-input-info → wt-input-info}/__tests__/WtInputInfo.spec.js +0 -0
  343. /package/src/components/{molecules/wt-label → wt-label}/__tests__/WtLabel.spec.js +0 -0
  344. /package/src/{css/components/atoms → components}/wt-label/_variables.scss +0 -0
  345. /package/src/components/{molecules/wt-label → wt-label}/mixins/labelUsageMixin.js +0 -0
  346. /package/src/components/{molecules/wt-load-bar → wt-load-bar}/__tests__/WtLoadBar.spec.js +0 -0
  347. /package/src/{css/components/molecules → components}/wt-load-bar/_variables.scss +0 -0
  348. /package/src/components/{atoms/wt-loader → wt-loader}/__tests__/WtLoader.spec.js +0 -0
  349. /package/src/components/{atoms/wt-loader → wt-loader}/_internals/wt-loader--md.vue +0 -0
  350. /package/src/components/{atoms/wt-loader → wt-loader}/_internals/wt-loader--sm.vue +0 -0
  351. /package/src/{css/components/organisms → components}/wt-navigation-bar/_variables.scss +0 -0
  352. /package/src/{css/components/molecules → components}/wt-notification/_variables.scss +0 -0
  353. /package/src/{css/components/organisms → components}/wt-notifications-bar/_variables.scss +0 -0
  354. /package/src/components/{organisms/wt-page-wrapper → wt-page-wrapper}/__tests__/WtPageWrapper.spec.js +0 -0
  355. /package/src/{css/components/organisms → components}/wt-page-wrapper/_variables.scss +0 -0
  356. /package/src/{css/components/organisms → components}/wt-pagination/_variables.scss +0 -0
  357. /package/src/components/{organisms/wt-player → wt-player}/__tests__/WtPlayer.spec.js +0 -0
  358. /package/src/components/{molecules/wt-popup → wt-popup}/__tests__/WtPopup.spec.js +0 -0
  359. /package/src/{css/components/molecules → components}/wt-popup/_variables.scss +0 -0
  360. /package/src/{css/components/molecules → components}/wt-radio/_variables.scss +0 -0
  361. /package/src/{css/components/molecules → components}/wt-search-bar/_variables.scss +0 -0
  362. /package/src/{css/components/molecules → components}/wt-select/_multiselect.scss +0 -0
  363. /package/src/{css/components/molecules → components}/wt-select/_variables.scss +0 -0
  364. /package/src/components/{molecules/wt-slider → wt-slider}/__tests__/WtSlider.spec.js +0 -0
  365. /package/src/{css/components/molecules → components}/wt-slider/_variables.scss +0 -0
  366. /package/src/{css/components/organisms → components}/wt-status-select/_variables.scss +0 -0
  367. /package/src/{css/components/molecules → components}/wt-switcher/_variables.scss +0 -0
  368. /package/src/components/{organisms/wt-table → wt-table}/_internals/getSortOrder.js +0 -0
  369. /package/src/{css/components/organisms → components}/wt-table/_variables.scss +0 -0
  370. /package/src/components/{organisms/wt-table-actions → wt-table-actions}/__tests__/WtTableActions.spec.js +0 -0
  371. /package/src/{css/components/organisms → components}/wt-table-actions/_variables.scss +0 -0
  372. /package/src/{css/components/molecules → components}/wt-tags-input/_variables.scss +0 -0
  373. /package/src/{css/components/molecules → components}/wt-textarea/_variables.scss +0 -0
  374. /package/src/{css/components/molecules → components}/wt-timepicker/_variables.scss +0 -0
@@ -1,4 +1,4 @@
1
- import AgentStatus from '../../../../enums/AgentStatus/AgentStatus.enum';
1
+ import AgentStatus from '../../../enums/AgentStatus/AgentStatus.enum';
2
2
 
3
3
  export default [
4
4
  {
@@ -24,8 +24,8 @@
24
24
  </template>
25
25
 
26
26
  <script>
27
- import AgentStatus from '../../../enums/AgentStatus/AgentStatus.enum';
28
- import convertDuration from '../../../scripts/convertDuration';
27
+ import AgentStatus from '../../enums/AgentStatus/AgentStatus.enum';
28
+ import convertDuration from '../../scripts/convertDuration';
29
29
  import StatusOptions from './_internals/StatusOptions.lookup';
30
30
 
31
31
  export default {
@@ -94,36 +94,40 @@ export default {
94
94
  };
95
95
  </script>
96
96
 
97
+ <style lang="scss">
98
+ @import './variables.scss';
99
+ </style>
100
+
97
101
  <style lang="scss" scoped>
98
- .wt-status-select.wt-select ::v-deep {
102
+ .wt-status-select.wt-select {
99
103
  box-shadow: var(--elevation-5);
100
104
 
101
- .multiselect {
105
+ :deep(.multiselect) {
102
106
  min-height: 0;
103
- }
104
107
 
105
- .multiselect__tags {
106
- min-height: 0;
107
- padding: var(--status-select-padding);
108
- border: none;
109
- }
108
+ .multiselect__tags {
109
+ min-height: 0;
110
+ padding: var(--status-select-padding);
111
+ border: none;
112
+ }
110
113
 
111
- .multiselect__select {
112
- top: 0;
113
- right: 0;
114
- }
114
+ .multiselect__select {
115
+ top: 0;
116
+ right: 0;
117
+ }
115
118
 
116
- .multiselect__content-wrapper {
117
- border: none;
119
+ .multiselect__content-wrapper {
120
+ border: none;
118
121
 
119
- .multiselect__option {
120
- min-height: 0;
121
- padding: 0;
122
- color: var(--status-select-option-color);
123
- }
122
+ .multiselect__option {
123
+ min-height: 0;
124
+ padding: 0;
125
+ color: var(--status-select-option-color);
126
+ }
124
127
 
125
- .multiselect__option--highlight {
126
- background: var(--status-select-bg--hover-color);
128
+ .multiselect__option--highlight {
129
+ background: var(--status-select-bg--hover-color);
130
+ }
127
131
  }
128
132
  }
129
133
  }
@@ -0,0 +1,18 @@
1
+ import { shallowMount } from '@vue/test-utils';
2
+ import WtStepper from '../wt-stepper.vue';
3
+
4
+ describe('WtStepper', () => {
5
+ it('renders a component', () => {
6
+ const wrapper = shallowMount(WtStepper, {
7
+ props: {
8
+ steps: [
9
+ {
10
+ name: 'step 1',
11
+ description: 'description',
12
+ },
13
+ ],
14
+ },
15
+ });
16
+ expect(wrapper.isVisible()).toBe(true);
17
+ });
18
+ });
@@ -0,0 +1,89 @@
1
+ <template>
2
+ <div class="wt-stepper">
3
+ <div class="wt-stepper-header">
4
+ <div
5
+ class="wt-stepper-steps"
6
+ >
7
+ <div
8
+ class="wt-stepper-steps__wrapper"
9
+ v-for="({name, completed}, idx) in stepWithCompleted"
10
+ >
11
+ <div
12
+ v-if="idx !== 0"
13
+ class="wt-stepper-steps__divider"
14
+ :class="{ 'wt-stepper-steps__divider--completed': completed }"
15
+ ></div>
16
+ <wt-chip
17
+ class="wt-stepper-steps__item"
18
+ :color="!completed && 'secondary'"
19
+ >{{ name }}
20
+ </wt-chip>
21
+ </div>
22
+ </div>
23
+ </div>
24
+
25
+ <slot name="description">
26
+ <p class="wt-stepper-description">{{ description }}</p>
27
+ </slot>
28
+
29
+ <slot name="main"></slot>
30
+
31
+ </div>
32
+ </template>
33
+ <script setup>
34
+ import { computed } from 'vue';
35
+
36
+ const props = defineProps({
37
+ steps: {
38
+ type: Object,
39
+ },
40
+ activeStep: {
41
+ type: Number,
42
+ default: 1,
43
+ },
44
+ });
45
+
46
+ const description = computed(() => props.steps[props.activeStep - 1].description);
47
+
48
+ const stepWithCompleted = computed(() => props.steps.map((item, idx) => ({
49
+ ...item,
50
+ completed: props.activeStep > idx,
51
+ })));
52
+ </script>
53
+
54
+ <style lang="scss" scoped>
55
+ .wt-stepper {
56
+ width: 100%;
57
+ }
58
+
59
+ .wt-stepper-header {
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: var(--spacing-lg);
63
+ margin-bottom: var(--spacing-lg);
64
+ }
65
+
66
+ .wt-stepper-steps {
67
+ display: flex;
68
+ align-items: center;
69
+
70
+ &__wrapper {
71
+ display: contents;
72
+ }
73
+
74
+ &__divider {
75
+ flex: 1 1 auto;
76
+ height: 1px;
77
+ background: var(--secondary-color);
78
+
79
+ &--completed {
80
+ background-color: var(--chip-bg-color);
81
+ }
82
+ }
83
+ }
84
+
85
+ .wt-stepper-description {
86
+ margin-bottom: var(--spacing-lg);
87
+ text-align: center;
88
+ }
89
+ </style>
@@ -1,4 +1,4 @@
1
- import { shallowMount } from '@vue/test-utils';
1
+ import { shallowMount, mount } from '@vue/test-utils';
2
2
  import WtSwitcher from '../wt-switcher.vue';
3
3
  import WtLabel from '../../wt-label/wt-label.vue';
4
4
 
@@ -12,18 +12,18 @@ describe('WtSwitcher', () => {
12
12
 
13
13
  it('renders label text when passed', () => {
14
14
  const label = 'Hello there';
15
- const wrapper = shallowMount(WtSwitcher, {
15
+ const wrapper = mount(WtSwitcher, {
16
16
  stubs: { WtLabel },
17
- propsData: { label },
17
+ props: { label },
18
18
  });
19
19
  expect(wrapper.find('.wt-switcher__label').text()).toBe(label);
20
20
  });
21
21
 
22
22
  it('toggles passed value at click', () => {
23
23
  const value = true;
24
- const wrapper = shallowMount(WtSwitcher, {
24
+ const wrapper = mount(WtSwitcher, {
25
25
  stubs: { WtLabel },
26
- propsData: { value },
26
+ props: { value },
27
27
  });
28
28
  wrapper.find('.wt-switcher__input').trigger('change');
29
29
  expect(wrapper.emitted().change[0]).toEqual([!value]);
@@ -0,0 +1,191 @@
1
+ <template>
2
+ <div
3
+ class="wt-switcher"
4
+ :class="{
5
+ 'wt-switcher--off': !value,
6
+ 'wt-switcher--on': value,
7
+ 'wt-switcher--disabled': disabled,
8
+ }"
9
+ >
10
+ <wt-label
11
+ v-bind="labelProps"
12
+ class="wt-switcher__wrapper"
13
+ :class="{'wt-switcher__wrapper--label-left': labelLeft}"
14
+ >
15
+ <input
16
+ class="wt-switcher__input"
17
+ type="checkbox"
18
+ :checked="value"
19
+ :disabled="disabled"
20
+ @change="inputHandler"
21
+ >
22
+ <span class="wt-switcher__checkmark"></span>
23
+ <!-- @slot Custom input label -->
24
+ <slot
25
+ v-bind="{ label, value, disabled }"
26
+ name="label"
27
+ >
28
+ <div v-if="label" class="wt-switcher__label">{{ label }}</div>
29
+ </slot>
30
+ </wt-label>
31
+ </div>
32
+ </template>
33
+
34
+ <script>
35
+ export default {
36
+ name: 'wt-switcher',
37
+ props: {
38
+ value: {
39
+ type: Boolean,
40
+ default: false,
41
+ },
42
+ label: {
43
+ type: String,
44
+ default: '',
45
+ },
46
+ labelLeft: {
47
+ type: Boolean,
48
+ default: false,
49
+ },
50
+ disabled: {
51
+ type: Boolean,
52
+ default: false,
53
+ },
54
+ labelProps: {
55
+ type: Object,
56
+ description: 'Object with props, passed down to wt-label as props',
57
+ },
58
+ },
59
+ model: {
60
+ prop: 'value',
61
+ event: 'change',
62
+ },
63
+ methods: {
64
+ inputHandler() {
65
+ this.$emit('change', !this.value);
66
+ },
67
+ },
68
+ };
69
+ </script>
70
+
71
+ <style lang="scss">
72
+ @import './variables.scss';
73
+ </style>
74
+
75
+ <style lang="scss" scoped>
76
+
77
+ .wt-switcher {
78
+ @include width-fit-content;
79
+ position: relative;
80
+ box-sizing: border-box;
81
+
82
+ .wt-label {
83
+ cursor: pointer;
84
+ }
85
+ }
86
+
87
+ .wt-switcher__wrapper {
88
+ position: relative;
89
+ display: flex;
90
+ align-items: center;
91
+ user-select: none;
92
+ cursor: pointer;
93
+
94
+ &.wt-switcher__wrapper--label-left {
95
+ flex-direction: row-reverse;
96
+ }
97
+ }
98
+
99
+ .wt-switcher__label {
100
+ margin-left: var(--switcher-icon-margin);
101
+ transition: var(--transition);
102
+
103
+ .wt-switcher__wrapper--label-left & {
104
+ margin-left: 0;
105
+ margin-right: var(--switcher-icon-margin);
106
+ }
107
+
108
+ .wt-switcher:hover & {
109
+ color: var(--form-label--hover-color);
110
+ }
111
+ }
112
+
113
+ .wt-switcher__input {
114
+ position: absolute;
115
+ width: 0;
116
+ height: 0;
117
+ opacity: 0;
118
+ pointer-events: none;
119
+ }
120
+
121
+ .wt-switcher__checkmark {
122
+ position: relative;
123
+ display: block;
124
+ flex: 0 0 var(--switcher-width);
125
+ width: var(--switcher-width);
126
+ height: var(--switcher-height);
127
+ border-radius: var(--switcher-border-radius);
128
+ transition: var(--transition);
129
+
130
+ &:before {
131
+ content: '';
132
+ position: absolute;
133
+ bottom: var(--switcher-cicle-margin);
134
+ left: var(--switcher-cicle-margin);
135
+ height: var(--switcher-cicle-size);
136
+ width: var(--switcher-cicle-size);
137
+ background: var(--switcher-circle-bg-color);
138
+ border-radius: 50%;
139
+ transition: var(--transition);
140
+ }
141
+ }
142
+
143
+ .wt-switcher--off {
144
+ .wt-switcher__checkmark {
145
+ background: var(--switcher-bg-color--off);
146
+ }
147
+
148
+ &:hover {
149
+ .wt-switcher__checkmark {
150
+ background: var(--switcher-bg-color--off--hover);
151
+ }
152
+ }
153
+
154
+ &.wt-switcher--disabled {
155
+ .wt-switcher__checkmark {
156
+ background: var(--switcher-bg-color--off--disabled);
157
+ }
158
+ }
159
+ }
160
+
161
+ .wt-switcher--on {
162
+ .wt-switcher__checkmark {
163
+ background: var(--switcher-bg-color--on);
164
+
165
+ /* Show the indicator (dot/circle) when checked */
166
+ &:before {
167
+ transform: translateX(var(--switcher-cicle-translateX));
168
+ }
169
+ }
170
+
171
+ &:hover {
172
+ .wt-switcher__checkmark {
173
+ background: var(--switcher-bg-color--on--hover);
174
+ }
175
+ }
176
+
177
+ &.wt-switcher--disabled {
178
+ .wt-switcher__checkmark {
179
+ background: var(--switcher-bg-color--on--disabled);
180
+ }
181
+ }
182
+ }
183
+
184
+ .wt-switcher--disabled {
185
+ pointer-events: none;
186
+
187
+ .wt-switcher__label {
188
+ color: var(--form-label--disabled-color);
189
+ }
190
+ }
191
+ </style>
@@ -1,6 +1,6 @@
1
- import { shallowMount } from '@vue/test-utils';
1
+ import { mount, shallowMount } from '@vue/test-utils';
2
2
  import WtTable from '../wt-table.vue';
3
- import WtCheckbox from '../../../molecules/wt-checkbox/wt-checkbox.vue';
3
+ import WtCheckbox from '../../wt-checkbox/wt-checkbox.vue';
4
4
 
5
5
  const headers = [
6
6
  {
@@ -51,7 +51,7 @@ describe('WtTable', () => {
51
51
 
52
52
  it('renders table data rows', () => {
53
53
  const wrapper = shallowMount(WtTable, {
54
- propsData: {
54
+ props: {
55
55
  headers,
56
56
  data,
57
57
  },
@@ -61,7 +61,7 @@ describe('WtTable', () => {
61
61
 
62
62
  it('renders table headers', () => {
63
63
  const wrapper = shallowMount(WtTable, {
64
- propsData: {
64
+ props: {
65
65
  headers,
66
66
  data,
67
67
  selectable: false,
@@ -73,7 +73,7 @@ describe('WtTable', () => {
73
73
 
74
74
  it('do not renders table footer by default', () => {
75
75
  const wrapper = shallowMount(WtTable, {
76
- propsData: {
76
+ props: {
77
77
  headers,
78
78
  data,
79
79
  },
@@ -83,11 +83,11 @@ describe('WtTable', () => {
83
83
 
84
84
  it('renders table footer if footer slot is passed', () => {
85
85
  const wrapper = shallowMount(WtTable, {
86
- propsData: {
86
+ props: {
87
87
  headers,
88
88
  data,
89
89
  },
90
- scopedSlots: {
90
+ slots: {
91
91
  'data-footer': '',
92
92
  },
93
93
  });
@@ -96,7 +96,7 @@ describe('WtTable', () => {
96
96
 
97
97
  it('emits sort event at header click when sortable is true', () => {
98
98
  const wrapper = shallowMount(WtTable, {
99
- propsData: {
99
+ props: {
100
100
  headers,
101
101
  data,
102
102
  sortable: true,
@@ -109,7 +109,7 @@ describe('WtTable', () => {
109
109
  it('draws sort arrow, if a column is sorted', () => {
110
110
  headers[0].sort = 'asc';
111
111
  const wrapper = shallowMount(WtTable, {
112
- propsData: {
112
+ props: {
113
113
  headers,
114
114
  data,
115
115
  sortable: true,
@@ -121,8 +121,8 @@ describe('WtTable', () => {
121
121
  });
122
122
 
123
123
  it('selects all rows at header checkbox click', async () => {
124
- const wrapper = shallowMount(WtTable, {
125
- propsData: {
124
+ const wrapper = mount(WtTable, {
125
+ props: {
126
126
  headers,
127
127
  data,
128
128
  selectable: true,
@@ -49,7 +49,8 @@
49
49
  >
50
50
  <td v-if="selectable" class="wt-table__td wt-table__td--checkbox">
51
51
  <wt-checkbox
52
- v-model="row._isSelected"
52
+ :selected="row._isSelected"
53
+ @change="row._isSelected = !row._isSelected"
53
54
  ></wt-checkbox>
54
55
  </td>
55
56
 
@@ -123,7 +124,16 @@ export default {
123
124
 
124
125
  dataHeaders() {
125
126
  return this.headers
126
- .filter((header) => header.show === undefined || header.show);
127
+ .filter((header) => header.show === undefined || header.show)
128
+ .map((header) => {
129
+ if (!header.text && header.locale) {
130
+ return {
131
+ ...header,
132
+ text: typeof header.locale === 'string' ? this.$t(header.locale) : this.$t(...header.locale),
133
+ };
134
+ }
135
+ return header;
136
+ });
127
137
  },
128
138
 
129
139
  columnsStyle() {
@@ -140,7 +150,7 @@ export default {
140
150
  },
141
151
 
142
152
  isTableFooter() {
143
- return Object.keys(this.$scopedSlots).some((slotName) => slotName.includes('-footer'));
153
+ return Object.keys(this.$slots).some((slotName) => slotName.includes('-footer'));
144
154
  },
145
155
  },
146
156
 
@@ -166,7 +176,12 @@ export default {
166
176
  };
167
177
  </script>
168
178
 
179
+ <style lang="scss">
180
+ @import './variables.scss';
181
+ </style>
182
+
169
183
  <style lang="scss" scoped>
184
+
170
185
  .wt-table {
171
186
  overflow: auto;
172
187
  }
@@ -179,6 +194,7 @@ export default {
179
194
  .wt-table__head {
180
195
  display: block;
181
196
  box-sizing: border-box;
197
+ background: var(--table-primary-color);
182
198
  border: var(--table-head-border);
183
199
  border-color: var(--table-head-border-color);
184
200
  border-radius: var(--border-radius);
@@ -217,6 +233,7 @@ export default {
217
233
  display: flex;
218
234
  align-items: flex-start;
219
235
  justify-content: flex-end;
236
+ gap: var(--spacing-xs);
220
237
  }
221
238
  }
222
239
 
@@ -95,7 +95,12 @@ export default {
95
95
  };
96
96
  </script>
97
97
 
98
+ <style lang="scss">
99
+ @import './variables.scss';
100
+ </style>
101
+
98
102
  <style lang="scss" scoped>
103
+
99
104
  .wt-table-actions {
100
105
  display: flex;
101
106
  align-items: center;
@@ -4,7 +4,7 @@ import WtTableColumnSelect from '../wt-table-column-select.vue';
4
4
  describe('WtTableColumnSelect', () => {
5
5
  it('renders a component', () => {
6
6
  const wrapper = shallowMount(WtTableColumnSelect, {
7
- propsData: {
7
+ props: {
8
8
  headers: [],
9
9
  },
10
10
  });
@@ -12,7 +12,7 @@ describe('WtTableColumnSelect', () => {
12
12
  });
13
13
  it('column select popup is invisible by default', () => {
14
14
  const wrapper = shallowMount(WtTableColumnSelect, {
15
- propsData: {
15
+ props: {
16
16
  headers: [],
17
17
  },
18
18
  });
@@ -20,7 +20,7 @@ describe('WtTableColumnSelect', () => {
20
20
  });
21
21
  it('column select popup is opening by icon-btn click', async () => {
22
22
  const wrapper = mount(WtTableColumnSelect, {
23
- propsData: {
23
+ props: {
24
24
  headers: [],
25
25
  },
26
26
  });