@webitel/ui-sdk 2.0.15-3 → 2.0.16-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "2.0.15-3",
3
+ "version": "2.0.16-2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -7,7 +7,10 @@
7
7
  >
8
8
  <slot name="activator"></slot>
9
9
  <template #popper="{ hide }">
10
- <ul class="wt-context-menu__menu">
10
+ <ul
11
+ class="wt-context-menu__menu"
12
+ :style="`width: ${width}; min-width: ${minWidth}; max-width: ${maxWidth};`"
13
+ >
11
14
  <li
12
15
  class="wt-context-menu__option-wrapper"
13
16
  v-for="(option, index) in options"
@@ -42,6 +45,18 @@ export default {
42
45
  type: Boolean,
43
46
  default: false,
44
47
  },
48
+ width: {
49
+ type: [String, Number],
50
+ default: 'auto',
51
+ },
52
+ minWidth: {
53
+ type: [String, Number],
54
+ default: '160px',
55
+ },
56
+ maxWidth: {
57
+ type: [String, Number],
58
+ default: '300px',
59
+ },
45
60
  },
46
61
  methods: {
47
62
  handleOptionClick({ option, index, hide }) {
@@ -59,8 +74,6 @@ export default {
59
74
 
60
75
  .wt-context-menu__menu {
61
76
  @extend %typo-body-2;
62
- min-width: var(--context-menu-min-width);
63
- max-width: var(--context-menu-max-width);
64
77
  background-color: var(--context-menu-background-color);
65
78
  border-radius: var(--border-radius);
66
79
  box-shadow: var(--box-shadow);
@@ -1,7 +1,4 @@
1
1
  :root {
2
- --context-menu-min-width : 160px;
3
- --context-menu-max-width : 300px;
4
-
5
2
  --context-menu-option-color--hover: var(--secondary-color);
6
3
 
7
4
  --context-menu-background-color: var(--main-color);
@@ -34,6 +34,7 @@ const AdminSections = Object.freeze({
34
34
  // INTEGRATIONS
35
35
  STORAGE: 'storage', // scope: storage_profile
36
36
  COGNITIVE_PROFILES: 'cognitive-profiles', // scope: cognitive_profile
37
+ EMAIL_PROFILES: 'email-profiles', // scope: email_profile
37
38
 
38
39
  // PERMISSIONS
39
40
  OBJECTS: 'objects', // permissions: add
@@ -47,6 +47,9 @@ export default {
47
47
  text: 'Text',
48
48
  yes: 'Yes',
49
49
  no: 'No',
50
+ description: 'Description',
51
+ login: 'Login',
52
+ host: 'Host',
50
53
  },
51
54
  // date-related texts
52
55
  date: {
@@ -146,6 +149,7 @@ export default {
146
149
  [AdminSections.QUEUES]: 'Queues',
147
150
  [AdminSections.STORAGE]: 'Storage',
148
151
  [AdminSections.COGNITIVE_PROFILES]: 'Cognitive profiles',
152
+ [AdminSections.EMAIL_PROFILES]: 'Email profiles',
149
153
  [AdminSections.MEDIA]: 'Media',
150
154
  [AdminSections.BLACKLIST]: 'Call lists',
151
155
  [AdminSections.ROLES]: 'Roles',
@@ -46,6 +46,9 @@ export default {
46
46
  text: 'Текст',
47
47
  yes: 'Да',
48
48
  no: 'Нет',
49
+ description: 'Описание',
50
+ login: 'Логин',
51
+ host: 'Хост',
49
52
  },
50
53
  // date-related texts
51
54
  date: {
@@ -145,6 +148,7 @@ export default {
145
148
  [AdminSections.QUEUES]: 'Очереди',
146
149
  [AdminSections.STORAGE]: 'Хранилища',
147
150
  [AdminSections.COGNITIVE_PROFILES]: 'Языковые профили',
151
+ [AdminSections.EMAIL_PROFILES]: 'Email профили',
148
152
  [AdminSections.ROLES]: 'Роли',
149
153
  [AdminSections.OBJECTS]: 'Разделы',
150
154
  },
@@ -46,6 +46,9 @@ export default {
46
46
  text: 'Текст',
47
47
  yes: 'Так',
48
48
  no: 'Ні',
49
+ description: 'Опис',
50
+ login: 'Логін',
51
+ host: 'Хост',
49
52
  },
50
53
  // date-related texts
51
54
  date: {
@@ -145,6 +148,7 @@ export default {
145
148
  [AdminSections.QUEUES]: 'Черги',
146
149
  [AdminSections.STORAGE]: 'Сховища',
147
150
  [AdminSections.COGNITIVE_PROFILES]: 'Мовні профілі',
151
+ [AdminSections.EMAIL_PROFILES]: 'Email профілі',
148
152
  [AdminSections.ROLES]: 'Ролі',
149
153
  [AdminSections.OBJECTS]: 'Розділи',
150
154
  },
@@ -128,6 +128,10 @@ const applicationsAccess = (value = true) => ({
128
128
  _enabled: value,
129
129
  _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.COGNITIVE_PROFILES}`,
130
130
  },
131
+ [AdminSections.EMAIL_PROFILES]: {
132
+ _enabled: value,
133
+ _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.EMAIL_PROFILES}`,
134
+ },
131
135
  [AdminSections.ROLES]: {
132
136
  _enabled: value,
133
137
  _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.ROLES}`,