@webitel/ui-sdk 3.1.90 → 3.1.92

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": "3.1.90",
3
+ "version": "3.1.92",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -35,6 +35,7 @@ import WtHint from './molecules/wt-hint/wt-hint.vue';
35
35
  import WtCopyAction from './molecules/wt-copy-action/wt-copy-action.vue';
36
36
  import WtLoadBar from './molecules/wt-load-bar/wt-load-bar.vue';
37
37
  import WtItemLink from './molecules/wt-item-link/wt-item-link.vue';
38
+ import WtDummy from './molecules/wt-dummy/wt-dummy.vue';
38
39
 
39
40
  import WtAppHeader from './organisms/wt-app-header/wt-app-header.vue';
40
41
  import WtAppNavigator from './organisms/wt-app-header/wt-app-navigator.vue';
@@ -109,6 +110,7 @@ const Components = {
109
110
  WtIconAction,
110
111
  WtPageHeader,
111
112
  WtItemLink,
113
+ WtDummy,
112
114
  };
113
115
 
114
116
  export default Components;
@@ -0,0 +1,9 @@
1
+ import { shallowMount } from '@vue/test-utils';
2
+ import WtDummy from '../wt-dummy.vue';
3
+
4
+ describe('WtDummy', () => {
5
+ it('renders a component', () => {
6
+ const wrapper = shallowMount(WtDummy);
7
+ expect(wrapper.isVisible()).toBe(true);
8
+ });
9
+ });
@@ -0,0 +1,63 @@
1
+ <template>
2
+ <div class="wt-dummy">
3
+ <div class="wt-dummy__img">
4
+ <img
5
+ :src="props.src"
6
+ :width="props.size"
7
+ :height="props.size"
8
+ alt="dummy-picture"
9
+ >
10
+ </div>
11
+ <h1
12
+ v-if="props.locale"
13
+ class="wt-dummy__title">{{ props.locale }}</h1>
14
+ <wt-button
15
+ v-if="props.showAction"
16
+ @click="emits('create')"
17
+ >{{ $t('reusable.add') }}
18
+ </wt-button>
19
+ </div>
20
+ </template>
21
+
22
+ <script setup>
23
+
24
+ const props = defineProps({
25
+ src: {
26
+ type: String,
27
+ },
28
+ locale: {
29
+ type: String,
30
+ },
31
+ showAction: {
32
+ type: Boolean,
33
+ default: false,
34
+ },
35
+ size: {
36
+ type: [String, Number],
37
+ },
38
+ });
39
+
40
+ const emits = defineEmits([
41
+ 'create',
42
+ ]);
43
+
44
+ </script>
45
+
46
+ <style lang="scss" scoped>
47
+ .wt-dummy {
48
+ text-align: center;
49
+ display: flex;
50
+ flex-direction: column;
51
+ align-items: center;
52
+ justify-content: center;
53
+
54
+ &__title {
55
+ @extend %typo-body-1;
56
+ margin-bottom: var(--spacing-sm);
57
+ }
58
+
59
+ &__img {
60
+ margin-bottom: var(--spacing-sm);
61
+ }
62
+ }
63
+ </style>
@@ -0,0 +1,5 @@
1
+ const CrmSections = Object.freeze({
2
+ CONTACTS: 'contacts',
3
+ });
4
+
5
+ export default CrmSections;
@@ -5,6 +5,7 @@ const WebitelApplications = Object.freeze({
5
5
  HISTORY: 'history',
6
6
  AUDIT: 'audit',
7
7
  ANALYTICS: 'grafana',
8
+ CRM: 'crm',
8
9
  });
9
10
 
10
11
  export default WebitelApplications;
@@ -9,6 +9,7 @@ import { QueueType } from 'webitel-sdk/esm2015/enums';
9
9
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
10
10
  import AuditorSections
11
11
  from '../../enums/WebitelApplications/AuditorSections.enum';
12
+ import CrmSections from '../../enums/WebitelApplications/CrmSections.enum';
12
13
  import SupervisorSections
