@webitel/ui-sdk 24.8.25 → 24.8.27

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": "24.8.25",
3
+ "version": "24.8.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -143,8 +143,8 @@ export default {
143
143
  this.$emit('input', value);
144
144
  },
145
145
 
146
- close() {
147
- this.$emit('closed');
146
+ close(event) {
147
+ this.$emit('closed', event);
148
148
  },
149
149
 
150
150
  tag() {},
@@ -6,6 +6,7 @@
6
6
  :value="selectedOption"
7
7
  class="wt-status-select"
8
8
  track-by="value"
9
+ @closed="closedHandler"
9
10
  @input="inputHandler"
10
11
  >
11
12
  <template #singleLabel="{ option }">
@@ -52,7 +53,7 @@ export default {
52
53
  // options: ['sm', 'md'],
53
54
  // },
54
55
  },
55
- emits: ['change'],
56
+ emits: ['change', 'closed'],
56
57
  computed: {
57
58
  selectedOption() {
58
59
  return this.statusOptions.find((option) => option.value === this.status);
@@ -91,6 +92,9 @@ export default {
91
92
  inputHandler(value) {
92
93
  this.$emit('change', value.value);
93
94
  },
95
+ closedHandler(event) {
96
+ this.$emit('closed', event);
97
+ },
94
98
  },
95
99
  };
96
100
  </script>
@@ -3,6 +3,7 @@
3
3
  <wt-status-select
4
4
  :status="status"
5
5
  :status-duration="statusDuration"
6
+ @closed="handleClosed"
6
7
  @change="handleStatusSelectInput"
7
8
  />
8
9
  <pause-cause-popup
@@ -94,6 +95,10 @@ async function handleStatusSelectInput(status) {
94
95
  await changeStatus({ status });
95
96
  }
96
97
 
98
+ function handleClosed(event) {
99
+ return handleStatusSelectInput(event.value);
100
+ }
101
+
97
102
  function handlePauseCauseInput(pauseCause) {
98
103
  const status = AgentStatus.PAUSE;
99
104
  return changeStatus({ status, pauseCause });
@@ -1,4 +1,4 @@
1
- import set from 'lodash/set';
1
+ import set from 'lodash/set.js';
2
2
 
3
3
  const state = () => ({});
4
4