@webitel/ui-sdk 26.8.115 → 26.8.117

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.
@@ -1,4 +1,4 @@
1
- import "./components-BolsnzIT.js";
1
+ import "./components-CeOlovz8.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { m as t } from "./enums-CsINFPBu.js";
4
4
  import { t as n } from "./wt-button-rUZKbswL.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-BolsnzIT.js";
1
+ import { C as e, i as t } from "./components-CeOlovz8.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t as r } from "./utils-DHSDTqJG.js";
4
4
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
@@ -1,6 +1,6 @@
1
- import { n as e } from "./components-BolsnzIT.js";
1
+ import { n as e } from "./components-CeOlovz8.js";
2
2
  import "./convertDuration-CW5qzlwH.js";
3
- import { i as t, r as n } from "./clients-DW43tqs7.js";
3
+ import { i as t, r as n } from "./clients-DWcx-Mfk.js";
4
4
  import { n as r } from "./vue-i18n-VBiROMZ4.js";
5
5
  import { n as i } from "./useEventBus-B-ZeklLu.js";
6
6
  import { createBlock as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
@@ -1,8 +1,8 @@
1
1
  import { a as e, c as t, i as n, n as r, r as i, s as a, t as o } from "./dist-EXdgfpvN.js";
2
2
  import { n as s } from "./genClient-CvWlQ0TZ.js";
3
3
  import { a as c } from "./caseConverters-DGri4uJo.js";
4
- import { a as l, o as u, r as d, s as f } from "./components-BolsnzIT.js";
5
- import { a as p, n as m, t as h } from "./clients-DW43tqs7.js";
4
+ import { a as l, o as u, r as d, s as f } from "./components-CeOlovz8.js";
5
+ import { a as p, n as m, t as h } from "./clients-DWcx-Mfk.js";
6
6
  import { a as g, b as _, d as v, f as y, g as b, i as x, n as S, o as C, r as w, s as T, t as E, y as D } from "./enums-CsINFPBu.js";
7
7
  import { n as ee, t as te } from "./vue-i18n-VBiROMZ4.js";
8
8
  import "./wt-toast-pXV44Y3v.js";
@@ -231,6 +231,13 @@ var be = {
231
231
  "call_center/list": L.List,
232
232
  "call_center/teams": L.Team,
233
233
  "call_center/skills": L.Skills,
234
+ "call_center/resources": L.Resource,
235
+ "call_center/resource_group": L.ResourceGroup,
236
+ "call_center/communication_type": L.Dictionaries,
237
+ "call_center/buckets": L.Dictionaries,
238
+ "call_center/pause_causes": L.Dictionaries,
239
+ "call_center/quick_replies": L.Dictionaries,
240
+ regions: L.Dictionaries,
234
241
  "contacts/groups": L.ContactGroups
235
242
  }, xe = [{
236
243
  prefix: "cases/",
@@ -1,4 +1,4 @@
1
- import { w as e } from "./components-BolsnzIT.js";
1
+ import { w as e } from "./components-CeOlovz8.js";
2
2
  import "./convertDuration-CW5qzlwH.js";
3
3
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
4
  import { m as n } from "./enums-CsINFPBu.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.115",
3
+ "version": "26.8.117",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -9,6 +9,10 @@
9
9
  --wt-popup-size-md: 800px;
10
10
  --wt-popup-size-lg: 1140px;
11
11
 
12
+ --wt-popup-height-sm: 300px;
13
+ --wt-popup-height-md: 400px;
14
+ --wt-popup-height-lg: 600px;
15
+
12
16
  --popup-max-height: 90%;
13
17
 
14
18
  --wt-popup-background-color: var(--dp-24-surface-color);
@@ -1,7 +1,12 @@
1
1
  <template>
2
2
  <div
3
3
  v-show="showPopupComponent"
4
- :class="[`wt-popup--size-${size}`, { 'wt-popup--overflow': overflow }]"
4
+ :class="[
5
+ `wt-popup--size-${size}`,
6
+ height && `wt-popup--height-${height}`,
7
+ {
8
+ 'wt-popup--overflow': overflow,
9
+ }]"
5
10
  class="wt-popup"
6
11
  >
7
12
  <!-- &lt;!&ndash; @slot check source code for scoped bindings :( &ndash;&gt;-->
@@ -19,11 +24,7 @@
19
24
  <!-- />-->
20
25
 
21
26
  <transition-slide :offset="[0, -1440 / 2]">
22
- <aside
23
- v-if="wrapperShown"
24
- class="wt-popup__popup"
25
- :style="height ? { height } : undefined"
26
- >
27
+ <aside v-if="wrapperShown" class="wt-popup__popup">
27
28
  <header class="wt-popup__header typo-subtitle-1">
28
29
  <slot name="header">
29
30
  <h3 class="wt-popup__title">
@@ -57,7 +58,12 @@ interface Props {
57
58
  */
58
59
  shown?: boolean;
59
60
  size?: ComponentSize;
60
- height?: string;
61
+ /**
62
+ * temprorary height of the popup for WS2
63
+ * to avoid WS1 popup broken
64
+ * will be removed after primevue migration
65
+ */
66
+ height?: ComponentSize;
61
67
  /**
62
68
  * if true, popup contents will overflow popup container, without scrolling
63
69
  * useful for small popups with select components, which have not enough space
@@ -76,7 +82,6 @@ interface Props {
76
82
  const props = withDefaults(defineProps<Props>(), {
77
83
  shown: true, // TODO: change me to false after refactor
78
84
  size: ComponentSize.MD,
79
- height: undefined,
80
85
  overflow: false,
81
86
  disabled: false,
82
87
  closable: true,
@@ -215,6 +220,18 @@ watch(wrapperShown, (value) => {
215
220
  width: var(--wt-popup-size-lg);
216
221
  }
217
222
 
223
+ .wt-popup--height-sm .wt-popup__popup {
224
+ height: var(--wt-popup-height-sm);
225
+ }
226
+
227
+ .wt-popup--height-md .wt-popup__popup {
228
+ height: var(--wt-popup-height-md);
229
+ }
230
+
231
+ .wt-popup--height-lg .wt-popup__popup {
232
+ height: var(--wt-popup-height-lg);
233
+ }
234
+
218
235
  .wt-popup__popup {
219
236
  display: flex;
220
237
  flex-direction: column;
@@ -14,6 +14,13 @@ const lookupPathToScopeClass: Partial<Record<string, ScopeClass>> = {
14
14
  'call_center/list': ScopeClass.List,
15
15
  'call_center/teams': ScopeClass.Team,
16
16
  'call_center/skills': ScopeClass.Skills,
17
+ 'call_center/resources': ScopeClass.Resource,
18
+ 'call_center/resource_group': ScopeClass.ResourceGroup,
19
+ 'call_center/communication_type': ScopeClass.Dictionaries,
20
+ 'call_center/buckets': ScopeClass.Dictionaries,
21
+ 'call_center/pause_causes': ScopeClass.Dictionaries,
22
+ 'call_center/quick_replies': ScopeClass.Dictionaries,
23
+ regions: ScopeClass.Dictionaries,
17
24
  'contacts/groups': ScopeClass.ContactGroups,
18
25
  };
19
26