@webitel/ui-sdk 24.12.29 → 24.12.34

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 (295) hide show
  1. package/CHANGELOG.md +271 -131
  2. package/README.md +6 -0
  3. package/dist/img/sprite/index.js +8 -2
  4. package/dist/img/sprite/tree-collapse.svg +4 -0
  5. package/dist/img/sprite/tree-cross.svg +5 -0
  6. package/dist/img/sprite/tree-line.svg +10 -0
  7. package/dist/ui-sdk.css +1 -1
  8. package/dist/ui-sdk.js +7736 -7442
  9. package/dist/ui-sdk.umd.cjs +17 -17
  10. package/package.json +13 -6
  11. package/src/api/axios/generateInstance.js +6 -2
  12. package/src/api/clients/agents/agentChats.js +18 -19
  13. package/src/api/clients/agents/agents.js +29 -7
  14. package/src/api/clients/buckets/buckets.js +16 -3
  15. package/src/api/clients/calendars/calendars.js +21 -3
  16. package/src/api/clients/catalog/catalog.js +1 -3
  17. package/src/api/clients/chatGateways/chatGateways.js +41 -12
  18. package/src/api/clients/communications/communications.js +25 -6
  19. package/src/api/clients/configurations/configurations.js +13 -3
  20. package/src/api/clients/flows/flow.js +20 -9
  21. package/src/api/clients/gateways/gateways.js +12 -3
  22. package/src/api/clients/lists/blacklists.js +16 -3
  23. package/src/api/clients/media/media.js +16 -3
  24. package/src/api/clients/queues/queues.js +16 -6
  25. package/src/api/clients/roles/roles.js +3 -1
  26. package/src/api/clients/skills/skills.js +16 -3
  27. package/src/api/clients/teams/teams.js +17 -7
  28. package/src/api/clients/users/__tests__/users.spec.js +3 -1
  29. package/src/api/clients/users/users.js +8 -2
  30. package/src/api/clients//321/201ontacts/contactChatMessagesHistory.js +21 -13
  31. package/src/api/clients//321/201ontacts/contacts.js +38 -15
  32. package/src/api/history/transcript/callTranscript.js +10 -2
  33. package/src/api/interceptors/request/updateToken.interceptor.js +2 -1
  34. package/src/api/transformers/applyTransform.js +5 -1
  35. package/src/api/transformers/camelToSnake/camelToSnake.transformer.js +2 -1
  36. package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.js +2 -1
  37. package/src/assets/icons/sprite/index.js +8 -2
  38. package/src/assets/icons/sprite/tree-collapse.svg +4 -0
  39. package/src/assets/icons/sprite/tree-cross.svg +5 -0
  40. package/src/assets/icons/sprite/tree-line.svg +10 -0
  41. package/src/components/index.js +8 -12
  42. package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue +4 -2
  43. package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +3 -4
  44. package/src/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue +6 -6
  45. package/src/components/on-demand/wt-route-transition/wt-route-transition.vue +12 -12
  46. package/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +1 -3
  47. package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +3 -3
  48. package/src/components/on-demand/wt-start-page/components/start-page-card.vue +4 -2
  49. package/src/components/on-demand/wt-start-page/components/start-page-logo.vue +1 -1
  50. package/src/components/on-demand/wt-start-page/components/wt-start-page.vue +2 -3
  51. package/src/components/on-demand/wt-table-transition/wt-table-transition.vue +7 -7
  52. package/src/components/wt-action-bar/wt-action-bar.vue +16 -12
  53. package/src/components/wt-app-header/__tests__/WtHeaderActions.spec.js +3 -1
  54. package/src/components/wt-app-header/_variables.scss +0 -1
  55. package/src/components/wt-app-header/wt-app-header.vue +4 -4
  56. package/src/components/wt-app-header/wt-app-navigator.vue +6 -7
  57. package/src/components/wt-app-header/wt-header-actions.vue +6 -8
  58. package/src/components/wt-avatar/wt-avatar.vue +4 -3
  59. package/src/components/wt-badge/wt-badge.vue +1 -2
  60. package/src/components/wt-button/wt-button.vue +3 -5
  61. package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +6 -2
  62. package/src/components/wt-button-select/wt-button-select.vue +3 -4
  63. package/src/components/wt-checkbox/_variables.scss +1 -2
  64. package/src/components/wt-checkbox/wt-checkbox.vue +1 -2
  65. package/src/components/wt-chip/_variables.scss +0 -1
  66. package/src/components/wt-confirm-dialog/wt-confirm-dialog.vue +15 -5
  67. package/src/components/wt-context-menu/_variables.scss +3 -1
  68. package/src/components/wt-context-menu/wt-context-menu.vue +1 -3
  69. package/src/components/wt-copy-action/wt-copy-action.vue +1 -2
  70. package/src/components/wt-datepicker/_variables.scss +17 -5
  71. package/src/components/wt-datepicker/wt-datepicker.vue +2 -7
  72. package/src/components/wt-divider/_variables.scss +0 -1
  73. package/src/components/wt-divider/wt-divider.vue +5 -3
  74. package/src/components/wt-dual-panel/__tests__/WtDualPanel.js +2 -2
  75. package/src/components/wt-dual-panel/wt-dual-panel.vue +6 -5
  76. package/src/components/wt-dummy/_variables.scss +0 -1
  77. package/src/components/wt-dummy/wt-dummy.vue +1 -1
  78. package/src/components/wt-empty/wt-empty.vue +42 -34
  79. package/src/components/wt-error-page/_variables.scss +0 -1
  80. package/src/components/wt-error-page/wt-error-page.vue +2 -4
  81. package/src/components/wt-expansion-panel/_variables.scss +0 -1
  82. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +3 -8
  83. package/src/components/wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js +12 -4
  84. package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +8 -7
  85. package/src/components/wt-headline/_variables.scss +0 -1
  86. package/src/components/wt-headline-nav/_variables.scss +0 -1
  87. package/src/components/wt-headline-nav/wt-headline-nav.vue +2 -1
  88. package/src/components/wt-hint/wt-hint.vue +1 -3
  89. package/src/components/wt-icon/_variables.scss +0 -1
  90. package/src/components/wt-icon-action/wt-icon-action.vue +13 -12
  91. package/src/components/wt-icon-btn/_variables.scss +0 -2
  92. package/src/components/wt-icon-btn/wt-icon-btn.vue +4 -6
  93. package/src/components/wt-image/wt-image.vue +14 -13
  94. package/src/components/wt-indicator/wt-indicator.vue +2 -7
  95. package/src/components/wt-input/_variables.scss +1 -2
  96. package/src/components/wt-input/wt-input.vue +13 -10
  97. package/src/components/wt-input-info/_variables.scss +0 -1
  98. package/src/components/wt-intersection-observer/__tests__/WtIntersectionObserver.spec.js +1 -1
  99. package/src/components/wt-intersection-observer/wt-intersection-observer.vue +9 -8
  100. package/src/components/wt-item-link/_variables.scss +0 -1
  101. package/src/components/wt-label/_variables.scss +0 -1
  102. package/src/components/wt-label/wt-label.vue +1 -4
  103. package/src/components/wt-load-bar/_variables.scss +0 -1
  104. package/src/components/wt-load-bar/wt-load-bar.vue +0 -1
  105. package/src/components/wt-loader/_variables.scss +0 -2
  106. package/src/components/wt-loader/wt-loader.vue +1 -3
  107. package/src/components/wt-logo/wt-logo.vue +1 -1
  108. package/src/components/wt-navigation-bar/__tests__/WtNavigationBar.spec.js +9 -3
  109. package/src/components/wt-navigation-bar/_variables.scss +9 -3
  110. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +27 -11
  111. package/src/components/wt-notification/_variables.scss +0 -1
  112. package/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +1 -1
  113. package/src/components/wt-notifications-bar/_variables.scss +1 -2
  114. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +4 -2
  115. package/src/components/wt-page-header/wt-page-header.vue +3 -2
  116. package/src/components/wt-page-wrapper/__tests__/WtPageWrapper.spec.js +3 -1
  117. package/src/components/wt-page-wrapper/_variables.scss +0 -1
  118. package/src/components/wt-page-wrapper/wt-page-wrapper.vue +0 -2
  119. package/src/components/wt-pagination/_variables.scss +1 -2
  120. package/src/components/wt-pagination/wt-pagination.vue +2 -1
  121. package/src/components/wt-player/_variables.scss +6 -2
  122. package/src/components/wt-player/wt-player.vue +52 -53
  123. package/src/components/wt-popup/_variables.scss +0 -1
  124. package/src/components/wt-popup/wt-popup.vue +2 -8
  125. package/src/components/wt-progress-bar/_variables.scss +0 -1
  126. package/src/components/wt-progress-bar/wt-progress-bar.vue +7 -6
  127. package/src/components/wt-radio/_variables.scss +1 -2
  128. package/src/components/wt-radio/wt-radio.vue +1 -2
  129. package/src/components/wt-rounded-action/_variables.scss +3 -1
  130. package/src/components/wt-search-bar/_variables.scss +4 -2
  131. package/src/components/wt-search-bar/wt-search-bar.vue +10 -4
  132. package/src/components/wt-select/_multiselect.scss +9 -15
  133. package/src/components/wt-select/_variables.scss +3 -2
  134. package/src/components/wt-select/mixins/multiselectMixin.js +2 -1
  135. package/src/components/wt-select/wt-select.vue +25 -26
  136. package/src/components/wt-slider/_variables.scss +0 -1
  137. package/src/components/wt-slider/wt-slider.vue +3 -3
  138. package/src/components/wt-status-select/_variables.scss +8 -4
  139. package/src/components/wt-stepper/_variables.scss +0 -1
  140. package/src/components/wt-stepper/wt-stepper.vue +5 -5
  141. package/src/components/wt-switcher/_variables.scss +0 -1
  142. package/src/components/wt-switcher/wt-switcher.vue +2 -3
  143. package/src/components/wt-table/__tests__/WtTable.spec.js +8 -2
  144. package/src/components/wt-table/_variables.scss +0 -1
  145. package/src/components/wt-table/types/table-header.ts +8 -0
  146. package/src/components/wt-table/wt-table.vue +111 -109
  147. package/src/components/wt-table-actions/_variables.scss +1 -2
  148. package/src/components/wt-table-actions/wt-table-actions.vue +1 -2
  149. package/src/components/wt-table-column-select/wt-table-column-select.vue +11 -8
  150. package/src/components/wt-tabs/_variables.scss +0 -1
  151. package/src/components/wt-tabs/wt-tabs.vue +6 -6
  152. package/src/components/wt-tags-input/__tests__/WtTagsInput.spec.js +6 -6
  153. package/src/components/wt-tags-input/mixin/taggableMixin.js +3 -1
  154. package/src/components/wt-tags-input/wt-tags-input.vue +8 -10
  155. package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +6 -2
  156. package/src/components/wt-textarea/_variables.scss +0 -1
  157. package/src/components/wt-textarea/wt-textarea.vue +6 -7
  158. package/src/components/wt-time-input/wt-time-input.vue +1 -2
  159. package/src/components/wt-timepicker/_variables.scss +1 -2
  160. package/src/components/wt-timepicker/wt-timepicker.vue +10 -8
  161. package/src/components/wt-tooltip/_internals/useTooltipTriggerSubscriptions.js +6 -1
  162. package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +1 -3
  163. package/src/components/wt-tooltip/_variables.scss +0 -1
  164. package/src/components/wt-tooltip/wt-tooltip.vue +13 -2
  165. package/src/components/wt-tree-table/_variables.scss +19 -0
  166. package/src/components/wt-tree-table/wt-tree-table.vue +323 -0
  167. package/src/components/wt-tree-table-row/wt-tree-table-row.vue +171 -0
  168. package/src/composables/useAccessControl/useAccessControl.js +12 -4
  169. package/src/composables/useCachedInterval/useCachedInterval.js +6 -2
  170. package/src/composables/useCachedItemInstanceName/useCachedItemInstanceName.js +4 -1
  171. package/src/composables/useCard/useCardComponent.js +10 -9
  172. package/src/composables/useCard/useCardTabs.js +6 -3
  173. package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +20 -10
  174. package/src/composables/useValidate/useValidate.js +1 -1
  175. package/src/composables/useWtTable/useWtTable.ts +25 -0
  176. package/src/css/main.scss +7 -1
  177. package/src/css/pages/table-page.scss +1 -2
  178. package/src/css/styleguide/border-radius/_border-radius.scss +1 -1
  179. package/src/css/styleguide/colors/_deprecated.scss +83 -24
  180. package/src/css/styleguide/colors/_palette.scss +1340 -251
  181. package/src/css/styleguide/colors/reusable/_text-field.scss +6 -2
  182. package/src/css/styleguide/fonts/_fonts.scss +36 -18
  183. package/src/css/styleguide/spacings/_spacings.scss +1 -1
  184. package/src/css/styleguide/transitions/_transitions.scss +1 -1
  185. package/src/css/styleguide/transitions/fade/_fade.scss +5 -4
  186. package/src/css/styleguide/viewport-breakpoints/_viewport-breakpoints.scss +0 -1
  187. package/src/enums/WebitelApplications/WebitelApplications.enum.js +7 -7
  188. package/src/enums/index.js +5 -10
  189. package/src/locale/en/en.js +5 -2
  190. package/src/locale/ru/ru.js +7 -3
  191. package/src/locale/ua/ua.js +7 -3
  192. package/src/mixins/dataFilterMixins/__tests__/apiFilterMixin.spec.js +2 -1
  193. package/src/mixins/dataFilterMixins/apiFilterMixin.js +3 -1
  194. package/src/mixins/dataFilterMixins/baseFilterMixin/baseFilterMixin.js +2 -1
  195. package/src/mixins/dataFilterMixins/enumFilterMixin.js +2 -1
  196. package/src/mixins/dataFilterMixins/paginationFilterMixin.js +4 -1
  197. package/src/mixins/dataFilterMixins/sortFilterMixin.js +2 -1
  198. package/src/mixins/validationMixin/useValidation.js +17 -7
  199. package/src/mixins/validationMixin/validationMixin.js +16 -8
  200. package/src/modules/AgentStatusSelect/api/pause-cause.js +4 -1
  201. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +18 -6
  202. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +3 -2
  203. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +5 -2
  204. package/src/modules/Appearance/components/__tests__/wt-dark-mode-switcher.spec.js +6 -2
  205. package/src/modules/AuditForm/components/__tests__/audit-form-question-write-wrapper.spec.js +12 -4
  206. package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +18 -5
  207. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +4 -2
  208. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +15 -5
  209. package/src/modules/AuditForm/components/audit-form-question.vue +10 -4
  210. package/src/modules/AuditForm/components/audit-form.vue +24 -7
  211. package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options.spec.js +6 -2
  212. package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +5 -5
  213. package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +9 -4
  214. package/src/modules/CSVExport/CSVExport.js +5 -2
  215. package/src/modules/CSVExport/XLSExport.js +7 -7
  216. package/src/modules/CSVExport/__tests__/CSVExport.spec.js +4 -1
  217. package/src/modules/CSVExport/mixins/exportCSVMixin.js +3 -1
  218. package/src/modules/CSVExport/mixins/exportXLSMixin.js +3 -1
  219. package/src/modules/CardStoreModule/composables/useCardStore.js +6 -2
  220. package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +3 -3
  221. package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +6 -3
  222. package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -2
  223. package/src/modules/FilesExport/mixins/exportFilesMixin.js +6 -2
  224. package/src/modules/FilesExport/scripts/generateMediaURL.js +2 -1
  225. package/src/modules/Filters/classes/BaseFilterSchema.js +15 -6
  226. package/src/modules/Filters/components/filter-datetime.vue +7 -5
  227. package/src/modules/Filters/components/filter-pagination.vue +7 -5
  228. package/src/modules/Filters/components/filter-search.vue +4 -4
  229. package/src/modules/Filters/components/filter-select.vue +33 -24
  230. package/src/modules/Filters/components/filter-table-fields.vue +1 -3
  231. package/src/modules/Filters/composables/useTableFilters.js +3 -1
  232. package/src/modules/Filters/scripts/getters/localStorageGetter.js +6 -2
  233. package/src/modules/Filters/scripts/getters/queryGetter.js +2 -1
  234. package/src/modules/Filters/scripts/setters/localStorageSetter.js +6 -2
  235. package/src/modules/Filters/scripts/setters/querySetter.js +2 -1
  236. package/src/modules/Filters/scripts/utils/changeRouteQuery.js +2 -1
  237. package/src/modules/Filters/store/FiltersStoreModule.js +3 -3
  238. package/src/modules/Notifications/store/NotificationsStoreModule.js +14 -5
  239. package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +10 -3
  240. package/src/modules/ObjectPermissions/_internals/components/permissions-role-row.vue +1 -3
  241. package/src/modules/ObjectPermissions/_internals/components/permissions-role-select.vue +1 -3
  242. package/src/modules/ObjectPermissions/_internals/components/permissions-tab-role-popup.vue +8 -5
  243. package/src/modules/ObjectPermissions/_internals/modules/filters/store/filters.store.js +3 -4
  244. package/src/modules/ObjectPermissions/_internals/store/helpers/createObjectPermissionsStoreModule.js +1 -2
  245. package/src/modules/ObjectPermissions/_internals/store/modules/objectPermissionsStoreModule.js +10 -14
  246. package/src/modules/ObjectPermissions/components/permissions-tab.vue +12 -12
  247. package/src/modules/ObjectPermissions/store/index.js +2 -6
  248. package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +3 -1
  249. package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +6 -2
  250. package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +7 -2
  251. package/src/modules/QueryFilters/components/abstract-api-filter.vue +15 -5
  252. package/src/modules/QueryFilters/components/abstract-enum-filter.vue +15 -5
  253. package/src/modules/QueryFilters/components/filter-datetime.vue +1 -3
  254. package/src/modules/QueryFilters/components/filter-from-to.vue +1 -1
  255. package/src/modules/QueryFilters/components/filter-search.vue +1 -3
  256. package/src/modules/QueryFilters/components/filter-table-fields.vue +1 -3
  257. package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +4 -1
  258. package/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js +9 -3
  259. package/src/modules/QueryFilters/mixins/enumFilterMixin.js +10 -3
  260. package/src/modules/QueryFilters/mixins/paginationFilterMixin.js +4 -2
  261. package/src/modules/QueryFilters/mixins/sortFilterMixin.js +2 -1
  262. package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +2 -1
  263. package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +10 -3
  264. package/src/modules/TableComponentModule/composables/useTableEmpty.js +13 -4
  265. package/src/modules/TableStoreModule/composables/useTableStore.js +18 -6
  266. package/src/modules/TableStoreModule/store/TableStoreModule.js +36 -21
  267. package/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js +7 -2
  268. package/src/modules/Userinfo/api/userinfo.js +4 -1
  269. package/src/modules/Userinfo/classes/ApplicationsAccess.js +3 -1
  270. package/src/modules/Userinfo/store/UserinfoStoreModule.js +25 -9
  271. package/src/plugins/breakpoint/breakpoint.plugin.js +2 -1
  272. package/src/scripts/__tests__/caseConverters.spec.js +4 -1
  273. package/src/scripts/__tests__/updateObject.spec.js +6 -2
  274. package/src/scripts/caseConverters.js +37 -29
  275. package/src/scripts/compareSize.ts +9 -6
  276. package/src/scripts/debounce.js +2 -1
  277. package/src/scripts/index.js +2 -8
  278. package/src/scripts/logger.js +4 -4
  279. package/src/scripts/preventHiddenPageCallsDecorator.js +6 -2
  280. package/src/scripts/saveAsJSON.js +3 -1
  281. package/src/scripts/sortQueryAdapters.js +11 -0
  282. package/src/store/BaseStoreModules/ApiStoreModule.js +26 -7
  283. package/src/store/BaseStoreModules/BaseStoreModule.js +2 -1
  284. package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +28 -7
  285. package/src/store/helpers/getNamespacedState.js +3 -1
  286. package/src/store/new/modules/apiStoreModule/apiStoreModule.js +19 -14
  287. package/src/store/new/modules/cardStoreModule/useCardStore.js +6 -2
  288. package/src/store/new/modules/tableStoreModule/__tests__/tableStoreModule.spec.js +6 -8
  289. package/src/store/new/modules/tableStoreModule/tableStoreModule.js +31 -28
  290. package/src/store/new/modules/tableStoreModule/useTableStore.js +18 -6
  291. package/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js +2 -1
  292. package/src/validators/websocketValidator/__tests__/websocketValidator.spec.js +3 -1
  293. package/src/components/wt-table/_internals/getSortOrder.js +0 -12
  294. /package/dist/img/sprite/{plus.svg → tree-expand.svg} +0 -0
  295. /package/src/assets/icons/sprite/{plus.svg → tree-expand.svg} +0 -0
