@webitel/ui-sdk 0.9.65 → 1.0.2
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/CHANGELOG.md +42 -0
- package/dist/fonts/Montserrat-Black.27e3649b.ttf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.d9b6ba59.ttf +0 -0
- package/dist/fonts/Montserrat-Bold.ade91f47.ttf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.1b384149.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.19ba7aa5.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.52a50ca0.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.570a244c.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.1170df55.ttf +0 -0
- package/dist/fonts/Montserrat-Italic.a7063e0c.ttf +0 -0
- package/dist/fonts/Montserrat-Light.409c7f79.ttf +0 -0
- package/dist/fonts/Montserrat-LightItalic.01c4560c.ttf +0 -0
- package/dist/fonts/Montserrat-Medium.c8b6e083.ttf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.40a74702.ttf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.83c1ec1f.ttf +0 -0
- package/dist/fonts/Montserrat-Thin.43dd5b7a.ttf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.3c2b290f.ttf +0 -0
- package/dist/ui-sdk.common.js +948 -929
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +948 -929
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +5 -5
- package/src/components/atoms/wt-button/wt-button.vue +187 -150
- package/src/components/atoms/wt-chip/__tests__/WtChip.spec.js +19 -0
- package/src/components/atoms/wt-chip/wt-chip.vue +23 -0
- package/src/components/atoms/wt-context-menu/wt-context-menu.vue +1 -1
- package/src/components/atoms/wt-icon/wt-icon.vue +4 -0
- package/src/components/atoms/wt-indicator/wt-indicator.vue +39 -6
- package/src/components/atoms/wt-input-info/wt-input-info.vue +1 -1
- package/src/components/atoms/wt-loader/_internals/wt-loader--sm.vue +34 -153
- package/src/components/atoms/wt-loader/wt-loader.vue +2 -4
- package/src/components/atoms/wt-rounded-action/__tests__/WtRoundedAction.spec.js +0 -11
- package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +27 -179
- package/src/components/atoms/wt-tooltip/wt-tooltip.vue +2 -2
- package/src/components/index.js +2 -2
- package/src/components/molecules/wt-button-select/wt-button-select.vue +2 -1
- package/src/components/molecules/wt-datepicker/wt-datepicker.vue +59 -62
- package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +2 -7
- package/src/components/molecules/wt-input/wt-input.vue +4 -25
- package/src/components/molecules/wt-label/wt-label.vue +5 -2
- package/src/components/molecules/wt-notification/wt-notification.vue +3 -2
- package/src/components/molecules/wt-popup/__tests__/WtPopup.spec.js +1 -1
- package/src/components/molecules/wt-popup/wt-popup.vue +26 -28
- package/src/components/molecules/wt-progress-bar/wt-progress-bar.vue +3 -4
- package/src/components/molecules/wt-radio/wt-radio.vue +0 -2
- package/src/components/molecules/wt-search-bar/wt-search-bar.vue +4 -20
- package/src/components/molecules/wt-select/wt-select.vue +26 -28
- package/src/components/molecules/wt-tabs/wt-tabs.vue +6 -18
- package/src/components/molecules/wt-tags-input/wt-tags-input.vue +31 -25
- package/src/components/molecules/wt-textarea/wt-textarea.vue +6 -17
- package/src/components/molecules/wt-time-input/wt-time-input.vue +1 -3
- package/src/components/molecules/wt-timepicker/wt-timepicker.vue +0 -3
- package/src/components/organisms/wt-app-header/wt-app-header.vue +1 -0
- package/src/components/organisms/wt-app-header/wt-app-navigator.vue +32 -33
- package/src/components/organisms/wt-app-header/wt-header-actions.vue +145 -144
- package/src/components/organisms/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +3 -3
- package/src/components/organisms/wt-headline/wt-headline.vue +1 -2
- package/src/components/organisms/wt-navigation-bar/wt-navigation-bar.vue +8 -11
- package/src/components/organisms/wt-page-wrapper/wt-page-wrapper.vue +6 -14
- package/src/components/organisms/wt-pagination/wt-pagination.vue +5 -5
- package/src/components/organisms/wt-player/wt-player.vue +1 -1
- package/src/components/organisms/wt-status-select/wt-status-select.vue +24 -4
- package/src/components/organisms/wt-table/wt-table.vue +15 -12
- package/src/components/organisms/wt-table-actions/wt-table-actions.vue +2 -4
- package/src/components/organisms/wt-table-column-select/wt-table-column-select.vue +1 -1
- package/src/css/components/_components.scss +1 -1
- package/src/css/components/atoms/wt-button/_variables.scss +22 -24
- package/src/css/components/atoms/wt-chip/_variables.scss +7 -0
- package/src/css/components/atoms/{wt-badge/wt-badge.scss → wt-chip/wt-chip.scss} +12 -7
- package/src/css/components/atoms/wt-context-menu/_variables.scss +1 -1
- package/src/css/components/atoms/wt-indicator/_variables.scss +6 -2
- package/src/css/components/atoms/wt-label/_variables.scss +0 -1
- package/src/css/components/atoms/wt-rounded-action/_variables.scss +3 -26
- package/src/css/components/atoms/wt-tooltip/_variables.scss +7 -5
- package/src/css/components/molecules/wt-button-select/_variables.scss +5 -8
- package/src/css/components/molecules/wt-checkbox/_variables.scss +1 -1
- package/src/css/components/molecules/wt-datepicker/_variables.scss +15 -14
- package/src/css/components/molecules/wt-datepicker/datepicker-calendar.scss +20 -31
- package/src/css/components/molecules/wt-datetimepicker/_variables.scss +5 -5
- package/src/css/components/molecules/wt-input/_variables.scss +3 -3
- package/src/css/components/molecules/wt-notification/_variables.scss +4 -4
- package/src/css/components/molecules/wt-popup/_variables.scss +16 -8
- package/src/css/components/molecules/wt-progress-bar/_variables.scss +3 -3
- package/src/css/components/molecules/wt-radio/_variables.scss +1 -1
- package/src/css/components/molecules/wt-search-bar/_variables.scss +5 -1
- package/src/css/components/molecules/wt-select/_variables.scss +49 -13
- package/src/css/components/molecules/wt-switcher/_variables.scss +1 -1
- package/src/css/components/molecules/wt-tabs/_variables.scss +2 -2
- package/src/css/components/molecules/wt-tags-input/_variables.scss +4 -5
- package/src/css/components/molecules/wt-textarea/_variables.scss +9 -1
- package/src/css/components/molecules/wt-timepicker/_variables.scss +1 -1
- package/src/css/components/organisms/wt-app-header/_variables.scss +13 -9
- package/src/css/components/organisms/wt-headline/_variables.scss +3 -4
- package/src/css/components/organisms/wt-navigation-bar/_variables.scss +10 -10
- package/src/css/components/organisms/wt-notifications-bar/_variables.scss +2 -2
- package/src/css/components/organisms/wt-page-wrapper/_variables.scss +3 -3
- package/src/css/components/organisms/wt-pagination/_variables.scss +1 -3
- package/src/css/components/organisms/wt-player/_variables.scss +2 -2
- package/src/css/components/organisms/wt-status-select/_variables.scss +3 -3
- package/src/css/components/organisms/wt-table/_variables.scss +9 -9
- package/src/css/components/organisms/wt-table-actions/_variables.scss +2 -1
- package/src/css/main.scss +7 -5
- package/src/css/styleguide/_styleguide.scss +8 -3
- package/src/css/styleguide/border-radius/_border-radius.scss +4 -0
- package/src/css/{colors → styleguide/colors}/_colors.scss +5 -7
- package/src/css/{display-helpers → styleguide/display-helpers}/_display-helpers.scss +2 -0
- package/src/css/styleguide/elevations/_elevations.scss +13 -0
- package/src/css/styleguide/fonts/_fonts.scss +126 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +49 -0
- package/src/css/styleguide/spacings/_spacings.scss +15 -0
- package/src/css/styleguide/transitions/_transitions.scss +1 -0
- package/src/css/{transitions → styleguide/transitions}/fade/_fade.scss +0 -0
- package/src/css/styleguide/typography/_typography.scss +102 -0
- package/src/css/{sizes → styleguide/viewport-breakpoints}/_viewport-breakpoints.scss +0 -0
- package/src/locale/en/en.js +28 -3
- package/src/locale/ru/ru.js +26 -1
- package/src/locale/ua/ua.js +26 -1
- package/src/components/atoms/wt-badge/__tests__/WtBadge.spec.js +0 -19
- package/src/components/atoms/wt-badge/wt-badge.vue +0 -23
- package/src/css/components/atoms/wt-badge/_variables.scss +0 -7
- package/src/css/fonts/_fonts.scss +0 -9
- package/src/css/shadows/_shadows.scss +0 -7
- package/src/css/sizes/_sizes.scss +0 -2
- package/src/css/sizes/_spacing.scss +0 -33
- package/src/css/transitions/_transitions.scss +0 -1
- package/src/css/typography/_typography.scss +0 -72
package/src/locale/ua/ua.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
AgentStatus,
|
|
3
|
+
CallDirection,
|
|
4
|
+
ChannelState,
|
|
5
|
+
ChannelType,
|
|
6
|
+
} from 'webitel-sdk';
|
|
2
7
|
import { QueueType } from 'webitel-sdk/esm2015/enums';
|
|
3
8
|
import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
|
|
4
9
|
import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
|
|
@@ -58,6 +63,26 @@ export default {
|
|
|
58
63
|
},
|
|
59
64
|
},
|
|
60
65
|
},
|
|
66
|
+
channel: {
|
|
67
|
+
state: {
|
|
68
|
+
[ChannelState.Waiting]: 'Очікування',
|
|
69
|
+
[ChannelState.Distribute]: 'Зарезервований',
|
|
70
|
+
[ChannelState.Offering]: 'Розподіл',
|
|
71
|
+
[ChannelState.Answered]: 'Прийнятий',
|
|
72
|
+
[ChannelState.Active]: 'Активний',
|
|
73
|
+
[ChannelState.Bridged]: 'З\'єднаний',
|
|
74
|
+
[ChannelState.Hold]: 'Утримання',
|
|
75
|
+
[ChannelState.Missed]: 'Пропущений',
|
|
76
|
+
[snakeToCamel(ChannelState.WrapTime)]: 'Постобробка',
|
|
77
|
+
[ChannelState.Processing]: 'Обробка',
|
|
78
|
+
[ChannelState.Transfer]: 'Перевід',
|
|
79
|
+
},
|
|
80
|
+
type: {
|
|
81
|
+
[ChannelType.Call]: 'Дзвінок',
|
|
82
|
+
[ChannelType.Email]: 'Пошта',
|
|
83
|
+
[ChannelType.Chat]: 'Чат',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
61
86
|
calls: {
|
|
62
87
|
direction: {
|
|
63
88
|
[CallDirection.Inbound]: 'Вхідний | Вхідні',
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtBadge from '../wt-badge.vue';
|
|
3
|
-
|
|
4
|
-
describe('WtBadge', () => {
|
|
5
|
-
it('renders a component', () => {
|
|
6
|
-
const wrapper = shallowMount(WtBadge);
|
|
7
|
-
expect(wrapper.classes('wt-badge')).toBe(true);
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
it('renders a badge content via default slot', () => {
|
|
11
|
-
const content = 'badge content';
|
|
12
|
-
const wrapper = shallowMount(WtBadge, {
|
|
13
|
-
slots: {
|
|
14
|
-
default: content,
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
expect(wrapper.find('.wt-badge').text()).toBe(content);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span class="wt-badge" :class="`wt-badge--${color}-color`">
|
|
3
|
-
<slot></slot>
|
|
4
|
-
</span>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'wt-badge',
|
|
10
|
-
props: {
|
|
11
|
-
color: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: 'main',
|
|
14
|
-
options: ['main', 'outline', 'accent', 'secondary', 'success', 'danger', 'transfer'],
|
|
15
|
-
notes: '"main" and "outline" are badge-specific colors',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style lang="scss" scoped>
|
|
22
|
-
@import '../../../css/components/atoms/wt-badge/wt-badge';
|
|
23
|
-
</style>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Montserrat Semi';
|
|
3
|
-
src: url('../../assets/fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@font-face {
|
|
7
|
-
font-family: 'Montserrat Regular';
|
|
8
|
-
src: url('../../assets/fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--shadow-style-down-50: 0px 0px 1px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(0, 0, 0, 0.05);
|
|
3
|
-
--shadow-style-down-100: 0px 0px 1px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(0, 0, 0, 0.05), inset 0px 0px 8px rgba(0, 0, 0, 0.1);
|
|
4
|
-
--shadow-style-up-50: 1px 1px 2px rgba(0, 0, 0, 0.08), inset 1px 1px 1px #FFFFFF, inset -1px -1px 1px rgba(0, 0, 0, 0.05);
|
|
5
|
-
--shadow-style-up-100: 1px 1px 2px rgba(0, 0, 0, 0.05), -1px -1px 5px #FFFFFF, inset 1px 1px 1px #FFFFFF, inset -1px -1px 3px rgba(0, 0, 0, 0.1);
|
|
6
|
-
--shadow-style-font: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
7
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//@import './viewport-breakpoints';
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
// Start point
|
|
5
|
-
--_spacing-multiplicity: 4px;
|
|
6
|
-
|
|
7
|
-
// Spacings
|
|
8
|
-
--spacing--xs: calc(var(--_spacing-multiplicity) * 1);
|
|
9
|
-
--spacing--sm: calc(var(--_spacing-multiplicity) * 2);
|
|
10
|
-
--spacing--md: calc(var(--_spacing-multiplicity) * 3);
|
|
11
|
-
--spacing--lg: calc(var(--_spacing-multiplicity) * 4);
|
|
12
|
-
--spacing--xl: calc(var(--_spacing-multiplicity) * 5);
|
|
13
|
-
--spacing--2xl: calc(var(--_spacing-multiplicity) * 6);
|
|
14
|
-
--spacing--3xl: calc(var(--_spacing-multiplicity) * 7);
|
|
15
|
-
|
|
16
|
-
// Border radius
|
|
17
|
-
--border-radius: var(--spacing--xs);
|
|
18
|
-
|
|
19
|
-
// DEPRECATED
|
|
20
|
-
--component-padding: var(--spacing--lg);
|
|
21
|
-
--component-spacing: var(--spacing--lg);
|
|
22
|
-
--icon-spacing: var(--spacing--sm);
|
|
23
|
-
|
|
24
|
-
//@media (#{$media} and #{$media-width-sm}) {
|
|
25
|
-
// --component-padding: 10px;
|
|
26
|
-
// --component-spacing: 10px;
|
|
27
|
-
//}
|
|
28
|
-
//
|
|
29
|
-
//@media (#{$media} and #{$media-width-xs}) {
|
|
30
|
-
// --component-padding: 10px;
|
|
31
|
-
// --component-spacing: 1px;
|
|
32
|
-
//}
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "./fade/fade";
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
%typo-heading-lg {
|
|
3
|
-
font: {
|
|
4
|
-
family: 'Montserrat Semi', monospace;
|
|
5
|
-
size: 24px;
|
|
6
|
-
}
|
|
7
|
-
line-height: 30px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
%typo-heading-md {
|
|
11
|
-
font: {
|
|
12
|
-
family: 'Montserrat Semi', monospace;
|
|
13
|
-
size: 20px;
|
|
14
|
-
}
|
|
15
|
-
line-height: 30px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
%typo-heading-sm {
|
|
19
|
-
font: {
|
|
20
|
-
family: 'Montserrat Semi', monospace;
|
|
21
|
-
size: 18px;
|
|
22
|
-
}
|
|
23
|
-
line-height: 24px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
%typo-strong-lg {
|
|
27
|
-
font: {
|
|
28
|
-
family: 'Montserrat Semi', monospace;
|
|
29
|
-
size: 14px;
|
|
30
|
-
}
|
|
31
|
-
line-height: 18px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
%typo-strong-md {
|
|
35
|
-
font: {
|
|
36
|
-
family: 'Montserrat Semi', monospace;
|
|
37
|
-
size: 12px;
|
|
38
|
-
}
|
|
39
|
-
line-height: 14px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
%typo-strong-sm {
|
|
43
|
-
font: {
|
|
44
|
-
family: 'Montserrat Semi', monospace;
|
|
45
|
-
size: 10px;
|
|
46
|
-
}
|
|
47
|
-
line-height: 12px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
%typo-body-lg {
|
|
51
|
-
font: {
|
|
52
|
-
family: 'Montserrat Regular', monospace;
|
|
53
|
-
size: 14px;
|
|
54
|
-
}
|
|
55
|
-
line-height: 18px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
%typo-body-md {
|
|
59
|
-
font: {
|
|
60
|
-
family: 'Montserrat Regular', monospace;
|
|
61
|
-
size: 12px;
|
|
62
|
-
}
|
|
63
|
-
line-height: 14px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
%typo-body-sm {
|
|
67
|
-
font: {
|
|
68
|
-
family: 'Montserrat Regular', monospace;
|
|
69
|
-
size: 10px;
|
|
70
|
-
}
|
|
71
|
-
line-height: 12px;
|
|
72
|
-
}
|