@webitel/ui-sdk 3.2.127 → 3.2.129

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.2.127",
3
+ "version": "3.2.129",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -1,7 +1,7 @@
1
1
  import { shallowMount } from '@vue/test-utils';
2
2
  import WtCcAgentStatusTimers from '../wt-cc-agent-status-timers.vue';
3
3
 
4
- describe('Wt Cc Agent Status Timers', () => {
4
+ describe('WtCcAgentStatusTimers', () => {
5
5
  it('renders a component', () => {
6
6
  const wrapper = shallowMount(WtCcAgentStatusTimers, {
7
7
  props: {
@@ -12,23 +12,20 @@
12
12
  ></wt-indicator>
13
13
  <wt-indicator
14
14
  color="primary"
15
- :text="pause"
15
+ :text="status.pause"
16
16
  :size="size"
17
17
  ></wt-indicator>
18
18
  </article>
19
19
  </template>
20
20
 
21
21
  <script setup>
22
- import { computed } from 'vue';
23
-
24
22
  const props = defineProps({
25
23
  /**
26
24
  * @description Status object
27
25
  * @type {Object}
28
- * @property {Number} offline
29
- * @property {Number} online
30
- * @property {Number} pause
31
- * @property {Number} allowPause
26
+ * @property {String} offline
27
+ * @property {String} online
28
+ * @property {String} pause
32
29
  */
33
30
  status: {
34
31
  type: Object,
@@ -40,11 +37,6 @@ const props = defineProps({
40
37
  options: ['sm', 'md'],
41
38
  },
42
39
  });
43
-
44
- const pause = computed(() => {
45
- if (!props.status.allowPause) return props.status.pause;
46
- return `${props.status.pause} / ${props.status.allowPause}`;
47
- });
48
40
  </script>
49
41
 
50
42
  <style lang="scss" scoped>