@@ -2,7 +2,9 @@
2
2
  /*General*/
3
3
  --dp-font-family: 'Montserrat';
4
4
  --dp-border-radius: var(--border-radius); /*Configurable border-radius*/
5
- --dp-cell-border-radius: var(--border-radius); /*Specific border radius for the calendar cell*/
5
+ --dp-cell-border-radius: var(
6
+ --border-radius
7
+ ); /*Specific border radius for the calendar cell*/
6
8
 
7
9
  /*Sizing*/
8
10
  --dp-button-heigh: 32px; /*Size for buttons in overlays*/
@@ -12,11 +14,16 @@
12
14
  --dp-cell-size: 24px; /*Width and height of calendar cell*/
13
15
  --dp-cell-padding: var(--spacing-2xs); /*Padding in the cell*/
14
16
  --dp-common-padding: var(--spacing-xs); /*Common padding used*/
15
- --dp-input-icon-padding: calc(var(--icon-md-size) + 2 * var(--spacing-xs)); /*Padding on the left side of the input if icon is present*/
16
- --dp-input-padding: calc(var(--spacing-xs) - 1px) calc(var(--icon-md-size) + 2 * var(--spacing-xs)); /*Padding in the input*/
17
+ --dp-input-icon-padding: calc(
18
+ var(--icon-md-size) + 2 * var(--spacing-xs)
19
+ ); /*Padding on the left side of the input if icon is present*/
20
+ --dp-input-padding: calc(var(--spacing-xs) - 1px)
21
+ calc(var(--icon-md-size) + 2 * var(--spacing-xs)); /*Padding in the input*/
17
22
  //--dp-menu-min-width: 260px; /*Adjust the min width of the menu*/
