@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,40 +1,46 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nav class="wt-headline-nav">
|
|
3
3
|
<div
|
|
4
|
-
class="wt-headline-nav__wrapper"
|
|
5
4
|
v-for="(singlePath, key) of path"
|
|
6
5
|
:key="key"
|
|
6
|
+
class="wt-headline-nav__wrapper"
|
|
7
7
|
>
|
|
8
|
-
<span
|
|
8
|
+
<span
|
|
9
|
+
v-if="key !== 0"
|
|
10
|
+
class="wt-headline-nav__indicator"
|
|
11
|
+
/>
|
|
9
12
|
<h1 class="wt-headline-nav__title">
|
|
10
13
|
<router-link
|
|
11
14
|
v-if="singlePath.route"
|
|
12
|
-
class="wt-headline-nav__text wt-headline-nav__title-link"
|
|
13
15
|
:to="singlePath.route"
|
|
14
|
-
|
|
16
|
+
class="wt-headline-nav__text wt-headline-nav__text--link"
|
|
17
|
+
>
|
|
18
|
+
{{ singlePath.name }}
|
|
15
19
|
</router-link>
|
|
16
|
-
<span
|
|
20
|
+
<span
|
|
21
|
+
v-else
|
|
22
|
+
class="wt-headline-nav__text"
|
|
23
|
+
>{{ singlePath.name }}</span>
|
|
17
24
|
</h1>
|
|
18
25
|
</div>
|
|
19
26
|
</nav>
|
|
20
27
|
</template>
|
|
21
28
|
|
|
22
|
-
<script>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
29
|
+
<script setup>
|
|
30
|
+
const props = defineProps({
|
|
31
|
+
/**
|
|
32
|
+
* PATH EXAMPLE
|
|
33
|
+
* default: () => [
|
|
34
|
+
* { name: 'directory' },
|
|
35
|
+
* { name: 'users', route: '/directory/users' },
|
|
36
|
+
* { name: 'adm', route: '/directory/users/3' },
|
|
37
|
+
* ],
|
|
38
|
+
*/
|
|
39
|
+
path: {
|
|
40
|
+
type: Array,
|
|
41
|
+
required: true,
|
|
36
42
|
},
|
|
37
|
-
};
|
|
43
|
+
});
|
|
38
44
|
</script>
|
|
39
45
|
|
|
40
46
|
<style lang="scss">
|
|
@@ -42,26 +48,35 @@ export default {
|
|
|
42
48
|
</style>
|
|
43
49
|
|
|
44
50
|
<style lang="scss" scoped>
|
|
45
|
-
|
|
46
51
|
.wt-headline-nav {
|
|
47
52
|
display: flex;
|
|
48
53
|
align-items: center;
|
|
49
54
|
max-width: 100%;
|
|
55
|
+
gap: var(--headline-nav-gap);
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
.wt-headline-nav__wrapper {
|
|
53
59
|
display: flex;
|
|
54
60
|
align-items: center;
|
|
61
|
+
gap: var(--headline-nav-dot-gap);
|
|
55
62
|
}
|
|
56
63
|
|
|
57
64
|
.wt-headline-nav__indicator {
|
|
58
|
-
display:
|
|
59
|
-
|
|
60
|
-
height: var(--headline-nav-indicator-size);
|
|
61
|
-
margin: 0 var(--headline-nav-indicator-margin);
|
|
62
|
-
background: var(--icon-color);
|
|
63
|
-
border-radius: 50%;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
64
67
|
flex-shrink: 0;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
width: var(--icon-md-size);
|
|
70
|
+
height: var(--icon-md-size);
|
|
71
|
+
|
|
72
|
+
&:before {
|
|
73
|
+
display: block;
|
|
74
|
+
width: var(--headline-nav-indicator-size);
|
|
75
|
+
height: var(--headline-nav-indicator-size);
|
|
76
|
+
content: '';
|
|
77
|
+
border-radius: 50%;
|
|
78
|
+
background: var(--headline-nav-indicator-color);
|
|
79
|
+
}
|
|
65
80
|
}
|
|
66
81
|
|
|
67
82
|
.wt-headline-nav__title {
|
|
@@ -69,23 +84,21 @@ export default {
|
|
|
69
84
|
}
|
|
70
85
|
|
|
71
86
|
.wt-headline-nav__text {
|
|
72
|
-
color: var(--text-
|
|
87
|
+
color: var(--text-main-color);
|
|
73
88
|
}
|
|
74
89
|
|
|
75
90
|
.wt-headline-nav__wrapper:last-child {
|
|
76
91
|
min-width: 0;
|
|
77
92
|
|
|
78
93
|
.wt-headline-nav__indicator {
|
|
79
|
-
|
|
94
|
+
&:before {
|
|
95
|
+
background: var(--headline-nav-accent-indicator-color);
|
|
96
|
+
}
|
|
80
97
|
}
|
|
81
98
|
|
|
82
99
|
.wt-headline-nav__title {
|
|
83
100
|
overflow: hidden;
|
|
84
101
|
text-overflow: ellipsis;
|
|
85
102
|
}
|
|
86
|
-
|
|
87
|
-
.wt-headline-nav__text {
|
|
88
|
-
color: var(--text-primary-color);
|
|
89
|
-
}
|
|
90
103
|
}
|
|
91
104
|
</style>
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-tooltip class="wt-hint">
|
|
3
|
-
<template
|
|
3
|
+
<template #activator>
|
|
4
4
|
<wt-icon-btn
|
|
5
5
|
icon="rounded-info"
|
|
6
6
|
:color="iconColor"
|
|
7
|
-
|
|
7
|
+
/>
|
|
8
8
|
</template>
|
|
9
|
-
<slot
|
|
9
|
+
<slot />
|
|
10
10
|
</wt-tooltip>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
14
|
export default {
|
|
15
|
-
name: '
|
|
15
|
+
name: 'WtHint',
|
|
16
16
|
props: {
|
|
17
17
|
iconColor: {
|
|
18
18
|
type: String,
|
|
19
|
-
default: 'outline',
|
|
20
19
|
},
|
|
21
|
-
}
|
|
20
|
+
},
|
|
22
21
|
};
|
|
23
22
|
</script>
|
|
24
23
|
|
|
@@ -9,28 +9,23 @@
|
|
|
9
9
|
--icon-xs-size: 8px;
|
|
10
10
|
|
|
11
11
|
--icon-color: var(--grey-darken-2);
|
|
12
|
+
--icon-active-color: var(--grey-darken-4);
|
|
13
|
+
--icon-primary-color: var(--primary-color);
|
|
12
14
|
--icon-error-color: var(--error-color);
|
|
13
15
|
--icon-success-color: var(--success-color);
|
|
14
16
|
--icon-warning-color: var(--warning-color);
|
|
15
17
|
--icon-on-dark-color: var(--white);
|
|
16
18
|
--icon-on-light-color: var(--grey-darken-3);
|
|
17
|
-
--icon-on-primary-color: var(--on-
|
|
19
|
+
--icon-on-primary-color: var(--primary-on-color);
|
|
18
20
|
--icon-info-color: var(--info-color);
|
|
19
21
|
--icon-chat-color: var(--chat-color);
|
|
20
22
|
--icon-transfer-color: var(--transfer-color);
|
|
23
|
+
--icon-job-color: var(--job-color);
|
|
21
24
|
--icon-disabled-color: var(--grey-lighten-4);
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
:root.theme--dark {
|
|
25
28
|
--icon-color: var(--grey-lighten-2);
|
|
29
|
+
--icon-active-color: var(--grey-lighten-4);
|
|
26
30
|
--icon-disabled-color: var(--grey-darken-2);
|
|
27
|
-
--icon-error-color: var(--error-color);
|
|
28
|
-
--icon-success-color: var(--success-color);
|
|
29
|
-
--icon-warning-color: var(--warning-color);
|
|
30
|
-
--icon-on-dark-color: var(--white);
|
|
31
|
-
--icon-on-light-color: var(--grey-darken-3);
|
|
32
|
-
--icon-on-primary-color: var(--on-primary-color);
|
|
33
|
-
--icon-info-color: var(--info-color);
|
|
34
|
-
--icon-chat-color: var(--chat-color);
|
|
35
|
-
--icon-transfer-color: var(--transfer-color);
|
|
36
31
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
<i
|
|
3
3
|
class="wt-icon"
|
|
4
4
|
:class="[
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
`wt-icon--size-${size}`,
|
|
6
|
+
`wt-icon--color-${color}`,
|
|
7
|
+
{ 'wt-icon--disabled': disabled },
|
|
8
|
+
]"
|
|
9
9
|
>
|
|
10
10
|
<svg class="wt-icon__icon">
|
|
11
|
-
<use :xlink:href="iconName"
|
|
11
|
+
<use :xlink:href="iconName" />
|
|
12
12
|
</svg>
|
|
13
13
|
</i>
|
|
14
14
|
</template>
|
|
@@ -35,7 +35,7 @@ const props = defineProps({
|
|
|
35
35
|
default: 'md',
|
|
36
36
|
},
|
|
37
37
|
/**
|
|
38
|
-
* @values 'default', 'disabled', 'error', 'success', 'warning', 'on-dark', 'on-light', 'on-primary', 'info', 'chat', 'transfer'
|
|
38
|
+
* @values 'default', 'active', 'disabled', 'primary', 'error', 'success', 'warning', 'on-dark', 'on-light', 'on-primary', 'info', 'chat', 'transfer', 'job'
|
|
39
39
|
*/
|
|
40
40
|
color: {
|
|
41
41
|
type: String,
|
|
@@ -88,6 +88,12 @@ svg {
|
|
|
88
88
|
&-default .wt-icon__icon {
|
|
89
89
|
fill: var(--icon-color);
|
|
90
90
|
}
|
|
91
|
+
&-active .wt-icon__icon {
|
|
92
|
+
fill: var(--icon-active-color);
|
|
93
|
+
}
|
|
94
|
+
&-primary .wt-icon__icon {
|
|
95
|
+
fill: var(--icon-primary-color);
|
|
96
|
+
}
|
|
91
97
|
&-error .wt-icon__icon {
|
|
92
98
|
fill: var(--icon-error-color);
|
|
93
99
|
}
|
|
@@ -115,6 +121,9 @@ svg {
|
|
|
115
121
|
&-transfer .wt-icon__icon {
|
|
116
122
|
fill: var(--icon-transfer-color);
|
|
117
123
|
}
|
|
124
|
+
&-job .wt-icon__icon {
|
|
125
|
+
fill: var(--icon-job-color);
|
|
126
|
+
}
|
|
118
127
|
&-disabled .wt-icon__icon {
|
|
119
128
|
fill: var(--icon-disabled-color);
|
|
120
129
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-tooltip>
|
|
3
|
-
<template
|
|
3
|
+
<template #activator>
|
|
4
4
|
<wt-icon-btn
|
|
5
5
|
icon="plus"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
@click="emit('click')"
|
|
8
|
-
|
|
8
|
+
/>
|
|
9
9
|
</template>
|
|
10
10
|
{{ $t('webitelUI.iconAction.addActionHint') }}
|
|
11
11
|
</wt-tooltip>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-tooltip>
|
|
3
|
-
<template
|
|
3
|
+
<template #activator>
|
|
4
4
|
<wt-icon-btn
|
|
5
5
|
icon="bucket"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
@click="emit('click')"
|
|
8
|
-
|
|
8
|
+
/>
|
|
9
9
|
</template>
|
|
10
10
|
{{ $t('webitelUI.iconAction.deleteActionHint') }}
|
|
11
11
|
</wt-tooltip>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-tooltip>
|
|
3
|
-
<template
|
|
3
|
+
<template #activator>
|
|
4
4
|
<wt-icon-btn
|
|
5
5
|
icon="download"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
@click="emit('click')"
|
|
8
|
-
|
|
8
|
+
/>
|
|
9
9
|
</template>
|
|
10
10
|
{{ $t('webitelUI.iconAction.downloadActionHint') }}
|
|
11
11
|
</wt-tooltip>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-tooltip>
|
|
3
|
-
<template
|
|
3
|
+
<template #activator>
|
|
4
4
|
<wt-icon-btn
|
|
5
5
|
icon="edit"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
@click="emit('click')"
|
|
8
|
-
|
|
8
|
+
/>
|
|
9
9
|
</template>
|
|
10
10
|
{{ $t('webitelUI.iconAction.editActionHint') }}
|
|
11
11
|
</wt-tooltip>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-tooltip>
|
|
3
|
-
<template
|
|
3
|
+
<template #activator>
|
|
4
4
|
<wt-icon-btn
|
|
5
5
|
icon="history"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
@click="emit('click')"
|
|
8
|
-
|
|
8
|
+
/>
|
|
9
9
|
</template>
|
|
10
10
|
{{ $t('webitelUI.iconAction.historyActionHint') }}
|
|
11
11
|
</wt-tooltip>
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
type="button"
|
|
6
6
|
@click="emit('click', $event)"
|
|
7
7
|
>
|
|
8
|
+
<!-- prevent icon-btn classes to fall to wt-icon -->
|
|
8
9
|
<wt-icon
|
|
9
|
-
v-bind="
|
|
10
|
+
v-bind="{ ...$attrs, class: '' }"
|
|
10
11
|
:disabled="disabled"
|
|
11
|
-
|
|
12
|
+
/>
|
|
12
13
|
</button>
|
|
13
14
|
</template>
|
|
14
15
|
|
|
@@ -33,6 +34,7 @@ const emit = defineEmits(['click']);
|
|
|
33
34
|
.wt-icon-btn {
|
|
34
35
|
position: relative;
|
|
35
36
|
display: block;
|
|
37
|
+
width: fit-content;
|
|
36
38
|
line-height: 0;
|
|
37
39
|
|
|
38
40
|
&:hover .wt-icon--color-default :deep .wt-icon__icon {
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--indicator-dot-size--size-sm: var(--spacing-xs);
|
|
3
|
-
--indicator-dot-size--size-md: var(--spacing-sm);
|
|
4
|
-
--indicator-dot-size: var(--indicator-size--size-md);
|
|
5
|
-
--indicator-dot-offset: var(--spacing-2xs);
|
|
2
|
+
--wt-indicator-dot-size--size-sm: var(--spacing-xs);
|
|
3
|
+
--wt-indicator-dot-size--size-md: var(--spacing-sm);
|
|
4
|
+
--wt-indicator-dot-size: var(--wt-indicator-size--size-md);
|
|
5
|
+
--wt-indicator-dot-offset: var(--spacing-2xs);
|
|
6
6
|
|
|
7
|
-
--indicator-text-margin: var(--spacing-2xs);
|
|
8
|
-
|
|
9
|
-
--indicator-primary-color: var(--accent-color);
|
|
7
|
+
--wt-indicator-text-margin: var(--spacing-2xs);
|
|
10
8
|
|
|
11
|
-
--indicator-
|
|
12
|
-
|
|
13
|
-
--indicator-
|
|
14
|
-
|
|
15
|
-
--indicator-
|
|
16
|
-
|
|
17
|
-
--indicator-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
--indicator-break-out-color: hsla(36, 90%, 50%, 1);
|
|
22
|
-
}
|
|
9
|
+
--wt-indicator-text-color: var(--text-main-color);
|
|
10
|
+
--wt-indicator-primary-color: var(--primary-color);
|
|
11
|
+
--wt-indicator-secondary-color: var(--dp-1-surface-color);
|
|
12
|
+
--wt-indicator-disabled-color: var(--dp-10-surface-color);
|
|
13
|
+
--wt-indicator-success-color: var(--success-color);
|
|
14
|
+
--wt-indicator-error-color: var(--error-color);
|
|
15
|
+
--wt-indicator-transfer-color: var(--transfer-color);
|
|
16
|
+
--wt-indicator-break-out-color: var(--warning-color);
|
|
17
|
+
}
|
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
:class="[
|
|
11
11
|
`wt-indicator__indicator--${color}`,
|
|
12
12
|
]"
|
|
13
|
-
|
|
14
|
-
<div
|
|
13
|
+
/>
|
|
14
|
+
<div
|
|
15
|
+
v-if="isText"
|
|
16
|
+
class="wt-indicator__text"
|
|
17
|
+
>
|
|
15
18
|
{{ text }}
|
|
16
19
|
</div>
|
|
17
20
|
</div>
|
|
@@ -19,12 +22,12 @@
|
|
|
19
22
|
|
|
20
23
|
<script>
|
|
21
24
|
export default {
|
|
22
|
-
name: '
|
|
25
|
+
name: 'WtIndicator',
|
|
23
26
|
props: {
|
|
24
27
|
color: {
|
|
25
28
|
type: String,
|
|
26
29
|
default: 'secondary',
|
|
27
|
-
options: ['primary', 'secondary', '
|
|
30
|
+
options: ['primary', 'secondary', 'disabled', 'success', 'error', 'transfer', 'break-out'],
|
|
28
31
|
},
|
|
29
32
|
text: {
|
|
30
33
|
type: [String, Number],
|
|
@@ -57,55 +60,51 @@ export default {
|
|
|
57
60
|
|
|
58
61
|
.wt-indicator__text {
|
|
59
62
|
@extend %typo-body-1;
|
|
60
|
-
margin-left: var(--indicator-text-margin);
|
|
63
|
+
margin-left: var(--wt-indicator-text-margin);
|
|
64
|
+
color: var(--wt-indicator-text-color);
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
.wt-indicator__indicator {
|
|
64
|
-
min-width: var(--indicator-dot-size);
|
|
65
|
-
height: var(--indicator-dot-size);
|
|
66
|
-
margin: var(--indicator-dot-offset);
|
|
67
|
-
background: var(--indicator-disabled-color);
|
|
68
|
+
min-width: var(--wt-indicator-dot-size);
|
|
69
|
+
height: var(--wt-indicator-dot-size);
|
|
70
|
+
margin: var(--wt-indicator-dot-offset);
|
|
71
|
+
background: var(--wt-indicator-disabled-color);
|
|
68
72
|
border-radius: 50%;
|
|
69
73
|
|
|
70
|
-
&--primary
|
|
71
|
-
|
|
72
|
-
background: var(--indicator-primary-color);
|
|
74
|
+
&--primary {
|
|
75
|
+
background: var(--wt-indicator-primary-color);
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
&--secondary {
|
|
76
|
-
background: var(--indicator-secondary-color);
|
|
79
|
+
background: var(--wt-indicator-secondary-color);
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
&--disabled {
|
|
80
|
-
background: var(--indicator-disabled-color);
|
|
83
|
+
background: var(--wt-indicator-disabled-color);
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
&--success {
|
|
84
|
-
background: var(--indicator-
|
|
87
|
+
background: var(--wt-indicator-success-color);
|
|
85
88
|
}
|
|
86
89
|
|
|
87
|
-
&--
|
|
88
|
-
background: var(--indicator-
|
|
90
|
+
&--error {
|
|
91
|
+
background: var(--wt-indicator-error-color);
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
&--transfer {
|
|
92
|
-
background: var(--indicator-transfer-color);
|
|
95
|
+
background: var(--wt-indicator-transfer-color);
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
&--break-out {
|
|
96
|
-
background: var(--indicator-break-out-color);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&--job {
|
|
100
|
-
background: var(--job-color);
|
|
99
|
+
background: var(--wt-indicator-break-out-color);
|
|
101
100
|
}
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
.wt-indicator--size {
|
|
105
104
|
&-sm {
|
|
106
105
|
.wt-indicator__indicator {
|
|
107
|
-
min-width: var(--indicator-dot-size--size-sm);
|
|
108
|
-
height: var(--indicator-dot-size--size-sm);
|
|
106
|
+
min-width: var(--wt-indicator-dot-size--size-sm);
|
|
107
|
+
height: var(--wt-indicator-dot-size--size-sm);
|
|
109
108
|
}
|
|
110
109
|
.wt-indicator__text {
|
|
111
110
|
@extend %typo-caption;
|
|
@@ -113,8 +112,8 @@ export default {
|
|
|
113
112
|
}
|
|
114
113
|
&-md {
|
|
115
114
|
.wt-indicator__indicator {
|
|
116
|
-
min-width: var(--indicator-dot-size--size-md);
|
|
117
|
-
height: var(--indicator-dot-size--size-md);
|
|
115
|
+
min-width: var(--wt-indicator-dot-size--size-md);
|
|
116
|
+
height: var(--wt-indicator-dot-size--size-md);
|
|
118
117
|
}
|
|
119
118
|
.wt-indicator__text {
|
|
120
119
|
@extend %typo-body-1;
|