@webitel/ui-sdk 23.12.41 → 23.12.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/favicon.ico +0 -0
- package/dist/img/sprite/index.js +148 -1
- package/dist/img/sprite/variable-select.svg +9 -0
- package/dist/plyr.svg +70 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.mjs +22671 -0
- package/dist/ui-sdk.umd.js +37 -43322
- package/package.json +33 -41
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
- package/src/components/transitions/wt-expand-transition.vue +2 -2
- package/src/components/wt-app-header/wt-app-header.vue +2 -2
- package/src/components/wt-app-header/wt-app-navigator.vue +6 -5
- package/src/components/wt-app-header/wt-header-actions.vue +30 -14
- package/src/components/wt-avatar/wt-avatar.vue +2 -2
- package/src/components/wt-badge/wt-badge.vue +3 -3
- package/src/components/wt-button/wt-button.vue +5 -3
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +4 -4
- package/src/components/wt-button-select/wt-button-select.vue +3 -3
- package/src/components/wt-checkbox/wt-checkbox.vue +15 -48
- package/src/components/wt-chip/_variables.scss +25 -2
- package/src/components/wt-chip/wt-chip.scss +20 -17
- package/src/components/wt-chip/wt-chip.vue +10 -5
- package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
- package/src/components/wt-copy-action/wt-copy-action.vue +6 -6
- package/src/components/wt-datepicker/wt-datepicker.vue +14 -12
- package/src/components/wt-divider/wt-divider.vue +1 -1
- package/src/components/wt-dummy/wt-dummy.vue +6 -2
- package/src/components/wt-error-page/wt-error-page.vue +10 -4
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
- package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +7 -4
- package/src/components/wt-headline/wt-headline.vue +4 -4
- package/src/components/wt-headline-nav/wt-headline-nav.vue +11 -4
- package/src/components/wt-hint/wt-hint.vue +4 -4
- package/src/components/wt-icon/wt-icon.vue +5 -5
- package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +2 -2
- package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +3 -2
- package/src/components/wt-indicator/wt-indicator.vue +6 -3
- package/src/components/wt-input/wt-input.vue +190 -199
- package/src/components/wt-input-info/wt-input-info.vue +2 -2
- package/src/components/wt-item-link/wt-item-link.vue +1 -1
- package/src/components/wt-label/_variables.scss +4 -2
- package/src/components/wt-label/wt-label.vue +5 -18
- package/src/components/wt-load-bar/wt-load-bar.vue +5 -2
- package/src/components/wt-loader/_internals/wt-loader--md.vue +11 -2
- package/src/components/wt-loader/_internals/wt-loader--sm.vue +9 -2
- package/src/components/wt-loader/wt-loader.vue +10 -3
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +16 -8
- package/src/components/wt-notification/wt-notification.vue +3 -3
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +9 -5
- package/src/components/wt-page-header/wt-page-header.vue +7 -8
- package/src/components/wt-page-wrapper/wt-page-wrapper.vue +8 -5
- package/src/components/wt-pagination/wt-pagination.vue +17 -15
- package/src/components/wt-player/wt-player.vue +16 -16
- package/src/components/wt-popup/_variables.scss +4 -3
- package/src/components/wt-popup/wt-popup.vue +18 -10
- package/src/components/wt-progress-bar/wt-progress-bar.vue +11 -7
- package/src/components/wt-radio/wt-radio.vue +15 -7
- package/src/components/wt-rounded-action/wt-rounded-action.vue +2 -2
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +6 -5
- package/src/components/wt-select/_multiselect.scss +48 -53
- package/src/components/wt-select/_variables.scss +0 -3
- package/src/components/wt-select/wt-select.vue +41 -40
- package/src/components/wt-slider/wt-slider.vue +5 -5
- package/src/components/wt-status-select/wt-status-select.vue +9 -9
- package/src/components/wt-stepper/wt-stepper.vue +8 -6
- package/src/components/wt-switcher/_variables.scss +30 -7
- package/src/components/wt-switcher/wt-switcher.vue +56 -35
- package/src/components/wt-table/_variables.scss +8 -5
- package/src/components/wt-table/wt-table.vue +123 -90
- package/src/components/wt-table-actions/wt-table-actions.vue +14 -14
- package/src/components/wt-table-column-select/wt-table-column-select.vue +33 -28
- package/src/components/wt-tabs/_variables.scss +4 -4
- package/src/components/wt-tabs/wt-tabs.vue +15 -13
- package/src/components/wt-tags-input/wt-tags-input.vue +26 -35
- package/src/components/wt-textarea/wt-textarea.vue +21 -33
- package/src/components/wt-time-input/wt-time-input.vue +24 -54
- package/src/components/wt-timepicker/wt-timepicker.vue +19 -27
- package/src/components/wt-tooltip/__tests__/WtTooltip.spec.js +0 -10
- package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +2 -2
- package/src/components/wt-tooltip/_variables.scss +2 -4
- package/src/components/wt-tooltip/wt-tooltip.vue +6 -18
- package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +5 -5
- package/src/css/styleguide/colors/_colors.scss +15 -14
- package/src/css/styleguide/colors/reusable/_text-field.scss +36 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +9 -9
- package/src/locale/i18n.js +1 -1
- package/src/locale/kz/kz.js +74 -78
- package/src/mixins/validationMixin/useValidation.js +2 -2
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -4
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +11 -9
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +6 -5
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
- package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +10 -6
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +8 -8
- package/src/modules/AuditForm/components/audit-form-question.vue +8 -8
- package/src/modules/AuditForm/components/audit-form.vue +6 -5
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +4 -4
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +7 -4
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +3 -3
- package/src/modules/CSVExport/__tests__/CSVExport.spec.js +5 -2
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +6 -6
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +13 -6
- package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -3
- package/src/modules/Filters/components/filter-pagination.vue +1 -1
- package/src/modules/Filters/components/filter-table-fields.vue +1 -1
- package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +6 -6
- package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
- package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +4 -4
- package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +2 -2
- package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +4 -4
- package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +2 -2
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +2 -2
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +2 -2
- package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
- package/src/modules/QueryFilters/components/filter-from-to.vue +12 -10
- package/src/modules/QueryFilters/components/filter-search.vue +2 -2
- package/src/modules/QueryFilters/components/filter-table-fields.vue +7 -7
- package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +2 -2
- package/src/modules/Userinfo/components/__tests__/auth.spec.js +7 -8
- package/src/modules/Userinfo/components/the-auth.vue +7 -4
- package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
- package/dist/demo.html +0 -1
- package/dist/ui-sdk.common.js +0 -43304
- package/dist/ui-sdk.common.js.map +0 -1
- package/dist/ui-sdk.umd.js.map +0 -1
- package/dist/ui-sdk.umd.min.js +0 -35
- package/dist/ui-sdk.umd.min.js.map +0 -1
- package/src/components/wt-button/Readme.md +0 -23
- package/src/components/wt-button-select/Readme.md +0 -13
- package/src/components/wt-headline-nav/Readme.md +0 -9
- package/src/components/wt-icon/Readme.md +0 -327
- package/src/components/wt-icon/docs/cleanup-svg-fill-none.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-fill.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-correct.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-incorrect.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-width-height.png +0 -0
- package/src/components/wt-icon/docs/svg-icon-code-example.png +0 -0
- package/src/components/wt-icon/docs/svg-sprite-in-dom.png +0 -0
- package/src/components/wt-icon-btn/Readme.md +0 -10
- package/src/components/wt-rounded-action/Readme.md +0 -68
- package/src/components/wt-tags-input/_variables.scss +0 -24
- package/src/validators/variableSearchValidator/Readme.md +0 -13
- package/src/validators/websocketValidator/Readme.md +0 -7
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "23.12.
|
|
3
|
+
"version": "23.12.44",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
6
|
+
"dev": "vite",
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"serve": "vite preview",
|
|
9
|
+
"test:unit": "vitest",
|
|
10
|
+
"lint:fix": "eslint --fix --ext .js,.vue src",
|
|
10
11
|
"prepare": "husky install",
|
|
11
12
|
"publish-lib": "npm run test:unit && npm run build && npm publish --access public",
|
|
12
13
|
"publish-lib:testless": "npm run build && npm publish --access public",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"docs:dev": "vitepress dev docs",
|
|
15
|
+
"docs:build": "vitepress build docs",
|
|
16
|
+
"docs:preview": "vitepress preview docs"
|
|
16
17
|
},
|
|
17
|
-
"main": "./dist/@webitel/ui-sdk.
|
|
18
|
+
"main": "./dist/@webitel/ui-sdk.umd.js",
|
|
18
19
|
"files": [
|
|
19
20
|
"dist/*",
|
|
20
21
|
"src/api/*",
|
|
@@ -34,27 +35,26 @@
|
|
|
34
35
|
],
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@floating-ui/vue": "^1.0.1",
|
|
37
|
-
"@vue/compat": "^3.
|
|
38
|
-
"@vuelidate/core": "^2.0.
|
|
39
|
-
"@vuelidate/validators": "^2.0.
|
|
38
|
+
"@vue/compat": "^3.3.8",
|
|
39
|
+
"@vuelidate/core": "^2.0.3",
|
|
40
|
+
"@vuelidate/validators": "^2.0.4",
|
|
40
41
|
"@vuepic/vue-datepicker": "^4.4.0",
|
|
41
42
|
"@vueuse/components": "^10.5.0",
|
|
42
43
|
"clipboard-copy": "^4.0.1",
|
|
43
|
-
"core-js": "^3.6.5",
|
|
44
44
|
"csv-stringify": "^5.5.3",
|
|
45
45
|
"deep-copy": "^1.4.2",
|
|
46
46
|
"deep-equal": "^2.0.3",
|
|
47
|
+
"deepmerge": "^4.3.1",
|
|
47
48
|
"file-saver": "^2.0.2",
|
|
48
49
|
"is-valid-domain": "^0.1.6",
|
|
49
50
|
"jszip": "^3.5.0",
|
|
50
51
|
"jszip-utils": "^0.1.0",
|
|
51
52
|
"lodash": "^4.17.21",
|
|
52
|
-
"
|
|
53
|
-
"plyr": "3.6.2",
|
|
53
|
+
"plyr": "3.6.3",
|
|
54
54
|
"query-string": "^8.1.0",
|
|
55
55
|
"sortablejs": "^1.15.0",
|
|
56
56
|
"tiny-emitter": "^2.1.0",
|
|
57
|
-
"vue": "^3.
|
|
57
|
+
"vue": "^3.3.8",
|
|
58
58
|
"vue-i18n": "^9.2.2",
|
|
59
59
|
"vue-multiselect": "^3.0.0-beta.1",
|
|
60
60
|
"vue-observe-visibility": "^2.0.0-alpha.1",
|
|
@@ -62,35 +62,27 @@
|
|
|
62
62
|
"webitel-sdk": "^23.7.5"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@testing-library/jest-dom": "^5.16.2",
|
|
68
|
-
"@vue/cli-plugin-babel": "~5.0.8",
|
|
69
|
-
"@vue/cli-plugin-eslint": "~5.0.8",
|
|
70
|
-
"@vue/cli-plugin-router": "^5.0.8",
|
|
71
|
-
"@vue/cli-plugin-unit-jest": "^5.0.8",
|
|
72
|
-
"@vue/cli-service": "~5.0.8",
|
|
65
|
+
"@vitejs/plugin-vue": "4.4.1",
|
|
66
|
+
"@vitest/coverage-v8": "^0.34.6",
|
|
73
67
|
"@vue/compiler-sfc": "^3.2.47",
|
|
74
|
-
"@vue/eslint-config-airbnb": "^6.0.0",
|
|
75
68
|
"@vue/test-utils": "^2.3.0",
|
|
76
|
-
"@vue/vue3-jest": "^29.2.2",
|
|
77
|
-
"babel-preset-vite": "^1.1.0",
|
|
78
69
|
"bamboo-jest-reporter": "^1.0.3",
|
|
79
|
-
"eslint": "^8.
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
70
|
+
"eslint": "^8.53.0",
|
|
71
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
72
|
+
"globby": "^14.0.0",
|
|
73
|
+
"happy-dom": "^12.9.1",
|
|
74
|
+
"husky": "^8.0.3",
|
|
75
|
+
"markdown-it": "^13.0.2",
|
|
76
|
+
"postcss": "^8.4.31",
|
|
77
|
+
"postcss-prefix-selector": "^1.16.0",
|
|
78
|
+
"prismjs": "^1.29.0",
|
|
84
79
|
"sass": "^1.51.0",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
80
|
+
"vite": "^4.5.0",
|
|
81
|
+
"vite-plugin-node-polyfills": "^0.15.0",
|
|
82
|
+
"vite-plugin-static-copy": "^0.17.0",
|
|
83
|
+
"vite-plugin-svg-sprite": "^0.5.0",
|
|
84
|
+
"vitepress": "^1.0.0-rc.29",
|
|
85
|
+
"vitest": "^0.34.6",
|
|
88
86
|
"vuex": "^4.1.0"
|
|
89
|
-
},
|
|
90
|
-
"overrides": {
|
|
91
|
-
"@vue/vue3-jest": "^29.2.2",
|
|
92
|
-
"vue": "^3.2.47",
|
|
93
|
-
"babel-jest": "^29.*",
|
|
94
|
-
"jest": "^29.*"
|
|
95
87
|
}
|
|
96
88
|
}
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
color="disabled"
|
|
5
5
|
:text="status.offline"
|
|
6
6
|
:size="size"
|
|
7
|
-
|
|
7
|
+
/>
|
|
8
8
|
<wt-indicator
|
|
9
9
|
color="success"
|
|
10
10
|
:text="status.online"
|
|
11
11
|
:size="size"
|
|
12
|
-
|
|
12
|
+
/>
|
|
13
13
|
<wt-indicator
|
|
14
14
|
color="primary"
|
|
15
15
|
:text="status.pause"
|
|
16
16
|
:size="size"
|
|
17
|
-
|
|
17
|
+
/>
|
|
18
18
|
</article>
|
|
19
19
|
</template>
|
|
20
20
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@enter="enter"
|
|
6
6
|
@leave="leave"
|
|
7
7
|
>
|
|
8
|
-
<slot
|
|
8
|
+
<slot />
|
|
9
9
|
</transition>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/* eslint-disable no-param-reassign */
|
|
14
14
|
// https://markus.oberlehner.net/blog/transition-to-height-auto-with-vue/
|
|
15
15
|
export default {
|
|
16
|
-
name: '
|
|
16
|
+
name: 'WtExpandTransition',
|
|
17
17
|
methods: {
|
|
18
18
|
afterEnter(element) {
|
|
19
19
|
element.style.height = 'auto';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
v-clickaway="close"
|
|
4
|
+
class="wt-app-navigator"
|
|
5
|
+
>
|
|
3
6
|
<wt-tooltip>
|
|
4
|
-
<template
|
|
7
|
+
<template #activator>
|
|
5
8
|
<wt-icon-btn
|
|
6
9
|
:class="{'active': isOpened}"
|
|
7
10
|
class="wt-app-navigator__btn"
|
|
8
11
|
icon="app-navigator"
|
|
9
12
|
@click="isOpened = !isOpened"
|
|
10
|
-
|
|
13
|
+
/>
|
|
11
14
|
</template>
|
|
12
15
|
{{ $t('webitelUI.appNavigator.title') }}
|
|
13
16
|
</wt-tooltip>
|
|
@@ -21,7 +24,6 @@
|
|
|
21
24
|
{{ $t('webitelUI.appNavigator.title') }}
|
|
22
25
|
</h3>
|
|
23
26
|
<ul class="wt-app-navigator__nav">
|
|
24
|
-
|
|
25
27
|
<li
|
|
26
28
|
v-if="formattedApps[WebitelApplications.AGENT]"
|
|
27
29
|
:class="{'active': formattedApps[WebitelApplications.AGENT].currentApp }"
|
|
@@ -173,7 +175,6 @@
|
|
|
173
175
|
>
|
|
174
176
|
</a>
|
|
175
177
|
</li>
|
|
176
|
-
|
|
177
178
|
</ul>
|
|
178
179
|
</nav>
|
|
179
180
|
</transition>
|
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="wt-header-actions">
|
|
3
3
|
<wt-tooltip>
|
|
4
|
-
<template
|
|
4
|
+
<template #activator>
|
|
5
5
|
<wt-icon-btn
|
|
6
6
|
v-clickaway="close"
|
|
7
7
|
:class="{'active': isOpened}"
|
|
8
8
|
class="wt-header-actions__btn"
|
|
9
9
|
icon="account"
|
|
10
10
|
@click="isOpened = !isOpened"
|
|
11
|
-
|
|
11
|
+
/>
|
|
12
12
|
</template>
|
|
13
13
|
{{ $t('webitelUI.headerActions.account') }}
|
|
14
14
|
</wt-tooltip>
|
|
15
15
|
|
|
16
16
|
<transition name="fade">
|
|
17
|
-
<section
|
|
18
|
-
|
|
17
|
+
<section
|
|
18
|
+
v-show="isOpened"
|
|
19
|
+
class="wt-header-actions__panel-wrapper"
|
|
20
|
+
>
|
|
21
|
+
<header
|
|
22
|
+
v-if="isHeader"
|
|
23
|
+
class="wt-header-actions__header"
|
|
24
|
+
>
|
|
19
25
|
<h3
|
|
20
26
|
class="wt-header-actions__name"
|
|
21
|
-
>
|
|
27
|
+
>
|
|
28
|
+
{{ userName }}
|
|
29
|
+
</h3>
|
|
22
30
|
<p
|
|
23
31
|
class="wt-header-actions__account"
|
|
24
|
-
>
|
|
32
|
+
>
|
|
33
|
+
{{ userAccount }}
|
|
34
|
+
</p>
|
|
25
35
|
</header>
|
|
26
36
|
<ul class="wt-header-actions__actions-wrapper">
|
|
27
37
|
<li class="wt-header-actions__action">
|
|
@@ -31,7 +41,7 @@
|
|
|
31
41
|
target="_blank"
|
|
32
42
|
@click="close"
|
|
33
43
|
>
|
|
34
|
-
<wt-icon icon="docs"
|
|
44
|
+
<wt-icon icon="docs" />
|
|
35
45
|
<span>{{ $t('webitelUI.headerActions.docs') }}</span>
|
|
36
46
|
</a>
|
|
37
47
|
</li>
|
|
@@ -40,7 +50,7 @@
|
|
|
40
50
|
class="wt-header-actions__action__link"
|
|
41
51
|
@click.prevent="settings"
|
|
42
52
|
>
|
|
43
|
-
<wt-icon icon="settings"
|
|
53
|
+
<wt-icon icon="settings" />
|
|
44
54
|
<span>{{ $t('webitelUI.headerActions.settings') }}</span>
|
|
45
55
|
</a>
|
|
46
56
|
</li>
|
|
@@ -49,12 +59,18 @@
|
|
|
49
59
|
class="wt-header-actions__action__link"
|
|
50
60
|
@click.prevent="logout"
|
|
51
61
|
>
|
|
52
|
-
<wt-icon
|
|
62
|
+
<wt-icon
|
|
63
|
+
color="error"
|
|
64
|
+
icon="logout"
|
|
65
|
+
/>
|
|
53
66
|
<span>{{ $t('webitelUI.headerActions.logout') }}</span>
|
|
54
67
|
</a>
|
|
55
68
|
</li>
|
|
56
69
|
</ul>
|
|
57
|
-
<footer
|
|
70
|
+
<footer
|
|
71
|
+
v-if="isFooter"
|
|
72
|
+
class="wt-header-actions__footer"
|
|
73
|
+
>
|
|
58
74
|
<p class="wt-header-actions__build__version">
|
|
59
75
|
{{ buildVersion }}
|
|
60
76
|
</p>
|
|
@@ -66,10 +82,7 @@
|
|
|
66
82
|
|
|
67
83
|
<script>
|
|
68
84
|
export default {
|
|
69
|
-
name: '
|
|
70
|
-
data: () => ({
|
|
71
|
-
isOpened: false,
|
|
72
|
-
}),
|
|
85
|
+
name: 'WtHeaderActions',
|
|
73
86
|
props: {
|
|
74
87
|
user: {
|
|
75
88
|
type: Object,
|
|
@@ -79,6 +92,9 @@ export default {
|
|
|
79
92
|
type: Object,
|
|
80
93
|
},
|
|
81
94
|
},
|
|
95
|
+
data: () => ({
|
|
96
|
+
isOpened: false,
|
|
97
|
+
}),
|
|
82
98
|
|
|
83
99
|
computed: {
|
|
84
100
|
isHeader() {
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
v-if="badge"
|
|
8
8
|
:color-variable="badgeColorVar"
|
|
9
9
|
:icon-badge="isDnd ? 'dnd' : null"
|
|
10
|
-
|
|
10
|
+
/>
|
|
11
11
|
<div
|
|
12
|
-
class="wt-avatar__letters"
|
|
13
12
|
v-if="isLetterAvatar"
|
|
13
|
+
class="wt-avatar__letters"
|
|
14
14
|
:style="{ background: `var(${avatarLettersBackground})` }"
|
|
15
15
|
>
|
|
16
16
|
{{ avatarLetters }}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
<aside
|
|
3
3
|
class="wt-badge"
|
|
4
4
|
:class="{ 'wt-badge--outside': outside }"
|
|
5
|
-
:style="{ background: iconBadge ? `url(${
|
|
6
|
-
|
|
5
|
+
:style="{ background: iconBadge ? `url(${showIconBadge})` : `var(--${colorVariable})` }"
|
|
6
|
+
/>
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script>
|
|
10
10
|
import BadgeDnd from '../../assets/icons/badge-dnd.svg';
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
|
-
name: '
|
|
13
|
+
name: 'WtBadge',
|
|
14
14
|
props: {
|
|
15
15
|
colorVariable: {
|
|
16
16
|
type: String,
|
|
@@ -19,14 +19,16 @@
|
|
|
19
19
|
v-if="loading"
|
|
20
20
|
size="sm"
|
|
21
21
|
:color="loaderColor"
|
|
22
|
-
|
|
23
|
-
<slot v-else>
|
|
22
|
+
/>
|
|
23
|
+
<slot v-else>
|
|
24
|
+
no content provided
|
|
25
|
+
</slot>
|
|
24
26
|
</button>
|
|
25
27
|
</template>
|
|
26
28
|
|
|
27
29
|
<script>
|
|
28
30
|
export default {
|
|
29
|
-
name: '
|
|
31
|
+
name: 'WtButton',
|
|
30
32
|
props: {
|
|
31
33
|
/**
|
|
32
34
|
* @values 'primary', 'secondary', 'success', 'error', 'transfer', 'job', 'info'
|
|
@@ -2,10 +2,10 @@ import { shallowMount, mount } from '@vue/test-utils';
|
|
|
2
2
|
import WtSelectButton from '../wt-button-select.vue';
|
|
3
3
|
|
|
4
4
|
// helps to mock @floating-ui/vue autoUpdate method
|
|
5
|
-
global.ResizeObserver =
|
|
6
|
-
observe:
|
|
7
|
-
unobserve:
|
|
8
|
-
disconnect:
|
|
5
|
+
global.ResizeObserver = vi.fn().mockImplementation(() => ({
|
|
6
|
+
observe: vi.fn(),
|
|
7
|
+
unobserve: vi.fn(),
|
|
8
|
+
disconnect: vi.fn(),
|
|
9
9
|
}));
|
|
10
10
|
|
|
11
11
|
describe('WtSelectButton', () => {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
class="wt-button-select__button"
|
|
11
11
|
@click="$emit('click', $event)"
|
|
12
12
|
>
|
|
13
|
-
<slot
|
|
13
|
+
<slot />
|
|
14
14
|
</wt-button>
|
|
15
15
|
|
|
16
16
|
<wt-context-menu
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:visible="isOpened"
|
|
19
19
|
@click="selectOption"
|
|
20
20
|
>
|
|
21
|
-
<template
|
|
21
|
+
<template #activator>
|
|
22
22
|
<wt-button
|
|
23
23
|
v-bind="$attrs"
|
|
24
24
|
:color="color"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
:disabled="disabled"
|
|
34
34
|
class="wt-button-select__select-arrow"
|
|
35
35
|
icon="arrow-down"
|
|
36
|
-
|
|
36
|
+
/>
|
|
37
37
|
</wt-button>
|
|
38
38
|
</template>
|
|
39
39
|
</wt-context-menu>
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
class="wt-checkbox"
|
|
4
4
|
:class="{
|
|
5
5
|
'wt-checkbox--active': isChecked,
|
|
6
|
-
'wt-checkbox--outline': outline,
|
|
7
6
|
'wt-checkbox--disabled': disabled,
|
|
8
7
|
}"
|
|
9
8
|
>
|
|
10
9
|
<wt-label
|
|
11
10
|
v-bind="labelProps"
|
|
11
|
+
:disabled="disabled"
|
|
12
12
|
class="wt-checkbox__wrapper"
|
|
13
13
|
>
|
|
14
14
|
<input
|
|
@@ -20,17 +20,22 @@
|
|
|
20
20
|
@change="inputHandler"
|
|
21
21
|
>
|
|
22
22
|
<span class="wt-checkbox__checkmark">
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
<wt-icon
|
|
24
|
+
:icon="checkboxIcon"
|
|
25
|
+
:color="iconColor"
|
|
26
|
+
/>
|
|
27
|
+
</span>
|
|
28
28
|
<!-- @slot Custom label markup -->
|
|
29
29
|
<slot
|
|
30
30
|
v-bind="{ label, isChecked, disabled }"
|
|
31
31
|
name="label"
|
|
32
32
|
>
|
|
33
|
-
<div
|
|
33
|
+
<div
|
|
34
|
+
v-if="label"
|
|
35
|
+
class="wt-checkbox__label"
|
|
36
|
+
>
|
|
37
|
+
{{ label }}
|
|
38
|
+
</div>
|
|
34
39
|
</slot>
|
|
35
40
|
</wt-label>
|
|
36
41
|
</div>
|
|
@@ -38,7 +43,7 @@
|
|
|
38
43
|
|
|
39
44
|
<script>
|
|
40
45
|
export default {
|
|
41
|
-
name: '
|
|
46
|
+
name: 'WtCheckbox',
|
|
42
47
|
model: {
|
|
43
48
|
prop: 'selected',
|
|
44
49
|
event: 'change',
|
|
@@ -60,10 +65,6 @@ export default {
|
|
|
60
65
|
type: Boolean,
|
|
61
66
|
default: false,
|
|
62
67
|
},
|
|
63
|
-
outline: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: false,
|
|
66
|
-
},
|
|
67
68
|
labelProps: {
|
|
68
69
|
type: Object,
|
|
69
70
|
description: 'Object with props, passed down to wt-label as props',
|
|
@@ -146,46 +147,12 @@ export default {
|
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
.wt-checkbox:hover {
|
|
149
|
-
.wt-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
::v-deep .wt-icon__icon {
|
|
154
|
-
fill: var(--icon-color--hover);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.wt-checkbox--active {
|
|
159
|
-
.wt-checkbox__label {
|
|
160
|
-
color: var(--form-label--active-color);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.wt-checkbox--outline {
|
|
165
|
-
.wt-checkbox__label {
|
|
166
|
-
color: var(--form-outline-label-color);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
::v-deep .wt-icon__icon {
|
|
170
|
-
fill: var(--icon-outline-color);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&.wt-checkbox--active {
|
|
174
|
-
.wt-checkbox__label {
|
|
175
|
-
color: var(--form-label--active-color);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
::v-deep .wt-icon__icon {
|
|
179
|
-
fill: var(--icon-outline--active-color);
|
|
180
|
-
}
|
|
150
|
+
:deep .wt-icon__icon {
|
|
151
|
+
fill: var(--icon-active-color);
|
|
181
152
|
}
|
|
182
153
|
}
|
|
183
154
|
|
|
184
155
|
.wt-checkbox--disabled {
|
|
185
156
|
pointer-events: none;
|
|
186
|
-
|
|
187
|
-
.wt-checkbox__label {
|
|
188
|
-
color: var(--form-label--disabled-color);
|
|
189
|
-
}
|
|
190
157
|
}
|
|
191
158
|
</style>
|
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
:root {
|
|
3
3
|
--chip-padding: var(--spacing-2xs) var(--spacing-sm);
|
|
4
4
|
--chip-border-radius: var(--spacing-lg);
|
|
5
|
-
|
|
6
|
-
--chip-
|
|
5
|
+
|
|
6
|
+
--wt-chip-main-background-color: var(--primary-light-color);
|
|
7
|
+
--wt-chip-main-text-color: var(--primary-on-color);
|
|
8
|
+
|
|
9
|
+
--wt-chip-primary-background-color: var(--primary-color);
|
|
10
|
+
--wt-chip-primary-text-color: var(--primary-on-color);
|
|
11
|
+
|
|
12
|
+
--wt-chip-secondary-background-color: var(--dp-14-surface-color);
|
|
13
|
+
--wt-chip-secondary-text-color: var(--grey-darken-4);
|
|
14
|
+
|
|
15
|
+
--wt-chip-success-background-color: var(--success-color);
|
|
16
|
+
--wt-chip-success-text-color: var(--success-on-color);
|
|
17
|
+
|
|
18
|
+
--wt-chip-warning-background-color: var(--warning-color);
|
|
19
|
+
--wt-chip-warning-text-color: var(--warning-on-color);
|
|
20
|
+
|
|
21
|
+
--wt-chip-error-background-color: var(--error-color);
|
|
22
|
+
--wt-chip-error-text-color: var(--error-on-color);
|
|
23
|
+
|
|
24
|
+
--wt-chip-transfer-background-color: var(--transfer-color);
|
|
25
|
+
--wt-chip-transfer-text-color: var(--transfer-on-color);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:root.theme--dark {
|
|
29
|
+
--wt-chip-secondary-text-color: var(--grey-lighten-4);
|
|
7
30
|
}
|
|
@@ -3,39 +3,42 @@
|
|
|
3
3
|
|
|
4
4
|
display: inline-block;
|
|
5
5
|
padding: var(--chip-padding);
|
|
6
|
-
color: var(--text-
|
|
6
|
+
color: var(--wt-chip-main-text-color);
|
|
7
7
|
border-radius: var(--chip-border-radius);
|
|
8
|
-
background: var(--chip-
|
|
8
|
+
background: var(--wt-chip-main-background-color);
|
|
9
9
|
|
|
10
10
|
&--main-color {
|
|
11
|
-
background: var(--chip-
|
|
11
|
+
background: var(--wt-chip-main-background-color);
|
|
12
|
+
color: var(--wt-chip-main-text-color);
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
&--
|
|
15
|
-
background: var(--chip-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
&--accent-color {
|
|
19
|
-
background: var(--primary-color);
|
|
15
|
+
&--primary-color {
|
|
16
|
+
background: var(--wt-chip-primary-background-color);
|
|
17
|
+
color: var(--wt-chip-primary-text-color);
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
&--secondary-color {
|
|
23
|
-
background: var(--secondary-color);
|
|
21
|
+
background: var(--wt-chip-secondary-background-color);
|
|
22
|
+
color: var(--wt-chip-secondary-text-color);
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
&--
|
|
27
|
-
background: var(--
|
|
25
|
+
&--success-color {
|
|
26
|
+
background: var(--wt-chip-success-background-color);
|
|
27
|
+
color: var(--wt-chip-success-text-color);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
&--
|
|
31
|
-
background: var(--
|
|
30
|
+
&--warning-color {
|
|
31
|
+
background: var(--wt-chip-warning-background-color);
|
|
32
|
+
color: var(--wt-chip-warning-text-color);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
&--
|
|
35
|
-
background: var(--
|
|
35
|
+
&--error-color {
|
|
36
|
+
background: var(--wt-chip-error-background-color);
|
|
37
|
+
color: var(--wt-chip-error-text-color);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
&--transfer-color {
|
|
39
|
-
background: var(--transfer-color);
|
|
41
|
+
background: var(--wt-chip-transfer-background-color);
|
|
42
|
+
color: var(--wt-chip-transfer-text-color);
|
|
40
43
|
}
|
|
41
44
|
}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span
|
|
3
|
-
|
|
2
|
+
<span
|
|
3
|
+
class="wt-chip"
|
|
4
|
+
:class="`wt-chip--${color}-color`"
|
|
5
|
+
>
|
|
6
|
+
<slot />
|
|
4
7
|
</span>
|
|
5
8
|
</template>
|
|
6
9
|
|
|
7
10
|
<script>
|
|
8
11
|
export default {
|
|
9
|
-
name: '
|
|
12
|
+
name: 'WtChip',
|
|
10
13
|
props: {
|
|
14
|
+
/**
|
|
15
|
+
* The color of the chip
|
|
16
|
+
* @values main, primary, secondary, success, warning, error, transfer
|
|
17
|
+
*/
|
|
11
18
|
color: {
|
|
12
19
|
type: String,
|
|
13
20
|
default: 'main',
|
|
14
|
-
options: ['main', 'outline', 'accent', 'secondary', 'secondary-50', 'success', 'danger', 'transfer'],
|
|
15
|
-
notes: '"main" and "outline" are chip-specific colors',
|
|
16
21
|
},
|
|
17
22
|
},
|
|
18
23
|
};
|
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
placement="bottom-end"
|
|
7
7
|
popper-class="wt-context-menu__floating-wrapper"
|
|
8
8
|
>
|
|
9
|
-
<template
|
|
10
|
-
<slot name="activator"
|
|
9
|
+
<template #activator>
|
|
10
|
+
<slot name="activator" />
|
|
11
11
|
</template>
|
|
12
|
-
<template
|
|
12
|
+
<template #default="{ hide }">
|
|
13
13
|
<ul
|
|
14
14
|
class="wt-context-menu__menu"
|
|
15
15
|
:style="`width: ${width}; min-width: ${minWidth}; max-width: ${maxWidth};`"
|
|
16
16
|
>
|
|
17
17
|
<li
|
|
18
|
-
class="wt-context-menu__option-wrapper"
|
|
19
18
|
v-for="(option, index) of options"
|
|
20
19
|
:key="index"
|
|
20
|
+
class="wt-context-menu__option-wrapper"
|
|
21
21
|
>
|
|
22
22
|
<!-- <a> click.prevent prevents redirect to # -->
|
|
23
23
|
<a
|