@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
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
:root {
|
|
3
|
-
--wt-app-header-min-height:
|
|
4
|
-
--wt-app-header-padding:
|
|
3
|
+
--wt-app-header-min-height: 40px;
|
|
4
|
+
--wt-app-header-padding: var(--spacing-xs) var(--spacing-sm);
|
|
5
5
|
|
|
6
|
-
--wt-app-header-content-gap: var(--
|
|
7
|
-
--wt-app-header-content-panel-margin:
|
|
8
|
-
--wt-app-header-content-bg-color: var(--main-
|
|
6
|
+
--wt-app-header-content-gap: var(--spacing-sm);
|
|
7
|
+
--wt-app-header-content-panel-margin: var(--spacing-2xs);
|
|
8
|
+
--wt-app-header-content-bg-color: var(--main-color);
|
|
9
9
|
--wt-app-header-content-z-index: 11;
|
|
10
10
|
|
|
11
11
|
--wt-app-navigator-max-height: 80vh;
|
|
12
|
+
--wt-app-navigator-padding: var(--wt-app-header-content-gap);
|
|
12
13
|
--wt-app-navigator-item-size: 120px;
|
|
14
|
+
--wt-app-navigator-item-gap: var(--wt-app-header-content-gap);
|
|
13
15
|
--wt-app-navigator-item-border: 1px solid;
|
|
14
|
-
--wt-app-navigator-item-border-color: var(--
|
|
15
|
-
--wt-app-navigator-item-border-color--hover: var(--
|
|
16
|
+
--wt-app-navigator-item-border-color: var(--secondary-color);
|
|
17
|
+
--wt-app-navigator-item-border-color--hover: var(--accent-color);
|
|
16
18
|
|
|
17
19
|
--wt-header-actions-min-width: 120px;
|
|
18
|
-
--wt-header-actions-
|
|
19
|
-
--wt-header-actions-
|
|
20
|
+
--wt-header-actions-content-sections-gap: var(--spacing-lg);
|
|
21
|
+
--wt-header-actions-padding: var(--wt-app-header-content-gap);
|
|
22
|
+
--wt-header-actions-action-bg-color--hover: var(--secondary-color);
|
|
23
|
+
--wt-header-actions-action-link-padding: var(--spacing-xs);
|
|
20
24
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
:root {
|
|
3
|
-
--headline-min-height:
|
|
4
|
-
--headline-
|
|
5
|
-
--headline-
|
|
6
|
-
--headline-background: var(--main-primary-color);
|
|
3
|
+
--headline-min-height: 40px; // button/search-bar height
|
|
4
|
+
--headline-title-margin: var(--spacing-sm);
|
|
5
|
+
--headline-background: var(--main-color);
|
|
7
6
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--navigation-bar-width:
|
|
2
|
+
--navigation-bar-width: 340px;
|
|
3
3
|
--navigation-bar-z-index: 10;
|
|
4
|
-
--navigation-bar-bg-color: var(--main-
|
|
5
|
-
--navigation-bar-
|
|
6
|
-
--navigation-bar-horizontal-padding: 10px;
|
|
4
|
+
--navigation-bar-bg-color: var(--main-color);
|
|
5
|
+
--navigation-bar-padding: var(--spacing-sm);
|
|
7
6
|
|
|
8
|
-
--navigation-bar-header-padding: var(--
|
|
9
|
-
|
|
10
|
-
--navigation-bar-
|
|
11
|
-
--navigation-bar-
|
|
7
|
+
--navigation-bar-header-padding: var(--spacing-xs);
|
|
8
|
+
|
|
9
|
+
--navigation-bar-list-padding: var(--navigation-bar-padding);
|
|
10
|
+
--navigation-bar-link-padding: var(--navigation-bar-padding);
|
|
11
|
+
--navigation-bar-subnav-padding-left: var(--spacing-lg);
|
|
12
12
|
--navigation-bar-active-expansion-flag-width: 5px;
|
|
13
|
-
--navigation-bar-active-expansion-name-max-width: calc(100% -
|
|
14
|
-
}
|
|
13
|
+
--navigation-bar-active-expansion-name-max-width: calc(100% - var(--icon-md-size) - var(--spacing-xs));
|
|
14
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
:root {
|
|
3
3
|
--notifications-bar-max-height: 60%;
|
|
4
|
-
--notifications-bar-corner-margin:
|
|
5
|
-
--notifications-bar-notifications-margin: 0
|
|
4
|
+
--notifications-bar-corner-margin: var(--spacing-sm);
|
|
5
|
+
--notifications-bar-notifications-margin: 0 0 var(--spacing-xs) auto;
|
|
6
6
|
--notifications-bar-z-index: 101;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--page-wrapper-padding:
|
|
3
|
-
--page-wrapper-section-
|
|
4
|
-
--page-wrapper-
|
|
2
|
+
--page-wrapper-padding: var(--spacing-sm);
|
|
3
|
+
--page-wrapper-section-padding: var(--spacing-sm);
|
|
4
|
+
--page-wrapper-section-gap: var(--spacing-sm);
|
|
5
5
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
--plyr-color-main: var(--main-accent-color);
|
|
3
3
|
--plyr-audio-control-color: var(--icon-primary-color);
|
|
4
4
|
// --plyr-control-toggle-checked-background: var(--main-primary-color);
|
|
5
|
-
--player-close-icon-transform-translate-x: var(--spacing
|
|
5
|
+
--player-close-icon-transform-translate-x: var(--spacing-xs);
|
|
6
6
|
// "-1 * var" for use the negative value of a variable
|
|
7
|
-
--player-close-icon-transform-translate-y: calc(-1 * var(--spacing
|
|
7
|
+
--player-close-icon-transform-translate-y: calc(-1 * var(--spacing-md));
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
:root {
|
|
3
|
-
--status-select-
|
|
4
|
-
--status-select
|
|
5
|
-
--status-select-bg--hover-color:
|
|
3
|
+
--status-select-padding: 0 calc(var(--icon-size-md) + var(--spacing-xs)) 0 0; // reset wt-select padding, but preserve arrow icon padding
|
|
4
|
+
--status-select-option-color: var(--form-input-color);
|
|
5
|
+
--status-select-bg--hover-color: var(--secondary-color);
|
|
6
6
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
:root {
|
|
3
3
|
--table-col-min-width: 140px;
|
|
4
4
|
|
|
5
|
-
--table-head-sort-arrow-margin:
|
|
6
|
-
--table-head-
|
|
7
|
-
--table-head-
|
|
5
|
+
--table-head-sort-arrow-margin: var(--spacing-xs);
|
|
6
|
+
--table-head-border: 1px solid;
|
|
7
|
+
--table-head-border-color: var(--secondary-color);
|
|
8
8
|
|
|
9
|
-
--table-min-height: 24px; // 24px icon size
|
|
10
|
-
--table-column-gap:
|
|
11
|
-
--table-row-padding:
|
|
9
|
+
--table-min-height: 24px; // 24px icon size or body-1 lh
|
|
10
|
+
--table-column-gap: var(--spacing-sm);
|
|
11
|
+
--table-row-padding: var(--spacing-sm);
|
|
12
12
|
|
|
13
|
-
--table-primary-color: var(--main-
|
|
14
|
-
--table--hover-color: var(--
|
|
15
|
-
--table-secondary-color:
|
|
13
|
+
--table-primary-color: var(--main-color);
|
|
14
|
+
--table--hover-color: var(--accent-secondary-color);
|
|
15
|
+
--table-secondary-color: var(--secondary-color-50); // zebra
|
|
16
16
|
}
|
package/src/css/main.scss
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
@import 'sizes/sizes';
|
|
2
|
-
@import 'display-helpers/display-helpers';
|
|
3
1
|
@import 'styleguide/styleguide';
|
|
4
|
-
|
|
2
|
+
|
|
5
3
|
@import 'components/components';
|
|
4
|
+
@import 'styleguide/display-helpers/display-helpers';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@include wt-placeholder;
|
|
6
8
|
|
|
7
9
|
:root {
|
|
8
10
|
--transition: 0.2s;
|
|
@@ -20,11 +22,11 @@ html {
|
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
body {
|
|
25
|
+
@extend %typo-body-1;
|
|
26
|
+
|
|
23
27
|
min-height: 100%;
|
|
24
28
|
height: 100%;
|
|
25
29
|
margin: 0;
|
|
26
|
-
font-family: 'Montserrat Regular', monospace;
|
|
27
|
-
font-size: 100%;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
//main {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
@import './scroll';
|
|
2
|
-
@import '
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
2
|
+
@import 'border-radius/border-radius';
|
|
3
|
+
@import 'typography/typography';
|
|
4
|
+
@import 'colors/colors';
|
|
5
|
+
@import 'elevations/elevations';
|
|
6
|
+
@import 'spacings/spacings';
|
|
7
|
+
@import 'viewport-breakpoints/viewport-breakpoints';
|
|
8
|
+
@import 'transitions/transitions';
|
|
9
|
+
@import 'placeholder/placeholder';
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
--icon-color-danger: var(--false-color);
|
|
61
61
|
--icon-color-transfer: var(--transfer-color);
|
|
62
62
|
--icon-color-hold: var(--hold-color);
|
|
63
|
+
--icon-color-secondary-50: var(--secondary-color-50);
|
|
63
64
|
|
|
64
65
|
|
|
65
66
|
--page-bg-color: hsla(var(--_page-bg-color), 1);
|
|
@@ -95,8 +96,8 @@
|
|
|
95
96
|
--form-opacity--focus: var(--_opacity--focus);
|
|
96
97
|
--form-opacity--disabled: var(--_opacity--disabled);
|
|
97
98
|
|
|
98
|
-
--form-placeholder-opacity: 0.
|
|
99
|
-
--form-placeholder-opacity--
|
|
99
|
+
--form-placeholder-opacity: 0.6;
|
|
100
|
+
--form-placeholder-opacity--focus: 0.4;
|
|
100
101
|
--form-border-opacity--disabled: 0.05;
|
|
101
102
|
|
|
102
103
|
--form-opacity--ouline--default: 0.4;
|
|
@@ -115,8 +116,8 @@
|
|
|
115
116
|
--form-border--disabled-color: hsla(var(--_contrast-color), var(--form-border-opacity--disabled));
|
|
116
117
|
|
|
117
118
|
--form-placeholder-color: hsla(var(--_contrast-color), var(--form-placeholder-opacity));
|
|
118
|
-
--form-placeholder
|
|
119
|
-
--form-placeholder--disabled
|
|
119
|
+
--form-placeholder-color--focus: hsla(var(--_contrast-color), var(--form-placeholder-opacity--focus));
|
|
120
|
+
--form-placeholder-color--disabled: hsla(var(--_contrast-color), var(--form-opacity--disabled));
|
|
120
121
|
|
|
121
122
|
// outline
|
|
122
123
|
--form-outline-label-color: hsla(var(--_contrast-color), var(--form-opacity--default));
|
|
@@ -124,9 +125,6 @@
|
|
|
124
125
|
--form-outline-border-color: hsla(var(--_contrast-color), var(--form-opacity--ouline--default));
|
|
125
126
|
--form-outline-border--hover-color: hsla(var(--_contrast-color), var(--form-opacity--ouline--hover));
|
|
126
127
|
|
|
127
|
-
--form-outline-placeholder-color: hsla(var(--_contrast-color), var(--form-opacity--ouline--default));
|
|
128
|
-
--form-outline-placeholder--hover-color: hsla(var(--_contrast-color), var(--form-opacity--ouline--hover));
|
|
129
|
-
|
|
130
128
|
// TEXT OPACITY
|
|
131
129
|
--text-opacity--default: var(--_opacity--default);
|
|
132
130
|
--text-opacity----outline--default: 0.7;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--_elevation-color: hsla(0, 0%, 0%, 0.08);
|
|
3
|
+
--elevation-1: 0px 0px 2px 1px var(--_elevation-color);
|
|
4
|
+
--elevation-2: 0px 0px 4px 2px var(--_elevation-color);
|
|
5
|
+
--elevation-3: 0px 0px 6px 3px var(--_elevation-color);
|
|
6
|
+
--elevation-4: 0px 0px 8px 4px var(--_elevation-color);
|
|
7
|
+
--elevation-5: 0px 0px 10px 5px var(--_elevation-color);
|
|
8
|
+
--elevation-6: 0px 0px 12px 6px var(--_elevation-color);
|
|
9
|
+
--elevation-7: 0px 0px 14px 7px var(--_elevation-color);
|
|
10
|
+
--elevation-8: 0px 0px 16px 8px var(--_elevation-color);
|
|
11
|
+
--elevation-9: 0px 0px 18px 9px var(--_elevation-color);
|
|
12
|
+
--elevation-10: 0px 0px 20px 10px var(--_elevation-color);
|
|
13
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Montserrat';
|
|
4
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-Thin.ttf') format('truetype');
|
|
5
|
+
font-weight: 100;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Montserrat';
|
|
11
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-ThinItalic.ttf') format('truetype');
|
|
12
|
+
font-weight: 100;
|
|
13
|
+
font-style: italic;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'Montserrat';
|
|
18
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-ExtraLight.ttf') format('truetype');
|
|
19
|
+
font-weight: 200;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'Montserrat';
|
|
25
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf') format('truetype');
|
|
26
|
+
font-weight: 200;
|
|
27
|
+
font-style: italic;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@font-face {
|
|
31
|
+
font-family: 'Montserrat';
|
|
32
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-Light.ttf') format('truetype');
|
|
33
|
+
font-weight: 300;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'Montserrat';
|
|
39
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-LightItalic.ttf') format('truetype');
|
|
40
|
+
font-weight: 300;
|
|
41
|
+
font-style: italic;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@font-face {
|
|
45
|
+
font-family: 'Montserrat';
|
|
46
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: 'Montserrat';
|
|
53
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-Italic.ttf') format('truetype');
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-style: italic;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@font-face {
|
|
59
|
+
font-family: 'Montserrat';
|
|
60
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: 'Montserrat';
|
|
67
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-MediumItalic.ttf') format('truetype');
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
font-style: italic;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@font-face {
|
|
73
|
+
font-family: 'Montserrat';
|
|
74
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
|
|
75
|
+
font-weight: 600;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@font-face {
|
|
80
|
+
font-family: 'Montserrat';
|
|
81
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf') format('truetype');
|
|
82
|
+
font-weight: 600;
|
|
83
|
+
font-style: italic;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@font-face {
|
|
87
|
+
font-family: 'Montserrat';
|
|
88
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-Bold.ttf') format('truetype');
|
|
89
|
+
font-weight: 700;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: 'Montserrat';
|
|
95
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-BoldItalic.ttf') format('truetype');
|
|
96
|
+
font-weight: 700;
|
|
97
|
+
font-style: italic;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@font-face {
|
|
101
|
+
font-family: 'Montserrat';
|
|
102
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-ExtraBold.ttf') format('truetype');
|
|
103
|
+
font-weight: 800;
|
|
104
|
+
font-style: normal;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@font-face {
|
|
108
|
+
font-family: 'Montserrat';
|
|
109
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf') format('truetype');
|
|
110
|
+
font-weight: 800;
|
|
111
|
+
font-style: italic;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@font-face {
|
|
115
|
+
font-family: 'Montserrat';
|
|
116
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-Black.ttf') format('truetype');
|
|
117
|
+
font-weight: 900;
|
|
118
|
+
font-style: normal;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@font-face {
|
|
122
|
+
font-family: 'Montserrat';
|
|
123
|
+
src: url('../../../assets/fonts/Montserrat/Montserrat-BlackItalic.ttf') format('truetype');
|
|
124
|
+
font-weight: 900;
|
|
125
|
+
font-style: italic;
|
|
126
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// https://stackoverflow.com/a/17181946/17782185
|
|
2
|
+
// https://stackoverflow.com/a/49192800/17782185
|
|
3
|
+
|
|
4
|
+
@mixin optional-at-root($sel) {
|
|
5
|
+
@at-root #{if(not &, $sel, selector-append(&, $sel))} {
|
|
6
|
+
@content;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
$vendors: (':-webkit', '-moz', ':-moz', '-ms');
|
|
11
|
+
|
|
12
|
+
@mixin wt-placeholder($style: '') {
|
|
13
|
+
@each $vendor in $vendors {
|
|
14
|
+
@include optional-at-root(':#{$vendor}-input-placeholder') {
|
|
15
|
+
font: inherit;
|
|
16
|
+
transition: var(--transition);
|
|
17
|
+
|
|
18
|
+
@if ($style == 'focus') {
|
|
19
|
+
color: var(--form-placeholder-color--focus);
|
|
20
|
+
} @else if ($style == 'disabled') {
|
|
21
|
+
color: var(--form-placeholder-color--disabled);
|
|
22
|
+
} @else {
|
|
23
|
+
color: var(--form-placeholder-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@content;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
Classes for direct extending in placeholder-like elements styling
|
|
33
|
+
(e.g. vue-multiselect .multiselect__placeholder which is technically a span)
|
|
34
|
+
*/
|
|
35
|
+
%wt-placeholder {
|
|
36
|
+
font: inherit;
|
|
37
|
+
transition: var(--transition);
|
|
38
|
+
color: var(--form-placeholder-color);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
%wt-placeholder--focus {
|
|
42
|
+
@extend %wt-placeholder;
|
|
43
|
+
color: var(--form-placeholder-color--focus);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
%wt-placeholder--disabled {
|
|
47
|
+
@extend %wt-placeholder;
|
|
48
|
+
color: var(--form-placeholder-color--disabled);
|
|
49
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
// Start point
|
|
3
|
+
--_spacing-multiplicator: 8px;
|
|
4
|
+
|
|
5
|
+
// Spacings
|
|
6
|
+
--spacing-3xs: calc(var(--_spacing-multiplicator) / 4);
|
|
7
|
+
--spacing-2xs: calc(var(--_spacing-multiplicator) / 2);
|
|
8
|
+
--spacing-xs: calc(var(--_spacing-multiplicator) * 1);
|
|
9
|
+
--spacing-sm: calc(var(--_spacing-multiplicator) * 2);
|
|
10
|
+
--spacing-md: calc(var(--_spacing-multiplicator) * 3);
|
|
11
|
+
--spacing-lg: calc(var(--_spacing-multiplicator) * 4);
|
|
12
|
+
--spacing-xl: calc(var(--_spacing-multiplicator) * 5);
|
|
13
|
+
--spacing-2xl: calc(var(--_spacing-multiplicator) * 6);
|
|
14
|
+
--spacing-3xl: calc(var(--_spacing-multiplicator) * 7);
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'fade/fade';
|
|
File without changes
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
|
|
2
|
+
%typo-heading-1 {
|
|
3
|
+
font: {
|
|
4
|
+
family: 'Montserrat', monospace;
|
|
5
|
+
size: 32px;
|
|
6
|
+
weight: 600;
|
|
7
|
+
}
|
|
8
|
+
line-height: 48px;
|
|
9
|
+
letter-spacing: 0.28px; // 0.02em
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
%typo-heading-2 {
|
|
13
|
+
font: {
|
|
14
|
+
family: 'Montserrat', monospace;
|
|
15
|
+
size: 24px;
|
|
16
|
+
weight: 600;
|
|
17
|
+
}
|
|
18
|
+
line-height: 40px;
|
|
19
|
+
letter-spacing: 0.28px; // 0.02em
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
%typo-heading-3 {
|
|
23
|
+
font: {
|
|
24
|
+
family: 'Montserrat', monospace;
|
|
25
|
+
size: 20px;
|
|
26
|
+
weight: 600;
|
|
27
|
+
}
|
|
28
|
+
line-height: 32px;
|
|
29
|
+
letter-spacing: 0.28px; // 0.02em
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
%typo-subtitle-1 {
|
|
33
|
+
font: {
|
|
34
|
+
family: 'Montserrat', monospace;
|
|
35
|
+
size: 14px;
|
|
36
|
+
weight: 500;
|
|
37
|
+
}
|
|
38
|
+
line-height: 24px;
|
|
39
|
+
letter-spacing: 0.28px; // 0.02em
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
%typo-subtitle-2 {
|
|
43
|
+
font: {
|
|
44
|
+
family: 'Montserrat', monospace;
|
|
45
|
+
size: 12px;
|
|
46
|
+
weight: 500;
|
|
47
|
+
}
|
|
48
|
+
line-height: 20px;
|
|
49
|
+
letter-spacing: 0.28px; // 0.02em
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
%typo-body-1 {
|
|
53
|
+
font: {
|
|
54
|
+
family: 'Montserrat', monospace;
|
|
55
|
+
size: 14px;
|
|
56
|
+
weight: 400;
|
|
57
|
+
}
|
|
58
|
+
line-height: 24px;
|
|
59
|
+
letter-spacing: 0.56px; // 0.04em
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
%typo-body-2 {
|
|
63
|
+
font: {
|
|
64
|
+
family: 'Montserrat', monospace;
|
|
65
|
+
size: 12px;
|
|
66
|
+
weight: 400;
|
|
67
|
+
}
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
letter-spacing: 0.16px; // 0.01em
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
%typo-button {
|
|
73
|
+
font: {
|
|
74
|
+
family: 'Montserrat', monospace;
|
|
75
|
+
size: 12px;
|
|
76
|
+
weight: 500;
|
|
77
|
+
}
|
|
78
|
+
text-transform: uppercase;
|
|
79
|
+
line-height: 24px;
|
|
80
|
+
letter-spacing: 0.96px; // 0.06em
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
%typo-caption {
|
|
84
|
+
font: {
|
|
85
|
+
family: 'Montserrat', monospace;
|
|
86
|
+
size: 10px;
|
|
87
|
+
weight: 400;
|
|
88
|
+
}
|
|
89
|
+
line-height: 16px;
|
|
90
|
+
letter-spacing: 0.48px; // 0.03em
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
%typo-overline {
|
|
94
|
+
font: {
|
|
95
|
+
family: 'Montserrat', monospace;
|
|
96
|
+
size: 12px;
|
|
97
|
+
weight: 500;
|
|
98
|
+
}
|
|
99
|
+
line-height: 20px;
|
|
100
|
+
text-transform: uppercase;
|
|
101
|
+
letter-spacing: 2.56px; // 0.16em
|
|
102
|
+
}
|
|
File without changes
|
package/src/locale/en/en.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
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
|
-
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
4
8
|
import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
|
|
5
9
|
import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
|
|
6
10
|
import WebitelApplications from '../../enums/WebitelApplications/WebitelApplications.enum';
|
|
11
|
+
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
7
12
|
|
|
8
13
|
export default {
|
|
9
14
|
// describes reusable buttons, actions, default titles, and other ui elements
|
|
@@ -58,6 +63,26 @@ export default {
|
|
|
58
63
|
},
|
|
59
64
|
},
|
|
60
65
|
},
|
|
66
|
+
channel: {
|
|
67
|
+
state: {
|
|
68
|
+
[ChannelState.Waiting]: 'Waiting',
|
|
69
|
+
[ChannelState.Distribute]: 'Distribute',
|
|
70
|
+
[ChannelState.Offering]: 'Offering',
|
|
71
|
+
[ChannelState.Answered]: 'Answered',
|
|
72
|
+
[ChannelState.Active]: 'Active',
|
|
73
|
+
[ChannelState.Bridged]: 'Bridged',
|
|
74
|
+
[ChannelState.Hold]: 'Hold',
|
|
75
|
+
[ChannelState.Missed]: 'Missed',
|
|
76
|
+
[snakeToCamel(ChannelState.WrapTime)]: 'Wrap time',
|
|
77
|
+
[ChannelState.Processing]: 'Processing',
|
|
78
|
+
[ChannelState.Transfer]: 'Transfer',
|
|
79
|
+
},
|
|
80
|
+
type: {
|
|
81
|
+
[ChannelType.Call]: 'Call',
|
|
82
|
+
[ChannelType.Email]: 'Email',
|
|
83
|
+
[ChannelType.Chat]: 'Chat',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
61
86
|
calls: {
|
|
62
87
|
direction: {
|
|
63
88
|
[CallDirection.Inbound]: 'Inbound',
|
|
@@ -186,7 +211,7 @@ export default {
|
|
|
186
211
|
text: 'Sorry, you have not enough privileges to see this page.',
|
|
187
212
|
},
|
|
188
213
|
page404: {
|
|
189
|
-
title:
|
|
214
|
+
title: 'Looks like you\'re lost',
|
|
190
215
|
text: 'Sorry, we can\'t find the page you want.',
|
|
191
216
|
},
|
|
192
217
|
},
|
package/src/locale/ru/ru.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]: 'Входящий | Входящие',
|