@webitel/ui-sdk 26.8.85 → 26.8.87

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.
Files changed (60) hide show
  1. package/dist/{clients-Dq48Jc7S.js → clients-BOVhef1Q.js} +6 -6
  2. package/dist/{components-eK1kCmlT.js → components-DhOeTGOI.js} +1065 -1853
  3. package/dist/{composables-BtWSAI5D.js → composables-OP5kSvlh.js} +3 -3
  4. package/dist/debounce-A4B4PTkL.js +5 -0
  5. package/dist/{deep-copy-CTgLtgMO.js → deep-copy-7O5ej7vT.js} +1 -1
  6. package/dist/dist-DB8lC4KJ.js +112 -0
  7. package/dist/{dist-CAOIU8xq.js → dist-DJZOILzq.js} +1 -1
  8. package/dist/{genClient-HHiOUj56.js → genClient-5JkKKac8.js} +6 -7
  9. package/dist/ui-sdk.css +1 -1
  10. package/dist/ui-sdk.js +2 -2
  11. package/dist/ui-sdk.umd.cjs +675 -675
  12. package/dist/{useValidation-CEed9cxY.js → useValidation-Dmm2xos_.js} +1 -1
  13. package/dist/{useWtTable-DLWucXPx.js → useWtTable-CUpN0LZ5.js} +1 -1
  14. package/dist/{vue-i18n-Db_oYfO8.js → vue-i18n-B88GcHzn.js} +215 -215
  15. package/dist/{vue-router-Dwey8MMv.js → vue-router-CobN9tLi.js} +1 -1
  16. package/dist/{wt-action-bar-DtAECixF.js → wt-action-bar-BpuER6TA.js} +1 -1
  17. package/dist/{wt-chat-emoji-CVhRh90z.js → wt-chat-emoji-D6mlvxYh.js} +1 -1
  18. package/dist/{wt-datepicker-BgjjbOMX.js → wt-datepicker-BS3przUJ.js} +2 -2
  19. package/dist/{wt-display-chip-items-CluYBl07.js → wt-display-chip-items-CjoOIGEn.js} +1 -1
  20. package/dist/{wt-expansion-card-BT586Mul.js → wt-expansion-card-8YzHs8F1.js} +1 -1
  21. package/dist/{wt-galleria-DMCgiiju.js → wt-galleria-CmaNfz7E.js} +2 -2
  22. package/dist/{wt-icon-action-DJzm0kEk.js → wt-icon-action-B8vuj9cC.js} +1 -1
  23. package/dist/{wt-pagination-G2ZGU4Pi.js → wt-pagination-DLRMTDRV.js} +1 -1
  24. package/dist/{wt-player-CFrKSilF.js → wt-player-CqjIR3Q-.js} +2 -2
  25. package/dist/{wt-popover-BCYPu5NC.js → wt-popover-DuZFw3bg.js} +1 -1
  26. package/dist/{wt-search-bar-DosqJLXT.js → wt-search-bar-CE4WhuJ6.js} +2 -2
  27. package/dist/{wt-selection-popup-CjYw4ppb.js → wt-selection-popup-Bd4EuLl-.js} +1 -1
  28. package/dist/{wt-send-message-popup-wu2uMTzU.js → wt-send-message-popup-ClhnL3uM.js} +287 -306
  29. package/dist/{wt-slider-BPzRTeYU.js → wt-slider-Co6hZQu_.js} +1 -1
  30. package/dist/{wt-start-page-BFQExFUj.js → wt-start-page-Bp7b0ir-.js} +1 -1
  31. package/dist/{wt-status-select-Dnv9tj7o.js → wt-status-select-z4n_FL2z.js} +1 -1
  32. package/dist/{wt-table-PR_Kx7Sv.js → wt-table-C-DMIrud.js} +2 -2
  33. package/dist/{wt-table-column-select-D4c56HPB.js → wt-table-column-select-CHzqRfXf.js} +4 -4
  34. package/dist/{wt-timepicker-B4MOaSEZ.js → wt-timepicker-D-tnO-gX.js} +2 -2
  35. package/dist/{wt-tree-BYk31Ees.js → wt-tree-BH2o2iCt.js} +843 -844
  36. package/dist/{wt-tree-table-ZJSw_3hx.js → wt-tree-table-D4nCNUq_.js} +1 -1
  37. package/dist/{wt-type-extension-value-input-C7qoiMoR.js → wt-type-extension-value-input-69hTFde6.js} +3 -3
  38. package/dist/{wt-vidstack-player-BuiT8wEz.js → wt-vidstack-player-BjO98yMg.js} +997 -991
  39. package/package.json +2 -2
  40. package/src/api/transformers/starToSearch/starToSearch.transformer.js +1 -1
  41. package/src/components/wt-table-column-select/wt-table-column-select.vue +1 -0
  42. package/src/components/wt-textarea/wt-textarea.vue +12 -1
  43. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +16 -0
  44. package/src/composables/useCachedItemInstanceName/useCachedItemInstanceName.js +1 -1
  45. package/src/modules/AuditForm/components/audit-form.vue +1 -1
  46. package/src/modules/CardStoreModule/store/CardStoreModule.js +1 -1
  47. package/src/modules/Userinfo/mappings/mappings.ts +1 -1
  48. package/src/modules/Userinfo/stores/userinfoStore.ts +1 -1
  49. package/src/scripts/debounce.js +1 -1
  50. package/src/scripts/logger.js +1 -1
  51. package/src/scripts/updateObject.js +1 -2
  52. package/src/store/BaseStoreModules/BaseStoreModule.js +1 -1
  53. package/src/store/new/helpers/createStoreModule.js +1 -1
  54. package/src/store/new/modules/baseStoreModule/baseStoreModule.js +1 -1
  55. package/src/store/new/modules/cardStoreModule/cardStoreModule.js +1 -1
  56. package/types/.tsbuildinfo +1 -1
  57. package/types/components/wt-textarea/wt-textarea.vue.d.ts +11 -0
  58. package/dist/debounce-Bp3jy7S5.js +0 -133
  59. package/dist/dist-Crpfx4FA.js +0 -87
  60. package/dist/rolldown-runtime-BEcgMyyN.js +0 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.85",