13
14
  from '../../enums/WebitelApplications/SupervisorSections.enum';
14
15
  import WebitelApplications
@@ -166,6 +167,12 @@ export default {
166
167
  [AuditorSections.SCORECARDS]: 'Scorecards',
167
168
  },
168
169
  },
170
+ [WebitelApplications.CRM]: {
171
+ name: 'CRM',
172
+ sections: {
173
+ [CrmSections.CONTACTS]: 'Contacts',
174
+ },
175
+ },
169
176
  [WebitelApplications.HISTORY]: { name: 'Call History' },
170
177
  [WebitelApplications.ANALYTICS]: { name: 'Data Visualisation Tool' },
171
178
  [WebitelApplications.SUPERVISOR]: {
@@ -9,6 +9,7 @@ import { QueueType } from 'webitel-sdk/esm2015/enums';
9
9
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
10
10
  import AuditorSections
11
11
  from '../../enums/WebitelApplications/AuditorSections.enum';
12
+ import CrmSections from '../../enums/WebitelApplications/CrmSections.enum';
12
13
  import SupervisorSections
13
14
  from '../../enums/WebitelApplications/SupervisorSections.enum';
14
15
  import WebitelApplications
@@ -165,6 +166,12 @@ export default {
165
166
  [AuditorSections.SCORECARDS]: 'Анкеты',
166
167
  },
167
168
  },
169
+ [WebitelApplications.CRM]: {
170
+ name: 'CRM',
171
+ sections: {
172
+ [CrmSections.CONTACTS]: 'Контакты',
173
+ },
174
+ },
168
175
  [WebitelApplications.HISTORY]: { name: 'Call History' },
169
176
  [WebitelApplications.ANALYTICS]: { name: 'Data Visualisation Tool' },
170
177
  [WebitelApplications.SUPERVISOR]: {
@@ -9,6 +9,7 @@ import { QueueType } from 'webitel-sdk/esm2015/enums';
9
9
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
10
10
  import AuditorSections
11
11
  from '../../enums/WebitelApplications/AuditorSections.enum';
12
+ import CrmSections from '../../enums/WebitelApplications/CrmSections.enum';
12
13
  import SupervisorSections
13
14
  from '../../enums/WebitelApplications/SupervisorSections.enum';
14
15
  import WebitelApplications
@@ -165,6 +166,12 @@ export default {
165
166
  [AuditorSections.SCORECARDS]: 'Анкети',
166
167
  },
167
168
  },
169
+ [WebitelApplications.CRM]: {
170
+ name: 'CRM',
171
+ sections: {
172
+ [CrmSections.CONTACTS]: 'Контакти',
173
+ },
174
+ },
168
175
  [WebitelApplications.HISTORY]: { name: 'Call History' },
169
176
  [WebitelApplications.ANALYTICS]: { name: 'Data Visualisation Tool' },
170
177
  [WebitelApplications.SUPERVISOR]: {
@@ -1,5 +1,6 @@
1
1
  import deepmerge from 'deepmerge';
2
2
  import deepCopy from 'deep-copy';
3
+ import CrmSections from '../../../enums/WebitelApplications/CrmSections.enum';
3
4
  import WebitelApplications from '../../../enums/WebitelApplications/WebitelApplications.enum';
4
5
  import SupervisorSections from '../../../enums/WebitelApplications/SupervisorSections.enum';
5
6
  import AdminSections from '../../../enums/WebitelApplications/AdminSections.enum';
@@ -159,6 +160,14 @@ const applicationsAccess = (value = true) => ({
159
160
  _locale: `WebitelApplications.${WebitelApplications.AUDIT}.sections.${AuditorSections.SCORECARDS}`,
160
161
  },
161
162
  },
163
+ [WebitelApplications.CRM]: {
164
+ _enabled: value,
165
+ _locale: `WebitelApplications.${WebitelApplications.CRM}.name`,
166
+ [CrmSections.CONTACTS]: {
167
+ _enabled: value,
168
+ _locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.CONTACTS}`,
169
+ },
170
+ },
162
171
  });
163
172
 
164
173
  /**