18
23
  --dp-action-buttons-padding: 2px 5px; /*Adjust padding for the action buttons in action row*/
19
- --dp-row-maring: var(--spacing-3xs); /*Adjust the spacing between rows in the calendar*/
24
+ --dp-row-maring: var(
25
+ --spacing-3xs
26
+ ); /*Adjust the spacing between rows in the calendar*/
20
27
  --dp-calendar-header-cell-padding: 0.5rem; /*Adjust padding in calendar header cells*/
21
28
  --dp-two-calendars-spacing: 10px; /*Space between multiple calendars*/
22
29
  --dp-overlay-col-padding: 3px; /*Padding in the overlay column*/
@@ -29,7 +36,12 @@
29
36
 
30
37
  /*Transitions*/
31
38
  --dp-animation-duration: var(--transition); /*Transition duration*/
32
- --dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1); /*Timing on menu appear animation*/
39
+ --dp-menu-appear-transition-timing: cubic-bezier(
40
+ 0.4,
41
+ 0,
42
+ 1,
43
+ 1
44
+ ); /*Timing on menu appear animation*/
33
45
  --dp-transition-timing: ease-out; /*Timing on slide animations*/
34
46
  }
35
47
 
@@ -46,14 +46,10 @@
46
46
  />
47
47
  </template>
