@webitel/ui-sdk 23.12.2 → 23.12.5-1
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/link.svg +8 -0
- 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 +22670 -0
- package/dist/ui-sdk.umd.js +37 -43084
- package/package.json +34 -40
- package/src/api/axios/generateInstance.js +1 -1
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
- package/src/components/on-demand/wt-save-failed-popup/__tests__/WtPopup.spec.js +9 -0
- package/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +70 -0
- package/src/components/transitions/wt-expand-transition.vue +2 -2
- package/src/components/wt-app-header/_variables.scss +1 -1
- package/src/components/wt-app-header/wt-app-header.vue +2 -5
- 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/_variables.scss +1 -1
- 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/_variables.scss +2 -32
- package/src/components/wt-button/wt-button.vue +5 -3
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +9 -8
- package/src/components/wt-button-select/wt-button-select.vue +58 -59
- package/src/components/wt-checkbox/wt-checkbox.vue +15 -48
- package/src/components/wt-chip/_variables.scss +21 -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/_variables.scss +1 -1
- 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/_variables.scss +5 -2
- package/src/components/wt-headline-nav/wt-headline-nav.vue +46 -33
- package/src/components/wt-hint/wt-hint.vue +5 -6
- package/src/components/wt-icon/_variables.scss +5 -10
- package/src/components/wt-icon/wt-icon.vue +15 -6
- 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 +4 -2
- package/src/components/wt-indicator/_variables.scss +14 -19
- package/src/components/wt-indicator/wt-indicator.vue +26 -27
- package/src/components/wt-input/wt-input.vue +200 -219
- 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 +7 -4
- 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/_variables.scss +2 -2
- package/src/components/wt-loader/wt-loader.vue +10 -3
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +17 -9
- package/src/components/wt-notification/wt-notification.vue +4 -4
- 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/__tests__/WtPlayer.spec.js +1 -1
- package/src/components/wt-player/_variables.scss +1 -1
- package/src/components/wt-player/wt-player.vue +17 -17
- 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/_variables.scss +10 -8
- package/src/components/wt-progress-bar/wt-progress-bar.vue +27 -18
- package/src/components/wt-radio/wt-radio.vue +26 -54
- package/src/components/wt-rounded-action/_variables.scss +4 -35
- package/src/components/wt-rounded-action/wt-rounded-action.vue +15 -70
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +18 -42
- package/src/components/wt-select/_multiselect.scss +48 -53
- package/src/components/wt-select/_variables.scss +0 -3
- package/src/components/wt-select/mixins/multiselectMixin.js +9 -1
- package/src/components/wt-select/wt-select.vue +41 -40
- package/src/components/wt-slider/_variables.scss +6 -0
- package/src/components/wt-slider/wt-slider.vue +25 -9
- package/src/components/wt-status-select/_variables.scss +7 -4
- package/src/components/wt-status-select/wt-status-select.vue +18 -12
- package/src/components/wt-stepper/_variables.scss +5 -0
- package/src/components/wt-stepper/wt-stepper.vue +15 -9
- 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 +37 -54
- 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/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +1 -1
- package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +1 -1
- package/src/css/styleguide/colors/_colors.scss +45 -29
- package/src/css/styleguide/colors/reusable/_text-field.scss +36 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +9 -9
- package/src/enums/WebitelApplications/AdminSections.enum.js +2 -1
- package/src/locale/en/en.js +11 -3
- package/src/locale/es/es.js +2 -0
- package/src/locale/i18n.js +3 -1
- package/src/locale/kz/kz.js +327 -0
- package/src/locale/ru/ru.js +11 -3
- package/src/locale/ua/ua.js +11 -3
- package/src/mixins/validationMixin/__tests__/validationMixin.spec.js +2 -2
- package/src/mixins/validationMixin/useValidation.js +19 -4
- package/src/mixins/validationMixin/validationMixin.js +1 -0
- 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 +11 -8
- 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 +77 -0
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +35 -17
- package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -3
- package/src/modules/FilesExport/scripts/generateMediaURL.js +1 -1
- 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 +7 -5
- package/src/modules/QueryFilters/components/__tests__/abstract-enum-filter.spec.js +3 -1
- 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/classes/ApplicationsAccess.js +6 -2
- package/src/modules/Userinfo/components/__tests__/auth.spec.js +7 -8
- package/src/modules/Userinfo/components/the-auth.vue +8 -5
- package/src/scripts/debounce.js +1 -1
- package/src/scripts/saveAsJSON.js +9 -0
- package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
- package/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js +48 -0
- package/src/validators/variableSearchValidator/variableSearchValidator.js +10 -0
- package/src/validators/websocketValidator/__tests__/websocketValidator.spec.js +28 -0
- package/src/validators/websocketValidator/websocketValidator.js +9 -0
- package/dist/demo.html +0 -1
- package/dist/ui-sdk.common.js +0 -43066
- 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-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/locale/.DS_Store +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
v-clickaway="atClickaway"
|
|
3
4
|
class="wt-button-select"
|
|
4
|
-
v-clickaway="away"
|
|
5
5
|
>
|
|
6
|
-
|
|
7
6
|
<wt-button
|
|
8
7
|
v-bind="$attrs"
|
|
9
|
-
class="wt-button-select__button"
|
|
10
8
|
:color="color"
|
|
11
9
|
:disabled="disabled"
|
|
10
|
+
class="wt-button-select__button"
|
|
12
11
|
@click="$emit('click', $event)"
|
|
13
12
|
>
|
|
14
|
-
<slot
|
|
13
|
+
<slot />
|
|
15
14
|
</wt-button>
|
|
16
15
|
|
|
17
16
|
<wt-context-menu
|
|
@@ -19,80 +18,80 @@
|
|
|
19
18
|
:visible="isOpened"
|
|
20
19
|
@click="selectOption"
|
|
21
20
|
>
|
|
22
|
-
<template
|
|
21
|
+
<template #activator>
|
|
23
22
|
<wt-button
|
|
24
23
|
v-bind="$attrs"
|
|
25
|
-
class="wt-button-select__select-btn"
|
|
26
24
|
:color="color"
|
|
27
25
|
:disabled="disabled"
|
|
28
26
|
:loading="false"
|
|
27
|
+
class="wt-button-select__select-btn"
|
|
29
28
|
@click="isOpened = !isOpened"
|
|
30
29
|
>
|
|
31
30
|
<wt-icon
|
|
32
|
-
class="wt-button-select__select-arrow"
|
|
33
31
|
:class="{'wt-button-select__select-arrow--active': isOpened}"
|
|
34
|
-
icon="arrow-down"
|
|
35
32
|
:color="color === 'primary' ? 'on-primary' : 'default'"
|
|
36
33
|
:disabled="disabled"
|
|
37
|
-
|
|
34
|
+
class="wt-button-select__select-arrow"
|
|
35
|
+
icon="arrow-down"
|
|
36
|
+
/>
|
|
38
37
|
</wt-button>
|
|
39
38
|
</template>
|
|
40
39
|
</wt-context-menu>
|
|
41
40
|
</div>
|
|
42
41
|
</template>
|
|
43
42
|
|
|
44
|
-
<script>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
color: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: 'primary',
|
|
65
|
-
},
|
|
66
|
-
disabled: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false,
|
|
69
|
-
},
|
|
43
|
+
<script setup>
|
|
44
|
+
import { ref } from 'vue';
|
|
45
|
+
|
|
46
|
+
const props = defineProps({
|
|
47
|
+
/**
|
|
48
|
+
* See context-menu component docs
|
|
49
|
+
*/
|
|
50
|
+
options: {
|
|
51
|
+
type: Array,
|
|
52
|
+
required: true,
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @values 'primary', 'secondary'
|
|
56
|
+
* @example <wt-button color="secondary"></wt-button>
|
|
57
|
+
*/
|
|
58
|
+
color: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: 'primary',
|
|
70
61
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
*/
|
|
75
|
-
'click',
|
|
76
|
-
/**
|
|
77
|
-
* Click on option in context-menu
|
|
78
|
-
*
|
|
79
|
-
* @event click:option
|
|
80
|
-
*
|
|
81
|
-
* @property {object} option clicked option object
|
|
82
|
-
* @property {index} index clicked option index in options list
|
|
83
|
-
*/
|
|
84
|
-
'click:option',
|
|
85
|
-
],
|
|
86
|
-
methods: {
|
|
87
|
-
selectOption({ option, index }) {
|
|
88
|
-
this.$emit('click:option', option, index);
|
|
89
|
-
this.isOpened = false;
|
|
90
|
-
},
|
|
91
|
-
away() {
|
|
92
|
-
this.isOpened = false;
|
|
93
|
-
},
|
|
62
|
+
disabled: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: false,
|
|
94
65
|
},
|
|
95
|
-
};
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const emit = defineEmits([
|
|
69
|
+
/**
|
|
70
|
+
* @event click
|
|
71
|
+
*/
|
|
72
|
+
'click',
|
|
73
|
+
/**
|
|
74
|
+
* Click on option in context-menu
|
|
75
|
+
*
|
|
76
|
+
* @event click:option
|
|
77
|
+
*
|
|
78
|
+
* @property {object} option clicked option object
|
|
79
|
+
* @property {index} index clicked option index in options list
|
|
80
|
+
*/
|
|
81
|
+
'click:option',
|
|
82
|
+
]);
|
|
83
|
+
|
|
84
|
+
const isOpened = ref(false);
|
|
85
|
+
|
|
86
|
+
function selectOption({ option, index }) {
|
|
87
|
+
emit('click:option', option, index);
|
|
88
|
+
isOpened.value = false;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function atClickaway() {
|
|
92
|
+
isOpened.value = false;
|
|
93
|
+
}
|
|
94
|
+
|
|
96
95
|
</script>
|
|
97
96
|
|
|
98
97
|
<style lang="scss">
|
|
@@ -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,25 @@
|
|
|
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(--secondary-color);
|
|
13
|
+
--wt-chip-secondary-text-color: var(--secondary-on-color);
|
|
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);
|
|
7
26
|
}
|
|
@@ -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(--accent-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
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-tooltip class="wt-copy-action">
|
|
3
|
-
<template
|
|
3
|
+
<template #activator>
|
|
4
4
|
<wt-icon-btn
|
|
5
5
|
v-bind="$attrs"
|
|
6
6
|
:icon="copied ? 'done' : 'copy'"
|
|
7
7
|
class="copy-action"
|
|
8
8
|
@click="copy"
|
|
9
|
-
|
|
9
|
+
/>
|
|
10
10
|
</template>
|
|
11
11
|
{{ copied ? copiedTooltip : copyTooltip }}
|
|
12
12
|
</wt-tooltip>
|
|
@@ -18,10 +18,7 @@ import copy from 'clipboard-copy';
|
|
|
18
18
|
let copiedIdTimeout = null;
|
|
19
19
|
|
|
20
20
|
export default {
|
|
21
|
-
name: '
|
|
22
|
-
data: () => ({
|
|
23
|
-
copied: false,
|
|
24
|
-
}),
|
|
21
|
+
name: 'WtCopyAction',
|
|
25
22
|
props: {
|
|
26
23
|
value: {
|
|
27
24
|
type: String,
|
|
@@ -34,6 +31,9 @@ export default {
|
|
|
34
31
|
}),
|
|
35
32
|
},
|
|
36
33
|
},
|
|
34
|
+
data: () => ({
|
|
35
|
+
copied: false,
|
|
36
|
+
}),
|
|
37
37
|
computed: {
|
|
38
38
|
copyTooltip() {
|
|
39
39
|
return this.tooltips.copy || this.$t('webitelUI.copyAction.copy');
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
--dp-hover-color: var(--secondary-color-50);
|
|
40
40
|
--dp-hover-text-color: var(--contrast-color);
|
|
41
41
|
--dp-hover-icon-color: var(--icon-color--hover);
|
|
42
|
-
--dp-primary-color: var(--
|
|
42
|
+
--dp-primary-color: var(--primary-color);
|
|
43
43
|
--dp-primary-text-color: var(--main-color);
|
|
44
44
|
--dp-secondary-color: var(--secondary-color);
|
|
45
45
|
--dp-border-color: var(--form-border-color);
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
<slot
|
|
14
14
|
v-bind="{ label }"
|
|
15
15
|
name="label"
|
|
16
|
-
>
|
|
16
|
+
>
|
|
17
|
+
{{ label }}
|
|
18
|
+
</slot>
|
|
17
19
|
</wt-label>
|
|
18
20
|
<vue-datepicker
|
|
19
21
|
v-bind="{ ...$attrs, ...$props }"
|
|
@@ -29,46 +31,46 @@
|
|
|
29
31
|
@open="isOpened = true"
|
|
30
32
|
@update:model-value="emit('input', $event.getTime())"
|
|
31
33
|
>
|
|
32
|
-
<template
|
|
34
|
+
<template #input-icon>
|
|
33
35
|
<wt-icon
|
|
34
36
|
:color="disabled ? 'disabled' : 'default'"
|
|
35
37
|
icon="calendar"
|
|
36
|
-
|
|
38
|
+
/>
|
|
37
39
|
</template>
|
|
38
|
-
<template
|
|
40
|
+
<template #clear-icon>
|
|
39
41
|
<wt-icon
|
|
40
42
|
:class="{ 'wt-datepicker__open-arrow--opened': isOpened }"
|
|
41
43
|
:color="disabled ? 'disabled' : 'default'"
|
|
42
44
|
class="wt-datepicker__open-arrow"
|
|
43
45
|
icon="arrow-down"
|
|
44
|
-
|
|
46
|
+
/>
|
|
45
47
|
</template>
|
|
46
|
-
<template
|
|
48
|
+
<template #arrow-left>
|
|
47
49
|
<wt-icon-btn
|
|
48
50
|
icon="arrow-left"
|
|
49
|
-
|
|
51
|
+
/>
|
|
50
52
|
</template>
|
|
51
|
-
<template
|
|
53
|
+
<template #arrow-right>
|
|
52
54
|
<wt-icon-btn
|
|
53
55
|
icon="arrow-right"
|
|
54
|
-
|
|
56
|
+
/>
|
|
55
57
|
</template>
|
|
56
58
|
<template
|
|
57
59
|
v-if="isDateTime"
|
|
58
|
-
|
|
60
|
+
#time-picker="{ time, updateTime }"
|
|
59
61
|
>
|
|
60
62
|
<div class="datepicker__timepicker">
|
|
61
63
|
<wt-time-input
|
|
62
64
|
:value="time.hours"
|
|
63
65
|
max-value="23"
|
|
64
66
|
@input="updateTime"
|
|
65
|
-
|
|
67
|
+
/>
|
|
66
68
|
:
|
|
67
69
|
<wt-time-input
|
|
68
70
|
:value="time.minutes"
|
|
69
71
|
max-value="59"
|
|
70
72
|
@input="updateTime($event, false)"
|
|
71
|
-
|
|
73
|
+
/>
|
|
72
74
|
</div>
|
|
73
75
|
</template>
|
|
74
76
|
</vue-datepicker>
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
<p
|
|
12
12
|
v-if="!hiddenText"
|
|
13
|
-
class="wt-dummy__text"
|
|
13
|
+
class="wt-dummy__text"
|
|
14
|
+
>
|
|
15
|
+
{{ text || $t('webitelUI.dummy.text') }}
|
|
16
|
+
</p>
|
|
14
17
|
<wt-button
|
|
15
18
|
v-if="showAction"
|
|
16
19
|
@click="emits('create')"
|
|
17
|
-
|
|
20
|
+
>
|
|
21
|
+
{{ buttonText || $t('reusable.add') }}
|
|
18
22
|
</wt-button>
|
|
19
23
|
</div>
|
|
20
24
|
</template>
|
|
@@ -7,12 +7,18 @@
|
|
|
7
7
|
:alt="errorPic.alt"
|
|
8
8
|
>
|
|
9
9
|
<h2
|
|
10
|
-
class="wt-error-page__title"
|
|
11
|
-
|
|
10
|
+
class="wt-error-page__title"
|
|
11
|
+
>
|
|
12
|
+
{{ errorTitle }}
|
|
13
|
+
</h2>
|
|
14
|
+
<p class="wt-error-page__text">
|
|
15
|
+
{{ errorText }}
|
|
16
|
+
</p>
|
|
12
17
|
<wt-button
|
|
13
18
|
class="wt-error-page__action"
|
|
14
19
|
@click="$emit('back')"
|
|
15
|
-
>
|
|
20
|
+
>
|
|
21
|
+
{{ $t('webitelUI.errorPages.goBack') }}
|
|
16
22
|
</wt-button>
|
|
17
23
|
</article>
|
|
18
24
|
</section>
|
|
@@ -23,7 +29,7 @@ import pic403 from '../../assets/components/organisms/wt-error-page/403.svg';
|
|
|
23
29
|
import pic404 from '../../assets/components/organisms/wt-error-page/404.svg';
|
|
24
30
|
|
|
25
31
|
export default {
|
|
26
|
-
name: '
|
|
32
|
+
name: 'WtErrorPage',
|
|
27
33
|
props: {
|
|
28
34
|
type: {
|
|
29
35
|
type: String,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
:class="[{'wt-expansion-panel--opened':open},
|
|
4
|
-
|
|
4
|
+
`wt-expansion-panel--${props.size}`]"
|
|
5
5
|
class="wt-expansion-panel"
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
@click="open = !open"
|
|
11
11
|
@keypress.enter="open = !open"
|
|
12
12
|
>
|
|
13
|
-
<slot name="title"
|
|
13
|
+
<slot name="title" />
|
|
14
14
|
<wt-icon
|
|
15
15
|
icon="arrow-right"
|
|
16
|
-
|
|
16
|
+
/>
|
|
17
17
|
</div>
|
|
18
18
|
<wt-expand-transition>
|
|
19
19
|
<div v-show="open">
|
|
20
|
-
<slot
|
|
20
|
+
<slot />
|
|
21
21
|
</div>
|
|
22
22
|
</wt-expand-transition>
|
|
23
23
|
</div>
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<article
|
|
2
|
+
<article
|
|
3
|
+
class="filters-panel-wrapper"
|
|
4
|
+
:class="{ 'filters-panel-wrapper--opened': isOpened }"
|
|
5
|
+
>
|
|
3
6
|
<div class="filters-wrap">
|
|
4
|
-
<slot
|
|
7
|
+
<slot />
|
|
5
8
|
</div>
|
|
6
9
|
<div class="actions-wrap">
|
|
7
10
|
<wt-table-actions
|
|
8
11
|
:icons="['filter-reset', 'settings']"
|
|
9
12
|
@input="tableActionsHandler"
|
|
10
|
-
|
|
13
|
+
/>
|
|
11
14
|
</div>
|
|
12
15
|
</article>
|
|
13
16
|
</template>
|
|
14
17
|
|
|
15
18
|
<script>
|
|
16
19
|
export default {
|
|
17
|
-
name: '
|
|
20
|
+
name: 'FiltersPanelWrapper',
|
|
18
21
|
data: () => ({
|
|
19
22
|
isOpened: false,
|
|
20
23
|
filtersCount: 0,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
<slot>
|
|
4
4
|
<slot name="title-wrapper">
|
|
5
5
|
<h1 class="wt-headline__title">
|
|
6
|
-
<slot name="title"
|
|
6
|
+
<slot name="title" />
|
|
7
7
|
</h1>
|
|
8
8
|
</slot>
|
|
9
9
|
<div class="wt-headline__actions-wrapper">
|
|
10
|
-
<slot name="search"
|
|
11
|
-
<slot name="actions"
|
|
10
|
+
<slot name="search" />
|
|
11
|
+
<slot name="actions" />
|
|
12
12
|
</div>
|
|
13
13
|
</slot>
|
|
14
14
|
</header>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<script>
|
|
18
18
|
export default {
|
|
19
|
-
name: '
|
|
19
|
+
name: 'WtHeadline',
|
|
20
20
|
};
|
|
21
21
|
</script>
|
|
22
22
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
:root {
|
|
3
|
-
--headline-nav-indicator-size:
|
|
4
|
-
--headline-nav-
|
|
3
|
+
--headline-nav-indicator-size: 4px;
|
|
4
|
+
--headline-nav-gap: var(--spacing-sm);
|
|
5
|
+
--headline-nav-dot-gap: var(--spacing-2xs);
|
|
6
|
+
--headline-nav-indicator-color: var(--icon-color);
|
|
7
|
+
--headline-nav-accent-indicator-color: var(--primary-color);
|
|
5
8
|
}
|