@webitel/ui-sdk 26.8.86 → 26.8.88

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 (68) hide show
  1. package/dist/{clients-CkhN_A5L.js → clients-cfVUVngv.js} +317 -289
  2. package/dist/{components-CV6dUJR6.js → components-BSM66otL.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-CPKosJ8P.js → wt-chat-emoji-zW3fKPW8.js} +1 -1
  18. package/dist/{wt-datepicker-BgjjbOMX.js → wt-datepicker-BS3przUJ.js} +2 -2
  19. package/dist/{wt-display-chip-items-CK-cnYdD.js → wt-display-chip-items-D-lzTp0d.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-C4XEqrKj.js → wt-send-message-popup-CiswBW69.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-CmbjLO9b.js → wt-table-column-select-BtFhZKPT.js} +26 -19
  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-CuxKUgu-.js → wt-type-extension-value-input-DTjVuaQe.js} +3 -3
  38. package/dist/{wt-vidstack-player-O1Xcyw-A.js → wt-vidstack-player-BUFABzVR.js} +997 -991
  39. package/package.json +6 -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 +21 -2
  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/TableVariableColumnSelect/components/__tests__/wt-table-variable-column-select.spec.ts +101 -0
  48. package/src/modules/TableVariableColumnSelect/components/wt-table-variable-column-select.vue +278 -0
  49. package/src/modules/TableVariableColumnSelect/composable/__tests__/useTableVariableHeaders.spec.ts +129 -0
  50. package/src/modules/TableVariableColumnSelect/composable/useTableVariableHeaders.ts +59 -0
  51. package/src/modules/TableVariableColumnSelect/index.ts +7 -0
  52. package/src/modules/Userinfo/mappings/mappings.ts +1 -1
  53. package/src/modules/Userinfo/stores/userinfoStore.ts +1 -1
  54. package/src/scripts/debounce.js +1 -1
  55. package/src/scripts/logger.js +1 -1
  56. package/src/scripts/updateObject.js +1 -2
  57. package/src/store/BaseStoreModules/BaseStoreModule.js +1 -1
  58. package/src/store/new/helpers/createStoreModule.js +1 -1
  59. package/src/store/new/modules/baseStoreModule/baseStoreModule.js +1 -1
  60. package/src/store/new/modules/cardStoreModule/cardStoreModule.js +1 -1
  61. package/types/.tsbuildinfo +1 -1
  62. package/types/components/wt-textarea/wt-textarea.vue.d.ts +11 -0
  63. package/types/modules/TableVariableColumnSelect/components/wt-table-variable-column-select.vue.d.ts +17 -0
  64. package/types/modules/TableVariableColumnSelect/composable/useTableVariableHeaders.d.ts +14 -0
  65. package/types/modules/TableVariableColumnSelect/index.d.ts +2 -0
  66. package/dist/debounce-Bp3jy7S5.js +0 -133
  67. package/dist/dist-Crpfx4FA.js +0 -87
  68. package/dist/rolldown-runtime-BEcgMyyN.js +0 -27
@@ -0,0 +1,59 @@
1
+ import type { WtTableHeader } from '../../../components/wt-table/types/WtTable';
2
+
3
+ export const VARIABLE_FIELD_PREFIX = 'variables.';
4
+
5
+ export type TableVariableHeader = WtTableHeader;
6
+
7
+ type HeadersRef = {
8
+ readonly value: TableVariableHeader[];
9
+ };
10
+
11
+ export const isVariableHeader = (
12
+ header: Pick<TableVariableHeader, 'field' | 'value'>,
13
+ ) =>
14
+ (header.field ?? '').startsWith(VARIABLE_FIELD_PREFIX) ||
15
+ (header.value ?? '').startsWith(VARIABLE_FIELD_PREFIX);
16
+
17
+ export function useTableVariableHeaders({
18
+ headers,
19
+ updateShownHeaders,
20
+ }: {
21
+ headers: HeadersRef;
22
+ updateShownHeaders: (headers: TableVariableHeader[]) => void;
23
+ }) {
24
+ const updateVariableHeaders = (incoming: TableVariableHeader[]) => {
25
+ const incomingByField = new Map(
26
+ incoming.map((header) => [
27
+ header.field,
28
+ header,
29
+ ]),
30
+ );
31
+
32
+ const updatedHeaders = headers.value.flatMap((header) => {
33
+ if (!isVariableHeader(header))
34
+ return [
35
+ header,
36
+ ];
37
+
38
+ const next = incomingByField.get(header.field);
39
+ if (!next) return [];
40
+
41
+ incomingByField.delete(header.field);
42
+ return [
43
+ {
44
+ ...next,
45
+ show: header.show,
46
+ },
47
+ ];
48
+ });
49
+
50
+ updateShownHeaders([
51
+ ...updatedHeaders,
52
+ ...incomingByField.values(),
53
+ ]);
54
+ };
55
+
56
+ return {
57
+ updateVariableHeaders,
58
+ };
59
+ }
@@ -0,0 +1,7 @@
1
+ export { default as WtTableVariableColumnSelect } from './components/wt-table-variable-column-select.vue';
2
+ export {
3
+ isVariableHeader,
4
+ type TableVariableHeader,
5
+ useTableVariableHeaders,
6
+ VARIABLE_FIELD_PREFIX,
7
+ } from './composable/useTableVariableHeaders';
@@ -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,