48
48
  <template #arrow-left>
49
- <wt-icon-btn
50
- icon="arrow-left"
51
- />
49
+ <wt-icon-btn icon="arrow-left" />
52
50
  </template>
53
51
  <template #arrow-right>
54
- <wt-icon-btn
55
- icon="arrow-right"
56
- />
52
+ <wt-icon-btn icon="arrow-right" />
57
53
  </template>
58
54
  <template
59
55
  v-if="isDateTime"
@@ -83,7 +79,6 @@ import '@vuepic/vue-datepicker/dist/main.css';
83
79
  import { computed, ref } from 'vue';
84
80
 
85
81
  const props = defineProps({
86
-
87
82
  /**
88
83
  * [`'date'`, `'datetime'`]
89
84
  * */
@@ -1,4 +1,3 @@
1
-
2
1
  :root {
3
2
  --divider-border: 1px solid;
4
3
  --divider-border-color: var(--grey-lighten-4);
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <hr class="wt-divider" :class="`wt-divider-${variant}`">
2
+ <hr
3
+ class="wt-divider"
4
+ :class="`wt-divider-${variant}`"
5
+ />
3
6
  </template>
4
7
 
5
8
  <script>
@@ -10,7 +13,7 @@ export default {
10
13
  type: String,
11
14
  default: 'horizontal',
12
15
  },
13
- }
16
+ },
14
17
  };