3
+ "version": "26.8.87",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -131,7 +131,7 @@
131
131
  "@tsconfig/node22": "^22.0.0",
132
132
  "@types/deep-equal": "^1.0.4",
133
133
  "@types/file-saver-es": "^2.0.3",
134
- "@types/lodash": "^4.17.24",
134
+ "@types/lodash-es": "^4.17.12",
135
135
  "@types/node": "^22.13.10",
136
136
  "@vitejs/plugin-vue": "^6.0.3",
137
137
  "@vitest/coverage-v8": "^4.1.3",
@@ -1,5 +1,5 @@
1
1
  import deepcopy from 'deep-copy';
2
- import get from 'lodash/get.js';
2
+ import { get } from 'lodash-es';
3
3
 
4
4
  import updateObject from '../../../scripts/updateObject.js';
5
5
 
@@ -191,6 +191,7 @@ watch(isColumnSelectPopup, () => {
191
191
  }
192
192
 
193
193
  .wt-table-column-select__popup-list {
194
+ max-width: 100%;
194
195
  display: flex;
195
196
  flex-direction: column;
196
197
  flex-wrap: wrap;
@@ -122,6 +122,16 @@ interface Props extends /* @vue-ignore */ TextareaProps {
122
122
  * @default false
123
123
  */
124
124
  autoresize?: boolean;
125
+ /**
126
+ * @author PolinaSukhorukova-webitel
127
+ *
128
+ * [WTEL-10388](https://webitel.atlassian.net/browse/WTEL-10388)
129
+ * Decouples submit-on-Enter from `autoresize` so a consumer can keep
130
+ * auto-height while Enter inserts a newline (e.g. mobile chat).
131
+ * @type {boolean}
132
+ * @default true
133
+ */
134
+ submitOnEnter?: boolean;
125
135
  /**
126
136
  * Validation rules
127
137
  */
@@ -144,6 +154,7 @@ const props = withDefaults(defineProps<Props>(), {
144
154
  rows: 1,
145
155
  labelProps: undefined,
146
156
  autoresize: false,
157
+ submitOnEnter: true,
147
158
  v: undefined,
148
159
  customValidators: () => [],
149
160
  });
@@ -181,7 +192,7 @@ const handleKeypress = (event: KeyboardEvent) => {
181
192
  emit('keydown', event);
182
193
  if (!props.autoresize) return;
183
194
 
184
- if (event.key === 'Enter' && !event.shiftKey) {
195
+ if (props.submitOnEnter && event.key === 'Enter' && !event.shiftKey) {
185
196
  emit('enter');
186
197
  event.preventDefault();
187
198
  }
@@ -14,6 +14,7 @@
14
14
  playsinline
15
15
  @close="emit('close')"
16
16
  @can-play="onCanPlay"
17
+ @provider-change="onProviderChange"
17
18
  >
18
19
  <media-provider class="wt-vidstack-player__provider"></media-provider>
19
20
 
@@ -52,6 +53,7 @@
52
53
  <script lang="ts" setup>
53
54
  import 'vidstack/player';
54
55
  import 'vidstack/player/ui';
56
+ import { isVideoProvider, type MediaProviderChangeEvent } from 'vidstack';
55
57
  import { computed, provide, ref, toRefs, useTemplateRef } from 'vue';
56
58
 
57
59
  import { ComponentSize } from '../../enums';
@@ -202,6 +204,20 @@ const onCanPlay = (ev: Event) => {
202
204
  playPromise.catch(() => {});
203
205
  }
204
206
  };
207
+
208
+ /**
209
+ * @author PolinaSukhorukova-webitel
210
+ *
211
+ * [WTEL-10386](https://webitel.atlassian.net/browse/WTEL-10386)
212
+ * iOS 18 opens the native <video> in system fullscreen when `playsinline` is
213
+ * applied late (only by the time playback starts). Setting it on `provider-change`
214
+ * guarantees the attribute is present before iOS decides inline vs fullscreen.
215
+ */
216
+ const onProviderChange = (event: MediaProviderChangeEvent) => {
217
+ if (isVideoProvider(event.detail)) {
218
+ event.detail.video.playsInline = true;
219
+ }
220
+ };
205
221
  </script>
206
222
 
207
223
  <style scoped>
@@ -1,4 +1,4 @@
1
- import get from 'lodash/get.js';
1
+ import { get } from 'lodash-es';
2
2
  import { onMounted, ref, watch } from 'vue';
3
3
 
4
4
  export const useCachedItemInstanceName = (
@@ -44,7 +44,7 @@ import type {
44
44
  EngineQuestion,
45
45
  EngineQuestionAnswer,
46
46
  } from '@webitel/api-services/gen/models';
47
- import cloneDeep from 'lodash/cloneDeep.js';
47
+ import { cloneDeep } from 'lodash-es';
48
48
  import {
49
49
  computed,
50
50
  nextTick,
@@ -1,5 +1,5 @@
1
1
  import deepCopy from 'deep-copy';
2
- import set from 'lodash/set.js';
2
+ import { set } from 'lodash-es';
3
3
 
4
4
  import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js';
5
5
 
@@ -1,4 +1,4 @@
1
- import invert from 'lodash/invert';
1
+ import { invert } from 'lodash-es';
2
2
 
3
3
  import {
4
4
  AdminSections,
@@ -1,4 +1,4 @@
1
- import pick from 'lodash/pick';
1
+ import { pick } from 'lodash-es';
2
2
  import { defineStore, storeToRefs } from 'pinia';
3
3
  import { ref } from 'vue';
4
4
  import { createUserNotificationsStore } from '../../UserNotifications/stores/userNotificationsStore';
@@ -1,4 +1,4 @@
1
- import lodashDebounce from 'lodash/debounce.js';
1
+ import { debounce as lodashDebounce } from 'lodash-es';
2
2
 
3
3
  const debounce = (fn, options, wait = 1000) =>
4
4
  lodashDebounce(fn, wait, options);
@@ -1,4 +1,4 @@
1
- import isObject from 'lodash/isObject.js';
1
+ import { isObject } from 'lodash-es';
2
2
 
3
3
  const validateConfig = (config) => {
4
4
  return isObject(config) && (config.entity || config.module);
@@ -1,5 +1,4 @@
1
- import cloneDeep from 'lodash/cloneDeep.js';
2
- import set from 'lodash/set.js';
1
+ import { cloneDeep, set } from 'lodash-es';
3
2
 
4
3
  const updateObject = ({ obj, path, value }) => set(cloneDeep(obj), path, value);
5
4
 
@@ -1,4 +1,4 @@
1
- import set from 'lodash/set.js';
1
+ import { set } from 'lodash-es';
2
2
 
3
3
  export default class BaseStoreModule {
4
4
  state = {};
@@ -1,5 +1,5 @@
1
1
  import deepmerge from 'deepmerge';
2
- import isPlainObject from 'lodash/isPlainObject.js';
2
+ import { isPlainObject } from 'lodash-es';
3
3
 
4
4
  export const createStoreModule = (modules) => {
5
5
  const modulesArr = Array.isArray(modules)
@@ -1,4 +1,4 @@
1
- import set from 'lodash/set.js';
1
+ import { set } from 'lodash-es';
2
2
 
3
3
  const state = () => ({});
4
4
 
@@ -1,5 +1,5 @@
1
1
  import deepCopy from 'deep-copy';
2
- import set from 'lodash/set.js';
2
+ import { set } from 'lodash-es';
3
3
 
4
4
  const state = () => ({
5
5
  itemId: 0,