@webitel/ui-sdk 0.1.11 → 0.1.112

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 (254) hide show
  1. package/README.md +29 -29
  2. package/dist/img/plyr.svg +70 -0
  3. package/dist/img/svg-sprites/attach.svg +4 -0
  4. package/dist/img/svg-sprites/index.js +1 -0
  5. package/dist/img/svg-sprites/wt-icon.svg +880 -0
  6. package/dist/ui-sdk.common.js +8287 -4335
  7. package/dist/ui-sdk.common.js.map +1 -1
  8. package/dist/ui-sdk.css +1 -1
  9. package/dist/ui-sdk.umd.js +8287 -4335
  10. package/dist/ui-sdk.umd.js.map +1 -1
  11. package/dist/ui-sdk.umd.min.js +3 -1
  12. package/dist/ui-sdk.umd.min.js.map +1 -1
  13. package/package.json +62 -41
  14. package/src/components/atoms/wt-badge/__tests__/WtBadge.spec.js +19 -0
  15. package/src/components/atoms/wt-badge/wt-badge.vue +23 -0
  16. package/src/components/atoms/wt-button/__tests__/WtButton.spec.js +29 -0
  17. package/src/components/atoms/wt-button/wt-button.vue +212 -0
  18. package/src/components/atoms/wt-divider/__tests__/WtDivider.spec.js +9 -0
  19. package/src/components/atoms/wt-divider/wt-divider.vue +25 -0
  20. package/src/components/atoms/wt-icon/__tests__/WtIcon.spec.js +24 -0
  21. package/src/components/atoms/wt-icon/wt-icon.vue +138 -0
  22. package/src/components/atoms/wt-indicator/__tests__/WtIndicator.spec.js +29 -0
  23. package/src/components/atoms/wt-indicator/wt-indicator.vue +81 -0
  24. package/src/components/atoms/wt-input-info/__tests__/WtInputInfo.spec.js +9 -0
  25. package/src/components/atoms/wt-input-info/wt-input-info.vue +35 -0
  26. package/src/components/atoms/wt-loader/__tests__/WtLoader.spec.js +9 -0
  27. package/src/components/atoms/wt-loader/_internals/wt-loader--md.vue +83 -0
  28. package/src/components/atoms/wt-loader/_internals/wt-loader--sm.vue +189 -0
  29. package/src/components/atoms/wt-loader/wt-loader.vue +34 -0
  30. package/src/components/atoms/wt-rounded-action/__tests__/WtRoundedAction.spec.js +20 -0
  31. package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +227 -0
  32. package/src/components/atoms/wt-tooltip/__tests__/WtTooltip.spec.js +29 -0
  33. package/src/components/atoms/wt-tooltip/wt-tooltip.vue +54 -0
  34. package/src/components/index.js +98 -0
  35. package/src/components/molecules/wt-checkbox/__tests__/WtCheckbox.spec.js +41 -0
  36. package/src/components/molecules/wt-checkbox/wt-checkbox.vue +175 -0
  37. package/src/components/molecules/wt-datepicker/__tests__/WtDatepicker.spec.js +28 -0
  38. package/src/components/molecules/wt-datepicker/wt-datepicker.vue +209 -0
  39. package/src/components/molecules/wt-datetimepicker/__tests__/WtDatetimepicker.spec.js +67 -0
  40. package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +314 -0
  41. package/src/components/molecules/wt-icon-btn/__tests__/WtIconBtn.spec.js +31 -0
  42. package/src/components/molecules/wt-icon-btn/wt-icon-btn.vue +113 -0
  43. package/src/components/molecules/wt-input/__tests__/WtInput.spec.js +25 -0
  44. package/src/components/molecules/wt-input/wt-input.vue +316 -0
  45. package/src/components/molecules/wt-label/__tests__/WtLabel.spec.js +9 -0
  46. package/src/components/molecules/wt-label/wt-label.vue +87 -0
  47. package/src/components/molecules/wt-notification/__tests__/WtNotification.spec.js +21 -0
  48. package/src/components/molecules/wt-notification/wt-notification.vue +74 -0
  49. package/src/components/molecules/wt-popup/__tests__/WtPopup.spec.js +47 -0
  50. package/src/components/molecules/wt-popup/wt-popup.vue +130 -0
  51. package/src/components/molecules/wt-progress-bar/__tests__/WtProgressBar.spec.js +17 -0
  52. package/src/components/molecules/wt-progress-bar/wt-progress-bar.vue +80 -0
  53. package/src/components/molecules/wt-radio/__tests__/WtRadio.spec.js +42 -0
  54. package/src/components/molecules/wt-radio/wt-radio.vue +168 -0
  55. package/src/components/molecules/wt-search-bar/__tests__/WtSearchBar.spec.js +36 -0
  56. package/src/components/molecules/wt-search-bar/wt-search-bar.vue +203 -0
  57. package/src/components/molecules/wt-select/__tests__/WtSelect.spec.js +53 -0
  58. package/src/components/molecules/wt-select/wt-select.vue +492 -0
  59. package/src/components/molecules/wt-slider/__tests__/WtSlider.spec.js +9 -0
  60. package/src/components/molecules/wt-slider/wt-slider.vue +175 -0
  61. package/src/components/molecules/wt-switcher/__tests__/WtSwitcher.spec.js +31 -0
  62. package/src/components/molecules/wt-switcher/wt-switcher.vue +177 -0
  63. package/src/components/molecules/wt-tabs/__tests__/WtTabs.spec.js +36 -0
  64. package/src/components/molecules/wt-tabs/wt-tabs.vue +127 -0
  65. package/src/components/molecules/wt-tags-input/__tests__/WtTagsInput.spec.js +45 -0
  66. package/src/components/molecules/wt-tags-input/wt-tags-input.vue +295 -0
  67. package/src/components/molecules/wt-textarea/__tests__/WtTextarea.spec.js +46 -0
  68. package/src/components/molecules/wt-textarea/wt-textarea.vue +185 -0
  69. package/src/components/molecules/wt-time-input/__tests__/WtTimeInput.spec.js +25 -0
  70. package/src/components/molecules/wt-time-input/wt-time-input.vue +192 -0
  71. package/src/components/molecules/wt-timepicker/__tests__/WtTimepicker.spec.js +60 -0
  72. package/src/components/molecules/wt-timepicker/wt-timepicker.vue +176 -0
  73. package/src/components/organisms/wt-app-header/__tests__/WtAppHeader.spec.js +19 -0
  74. package/src/components/organisms/wt-app-header/__tests__/WtAppNavigator.spec.js +23 -0
  75. package/src/components/organisms/wt-app-header/__tests__/WtHeaderActions.spec.js +21 -0
  76. package/src/components/organisms/wt-app-header/wt-app-header.vue +23 -0
  77. package/src/components/organisms/wt-app-header/wt-app-navigator.vue +245 -0
  78. package/src/components/organisms/wt-app-header/wt-header-actions.vue +177 -0
  79. package/src/components/organisms/wt-error-page/__tests__/wt-error-page.spec.js +17 -0
  80. package/src/components/organisms/wt-error-page/wt-error-page.vue +104 -0
  81. package/src/components/organisms/wt-filters-panel-wrapper/__tests__/wt-filters-panel-wrapper.spec.js +24 -0
  82. package/src/components/organisms/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +146 -0
  83. package/src/components/organisms/wt-headline/__tests__/WtHeadline.spec.js +47 -0
  84. package/src/components/organisms/wt-headline/wt-headline.vue +46 -0
  85. package/src/components/organisms/wt-navigation-bar/__tests__/WtNavigationBar.spec.js +64 -0
  86. package/src/components/organisms/wt-navigation-bar/wt-navigation-bar.vue +249 -0
  87. package/src/components/organisms/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +50 -0
  88. package/src/components/organisms/wt-notifications-bar/wt-notifications-bar.vue +71 -0
  89. package/src/components/organisms/wt-page-wrapper/__tests__/WtPageWrapper.spec.js +33 -0
  90. package/src/components/organisms/wt-page-wrapper/wt-page-wrapper.vue +60 -0
  91. package/src/components/organisms/wt-pagination/__tests__/WtPagination.spec.js +38 -0
  92. package/src/components/organisms/wt-pagination/wt-pagination.vue +134 -0
  93. package/src/components/organisms/wt-player/__tests__/WtPlayer.spec.js +9 -0
  94. package/src/components/organisms/wt-player/wt-player.vue +116 -0
  95. package/src/components/organisms/wt-status-select/__tests__/WtStatusSelect.spec.js +25 -0
  96. package/src/components/organisms/wt-status-select/_internals/StatusOptions.lookup.js +24 -0
  97. package/src/components/organisms/wt-status-select/wt-status-select.vue +110 -0
  98. package/src/components/organisms/wt-table/__tests__/WtTable.spec.js +133 -0
  99. package/src/components/organisms/wt-table/__tests__/WtTableDeleteAction.spec.js +9 -0
  100. package/src/components/organisms/wt-table/__tests__/WtTableEditAction.spec.js +9 -0
  101. package/src/components/organisms/wt-table/_internals/getSortOrder.js +12 -0
  102. package/src/components/organisms/wt-table/table-cells/wt-table-delete-action.vue +18 -0
  103. package/src/components/organisms/wt-table/table-cells/wt-table-edit-action.vue +19 -0
  104. package/src/components/organisms/wt-table/wt-table.vue +241 -0
  105. package/src/components/organisms/wt-table-actions/__tests__/WtTableActions.spec.js +9 -0
  106. package/src/components/organisms/wt-table-actions/wt-table-actions.vue +90 -0
  107. package/src/components/organisms/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +31 -0
  108. package/src/components/organisms/wt-table-column-select/wt-table-column-select.vue +113 -0
  109. package/src/components/transitions/__tests__/ExpandTransition.spec.js +9 -0
  110. package/src/components/transitions/expand-transition.vue +70 -0
  111. package/src/css/colors/_colors.scss +151 -67
  112. package/src/css/components/_components.scss +38 -25
  113. package/src/css/components/atoms/wt-badge/_variables.scss +6 -5
  114. package/src/css/components/atoms/wt-badge/wt-badge.scss +36 -8
  115. package/src/css/components/atoms/wt-button/_variables.scss +46 -46
  116. package/src/css/components/atoms/wt-divider/_variables.scss +4 -4
  117. package/src/css/components/atoms/wt-icon/_variables.scss +7 -28
  118. package/src/css/components/atoms/wt-indicator/_variables.scss +18 -0
  119. package/src/css/components/atoms/wt-input-info/_variables.scss +6 -5
  120. package/src/css/components/atoms/wt-label/_variables.scss +4 -4
  121. package/src/css/components/atoms/wt-loader/_variables.scss +7 -7
  122. package/src/css/components/atoms/wt-rounded-action/_variables.scss +30 -0
  123. package/src/css/components/atoms/wt-tooltip/_variables.scss +9 -9
  124. package/src/css/components/molecules/wt-checkbox/_variables.scss +3 -3
  125. package/src/css/components/molecules/wt-datepicker/_variables.scss +19 -19
  126. package/src/css/components/molecules/wt-datepicker/datepicker-calendar.scss +100 -100
  127. package/src/css/components/molecules/wt-datetimepicker/_variables.scss +11 -11
  128. package/src/css/components/molecules/wt-icon-btn/_variables.scss +2 -2
  129. package/src/css/components/molecules/wt-input/_variables.scss +5 -5
  130. package/src/css/components/molecules/wt-notification/_variables.scss +9 -9
  131. package/src/css/components/molecules/wt-popup/_variables.scss +11 -10
  132. package/src/css/components/molecules/wt-progress-bar/_variables.scss +11 -0
  133. package/src/css/components/molecules/wt-radio/_variables.scss +6 -6
  134. package/src/css/components/molecules/wt-search-bar/_variables.scss +3 -3
  135. package/src/css/components/molecules/wt-select/_variables.scss +24 -22
  136. package/src/css/components/molecules/wt-slider/_variables.scss +15 -0
  137. package/src/css/components/molecules/wt-switcher/_variables.scss +17 -14
  138. package/src/css/components/molecules/wt-tabs/_variables.scss +13 -13
  139. package/src/css/components/molecules/wt-tags-input/_variables.scss +25 -0
  140. package/src/css/components/molecules/wt-textarea/_variables.scss +4 -4
  141. package/src/css/components/molecules/wt-timepicker/_variables.scss +4 -3
  142. package/src/css/components/organisms/wt-app-header/_variables.scss +20 -0
  143. package/src/css/components/organisms/wt-headline/_variables.scss +7 -0
  144. package/src/css/components/organisms/wt-navigation-bar/_variables.scss +14 -0
  145. package/src/css/components/organisms/wt-notifications-bar/_variables.scss +7 -0
  146. package/src/css/components/organisms/wt-page-wrapper/_variables.scss +5 -0
  147. package/src/css/components/organisms/wt-pagination/_variables.scss +6 -6
  148. package/src/css/components/organisms/wt-status-select/_variables.scss +6 -0
  149. package/src/css/components/organisms/wt-table/_variables.scss +16 -0
  150. package/src/css/components/organisms/wt-table-actions/_variables.scss +4 -0
  151. package/src/css/display-helpers/_display-helpers.scss +21 -0
  152. package/src/css/fonts/_fonts.scss +9 -0
  153. package/src/css/main.scss +68 -65
  154. package/src/css/shadows/_shadows.scss +7 -0
  155. package/src/css/sizes/_sizes.scss +2 -0
  156. package/src/css/sizes/_spacing.scss +17 -0
  157. package/src/css/sizes/_viewport-breakpoints.scss +20 -0
  158. package/src/css/styleguide/{styleguide.scss → _styleguide.scss} +4 -3
  159. package/src/css/styleguide/scroll.scss +43 -40
  160. package/src/css/transitions/_transitions.scss +1 -0
  161. package/src/css/transitions/fade/_fade.scss +8 -0
  162. package/src/css/typography/_typography.scss +72 -72
  163. package/src/enums/AgentStatus/AgentStatus.enum.js +6 -0
  164. package/src/enums/WebitelApplications/AdminSections.enum.js +41 -0
  165. package/src/enums/WebitelApplications/SupervisorSections.enum.js +7 -0
  166. package/src/enums/WebitelApplications/WebitelApplications.enum.js +10 -0
  167. package/src/locale/en/en.js +135 -0
  168. package/src/locale/i18n.js +2 -0
  169. package/src/locale/ru/ru.js +135 -2
  170. package/src/locale/ua/ua.js +160 -0
  171. package/src/mixins/dataFilterMixins/__tests__/apiFilterMixin.spec.js +57 -0
  172. package/src/mixins/dataFilterMixins/__tests__/enumFilterMixin.spec.js +66 -0
  173. package/src/mixins/dataFilterMixins/__tests__/paginationFilterMixin.spec.js +93 -0
  174. package/src/mixins/dataFilterMixins/__tests__/sortFilterMixin.spec.js +60 -0
  175. package/src/mixins/dataFilterMixins/__tests__/urlControllerMixin.spec.js +48 -0
  176. package/src/mixins/dataFilterMixins/_urlControllerMixin/_urlControllerMixin.js +37 -0
  177. package/src/mixins/dataFilterMixins/apiFilterMixin.js +23 -0
  178. package/src/mixins/dataFilterMixins/baseFilterMixin/baseFilterMixin.js +29 -0
  179. package/src/mixins/dataFilterMixins/enumFilterMixin.js +30 -0
  180. package/src/mixins/dataFilterMixins/paginationFilterMixin.js +79 -0
  181. package/src/mixins/dataFilterMixins/sortFilterMixin.js +75 -0
  182. package/src/mixins/validationMixin/__tests__/validationMixin.spec.js +47 -0
  183. package/src/mixins/validationMixin/validationMixin.js +40 -0
  184. package/src/modules/CSVExport/CSVExport.js +88 -0
  185. package/src/modules/CSVExport/__tests__/CSVExport.spec.js +63 -0
  186. package/src/modules/CSVExport/mixins/exportCSVMixin.js +46 -0
  187. package/src/modules/FilesExport/FilesExport.js +110 -0
  188. package/src/modules/FilesExport/__tests__/FilesExport.spec.js +66 -0
  189. package/src/modules/FilesExport/mixins/exportFilesMixin.js +46 -0
  190. package/src/modules/FilesExport/scripts/generateMediaURL.js +7 -0
  191. package/src/modules/QueryFilters/api/__tests__/defaults.spec.js +18 -0
  192. package/src/modules/QueryFilters/api/defaults.js +16 -0
  193. package/src/modules/QueryFilters/classes/ApiFilterSchema.js +32 -0
  194. package/src/modules/QueryFilters/classes/BaseFilterSchema.js +6 -0
  195. package/src/modules/QueryFilters/classes/EnumFilterSchema.js +23 -0
  196. package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +25 -0
  197. package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +54 -0
  198. package/src/modules/QueryFilters/components/__tests__/abstract-enum-filter.spec.js +40 -0
  199. package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +49 -0
  200. package/src/modules/QueryFilters/components/abstract-api-filter.vue +42 -0
  201. package/src/modules/QueryFilters/components/abstract-enum-filter.vue +32 -0
  202. package/src/modules/QueryFilters/components/filter-search.vue +33 -0
  203. package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +48 -0
  204. package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +54 -0
  205. package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +74 -0
  206. package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +58 -0
  207. package/src/modules/QueryFilters/mixins/__tests__/urlControllerMixin.spec.js +48 -0
  208. package/src/modules/QueryFilters/mixins/_urlControllerMixin/_urlControllerMixin.js +39 -0
  209. package/src/modules/QueryFilters/mixins/apiFilterMixin.js +36 -0
  210. package/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js +34 -0
  211. package/src/modules/QueryFilters/mixins/enumFilterMixin.js +36 -0
  212. package/src/modules/QueryFilters/mixins/paginationFilterMixin.js +66 -0
  213. package/src/modules/QueryFilters/mixins/sortFilterMixin.js +56 -0
  214. package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +50 -0
  215. package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +83 -0
  216. package/src/modules/QueryFilters/store/queryFilters.js +6 -0
  217. package/src/modules/Userinfo/api/BaseAPIService.js +7 -0
  218. package/src/modules/Userinfo/api/auth.js +29 -0
  219. package/src/modules/Userinfo/api/userinfo.js +32 -0
  220. package/src/modules/Userinfo/classes/ApplicationsAccess.js +170 -0
  221. package/src/modules/Userinfo/components/__tests__/auth.spec.js +57 -0
  222. package/src/modules/Userinfo/components/the-auth.vue +75 -0
  223. package/src/modules/Userinfo/store/UserinfoStoreModule.js +112 -0
  224. package/src/scripts/__tests__/caseConverters.spec.js +65 -0
  225. package/src/scripts/__tests__/convertDuration.spec.js +21 -0
  226. package/src/scripts/__tests__/debounce.spec.js +15 -0
  227. package/src/scripts/__tests__/editProxy.spec.js +9 -0
  228. package/src/scripts/__tests__/isEmpty.spec.js +16 -0
  229. package/src/scripts/__tests__/prettifyFileSize.spec.js +18 -0
  230. package/src/scripts/__tests__/prettifyTime.spec.js +18 -0
  231. package/src/scripts/__tests__/preventHiddenPageCallsDecorator.spec.js +16 -0
  232. package/src/scripts/__tests__/sortQueryAdapters.spec.js +12 -0
  233. package/src/scripts/caseConverters.js +78 -0
  234. package/src/scripts/convertDuration.js +15 -0
  235. package/src/scripts/editProxy.js +9 -0
  236. package/src/scripts/eventBus.js +4 -0
  237. package/src/scripts/isEmpty.js +9 -0
  238. package/src/scripts/prettifyFileSize.js +11 -0
  239. package/src/scripts/prettifyTime.js +9 -0
  240. package/src/scripts/preventHiddenPageCallsDecorator.js +6 -0
  241. package/src/scripts/sortQueryAdapters.js +21 -0
  242. package/src/store/BaseStoreModules/BaseStoreModule.js +49 -0
  243. package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +104 -0
  244. package/src/store/helpers/__tests__/getNamespacedState.spec.js +11 -0
  245. package/src/store/helpers/getNamespacedState.js +5 -0
  246. package/dist/img/arrow-down--active--md.7b60f2fb6090366652124f77c543a516.svg +0 -3
  247. package/dist/img/arrow-down--disabled--md.f58424cd673258365e78863edd1e92cc.svg +0 -3
  248. package/dist/img/arrow-down--md.1843b60e1c244e066a650e8d19ea83c9.svg +0 -3
  249. package/dist/img/calendar--active--md.7fd3d949ec7234a4940ea452d95b4165.svg +0 -6
  250. package/dist/img/calendar--disabled--md.8e7a1e18f93ae8af270060400e6f881c.svg +0 -3
  251. package/dist/img/calendar--md.9c265581c3a405ff0f0e46e8092f36b8.svg +0 -6
  252. package/src/css/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  253. package/src/css/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
  254. package/src/css/fonts.scss +0 -9
