@webitel/ui-sdk 3.2.124 → 3.2.126

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 (214) hide show
  1. package/dist/ui-sdk.common.js +735 -729
  2. package/dist/ui-sdk.common.js.map +1 -1
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.umd.js +737 -731
  5. package/dist/ui-sdk.umd.js.map +1 -1
  6. package/dist/ui-sdk.umd.min.js +1 -1
  7. package/dist/ui-sdk.umd.min.js.map +1 -1
  8. package/package.json +2 -1
  9. package/src/components/index.js +56 -59
  10. package/src/components/on-demand/wt-cc-agent-status-timers/__tests__/wt-cc-agent-status-timers.spec.js +25 -0
  11. package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +56 -0
  12. package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppNavigator.spec.js +1 -1
  13. package/src/{css/components/organisms → components}/wt-app-header/_variables.scss +1 -1
  14. package/src/components/wt-app-header/wt-app-header.vue +26 -0
  15. package/src/components/{organisms/wt-app-header → wt-app-header}/wt-app-navigator.vue +9 -9
  16. package/src/{css/components/atoms → components}/wt-avatar/_variables.scss +1 -1
  17. package/src/components/{atoms/wt-avatar → wt-avatar}/wt-avatar.vue +4 -2
  18. package/src/components/{atoms/wt-badge → wt-badge}/wt-badge.vue +17 -13
  19. package/src/{css/components/atoms → components}/wt-button/_variables.scss +0 -1
  20. package/src/components/{atoms/wt-button → wt-button}/wt-button.vue +2 -0
  21. package/src/{css/components/molecules → components}/wt-button-select/_variables.scss +1 -1
  22. package/src/components/{molecules/wt-button-select → wt-button-select}/wt-button-select.vue +2 -0
  23. package/src/components/{molecules/wt-checkbox → wt-checkbox}/__tests__/WtCheckbox.spec.js +1 -1
  24. package/src/components/wt-checkbox/wt-checkbox.vue +182 -0
  25. package/src/components/wt-chip/wt-chip.vue +24 -0
  26. package/src/components/{atoms/wt-context-menu → wt-context-menu}/wt-context-menu.vue +2 -0
  27. package/src/components/{molecules/wt-datepicker → wt-datepicker}/__tests__/WtDatepicker.spec.js +1 -1
  28. package/src/components/{molecules/wt-datepicker → wt-datepicker}/wt-datepicker.vue +2 -0
  29. package/src/components/wt-divider/wt-divider.vue +27 -0
  30. package/src/components/{molecules/wt-dummy → wt-dummy}/wt-dummy.vue +1 -1
  31. package/src/components/{organisms/wt-error-page → wt-error-page}/wt-error-page.vue +2 -2
  32. package/src/components/{organisms/wt-headline → wt-headline}/wt-headline.vue +2 -0
  33. package/src/components/{organisms/wt-headline-nav → wt-headline-nav}/wt-headline-nav.vue +2 -0
  34. package/src/components/{atoms/wt-icon → wt-icon}/wt-icon.vue +17 -1
  35. package/src/components/{molecules/wt-icon-btn → wt-icon-btn}/__tests__/WtIconBtn.spec.js +1 -1
  36. package/src/components/{molecules/wt-icon-btn → wt-icon-btn}/wt-icon-btn.vue +1 -1
  37. package/src/components/{atoms/wt-indicator → wt-indicator}/wt-indicator.vue +2 -0
  38. package/src/components/{molecules/wt-input → wt-input}/wt-input.vue +3 -1
  39. package/src/components/wt-input-info/wt-input-info.vue +37 -0
  40. package/src/components/{molecules/wt-label → wt-label}/wt-label.vue +2 -0
  41. package/src/components/{molecules/wt-load-bar → wt-load-bar}/wt-load-bar.vue +2 -0
  42. package/src/components/{atoms/wt-loader → wt-loader}/wt-loader.vue +19 -17
  43. package/src/components/{organisms/wt-navigation-bar → wt-navigation-bar}/wt-navigation-bar.vue +15 -13
  44. package/src/components/{molecules/wt-notification → wt-notification}/__tests__/WtNotification.spec.js +1 -1
  45. package/src/components/wt-notification/wt-notification.vue +83 -0
  46. package/src/components/{organisms/wt-notifications-bar → wt-notifications-bar}/__tests__/WtNotificationsBar.spec.js +2 -2
  47. package/src/components/{organisms/wt-notifications-bar → wt-notifications-bar}/wt-notifications-bar.vue +2 -0
  48. package/src/components/{organisms/wt-page-header → wt-page-header}/wt-page-header.vue +1 -0
  49. package/src/components/{organisms/wt-page-wrapper → wt-page-wrapper}/wt-page-wrapper.vue +2 -0
  50. package/src/components/{organisms/wt-pagination → wt-pagination}/wt-pagination.vue +3 -1
  51. package/src/components/{organisms/wt-player → wt-player}/wt-player.vue +9 -4
  52. package/src/components/{molecules/wt-popup → wt-popup}/wt-popup.vue +2 -0
  53. package/src/components/{molecules/wt-progress-bar → wt-progress-bar}/wt-progress-bar.vue +9 -2
  54. package/src/components/{molecules/wt-radio → wt-radio}/__tests__/WtRadio.spec.js +1 -1
  55. package/src/components/wt-radio/wt-radio.vue +177 -0
  56. package/src/components/{atoms/wt-rounded-action → wt-rounded-action}/wt-rounded-action.vue +2 -0
  57. package/src/components/{molecules/wt-search-bar → wt-search-bar}/wt-search-bar.vue +3 -1
  58. package/src/{css/components/molecules → components}/wt-select/_multiselect.scss +1 -1
  59. package/src/components/{molecules/wt-select → wt-select}/mixins/multiselectMixin.js +3 -3
  60. package/src/components/{molecules/wt-select → wt-select}/wt-select.vue +2 -1
  61. package/src/components/{molecules/wt-slider → wt-slider}/wt-slider.vue +2 -0
  62. package/src/components/{organisms/wt-status-select → wt-status-select}/__tests__/WtStatusSelect.spec.js +1 -1
  63. package/src/components/{organisms/wt-status-select → wt-status-select}/_internals/StatusOptions.lookup.js +1 -1
  64. package/src/components/{organisms/wt-status-select → wt-status-select}/wt-status-select.vue +4 -2
  65. package/src/components/wt-switcher/wt-switcher.vue +185 -0
  66. package/src/components/{organisms/wt-table → wt-table}/__tests__/WtTable.spec.js +1 -1
  67. package/src/components/{organisms/wt-table → wt-table}/wt-table.vue +2 -0
  68. package/src/components/{organisms/wt-table-actions → wt-table-actions}/wt-table-actions.vue +2 -0
  69. package/src/components/{molecules/wt-tabs → wt-tabs}/wt-tabs.vue +2 -0
  70. package/src/components/{molecules/wt-tags-input → wt-tags-input}/wt-tags-input.vue +2 -1
  71. package/src/components/wt-textarea/wt-textarea.vue +217 -0
  72. package/src/components/{molecules/wt-time-input → wt-time-input}/wt-time-input.vue +1 -1
  73. package/src/components/{molecules/wt-timepicker → wt-timepicker}/wt-timepicker.vue +4 -2
  74. package/src/components/wt-tooltip/_variables.scss +11 -0
  75. package/src/components/{atoms/wt-tooltip → wt-tooltip}/wt-tooltip.vue +2 -0
  76. package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +78 -0
  77. package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +36 -0
  78. package/src/css/main.scss +0 -2
  79. package/src/locale/en/en.js +7 -0
  80. package/src/locale/ru/ru.js +7 -0
  81. package/src/locale/ua/ua.js +7 -0
  82. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +1 -1
  83. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +5 -5
  84. package/src/modules/AuditForm/components/audit-form.vue +1 -1
  85. package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +3 -3
  86. package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +2 -2
  87. package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +2 -2
  88. package/src/components/atoms/wt-chip/wt-chip.vue +0 -23
  89. package/src/components/atoms/wt-divider/wt-divider.vue +0 -25
  90. package/src/components/atoms/wt-input-info/wt-input-info.vue +0 -35
  91. package/src/components/molecules/wt-checkbox/wt-checkbox.vue +0 -180
  92. package/src/components/molecules/wt-notification/wt-notification.vue +0 -75
  93. package/src/components/molecules/wt-radio/wt-radio.vue +0 -174
  94. package/src/components/molecules/wt-switcher/wt-switcher.vue +0 -182
  95. package/src/components/molecules/wt-textarea/wt-textarea.vue +0 -215
  96. package/src/components/organisms/wt-app-header/wt-app-header.vue +0 -24
  97. package/src/css/components/_components.scss +0 -45
  98. package/src/css/components/atoms/wt-tooltip/_variables.scss +0 -29
  99. package/src/css/components/molecules/wt-icon-btn/_variables.scss +0 -3
  100. package/src/css/components/organisms/wt-icon-action/_variables.scss +0 -0
  101. package/src/locale/.DS_Store +0 -0
  102. /package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppHeader.spec.js +0 -0
  103. /package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtHeaderActions.spec.js +0 -0
  104. /package/src/components/{organisms/wt-app-header → wt-app-header}/wt-header-actions.vue +0 -0
  105. /package/src/components/{atoms/wt-avatar → wt-avatar}/__tests__/wt-avatar.spec.js +0 -0
  106. /package/src/components/{atoms/wt-badge → wt-badge}/__tests__/wt-badge.spec.js +0 -0
  107. /package/src/{css/components/atoms → components}/wt-badge/_variables.scss +0 -0
  108. /package/src/components/{atoms/wt-button → wt-button}/__tests__/WtButton.spec.js +0 -0
  109. /package/src/components/{molecules/wt-button-select → wt-button-select}/__tests__/WtButtonSelect.spec.js +0 -0
  110. /package/src/{css/components/molecules → components}/wt-checkbox/_variables.scss +0 -0
  111. /package/src/components/{atoms/wt-chip → wt-chip}/__tests__/WtChip.spec.js +0 -0
  112. /package/src/{css/components/atoms → components}/wt-chip/_variables.scss +0 -0
  113. /package/src/{css/components/atoms → components}/wt-chip/wt-chip.scss +0 -0
  114. /package/src/components/{atoms/wt-context-menu → wt-context-menu}/__tests__/WtContextMenu.spec.js +0 -0
  115. /package/src/{css/components/atoms → components}/wt-context-menu/_variables.scss +0 -0
  116. /package/src/components/{molecules/wt-copy-action → wt-copy-action}/__tests__/WtCopyAction.spec.js +0 -0
  117. /package/src/components/{molecules/wt-copy-action → wt-copy-action}/wt-copy-action.vue +0 -0
  118. /package/src/{css/components/molecules → components}/wt-datepicker/_variables.scss +0 -0
  119. /package/src/components/{atoms/wt-divider → wt-divider}/__tests__/WtDivider.spec.js +0 -0
  120. /package/src/{css/components/atoms → components}/wt-divider/_variables.scss +0 -0
  121. /package/src/components/{molecules/wt-dummy → wt-dummy}/__tests__/WtDummy.spec.js +0 -0
  122. /package/src/components/{organisms/wt-error-page → wt-error-page}/__tests__/wt-error-page.spec.js +0 -0
  123. /package/src/components/{organisms/wt-expansion-panel → wt-expansion-panel}/__tests__/WtExpansionPanel.spec.js +0 -0
  124. /package/src/components/{organisms/wt-expansion-panel → wt-expansion-panel}/wt-expansion-panel.vue +0 -0
  125. /package/src/components/{organisms/wt-filters-panel-wrapper → wt-filters-panel-wrapper}/__tests__/WtFiltersPanelWrapper.spec.js +0 -0
  126. /package/src/components/{organisms/wt-filters-panel-wrapper → wt-filters-panel-wrapper}/wt-filters-panel-wrapper.vue +0 -0
  127. /package/src/components/{organisms/wt-headline → wt-headline}/__tests__/WtHeadline.spec.js +0 -0
  128. /package/src/{css/components/organisms → components}/wt-headline/_variables.scss +0 -0
  129. /package/src/components/{organisms/wt-headline-nav → wt-headline-nav}/__tests__/wt-headline-nav.spec.js +0 -0
  130. /package/src/{css/components/organisms → components}/wt-headline-nav/_variables.scss +0 -0
  131. /package/src/components/{molecules/wt-hint → wt-hint}/__tests__/WtHint.spec.js +0 -0
  132. /package/src/components/{molecules/wt-hint → wt-hint}/wt-hint.vue +0 -0
  133. /package/src/components/{atoms/wt-icon → wt-icon}/__tests__/WtIcon.spec.js +0 -0
  134. /package/src/{css/components/atoms → components}/wt-icon/_variables.scss +0 -0
  135. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/__tests__/WtIconAction.spec.js +0 -0
  136. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtAddIconAction.spec.js +0 -0
  137. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtDeleteIconAction.spec.js +0 -0
  138. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtDownloadIconAction.spec.js +0 -0
  139. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtEditIconAction.spec.js +0 -0
  140. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtHistoryIconAction.spec.js +0 -0
  141. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtRefreshIconAction.spec.js +0 -0
  142. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-add-icon-action.vue +0 -0
  143. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-delete-icon-action.vue +0 -0
  144. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-download-icon-action.vue +0 -0
  145. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-edit-icon-action.vue +0 -0
  146. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-history-icon-action.vue +0 -0
  147. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-refresh-icon-action.vue +0 -0
  148. /package/src/components/{atoms/wt-icon-action → wt-icon-action}/wt-icon-action.vue +0 -0
  149. /package/src/components/{atoms/wt-indicator → wt-indicator}/__tests__/WtIndicator.spec.js +0 -0
  150. /package/src/{css/components/atoms → components}/wt-indicator/_variables.scss +0 -0
  151. /package/src/components/{molecules/wt-input → wt-input}/__tests__/WtInput.spec.js +0 -0
  152. /package/src/{css/components/molecules → components}/wt-input/_variables.scss +0 -0
  153. /package/src/components/{atoms/wt-input-info → wt-input-info}/__tests__/WtInputInfo.spec.js +0 -0
  154. /package/src/{css/components/atoms → components}/wt-input-info/_variables.scss +0 -0
  155. /package/src/components/{molecules/wt-item-link → wt-item-link}/__tests__/WtItemLink.spec.js +0 -0
  156. /package/src/components/{molecules/wt-item-link → wt-item-link}/wt-item-link.vue +0 -0
  157. /package/src/components/{molecules/wt-label → wt-label}/__tests__/WtLabel.spec.js +0 -0
  158. /package/src/{css/components/atoms → components}/wt-label/_variables.scss +0 -0
  159. /package/src/components/{molecules/wt-label → wt-label}/mixins/labelUsageMixin.js +0 -0
  160. /package/src/components/{molecules/wt-load-bar → wt-load-bar}/__tests__/WtLoadBar.spec.js +0 -0
  161. /package/src/{css/components/molecules → components}/wt-load-bar/_variables.scss +0 -0
  162. /package/src/components/{atoms/wt-loader → wt-loader}/__tests__/WtLoader.spec.js +0 -0
  163. /package/src/components/{atoms/wt-loader → wt-loader}/_internals/wt-loader--md.vue +0 -0
  164. /package/src/components/{atoms/wt-loader → wt-loader}/_internals/wt-loader--sm.vue +0 -0
  165. /package/src/{css/components/atoms → components}/wt-loader/_variables.scss +0 -0
  166. /package/src/components/{organisms/wt-navigation-bar → wt-navigation-bar}/__tests__/WtNavigationBar.spec.js +0 -0
  167. /package/src/{css/components/organisms → components}/wt-navigation-bar/_variables.scss +0 -0
  168. /package/src/{css/components/molecules → components}/wt-notification/_variables.scss +0 -0
  169. /package/src/{css/components/organisms → components}/wt-notifications-bar/_variables.scss +0 -0
  170. /package/src/components/{organisms/wt-page-header → wt-page-header}/__tests__/wt-page-header.spec.js +0 -0
  171. /package/src/components/{organisms/wt-page-wrapper → wt-page-wrapper}/__tests__/WtPageWrapper.spec.js +0 -0
  172. /package/src/{css/components/organisms → components}/wt-page-wrapper/_variables.scss +0 -0
  173. /package/src/components/{organisms/wt-pagination → wt-pagination}/__tests__/WtPagination.spec.js +0 -0
  174. /package/src/{css/components/organisms → components}/wt-pagination/_variables.scss +0 -0
  175. /package/src/components/{organisms/wt-player → wt-player}/__tests__/WtPlayer.spec.js +0 -0
  176. /package/src/{css/components/organisms → components}/wt-player/_variables.scss +0 -0
  177. /package/src/components/{molecules/wt-popup → wt-popup}/__tests__/WtPopup.spec.js +0 -0
  178. /package/src/{css/components/molecules → components}/wt-popup/_variables.scss +0 -0
  179. /package/src/components/{molecules/wt-progress-bar → wt-progress-bar}/__tests__/WtProgressBar.spec.js +0 -0
  180. /package/src/{css/components/molecules → components}/wt-progress-bar/_variables.scss +0 -0
  181. /package/src/{css/components/molecules → components}/wt-radio/_variables.scss +0 -0
  182. /package/src/components/{atoms/wt-rounded-action → wt-rounded-action}/__tests__/WtRoundedAction.spec.js +0 -0
  183. /package/src/{css/components/atoms → components}/wt-rounded-action/_variables.scss +0 -0
  184. /package/src/components/{molecules/wt-search-bar → wt-search-bar}/__tests__/WtSearchBar.spec.js +0 -0
  185. /package/src/{css/components/molecules → components}/wt-search-bar/_variables.scss +0 -0
  186. /package/src/components/{molecules/wt-select → wt-select}/__tests__/WtSelect.spec.js +0 -0
  187. /package/src/{css/components/molecules → components}/wt-select/_variables.scss +0 -0
  188. /package/src/components/{molecules/wt-select → wt-select}/mixins/__tests__/multiselectMixin.spec.js +0 -0
  189. /package/src/components/{molecules/wt-slider → wt-slider}/__tests__/WtSlider.spec.js +0 -0
  190. /package/src/{css/components/molecules → components}/wt-slider/_variables.scss +0 -0
  191. /package/src/{css/components/organisms → components}/wt-status-select/_variables.scss +0 -0
  192. /package/src/components/{organisms/wt-stepper → wt-stepper}/__tests__/WtStepper.spec.vue.js +0 -0
  193. /package/src/components/{organisms/wt-stepper → wt-stepper}/wt-stepper.vue +0 -0
  194. /package/src/components/{molecules/wt-switcher → wt-switcher}/__tests__/WtSwitcher.spec.js +0 -0
  195. /package/src/{css/components/molecules → components}/wt-switcher/_variables.scss +0 -0
  196. /package/src/components/{organisms/wt-table → wt-table}/_internals/getSortOrder.js +0 -0
  197. /package/src/{css/components/organisms → components}/wt-table/_variables.scss +0 -0
  198. /package/src/components/{organisms/wt-table-actions → wt-table-actions}/__tests__/WtTableActions.spec.js +0 -0
  199. /package/src/{css/components/organisms → components}/wt-table-actions/_variables.scss +0 -0
  200. /package/src/components/{organisms/wt-table-column-select → wt-table-column-select}/__tests__/WtTableColumnSelect.spec.js +0 -0
  201. /package/src/components/{organisms/wt-table-column-select → wt-table-column-select}/wt-table-column-select.vue +0 -0
  202. /package/src/components/{molecules/wt-tabs → wt-tabs}/__tests__/WtTabs.spec.js +0 -0
  203. /package/src/{css/components/molecules → components}/wt-tabs/_variables.scss +0 -0
  204. /package/src/components/{molecules/wt-tags-input → wt-tags-input}/__tests__/WtTagsInput.spec.js +0 -0
  205. /package/src/{css/components/molecules → components}/wt-tags-input/_variables.scss +0 -0
  206. /package/src/components/{molecules/wt-textarea → wt-textarea}/__tests__/WtTextarea.spec.js +0 -0
  207. /package/src/{css/components/molecules → components}/wt-textarea/_variables.scss +0 -0
  208. /package/src/components/{molecules/wt-time-input → wt-time-input}/__tests__/WtTimeInput.spec.js +0 -0
  209. /package/src/components/{molecules/wt-timepicker → wt-timepicker}/__tests__/WtTimepicker.spec.js +0 -0
  210. /package/src/{css/components/molecules → components}/wt-timepicker/_variables.scss +0 -0
  211. /package/src/components/{atoms/wt-tooltip → wt-tooltip}/__tests__/WtTooltip.spec.js +0 -0
  212. /package/src/components/{atoms/wt-tooltip → wt-tooltip}/_internals/useTooltipTriggerSubscriptions.js +0 -0
  213. /package/src/components/{atoms/wt-tooltip → wt-tooltip}/_internals/wt-tooltip-floating.vue +0 -0
  214. /package/src/{scripts/validators → validators}/domainValidator.js +0 -0
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <span class="wt-chip" :class="`wt-chip--${color}-color`">
3
+ <slot></slot>
4
+ </span>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ name: 'wt-chip',
10
+ props: {
11
+ color: {
12
+ type: String,
13
+ default: 'main',
14
+ options: ['main', 'outline', 'accent', 'secondary', 'secondary-50', 'success', 'danger', 'transfer'],
15
+ notes: '"main" and "outline" are chip-specific colors',
16
+ },
17
+ },
18
+ };
19
+ </script>
20
+
21
+ <style lang="scss" scoped>
22
+ @import './wt-chip.scss';
23
+ @import './variables.scss';
24
+ </style>
@@ -74,6 +74,8 @@ function handleOptionClick({ option, index, hide }) {
74
74
  </script>
75
75
 
76
76
  <style lang="scss" scoped>
77
+ @import './variables.scss';
78
+
77
79
  .wt-context-menu {
78
80
  line-height: 0;
79
81
 
@@ -1,7 +1,7 @@
1
1
  import { shallowMount, mount } from '@vue/test-utils';
2
2
  import WtDatepicker from '../wt-datepicker.vue';
3
3
  import WtLabel from '../../wt-label/wt-label.vue';
4
- import WtIcon from '../../../atoms/wt-icon/wt-icon.vue';
4
+ import WtIcon from '../../wt-icon/wt-icon.vue';
5
5
 
6
6
  describe('WtDatepicker', () => {
7
7
  it('renders a component', () => {
@@ -132,6 +132,8 @@ const isDateTime = props.mode === 'datetime';
132
132
  </script>
133
133
 
134
134
  <style lang="scss" scoped>
135
+ @import './variables.scss';
136
+
135
137
  .wt-datepicker :deep(.dp__main) {
136
138
  .dp__input_icon {
137
139
  left: var(--spacing-xs);
@@ -0,0 +1,27 @@
1
+ <template>
2
+ <hr class="wt-divider">
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: 'wt-divider',
8
+ };
9
+ </script>
10
+
11
+ <style lang="scss" scoped>
12
+ @import './variables.scss';
13
+
14
+ .wt-divider {
15
+ display: block;
16
+ box-sizing: border-box;
17
+ width: 100%;
18
+ max-width: 100%;
19
+ height: 0;
20
+ max-height: 0;
21
+ padding: 0;
22
+ margin: 0;
23
+ border: var(--divider-border);
24
+ border-color: var(--divider-border-color);
25
+ border-top-width: thin;
26
+ }
27
+ </style>
@@ -20,7 +20,7 @@
20
20
  </template>
21
21
 
22
22
  <script setup>
23
- import dummy from '../../../assets/components/molecules/wt-dummy/dummy.svg';
23
+ import dummy from '../../assets/components/molecules/wt-dummy/dummy.svg';
24
24
 
25
25
  const props = defineProps({
26
26
  src: {
@@ -19,8 +19,8 @@
19
19
  </template>
20
20
 
21
21
  <script>
22
- import pic403 from '../../../assets/components/organisms/wt-error-page/403.svg';
23
- import pic404 from '../../../assets/components/organisms/wt-error-page/404.svg';
22
+ import pic403 from '../../assets/components/organisms/wt-error-page/403.svg';
23
+ import pic404 from '../../assets/components/organisms/wt-error-page/404.svg';
24
24
 
25
25
  export default {
26
26
  name: 'wt-error-page',
@@ -21,6 +21,8 @@ export default {
21
21
  </script>
22
22
 
23
23
  <style lang="scss" scoped>
24
+ @import './variables.scss';
25
+
24
26
  .wt-headline {
25
27
  display: flex;
26
28
  align-items: center;
@@ -38,6 +38,8 @@ export default {
38
38
  </script>
39
39
 
40
40
  <style lang="scss" scoped>
41
+ @import './variables.scss';
42
+
41
43
  .wt-headline-nav {
42
44
  display: flex;
43
45
  align-items: center;
@@ -29,7 +29,21 @@ export default {
29
29
  color: {
30
30
  type: String,
31
31
  default: 'default',
32
- options: ['default', 'contrast', 'active', 'accent', 'secondary', 'disabled', 'success', 'danger', 'transfer', 'job', 'hold', 'secondary-50', 'icon-secondary'],
32
+ options: [
33
+ 'default',
34
+ 'contrast',
35
+ 'active',
36
+ 'accent',
37
+ 'secondary',
38
+ 'disabled',
39
+ 'success',
40
+ 'danger',
41
+ 'transfer',
42
+ 'job',
43
+ 'hold',
44
+ 'secondary-50',
45
+ 'icon-secondary',
46
+ ],
33
47
  },
34
48
  iconPrefix: {
35
49
  type: String,
@@ -51,6 +65,8 @@ export default {
51
65
  </script>
52
66
 
53
67
  <style lang="scss" scoped>
68
+ @import './variables.scss';
69
+
54
70
  .wt-icon {
55
71
  display: inline-flex;
56
72
  justify-content: center;
@@ -1,6 +1,6 @@
1
1
  import { shallowMount } from '@vue/test-utils';
2
2
  import WtIconBtn from '../wt-icon-btn.vue';
3
- import WtIcon from '../../../atoms/wt-icon/wt-icon.vue';
3
+ import WtIcon from '../../wt-icon/wt-icon.vue';
4
4
 
5
5
  describe('WtIconBtn', () => {
6
6
  it('renders a component', () => {
@@ -15,7 +15,7 @@
15
15
  </template>
16
16
 
17
17
  <script>
18
- import WtIcon from '../../atoms/wt-icon/wt-icon.vue';
18
+ import WtIcon from '../wt-icon/wt-icon.vue';
19
19
 
20
20
  export default {
21
21
  name: 'wt-icon-btn',
@@ -45,6 +45,8 @@ export default {
45
45
  </script>
46
46
 
47
47
  <style lang="scss" scoped>
48
+ @import './variables.scss';
49
+
48
50
  .wt-indicator {
49
51
  display: flex;
50
52
  align-items: center;
@@ -68,7 +68,7 @@
68
68
  </template>
69
69
 
70
70
  <script>
71
- import validationMixin from '../../../mixins/validationMixin/validationMixin';
71
+ import validationMixin from '../../mixins/validationMixin/validationMixin';
72
72
 
73
73
  /*
74
74
  * IMPORTANT: WT-INPUT SHOULD SUPPORT VUE 3 AND VUE 2 V-MODEL INTERFACES SO THAT THERE'S
@@ -246,6 +246,8 @@ export default {
246
246
  </script>
247
247
 
248
248
  <style lang="scss" scoped>
249
+ @import './variables.scss';
250
+
249
251
  .wt-input {
250
252
  cursor: text;
251
253
 
@@ -0,0 +1,37 @@
1
+ <template>
2
+ <div
3
+ class="wt-input-info"
4
+ :class="{
5
+ 'wt-input-info--invalid': invalid,
6
+ }"
7
+ >
8
+ <slot></slot>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ name: 'wt-input-info',
15
+ props: {
16
+ invalid: {
17
+ type: Boolean,
18
+ default: false,
19
+ },
20
+ },
21
+ };
22
+ </script>
23
+
24
+ <style lang="scss" scoped>
25
+ @import './variables.scss';
26
+
27
+ .wt-input-info {
28
+ @extend %typo-caption;
29
+ margin-top: var(--input-info-margin);
30
+ color: var(--input-info-color);
31
+ min-height: var(--input-info-min-height);
32
+
33
+ &--invalid {
34
+ color: var(--input-info--invalid-color);
35
+ }
36
+ }
37
+ </style>
@@ -44,6 +44,8 @@ export default {
44
44
  </script>
45
45
 
46
46
  <style lang="scss" scoped>
47
+ @import './variables.scss';
48
+
47
49
  .wt-label {
48
50
  @extend %typo-body-1;
49
51
 
@@ -29,6 +29,8 @@ export default {
29
29
  </script>
30
30
 
31
31
  <style lang="scss" scoped>
32
+ @import './variables.scss';
33
+
32
34
  .wt-load-bar {
33
35
  position: relative;
34
36
  box-sizing: border-box;
@@ -7,26 +7,28 @@
7
7
  import WtLoaderSm from './_internals/wt-loader--sm.vue';
8
8
  import WtLoaderMd from './_internals/wt-loader--md.vue';
9
9
 
10
- export default {
11
- name: 'wt-loader',
12
- components: {
13
- WtLoaderSm,
14
- WtLoaderMd,
10
+ export default {
11
+ name: 'wt-loader',
12
+ components: {
13
+ WtLoaderSm,
14
+ WtLoaderMd,
15
+ },
16
+ props: {
17
+ size: {
18
+ type: String,
19
+ default: 'md',
20
+ description: '["sm", "md"]',
15
21
  },
16
- props: {
17
- size: {
18
- type: String,
19
- default: 'md',
20
- description: '["sm", "md"]',
21
- },
22
- color: {
23
- type: String,
24
- default: 'contrast',
25
- description: '["main", "contrast"]',
26
- },
22
+ color: {
23
+ type: String,
24
+ default: 'contrast',
25
+ description: '["main", "contrast"]',
27
26
  },
28
- };
27
+ },
28
+ };
29
29
  </script>
30
30
 
31
31
  <style lang="scss" scoped>
32
+ @import './variables.scss';
33
+
32
34
  </style>
@@ -14,31 +14,31 @@
14
14
  v-if="currentApp === 'admin'"
15
15
  alt="admin"
16
16
  class="wt-navigation-bar__app-pic"
17
- src="../../../assets/components/organisms/wt-navigation-bar/logo-admin-app.svg"
17
+ src="../../assets/components/organisms/wt-navigation-bar/logo-admin-app.svg"
18
18
  >
19
19
  <img
20
20
  v-if="currentApp === 'agent'"
21
21
  alt="agent"
22
22
  class="wt-navigation-bar__app-pic"
23
- src="../../../assets/components/organisms/wt-navigation-bar/logo-agent-app.svg"
23
+ src="../../assets/components/organisms/wt-navigation-bar/logo-agent-app.svg"
24
24
  >
25
25
  <img
26
26
  v-if="currentApp === 'audit'"
27
27
  alt="audit"
28
28
  class="wt-navigation-bar__app-pic"
29
- src="../../../assets/components/organisms/wt-navigation-bar/logo-audit-app.svg"
29
+ src="../../assets/components/organisms/wt-navigation-bar/logo-audit-app.svg"
30
30
  >
31
31
  <img
32
32
  v-if="currentApp === 'history'"
33
33
  alt="history"
34
34
  class="wt-navigation-bar__app-pic"
35
- src="../../../assets/components/organisms/wt-navigation-bar/logo-history-app.svg"
35
+ src="../../assets/components/organisms/wt-navigation-bar/logo-history-app.svg"
36
36
  >
37
37
  <img
38
38
  v-if="currentApp === 'supervisor'"
39
39
  alt="supervisor"
40
40
  class="wt-navigation-bar__app-pic"
41
- src="../../../assets/components/organisms/wt-navigation-bar/logo-supervisor-app.svg"
41
+ src="../../assets/components/organisms/wt-navigation-bar/logo-supervisor-app.svg"
42
42
  >
43
43
  <wt-icon-btn
44
44
  class="wt-navigation-bar__nav-close"
@@ -109,7 +109,7 @@
109
109
  </template>
110
110
 
111
111
  <script>
112
- import ExpandTransition from '../../transitions/wt-expand-transition.vue';
112
+ import ExpandTransition from '../transitions/wt-expand-transition.vue';
113
113
 
114
114
  export default {
115
115
  name: 'wt-navigation-bar',
@@ -133,14 +133,14 @@ export default {
133
133
  currentNav() {
134
134
  const path = this.$route.fullPath;
135
135
  const currentNav = this.nav
136
- .reduce((flatNav, currentNavItem) => {
137
- if (currentNavItem.subNav) return flatNav.concat(currentNavItem.subNav);
138
- return [...flatNav, currentNavItem];
139
- }, [])
140
- .find((navItem) => path.includes(navItem.route));
136
+ .reduce((flatNav, currentNavItem) => {
137
+ if (currentNavItem.subNav) return flatNav.concat(currentNavItem.subNav);
138
+ return [...flatNav, currentNavItem];
139
+ }, [])
140
+ .find((navItem) => path.includes(navItem.route));
141
141
  const currentExpansion = this.nav
142
- .filter((nav) => nav.subNav)
143
- .find((nav) => nav.subNav.indexOf(currentNav) !== -1);
142
+ .filter((nav) => nav.subNav)
143
+ .find((nav) => nav.subNav.indexOf(currentNav) !== -1);
144
144
  return {
145
145
  nav: currentNav?.value,
146
146
  expansion: currentExpansion?.value,
@@ -165,6 +165,8 @@ export default {
165
165
  </script>
166
166
 
167
167
  <style lang="scss" scoped>
168
+ @import './variables.scss';
169
+
168
170
  .wt-navigation-bar__menu-btn {
169
171
  display: block;
170
172
  width: fit-content;
@@ -1,6 +1,6 @@
1
1
  import { shallowMount } from '@vue/test-utils';
2
2
  import WtNotification from '../wt-notification.vue';
3
- import WtIcon from '../../../atoms/wt-icon/wt-icon.vue';
3
+ import WtIcon from '../../wt-icon/wt-icon.vue';
4
4
 
5
5
  describe('WtNotification', () => {
6
6
  it('renders a component', () => {
@@ -0,0 +1,83 @@
1
+ <template>
2
+ <article
3
+ class="wt-notification"
4
+ @click="$emit('close')"
5
+ >
6
+ <wt-icon
7
+ class="wt-notification__icon"
8
+ :icon="notificationIcon"
9
+ :color="notificationIconColor"
10
+ ></wt-icon>
11
+
12
+ <p class="wt-notification__text">
13
+ <slot></slot>
14
+ </p>
15
+ </article>
16
+ </template>
17
+
18
+ <script>
19
+
20
+ export default {
21
+ name: 'wt-notification',
22
+ props: {
23
+ type: {
24
+ type: String,
25
+ default: 'info',
26
+ },
27
+ },
28
+ computed: {
29
+ notificationIcon() {
30
+ switch (this.type) {
31
+ case 'info':
32
+ return 'done';
33
+ case 'error':
34
+ return 'attention';
35
+ default:
36
+ return '';
37
+ }
38
+ },
39
+ notificationIconColor() {
40
+ switch (this.type) {
41
+ case 'info':
42
+ return 'success';
43
+ case 'error':
44
+ return 'danger';
45
+ default:
46
+ return '';
47
+ }
48
+ },
49
+ },
50
+ };
51
+ </script>
52
+
53
+ <style lang="scss" scoped>
54
+ @import './variables.scss';
55
+
56
+ .wt-notification {
57
+ @extend %typo-body-1;
58
+ @include width-fit-content;
59
+
60
+ position: relative;
61
+ display: flex;
62
+ align-items: flex-start;
63
+ min-width: var(--notification-min-width);
64
+ max-width: var(--notification-max-width);
65
+ padding: var(--notification-padding);
66
+ color: var(--notification-text-color);
67
+ background: var(--notification-bg-color);
68
+ border-radius: var(--border-radius);
69
+ box-shadow: var(--elevation-1);
70
+ cursor: pointer;
71
+ }
72
+
73
+ .wt-notification__icon {
74
+ flex: 0 0 var(--icon-md-size);
75
+ margin-right: var(--notification-icon-margin);
76
+ }
77
+
78
+ .wt-notification__text {
79
+ flex-grow: 1;
80
+ align-self: center;
81
+ margin: 0;
82
+ }
83
+ </style>
@@ -1,7 +1,7 @@
1
1
  import { shallowMount } from '@vue/test-utils';
2
2
  import WtNotificationsBar from '../wt-notifications-bar.vue';
3
- import WtNotification from '../../../molecules/wt-notification/wt-notification.vue';
4
- import eventBus from '../../../../scripts/eventBus';
3
+ import WtNotification from '../../wt-notification/wt-notification.vue';
4
+ import eventBus from '../../../scripts/eventBus';
5
5
 
6
6
  describe('WtNotificationsBar', () => {
7
7
  it('renders a component', () => {
@@ -44,6 +44,8 @@ export default {
44
44
  </script>
45
45
 
46
46
  <style lang="scss" scoped>
47
+ @import './variables.scss';
48
+
47
49
  .wt-notifications-bar {
48
50
  @extend %wt-scrollbar;
49
51
 
@@ -70,6 +70,7 @@ const emptySecondary = computed(() => !(props.secondaryAction || props.secondary
70
70
  </script>
71
71
 
72
72
  <style lang="scss" scoped>
73
+
73
74
  .wt-headline {
74
75
  .wt-button {
75
76
  margin-left: var(--spacing-sm);
@@ -25,6 +25,8 @@ export default {
25
25
  </script>
26
26
 
27
27
  <style lang="scss" scoped>
28
+ @import './variables.scss';
29
+
28
30
  .wt-page-wrapper {
29
31
  display: flex;
30
32
  flex-direction: column;
@@ -39,7 +39,7 @@
39
39
  </template>
40
40
 
41
41
  <script>
42
- import debounce from '../../../scripts/debounce';
42
+ import debounce from '../../scripts/debounce';
43
43
 
44
44
  export default {
45
45
  name: 'wt-pagination',
@@ -106,6 +106,8 @@ export default {
106
106
  </script>
107
107
 
108
108
  <style lang="scss" scoped>
109
+ @import './variables.scss';
110
+
109
111
  .wt-pagination {
110
112
  @extend %typo-body-1;
111
113
 
@@ -103,12 +103,14 @@ export default {
103
103
  await this.$nextTick(); // test is failing to render component if element is passed to Plyr as Vue $ref
104
104
  const baseURL = this.$baseURL || process.env.BASE_URL;
105
105
  if (this.player) this.player.destroy();
106
- const controls = ['play-large', 'play', 'progress', 'current-time',
106
+ const controls = [
107
+ 'play-large', 'play', 'progress', 'current-time',
107
108
  'mute', 'volume', 'captions', 'settings', 'pip',
108
- 'airplay', 'fullscreen'];
109
+ 'airplay', 'fullscreen',
110
+ ];
109
111
  if (this.download) controls.push('download');
110
112
  this.player = new Plyr(this.$refs.player, {
111
- // this.player = new Plyr('.wt-player__player', {
113
+ // this.player = new Plyr('.wt-player__player', {
112
114
  autoplay: this.autoplay,
113
115
  loadSprite: false,
114
116
  resetOnEnd: this.resetOnEnd,
@@ -150,7 +152,8 @@ export default {
150
152
  </script>
151
153
 
152
154
  <style lang="scss">
153
- @import "~plyr/src/sass/plyr.scss";
155
+ @import '../../../node_modules/plyr/src/sass/plyr';
156
+ @import './variables.scss';
154
157
 
155
158
  .wt-player {
156
159
  @extend %typo-body-2;
@@ -160,10 +163,12 @@ export default {
160
163
  &-sticky {
161
164
  position: sticky;
162
165
  }
166
+
163
167
  &-relative {
164
168
  position: relative;
165
169
  bottom: unset;
166
170
  }
171
+
167
172
  &-static {
168
173
  position: static;
169
174
  }
@@ -56,6 +56,8 @@ export default {
56
56
  </script>
57
57
 
58
58
  <style lang="scss" scoped>
59
+ @import './variables.scss';
60
+
59
61
  .wt-popup {
60
62
  position: fixed;
61
63
  z-index: var(--popup-wrapper-z-index);
@@ -1,9 +1,11 @@
1
1
  <template>
2
- <div class="wt-progress-bar" :class="[{
2
+ <div
3
+ class="wt-progress-bar" :class="[{
3
4
  'wt-progress-bar--overflow': isOverflow,
4
5
  },
5
6
  `wt-progress-bar--${color}`
6
- ]">
7
+ ]"
8
+ >
7
9
  <span class="wt-progress-bar__progress" :style="`width: ${this.progressWidth}%;`"></span>
8
10
  </div>
9
11
  </template>
@@ -41,6 +43,8 @@ export default {
41
43
  </script>
42
44
 
43
45
  <style lang="scss" scoped>
46
+ @import './variables.scss';
47
+
44
48
  .wt-progress-bar {
45
49
  box-sizing: border-box;
46
50
  width: 100%;
@@ -63,12 +67,15 @@ export default {
63
67
  .wt-progress-bar--primary .wt-progress-bar__progress {
64
68
  background: var(--progress-bar-bg-color--primary);
65
69
  }
70
+
66
71
  .wt-progress-bar--secondary .wt-progress-bar__progress {
67
72
  background: var(--progress-bar-bg-color--secondary);
68
73
  }
74
+
69
75
  .wt-progress-bar--success .wt-progress-bar__progress {
70
76
  background: var(--progress-bar-bg-color--success);
71
77
  }
78
+
72
79
  .wt-progress-bar--danger .wt-progress-bar__progress {
73
80
  background: var(--progress-bar-bg-color--danger);
74
81
  }
@@ -1,7 +1,7 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils';
2
2
  import WtRadio from '../wt-radio.vue';
3
3
  import WtLabel from '../../wt-label/wt-label.vue';
4
- import WtIcon from '../../../atoms/wt-icon/wt-icon.vue';
4
+ import WtIcon from '../../wt-icon/wt-icon.vue';
5
5
 
6
6
  describe('WtRadio', () => {
7
7
  it('renders a component', () => {