15
18
  </script>
16
19
 
@@ -19,7 +22,6 @@ export default {
19
22
  </style>
20
23
 
21
24
  <style lang="scss" scoped>
22
-
23
25
  .wt-divider {
24
26
  display: block;
25
27
  box-sizing: border-box;
@@ -34,7 +34,7 @@ describe('WtDualPanel', () => {
34
34
  it('renders dual panel side panel via side panel slot', () => {
35
35
  const content = 'Dual Panel side panel';
36
36
  const wrapper = shallowMount(WtDualPanel, {
37
- slots: { 'side': content },
37
+ slots: { side: content },
38
38
  });
39
39
  expect(wrapper.find('.wt-dual-panel__side-panel').text()).toBe(content);
40
40
  });
@@ -42,7 +42,7 @@ describe('WtDualPanel', () => {
42
42
  it('renders dual panel main panel via main panel slot', () => {
43
43
  const content = 'Dual Panel main panel';
44
44
  const wrapper = shallowMount(WtDualPanel, {
45
- slots: { 'main': content },
45
+ slots: { main: content },
46
46
  });
47
47
  expect(wrapper.find('.wt-dual-panel__main-panel').text()).toBe(content);
48
48
  });
@@ -11,9 +11,7 @@
11
11
  </div>
12
12
  <div class="wt-dual-panel__content">
13
13
  <div
14
- :class="[
15
- `wt-dual-panel__side-panel--${sidePanelSize}`
16
- ]"
14
+ :class="[`wt-dual-panel__side-panel--${sidePanelSize}`]"
17
15
  class="wt-dual-panel__side-panel"
18
16
  >
19
17
  <wt-icon-action
@@ -57,7 +55,9 @@ const toggleSidePanel = () => {
57
55
  emit('update:side-panel-size', sidePanelSize.value);
58
56
  };
59
57
 
60
- const sidePanelSize = computed(() => (sidePanelCollapsed.value ? ComponentSize.SM : ComponentSize.MD));
58
+ const sidePanelSize = computed(() =>
59
+ sidePanelCollapsed.value ? ComponentSize.SM : ComponentSize.MD,
60
+ );
61
61
  </script>
62
62
 
63
63
  <style lang="scss">
@@ -91,7 +91,8 @@ $side-panel-md-width: 320px;
91
91
  flex: 1 1 auto;
92
92
  }
93
93
 
94
- &__header, &__actions-panel {
94
+ &__header,
95
+ &__actions-panel {
95
96
  flex: 0 0 auto;
96
97
  }
97
98
 
@@ -1,4 +1,3 @@
1
-
2
1
  :root {
3
2
  --wt-dummy-text-color: var(--text-main-color);
4
3
  }
@@ -6,7 +6,7 @@
6
6
  :src="src || dummy"
7
7
  :width="size"
8
8
  alt="dummy-picture"
9
- >
9
+ />
10
10
  </div>
11
11
  <p
12
12
  v-if="!hiddenText"
@@ -10,7 +10,10 @@
10
10
  <!-- @slot for custom media, replaces image
11
11
  @scope `{ size: mediaSize }`
12
12
  -->
13
- <slot name="media" v-bind="{ size: mediaSize }">
13
+ <slot
14
+ name="media"
15
+ v-bind="{ size: mediaSize }"
16
+ >
14
17
  <wt-image
15
18
  :size="mediaSize"
16
19
  :src="image"
@@ -23,45 +26,50 @@
23
26
  v-if="showHeadline || showTitle || showText"
24
27
  class="wt-empty__info"
25
28
  >
26
- <h2
27
- v-if="showHeadline"
28
- class="wt-empty__headline"
29
- >
30
-
31
-
32
- <!-- @slot for custom headline, replaces headline
29
+ <h2
30
+ v-if="showHeadline"
31
+ class="wt-empty__headline"
32
+ >
33
+ <!-- @slot for custom headline, replaces headline
33
34
  @scope `{ headline }`
34
35
  -->
35
- <slot name="headline" v-bind="{ headline }">
36
- {{ headline }}
37
- </slot>
38
- </h2>
39
-
40
- <h3
41
- v-if="showTitle"
42
- class="wt-empty__title"
43
- >
36
+ <slot
37
+ name="headline"
38
+ v-bind="{ headline }"
39
+ >
40
+ {{ headline }}
41
+ </slot>
42
+ </h2>
44
43
 
45
- <!-- @slot for custom title, replaces title
44
+ <h3
45
+ v-if="showTitle"
46
+ class="wt-empty__title"
47
+ >
48
+ <!-- @slot for custom title, replaces title
46
49
  @scope `{ title }`
47
50
  -->
48
- <slot name="title" v-bind="{ title }">
49
- {{ title }}
50
- </slot>
51
- </h3>
52
-
53
- <p
54
- v-if="showText"
55
- class="wt-empty__text"
56
- >
51
+ <slot
52
+ name="title"
53
+ v-bind="{ title }"
54
+ >
55
+ {{ title }}
56
+ </slot>
57
+ </h3>
57
58
 
58
- <!-- @slot for custom text, replaces text
59
+ <p
60
+ v-if="showText"
61
+ class="wt-empty__text"
62
+ >
63
+ <!-- @slot for custom text, replaces text
59
64
  @scope `{ text }`
60
65
  -->
61
- <slot name="text" v-bind="{ text }">
62
- {{ text }}
63
- </slot>
64
- </p>
66
+ <slot
67
+ name="text"
68
+ v-bind="{ text }"
69
+ >
70
+ {{ text }}
71
+ </slot>
72
+ </p>
65
73
  </div>
66
74
 
67
75
  <!-- @slot custom content, between text and actions
@@ -80,7 +88,6 @@
80
88
  name="actions"
81
89
  v-bind="{ onPrimaryClick, onSecondaryClick }"
82
90
  >
83
-
84
91
  <!-- @slot for custom primary action, replaces primaryAction
85
92
  @scope `{ onPrimaryClick }`
86
93
  -->
@@ -137,7 +144,8 @@ const props = defineProps({
137
144
  size: {
138
145
  type: String,
139
146
  default: ComponentSize.MD,
140
- validator: (v) => [ComponentSize.SM, ComponentSize.MD, ComponentSize.LG].includes(v),
147
+ validator: (v) =>
148
+ [ComponentSize.SM, ComponentSize.MD, ComponentSize.LG].includes(v),
141
149
  },
142
150
  /**
143
151
  * shown only if prop or slot is provided
@@ -1,4 +1,3 @@
1
-
2
1
  :root {
3
2
  --wt-error-page-background-color: var(--content-wrapper-color);
4
3
  --wt-error-page-text-color: var(--text-main-color);
@@ -5,10 +5,8 @@
5
5
  :alt="errorPic.alt"
6
6
  :src="errorPic.src"
7
7
  class="wt-error-page__img"
8
- >
9
- <h2
10
- class="wt-error-page__title"
11
- >
8
+ />
9
+ <h2 class="wt-error-page__title">
12
10
  {{ errorTitle }}
13
11
  </h2>
14
12
  <p class="wt-error-page__text">
@@ -1,4 +1,3 @@
1
-
2
1
  :root {
3
2
  --wt-expansion-panel-header-background-color: var(--dp-16-surface-color);
4
3
  --wt-expansion-panel-header-title-color: var(--text-main-color);
@@ -10,7 +10,7 @@
10
10
  @keypress.enter="toggle"
11
11
  >
12
12
  <slot name="title" />
13
- <div class="wt-expansion-panel-actions">
13
+ <div class="wt-expansion-panel-actions">
14
14
  <slot
15
15
  name="actions"
16
16
  v-bind="{ open, opened }"
@@ -22,12 +22,8 @@
22
22
  />
23
23
  </div>
24
24
  </div>
25
- <wt-expand-transition
26
- v-show="opened"
27
- >
28
- <div
29
- class="wt-expansion-panel-body"
30
- >
25
+ <wt-expand-transition v-show="opened">
26
+ <div class="wt-expansion-panel-body">
31
27
  <slot />
32
28
  </div>
33
29
  </wt-expand-transition>
@@ -121,7 +117,6 @@ watch(
121
117
 
122
118
  &--opened {
123
119
  transform: rotate(90deg);
124
-
125
120
  }
126
121
  }
127
122
 
@@ -8,15 +8,23 @@ describe('Filters Panel Wrapper', () => {
8
8
  });
9
9
  it('emits "reset" event at wt-table-actions "filterReset" event', () => {
10
10
  const wrapper = shallowMount(FiltersPanelWrapper);
11
- wrapper.findComponent({ name: 'wt-table-actions' }).vm.$emit('input', 'filterReset');
11
+ wrapper
12
+ .findComponent({ name: 'wt-table-actions' })
13
+ .vm.$emit('input', 'filterReset');
12
14
  expect(wrapper.emitted().reset).toBeTruthy();
13
15
  });
14
16
  it(`toggles "filters-panel-wrapper--opened" class at
15
17
  wt-table-actions "settings" event`, async () => {
16
18
  const wrapper = shallowMount(FiltersPanelWrapper);
17
- expect(wrapper.classes().includes('filters-panel-wrapper--opened')).toBe(false);
18
- wrapper.findComponent({ name: 'wt-table-actions' }).vm.$emit('input', 'settings');
19
+ expect(wrapper.classes().includes('filters-panel-wrapper--opened')).toBe(
20
+ false,
21
+ );
22
+ wrapper
23
+ .findComponent({ name: 'wt-table-actions' })
24
+ .vm.$emit('input', 'settings');
19
25
  await wrapper.vm.$nextTick();
20
- expect(wrapper.classes().includes('filters-panel-wrapper--opened')).toBe(true);
26
+ expect(wrapper.classes().includes('filters-panel-wrapper--opened')).toBe(
27
+ true,
28
+ );
21
29
  });
22
30
  });
@@ -79,7 +79,8 @@ $filter-width: 230px;
79
79
  $filter-gap: 10px; // var(--spacing-xs)
80
80
  @function filters-width($num) {
81
81
  // 1px corrects max width
82
- @return ($filter-width * $num) + $filter-gap * $num + $width-except-filters - 1px;
82
+ @return ($filter-width * $num) + $filter-gap * $num + $width-except-filters -
83
+ 1px;
83
84
  }
84
85
 
85
86
  .filters-wrap {
@@ -93,7 +94,7 @@ $filter-gap: 10px; // var(--spacing-xs)
93
94
  & {
94
95
  grid-template-columns: repeat(6, 1fr);
95
96
 
96
- > *:nth-child(n+7) {
97
+ > *:nth-child(n + 7) {
97
98
  display: none;
98
99
  }
99
100
  }
@@ -102,7 +103,7 @@ $filter-gap: 10px; // var(--spacing-xs)
102
103
  & {
103
104
  grid-template-columns: repeat(5, 1fr);
104
105
 
105
- :deep(> *:nth-child(n+6)) {
106
+ :deep(> *:nth-child(n + 6)) {
106
107
  display: none;
107
108
  }
108
109
  }
@@ -112,7 +113,7 @@ $filter-gap: 10px; // var(--spacing-xs)
112
113
  & {
113
114
  grid-template-columns: repeat(4, 1fr);
114
115
 
115
- :deep(> *:nth-child(n+5)) {
116
+ :deep(> *:nth-child(n + 5)) {
116
117
  display: none;
117
118
  }
118
119
  }
@@ -122,7 +123,7 @@ $filter-gap: 10px; // var(--spacing-xs)
122
123
  & {
123
124
  grid-template-columns: repeat(3, 1fr);
124
125
 
125
- :deep(> *:nth-child(n+4)) {
126
+ :deep(> *:nth-child(n + 4)) {
126
127
  display: none;
127
128
  }
128
129
  }
@@ -132,7 +133,7 @@ $filter-gap: 10px; // var(--spacing-xs)
132
133
  & {
133
134
  grid-template-columns: repeat(2, 1fr);
134
135
 
135
- :deep(> *:nth-child(n+3)) {
136
+ :deep(> *:nth-child(n + 3)) {
136
137
  display: none;
137
138
  }
138
139
  }
@@ -142,7 +143,7 @@ $filter-gap: 10px; // var(--spacing-xs)
142
143
  & {
143
144
  grid-template-columns: repeat(1, 1fr);
144
145
 
145
- :deep(> *:nth-child(n+2)) {
146
+ :deep(> *:nth-child(n + 2)) {
146
147
  display: none;
147
148
  }
148
149
  }
@@ -1,4 +1,3 @@
1
-
2
1
  :root {
3
2
  --headline-min-height: 40px; // button/search-bar height
4
3
  --headline-title-margin: var(--spacing-sm);
@@ -1,4 +1,3 @@
1
-
2
1
  :root {
3
2
  --headline-nav-indicator-size: 4px;
4
3
  --headline-nav-gap: var(--spacing-sm);
@@ -20,7 +20,8 @@
20
20
  <span
21
21
  v-else
22
22
  class="wt-headline-nav__text"
23
- >{{ singlePath.name }}</span>
23
+ >{{ singlePath.name }}</span
24
+ >
24
25
  </h1>
25
26
  </div>
26
27
  </nav>
@@ -23,6 +23,4 @@ export default {
23
23
  };
24
24
  </script>
25
25
 
26
- <style lang="scss" scoped>
27
-
28
- </style>
26
+ <style lang="scss" scoped></style>
@@ -1,4 +1,3 @@
1
-
2
1
  :root {
3
2
  --icon-3xl-size: 56px;
4
3
  --icon-2xl-size: 48px;
@@ -24,14 +24,15 @@ const props = defineProps({
24
24
  action: {
25
25
  type: String,
26
26
  required: true,
27
- validator: (v) => Object.values([
28
- IconAction.DELETE,
29
- IconAction.EDIT,
30
- IconAction.ADD,
31
- IconAction.HISTORY,
32
- IconAction.DOWNLOAD,
33
- IconAction.REFRESH,
34
- ]).includes(v),
27
+ validator: (v) =>
28
+ Object.values([
29
+ IconAction.DELETE,
30
+ IconAction.EDIT,
31
+ IconAction.ADD,
32
+ IconAction.HISTORY,
33
+ IconAction.DOWNLOAD,
34
+ IconAction.REFRESH,
35
+ ]).includes(v),
35
36
  },
36
37
  disabled: {
37
38
  type: Boolean,
@@ -47,7 +48,9 @@ const iconAction = computed(() => {
47
48
  const data = IActionData[props.action];
48
49
 
49
50
  if (!data) {
50
- console.error(`Unknown action for wt-icon-action component: ${props.action}`);
51
+ console.error(
52
+ `Unknown action for wt-icon-action component: ${props.action}`,
53
+ );
51
54
  return { icon: 'edit', hint: props.action };
52
55
  }
53
56
 
@@ -55,6 +58,4 @@ const iconAction = computed(() => {
55
58
  });
56
59
  </script>
57
60
 
58
- <style lang="scss" scoped>
59
-
60
- </style>
61
+ <style lang="scss" scoped></style>
@@ -1,4 +1,3 @@
1
-
2
1
  :root {
3
2
  --icon-btn-hover-color: var(--grey-darken-5);
4
3
  }
@@ -6,4 +5,3 @@
6
5
  :root.theme--dark {
7
6
  --icon-btn-hover-color: var(--grey-lighten-5);
8
7
  }
9
-
@@ -17,15 +17,13 @@
17
17
  <script setup lang="ts">
18
18
  import WtIcon from '../wt-icon/wt-icon.vue';
19
19
 
20
- const {
21
- disabled = false,
22
- } = defineProps<{
23
- disabled?: boolean
20
+ const { disabled = false } = defineProps<{
21
+ disabled?: boolean;
24
22
  }>();
25
23
 
26
24
  const emit = defineEmits<{
27
- click: MouseEvent[]
28
- mousedown: MouseEvent[]
25
+ click: MouseEvent[];
26
+ mousedown: MouseEvent[];
29
27
  }>();
30
28
  </script>
31
29
 
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <div
3
3
  :style="{
4
- width,
5
- height,
6
- minWidth,
7
- minHeight,
8
- maxWidth,
9
- maxHeight,
4
+ width,
5
+ height,
6
+ minWidth,
7
+ minHeight,
8
+ maxWidth,
9
+ maxHeight,
10
10
  }"
11
11
  class="wt-image"
12
12
  >
@@ -18,7 +18,7 @@
18
18
  :alt="alt"
19
19
  :src="src"
20
20
  class="wt-image__img"
21
- >
21
+ />
22
22
  </slot>
23
23
  </div>
24
24
  </template>
@@ -29,11 +29,11 @@ import { computed } from 'vue';
29
29
  const sizeToUnits = {
30
30
  '3xs': '32px',
31
31
  '2xs': '64px',
32
- 'xs': '92px',
33
- 'sm': '128px',
34
- 'md': '192px',
35
- 'lg': '256px',
36
- 'xl': '380px',
32
+ xs: '92px',
33
+ sm: '128px',
34
+ md: '192px',
35
+ lg: '256px',
36
+ xl: '380px',
37
37
  '2xl': '512px',
38
38
  '3xl': '600px',
39
39
  };
@@ -51,7 +51,8 @@ const props = defineProps({
51
51
  type: String,
52
52
  // default: 'md',
53
53
  // required: true,
54
- validator: (v) => ['3xs', '2xs', 'xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'].includes(v),
54
+ validator: (v) =>
55
+ ['3xs', '2xs', 'xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'].includes(v),
55
56
  },
56
57
  alt: {
57
58
  type: String,
@@ -1,14 +1,10 @@
1
1
  <template>
2
2
  <div
3
- :class="[
4
- `wt-indicator--size-${size}`
5
- ]"
3
+ :class="[`wt-indicator--size-${size}`]"
6
4
  class="wt-indicator"
7
5
  >
8
6
  <span
9
- :class="[
10
- `wt-indicator__indicator--${color}`,
11
- ]"
7
+ :class="[`wt-indicator__indicator--${color}`]"
12
8
  class="wt-indicator__indicator"
13
9
  />
14
10
  <div
@@ -67,7 +63,6 @@ export default {
67
63
  },
68
64
  },
69
65
 
70
-
71
66
  computed: {
72
67
  isText() {
73
68
  return this.text !== undefined && this.text !== null && this.text !== '';
@@ -1,8 +1,7 @@
1
-
2
1
  :root {
3
2
  --input-padding: calc(var(--spacing-xs) - 1px); // - border
4
3
  --input-border: 1px solid;
5
4
  --input-icon-margin: var(--spacing-xs);
6
5
 
7
6
  --input-after-wrapper-gap: var(--spacing-2xs);
8
- }
7
+ }