package/src/css/main.scss CHANGED
@@ -1,66 +1,69 @@
1
- @import "./styleguide/styleguide";
2
- @import "components/components";
3
-
4
- :root {
5
- --transition: 0.2s;
6
- --border-radius: 5px;
7
-
8
- --box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
9
- }
10
-
11
- @mixin width-fit-content {
12
- width: fit-content;
13
- width: -moz-fit-content;
14
- }
15
-
16
- html {
17
- height: 100%;
18
- }
19
-
20
- body {
21
- min-height: 100%;
22
- height: 100%;
23
- margin: 0;
24
- font-family: 'Montserrat Regular', monospace;
25
- font-size: 100%;
26
- }
27
-
28
- //main {
29
- // min-height: 100%;
30
- // height: 100%;
31
- //}
32
-
33
- h1, h2, h3, h4, h5, h6, p {
34
- margin: 0;
35
- font-weight: normal;
36
- }
37
-
38
- //reset ul styles
39
- ul {
40
- padding: 0;
41
- margin: 0;
42
- list-style-type: none;
43
- }
44
-
45
- iframe {
46
- border: none;
47
- outline: none;
48
- }
49
-
50
- button {
51
- padding: 0;
52
- background: transparent;
53
- border: none;
54
- outline-color: #000;
55
- cursor: pointer;
56
- }
57
-
58
- a {
59
- color: #000;
60
- text-decoration: none;
61
- }
62
-
63
- .hidden {
64
- opacity: 0;
65
- pointer-events: none;
1
+ @import 'sizes/sizes';
2
+ @import 'display-helpers/display-helpers';
3
+ @import 'styleguide/styleguide';
4
+ @import 'transitions/transitions';
5
+ @import 'components/components';
6
+
7
+ :root {
8
+ --transition: 0.2s;
9
+ --border-radius: 5px;
10
+
11
+ --box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
12
+ }
13
+
14
+ @mixin width-fit-content {
15
+ width: fit-content;
16
+ width: -moz-fit-content;
17
+ }
18
+
19
+ html {
20
+ height: 100%;
21
+ }
22
+
23
+ body {
24
+ min-height: 100%;
25
+ height: 100%;
26
+ margin: 0;
27
+ font-family: 'Montserrat Regular', monospace;
28
+ font-size: 100%;
29
+ }
30
+
31
+ //main {
32
+ // min-height: 100%;
33
+ // height: 100%;
34
+ //}
35
+
36
+ h1, h2, h3, h4, h5, h6, p {
37
+ margin: 0;
38
+ font-weight: normal;
39
+ }
40
+
41
+ //reset ul styles
42
+ ul {
43
+ padding: 0;
44
+ margin: 0;
45
+ list-style-type: none;
46
+ }
47
+
48
+ iframe {
49
+ border: none;
50
+ outline: none;
51
+ }
52
+
53
+ button {
54
+ padding: 0;
55
+ background: transparent;
56
+ border: none;
57
+ outline-color: #000;
58
+ cursor: pointer;
59
+ }
60
+
61
+ a {
62
+ color: #000;
63
+ text-decoration: none;
64
+ }
65
+
66
+ .hidden {
67
+ opacity: 0;
68
+ pointer-events: none;
66
69
  }
@@ -0,0 +1,7 @@
1
+ :root {
2
+ --shadow-style-down-50: 0px 0px 1px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(0, 0, 0, 0.05);
3
+ --shadow-style-down-100: 0px 0px 1px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(0, 0, 0, 0.05), inset 0px 0px 8px rgba(0, 0, 0, 0.1);
4
+ --shadow-style-up-50: 1px 1px 2px rgba(0, 0, 0, 0.08), inset 1px 1px 1px #FFFFFF, inset -1px -1px 1px rgba(0, 0, 0, 0.05);
5
+ --shadow-style-up-100: 1px 1px 2px rgba(0, 0, 0, 0.05), -1px -1px 5px #FFFFFF, inset 1px 1px 1px #FFFFFF, inset -1px -1px 3px rgba(0, 0, 0, 0.1);
6
+ --shadow-style-font: 0px 0px 10px rgba(0, 0, 0, 0.1);
7
+ }
@@ -0,0 +1,2 @@
1
+ @import 'viewport-breakpoints';
2
+ @import 'spacing';
@@ -0,0 +1,17 @@
1
+ //@import './viewport-breakpoints';
2
+
3
+ :root {
4
+ --component-padding: 15px;
5
+ --component-spacing: 15px;
6
+ --icon-spacing: 10px;
7
+
8
+ @media (#{$media} and #{$media-width-sm}) {
9
+ --component-padding: 10px;
10
+ --component-spacing: 10px;
11
+ }
12
+
13
+ @media (#{$media} and #{$media-width-xs}) {
14
+ --component-padding: 10px;
15
+ --component-spacing: 1px;
16
+ }
17
+ }
@@ -0,0 +1,20 @@
1
+ /*
2
+ xl: @media only screen and (min-width: $viewport-xl) {}
3
+ lg: @media only screen and (max-width: $viewport-xl) {}
4
+ md: @media only screen and (max-width: $viewport-lg) {}
5
+ sm: @media only screen and (max-width: $viewport-md) {}
6
+ xs: @media only screen and (max-width: $viewport-sm) {}
7
+ */
8
+
9
+ $viewport-xl: 1440px;
10
+ $viewport-lg: 1280px;
11
+ $viewport-md: 992px;
12
+ $viewport-sm: 600px;
13
+
14
+ $media: #{'only screen'};
15
+ $media-width-xl: #{'min-width: '} $viewport-xl;
16
+ $media-width-lg: #{'max-width: '} $viewport-xl;
17
+ $media-width-md: #{'max-width: '} $viewport-lg;
18
+ $media-width-sm: #{'max-width: '} $viewport-md;
19
+ $media-width-xs: #{'max-width: '} $viewport-sm;
20
+
@@ -1,3 +1,4 @@
1
- @import './scroll';
2
- @import '../typography/typography';
3
- @import '../colors/colors';
1
+ @import './scroll';
2
+ @import '../typography/typography';
3
+ @import '../colors/colors';
4
+ @import '../shadows/shadows';
@@ -1,40 +1,43 @@
1
- :root {
2
- --scrollbar-width: 4px;
3
- --scrollbar-thumb-width: 4px;
4
- --scrollbar-bg-color: var(--main-ouline-color);
5
- --scrollbar-thumb-color: var(--main-accent-color);
6
- --scrollbar-border-radius: 7px;
7
- }
8
-
9
- %wt-scrollbar {
10
- // scrollbar itself
11
- &::-webkit-scrollbar {
12
- width: var(--scrollbar-width);
13
- height: var(--scrollbar-width);
14
- background-color: var(--scrollbar-bg-color);
15
- cursor: pointer;
16
- }
17
-
18
- // scrollable element
19
- &::-webkit-scrollbar-thumb {
20
- width: var(--scrollbar-thumb-width);
21
- height: var(--scrollbar-thumb-width);
22
- background-color: var(--scrollbar-thumb-color);
23
- border-radius: var(--scrollbar-border-radius);
24
- }
25
- }
26
-
27
- %wt-distant-scrollbar {
28
- &::-webkit-scrollbar {
29
- width: 14px;
30
- height: 18px;
31
- }
32
- &::-webkit-scrollbar-thumb {
33
- height: 2px;
34
- border: 4px solid rgba(0, 0, 0, 0);
35
- background-clip: padding-box;
36
- background-color: var(--scrollbar-thumb-color);
37
- border-radius: var(--scrollbar-border-radius);
38
- // -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
39
- }
40
- }
1
+ :root {
2
+ --scrollbar-width: 5px;
3
+ --scrollbar-height: 5px;
4
+ --scrollbar-thumb-width: 5px;
5
+ --scrollbar-bg-color: var(--main-color);
6
+ --scrollbar-thumb-color: var(--secondary-color);
7
+ --scrollbar-border-radius: var(--border-radius);
8
+ }
9
+
10
+ %wt-scrollbar {
11
+ // scrollbar itself
12
+ &::-webkit-scrollbar {
13
+ width: var(--scrollbar-width);
14
+ height: var(--scrollbar-height);
15
+ background-color: var(--scrollbar-bg-color);
16
+ cursor: pointer;
17
+ border-radius: 50%; // dont overlay borders
18
+ }
19
+
20
+ // scrollable element
21
+ &::-webkit-scrollbar-thumb {
22
+ width: var(--scrollbar-thumb-width);
23
+ height: var(--scrollbar-thumb-height);
24
+ background-color: var(--scrollbar-thumb-color);
25
+ border-radius: var(--scrollbar-border-radius);
26
+ }
27
+ }
28
+
29
+ %wt-distant-scrollbar {
30
+ &::-webkit-scrollbar {
31
+ width: 14px;
32
+ height: 18px;
33
+ background-color: var(--scrollbar-bg-color);
34
+ }
35
+ &::-webkit-scrollbar-thumb {
36
+ height: 2px;
37
+ border: 4px solid rgba(0, 0, 0, 0);
38
+ background-clip: padding-box;
39
+ background-color: var(--scrollbar-thumb-color);
40
+ border-radius: var(--scrollbar-border-radius);
41
+ // -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
42
+ }
43
+ }
@@ -0,0 +1 @@
1
+ @import "./fade/fade";
@@ -0,0 +1,8 @@
1
+
2
+ .fade-enter-active, .fade-leave-active {
3
+ transition: opacity var(--transition);
4
+ }
5
+
6
+ .fade-enter, .fade-leave-to {
7
+ opacity: 0;
8
+ }
@@ -1,72 +1,72 @@
1
-
2
- %typo-heading-lg {
3
- font: {
4
- family: 'Montserrat Semi', monospace;
5
- size: 24px;
6
- }
7
- line-height: 30px;
8
- }
9
-
10
- %typo-heading-md {
11
- font: {
12
- family: 'Montserrat Semi', monospace;
13
- size: 20px;
14
- }
15
- line-height: 30px;
16
- }
17
-
18
- %typo-heading-sm {
19
- font: {
20
- family: 'Montserrat Semi', monospace;
21
- size: 18px;
22
- }
23
- line-height: 24px;
24
- }
25
-
26
- %typo-strong-lg {
27
- font: {
28
- family: 'Montserrat Semi', monospace;
29
- size: 14px;
30
- }
31
- line-height: 18px;
32
- }
33
-
34
- %typo-strong-md {
35
- font: {
36
- family: 'Montserrat Semi', monospace;
37
- size: 12px;
38
- }
39
- line-height: 14px;
40
- }
41
-
42
- %typo-strong-sm {
43
- font: {
44
- family: 'Montserrat Semi', monospace;
45
- size: 10px;
46
- }
47
- line-height: 12px;
48
- }
49
-
50
- %typo-body-lg {
51
- font: {
52
- family: 'Montserrat Regular', monospace;
53
- size: 14px;
54
- }
55
- line-height: 18px;
56
- }
57
-
58
- %typo-body-md {
59
- font: {
60
- family: 'Montserrat Regular', monospace;
61
- size: 12px;
62
- }
63
- line-height: 14px;
64
- }
65
-
66
- %typo-body-sm {
67
- font: {
68
- family: 'Montserrat Regular', monospace;
69
- size: 10px;
70
- }
71
- line-height: 12px;
72
- }
1
+
2
+ %typo-heading-lg {
3
+ font: {
4
+ family: 'Montserrat Semi', monospace;
5
+ size: 24px;
6
+ }
7
+ line-height: 30px;
8
+ }
9
+
10
+ %typo-heading-md {
11
+ font: {
12
+ family: 'Montserrat Semi', monospace;
13
+ size: 20px;
14
+ }
15
+ line-height: 30px;
16
+ }
17
+
18
+ %typo-heading-sm {
19
+ font: {
20
+ family: 'Montserrat Semi', monospace;
21
+ size: 18px;
22
+ }
23
+ line-height: 24px;
24
+ }
25
+
26
+ %typo-strong-lg {
27
+ font: {
28
+ family: 'Montserrat Semi', monospace;
29
+ size: 14px;
30
+ }
31
+ line-height: 18px;
32
+ }
33
+
34
+ %typo-strong-md {
35
+ font: {
36
+ family: 'Montserrat Semi', monospace;
37
+ size: 12px;
38
+ }
39
+ line-height: 14px;
40
+ }
41
+
42
+ %typo-strong-sm {
43
+ font: {
44
+ family: 'Montserrat Semi', monospace;
45
+ size: 10px;
46
+ }
47
+ line-height: 12px;
48
+ }
49
+
50
+ %typo-body-lg {
51
+ font: {
52
+ family: 'Montserrat Regular', monospace;
53
+ size: 14px;
54
+ }
55
+ line-height: 18px;
56
+ }
57
+
58
+ %typo-body-md {
59
+ font: {
60
+ family: 'Montserrat Regular', monospace;
61
+ size: 12px;
62
+ }
63
+ line-height: 14px;
64
+ }
65
+
66
+ %typo-body-sm {
67
+ font: {
68
+ family: 'Montserrat Regular', monospace;
69
+ size: 10px;
70
+ }
71
+ line-height: 12px;
72
+ }
@@ -0,0 +1,6 @@
1
+ export default Object.freeze({
2
+ ONLINE: 'online',
3
+ PAUSE: 'pause',
4
+ OFFLINE: 'offline',
5
+ BREAK_OUT: 'break_out',
6
+ });
@@ -0,0 +1,41 @@
1
+ /* eslint-disable no-multi-spaces */
2
+
3
+ const AdminSections = Object.freeze({
4
+ // DIRECTORY
5
+ LICENSE: 'license', // permissions: add
6
+ USERS: 'users', // scope: users
7
+ DEVICES: 'devices', // scope: devices
8
+
9
+ // ROUTING
10
+ FLOW: 'flow', // scope: flow
11
+ DIALPLAN: 'dialplan', // scope: acr_routing
12
+ GATEWAYS: 'gateways', // scope: gateways
13
+ CHAT_GATEWAYS: 'chat-gateways', // scope: chats
14
+
15
+ // LOOKUPS
16
+ BLACKLIST: 'blacklist', // scope: cc_list
17
+ REGIONS: 'regions', // scope: lookups
18
+ CALENDARS: 'calendars', // scope: calendars
19
+ COMMUNICATIONS: 'communications', // scope: lookups
20
+ PAUSE_CAUSE: 'pause-cause', // scope: lookups
21
+ MEDIA: 'media', // scope: media_file
22
+
23
+ // CONTACT CENTER
24
+ SKILLS: 'skills', // scope: lookups
25
+ AGENTS: 'agents', // scope: cc_agent
26
+ BUCKETS: 'buckets', // scope: cc_bucket
27
+ QUEUES: 'queues', // scope: cc_queue
28
+ MEMBERS: 'members', // scope: cc_queue
29
+ RESOURCE_GROUPS: 'resource-groups', // scope: cc_resource_group
30
+ RESOURCES: 'resources', // scope: cc_resource
31
+ TEAMS: 'teams', // scope: cc_team
32
+
33
+ // INTEGRATIONS
34
+ STORAGE: 'storage', // scope: storage_profile
35
+
36
+ // PERMISSIONS
37
+ OBJECTS: 'objects', // permissions: add
38
+ ROLES: 'roles', // scope: roles
39
+ });
40
+
41
+ export default AdminSections;
@@ -0,0 +1,7 @@
1
+ const SupervisorSections = Object.freeze({
2
+ QUEUES: 'queues',
3
+ AGENTS: 'agents',
4
+ ACTIVE_CALLS: 'activeCalls',
5
+ });
6
+
7
+ export default SupervisorSections;
@@ -0,0 +1,10 @@
1
+ const WebitelApplications = Object.freeze({
2
+ ADMIN: 'admin',
3
+ AGENT: 'agent',
4
+ SUPERVISOR: 'supervisor',
5
+ HISTORY: 'history',
6
+ AUDIT: 'audit',
7
+ ANALYTICS: 'grafana',
8
+ });
9
+
10
+ export default WebitelApplications;
@@ -1,12 +1,99 @@
1
+ import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
2
+ import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
3
+ import WebitelApplications from '../../enums/WebitelApplications/WebitelApplications.enum';
4
+
1
5
  export default {
6
+ // describes reusable buttons, actions, default titles, and other ui elements
2
7
  reusable: {
8
+ total: 'Total',
9
+ ok: 'Ok',
10
+ save: 'Save',
11
+ close: 'Close',
3
12
  add: 'Add',
4
13
  cancel: 'Cancel',
14
+ import: 'Import',
15
+ export: 'Export',
16
+ true: 'True',
17
+ delete: 'Delete',
18
+ search: 'Search',
19
+ open: 'Open',
20
+ name: 'Name',
21
+ lang: {
22
+ en: 'English',
23
+ ru: 'Русский',
24
+ ua: 'Українська',
25
+ },
26
+ },
27
+ // date-related texts
28
+ date: {
29
+ sec: 'Sec',
30
+ },
31
+ // describes Webitel system entities
32
+ objects: {
33
+ team: 'Team | Teams',
34
+ supervisor: 'Supervisor | Supervisors',
35
+ auditor: 'Auditor | Auditors',
36
+ region: 'Region | Regions',
37
+ },
38
+ // describes Webitel FRONTEND applications + their navs
39
+ WebitelApplications: {
40
+ [WebitelApplications.AGENT]: { name: 'Agent Workspace' },
41
+ [WebitelApplications.AUDIT]: { name: 'Audit' },
42
+ [WebitelApplications.HISTORY]: { name: 'Call History' },
43
+ [WebitelApplications.ANALYTICS]: { name: 'Data Visualisation Tool' },
44
+ [WebitelApplications.SUPERVISOR]: {
45
+ name: 'Supervisor Workspace',
46
+ sections: {
47
+ [SupervisorSections.QUEUES]: 'Queues',
48
+ [SupervisorSections.AGENTS]: 'Agents',
49
+ [SupervisorSections.ACTIVE_CALLS]: 'Active calls',
50
+ },
51
+ },
52
+ [WebitelApplications.ADMIN]: {
53
+ name: 'Admin',
54
+ sections: {
55
+ [AdminSections.USERS]: 'Users',
56
+ [AdminSections.LICENSE]: 'Licenses',
57
+ [AdminSections.DEVICES]: 'Devices',
58
+ [AdminSections.FLOW]: 'Flow',
59
+ [AdminSections.DIALPLAN]: 'Dialplan',
60
+ [AdminSections.GATEWAYS]: 'Gateways',
61
+ [AdminSections.CHAT_GATEWAYS]: 'Chat gateways',
62
+ [AdminSections.SKILLS]: 'Agent skills',
63
+ [AdminSections.BUCKETS]: 'Buckets',
64
+ [AdminSections.MEDIA]: 'Media files',
65
+ [AdminSections.BLACKLIST]: 'Call list',
66
+ [AdminSections.CALENDARS]: 'Calendars',
67
+ [AdminSections.REGIONS]: 'Location',
68
+ [AdminSections.COMMUNICATIONS]: 'Communication types',
69
+ [AdminSections.PAUSE_CAUSE]: 'Agent statuses',
70
+ [AdminSections.AGENTS]: 'Agents',
71
+ [AdminSections.TEAMS]: 'Teams',
72
+ [AdminSections.RESOURCES]: 'Resources',
73
+ [AdminSections.RESOURCE_GROUPS]: 'Resource groups',
74
+ [AdminSections.QUEUES]: 'Queues',
75
+ [AdminSections.STORAGE]: 'Storage',
76
+ [AdminSections.MEDIA]: 'Media',
77
+ [AdminSections.BLACKLIST]: 'Call lists',
78
+ [AdminSections.ROLES]: 'Roles',
79
+ [AdminSections.OBJECTS]: 'Objects',
80
+ },
81
+ },
5
82
  },
6
83
  validation: {
7
84
  required: 'Field is required',
8
85
  numeric: 'Should be numeric',
9
86
  email: 'Should look like email',
87
+ gatewayHostValidator: 'Should look like IPv4 or FQDN',
88
+ sipAccountValidator: 'Should look like SIP account',
89
+ ipValidator: 'Should look like IPv4',
90
+ macValidator: 'Should look like MAC',
91
+ minValue: 'Value should be not less than',
92
+ maxValue: 'Value should be not much than',
93
+ sameAs: 'Incorrect password',
94
+ requiredArrayValue: 'Array should not be empty',
95
+ minLength: 'Quantity of characters should not be less than',
96
+ url: 'Should look like url',
10
97
  },
11
98
  webitelUI: {
12
99
  timepicker: {
@@ -23,5 +110,53 @@ export default {
23
110
  prev: 'Previous',
24
111
  next: 'Next',
25
112
  },
113
+ appNavigator: {
114
+ title: 'Webitel applications',
115
+ admin: 'Admin',
116
+ agent: 'Agent Workspace',
117
+ supervisor: 'Supervisor Workspace',
118
+ audit: 'Audit',
119
+ history: 'Call History',
120
+ grafana: 'Grafana',
121
+ },
122
+ headerActions: {
123
+ account: 'Account',
124
+ docs: 'Docs',
125
+ settings: 'Settings',
126
+ logout: 'Logout',
127
+ buildVersion: 'Build version',
128
+ },
129
+ tableActions: {
130
+ filterReset: 'Reset filters',
131
+ columnSelect: 'Select columns',
132
+ refreshTable: 'Refresh table',
133
+ expandFilters: 'Expand filters',
134
+ },
135
+ tableColumnSelect: {
136
+ title: 'Select visible columns',
137
+ },
138
+ statusSelect: {
139
+ online: 'Online',
140
+ pause: 'Pause',
141
+ offline: 'Offline',
142
+ breakOut: 'Break Out',
143
+ },
144
+ table: {
145
+ tableCells: {
146
+ deleteActionHint: 'Delete',
147
+ editActionHint: 'Edit',
148
+ },
149
+ },
150
+ errorPages: {
151
+ goBack: 'Go back',
152
+ page403: {
153
+ title: 'Access denied',
154
+ text: 'Sorry, you have not enough privileges to see this page.',
155
+ },
156
+ page404: {
157
+ title: "Looks like you're lost",
158
+ text: 'Sorry, we can\'t find the page you want.',
159
+ },
160
+ },
26
161
  },
27
162
  };
@@ -2,12 +2,14 @@ import Vue from 'vue';
2
2
  import VueI18n from 'vue-i18n';
3
3
  import en from './en/en';
4
4
  import ru from './ru/ru';
5
+ import ua from './ua/ua';
5
6
 
6
7
  Vue.use(VueI18n);
7
8
 
8
9
  const messages = {
9
10
  en,
10
11
  ru,
12
+ ua,
11
13
  };
12
14
 
13
15
  export default new VueI18n({