@webitel/ui-sdk 26.6.20 → 26.6.21

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/{contacts-DY2EJRoj.js → contacts-BdN0ofIh.js} +2 -2
  2. package/dist/{index-DQFto_sy.js → index-BLKjPZ6A.js} +1 -1
  3. package/dist/{install-BXREehT0.js → install-aGUwQkrQ.js} +38 -38
  4. package/dist/{isObject-CD4PoPB5.js → isObject-Dr_MuUPW.js} +1 -1
  5. package/dist/ui-sdk.js +1 -1
  6. package/dist/ui-sdk.umd.cjs +74 -74
  7. package/dist/{useVidstackSrc-DuDa-s1X.js → useVidstackSrc-Dv15fg92.js} +1 -1
  8. package/dist/{vidstack-Bq6c3Bam-Ea9zkbZC.js → vidstack-Bq6c3Bam-DzEPm8PR.js} +3 -3
  9. package/dist/{vidstack-D2pY00kU-uqYRbWJ2.js → vidstack-D2pY00kU-CgWbaBaa.js} +3 -3
  10. package/dist/{vidstack-DDXt6fpN-BH3LmBmW.js → vidstack-DDXt6fpN-D2br2D5T.js} +2 -2
  11. package/dist/{vidstack-D_-9AA6_-D5LwDx0f.js → vidstack-D_-9AA6_-DktXbFzH.js} +2 -2
  12. package/dist/{vidstack-DqAw8m9J-DXy0aFCH.js → vidstack-DqAw8m9J-DgAdK3ff.js} +1 -1
  13. package/dist/{vidstack-audio-CrYh-ap6.js → vidstack-audio-BO4SwprJ.js} +2 -2
  14. package/dist/{vidstack-dash-lKHc71zQ.js → vidstack-dash-CC3EFr19.js} +4 -4
  15. package/dist/{vidstack-google-cast-Cpbukl0n.js → vidstack-google-cast-BL5QVHAh.js} +4 -4
  16. package/dist/{vidstack-hls-BS67vBeG.js → vidstack-hls-BZn-_AcR.js} +4 -4
  17. package/dist/{vidstack-video-CV4rCnRO.js → vidstack-video-BrOHpgvM.js} +3 -3
  18. package/dist/{vidstack-vimeo-xu0cjh_a.js → vidstack-vimeo-Ct27GnQZ.js} +4 -4
  19. package/dist/{vidstack-youtube-5QqPBl98.js → vidstack-youtube-C0cQ6AZM.js} +3 -3
  20. package/dist/{wt-action-bar-CvM5DzMa.js → wt-action-bar-XM_AwkPY.js} +1 -1
  21. package/dist/{wt-button-select-BhGY5lJQ.js → wt-button-select-Q-YbSv_M.js} +1 -1
  22. package/dist/{wt-call-media-action-_-U7Q96n.js → wt-call-media-action-BsFMaO6k.js} +1 -1
  23. package/dist/{wt-chat-emoji-CBuFqp8y.js → wt-chat-emoji-C9cevyxc.js} +2 -2
  24. package/dist/{wt-confirm-dialog-BowwwDM1.js → wt-confirm-dialog-YVVHzPtB.js} +1 -1
  25. package/dist/{wt-context-menu-DwABLx4H.js → wt-context-menu-Do9qMzuC.js} +1 -1
  26. package/dist/{wt-copy-action-BuimcPmW.js → wt-copy-action-DwSSvzhj.js} +1 -1
  27. package/dist/{wt-datepicker-DIRmkcNG.js → wt-datepicker-D--FgQBR.js} +1 -1
  28. package/dist/{wt-display-chip-items-CupKGdYI.js → wt-display-chip-items-BBU5zBLa.js} +1 -1
  29. package/dist/{wt-dual-panel-CRW-go48.js → wt-dual-panel-_jXI9Ian.js} +1 -1
  30. package/dist/{wt-dummy-DhEfFC-r.js → wt-dummy-Cq_5KRNL.js} +1 -1
  31. package/dist/{wt-error-page-2dRldTsx.js → wt-error-page-B8mXrc3B.js} +1 -1
  32. package/dist/{wt-expansion-card-D8ic0gTJ.js → wt-expansion-card-l1tRNq4J.js} +1 -1
  33. package/dist/{wt-expansion-panel-HER7hd1m.js → wt-expansion-panel-CBTeQBCo.js} +1 -1
  34. package/dist/{wt-filters-panel-wrapper-CpunD1Q1.js → wt-filters-panel-wrapper-C-TL0X6c.js} +1 -1
  35. package/dist/{wt-galleria-DGRRH0Jl.js → wt-galleria-DDs9Jzrg.js} +1 -1
  36. package/dist/{wt-inline-add-panel-CPRMptHX.js → wt-inline-add-panel-DDjJqhO3.js} +1 -1
  37. package/dist/{wt-navigation-menu-BSmlI6Zu.js → wt-navigation-menu-CMQSyWPx.js} +1 -1
  38. package/dist/{wt-notifications-bar-CgQmPTwr.js → wt-notifications-bar-JsOo4bQJ.js} +2 -2
  39. package/dist/{wt-pagination-DaBOqHsN.js → wt-pagination-plnvnx-g.js} +1 -1
  40. package/dist/{wt-player-CYK8qZ3F.js → wt-player-D7310Zq_.js} +3 -3
  41. package/dist/{wt-popover-BIpMrvmo.js → wt-popover-Di-7_rDL.js} +1 -1
  42. package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +81 -0
  43. package/dist/{wt-screen-recordings-action-BtqpKY3F.js → wt-screen-recordings-action-DeEjL4C3.js} +1 -1
  44. package/dist/{wt-search-bar-Cy-OMtjq.js → wt-search-bar-dhDzZaJl.js} +1 -1
  45. package/dist/{wt-selection-popup-CRXv56a1.js → wt-selection-popup-CGnaPC76.js} +1 -1
  46. package/dist/{wt-send-message-popup-BAj3ieEC.js → wt-send-message-popup-Bht0GV6p.js} +3 -3
  47. package/dist/{wt-start-page-B7Ccvvof.js → wt-start-page-CneWmd05.js} +1 -1
  48. package/dist/{wt-status-select-BC_Qlnql.js → wt-status-select-DNddtJua.js} +1 -1
  49. package/dist/{wt-stepper-DsfrapP7.js → wt-stepper-prQGnAyB.js} +1 -1
  50. package/dist/{wt-table-DBxeKEjN.js → wt-table-DBOYtrLQ.js} +1 -1
  51. package/dist/{wt-table-actions-k543T7w8.js → wt-table-actions-DBDRb_34.js} +1 -1
  52. package/dist/{wt-table-column-select-CQtHxPpC.js → wt-table-column-select-CcLMkJTi.js} +2 -2
  53. package/dist/{wt-tabs-DwEDaVsl.js → wt-tabs-DVxb7Na_.js} +1 -1
  54. package/dist/{wt-timepicker-DEOcLPum.js → wt-timepicker-DMIPBnWD.js} +1 -1
  55. package/dist/{wt-tree-Cgg16XOR.js → wt-tree-DXp1h9Jo.js} +1 -1
  56. package/dist/{wt-tree-table-DVeDC0uS.js → wt-tree-table-Cr7fq5KX.js} +1 -1
  57. package/dist/{wt-type-extension-value-input-F8IjMqb0.js → wt-type-extension-value-input-CL0XEdbC.js} +3 -3
  58. package/dist/{wt-vidstack-player-D04kT9Jx.js → wt-vidstack-player-dcTO1KXn.js} +10 -10
  59. package/package.json +2 -2
  60. package/src/components/wt-popover/_internals/composables/usePopoverOverlayFix.ts +37 -0
  61. package/src/components/wt-popover/wt-popover.vue +4 -1
  62. package/src/css/pages/table-page.css +1 -1
  63. package/src/modules/AppConfig/index.ts +1 -1
  64. package/src/modules/UserNotifications/stores/userNotificationsStore.ts +8 -12
  65. package/src/modules/Userinfo/types/UserAccess.d.ts +1 -1
  66. package/types/components/wt-popover/_internals/composables/usePopoverOverlayFix.d.ts +4 -0
  67. package/types/modules/AppConfig/index.d.ts +1 -1
  68. package/dist/wt-popover.vue_vue_type_style_index_0_lang-BxD5Zt_u.js +0 -59
@@ -0,0 +1,37 @@
1
+ import { onBeforeUnmount, onMounted, type Ref } from 'vue';
2
+
3
+ // https://github.com/primefaces/primevue/issues/8529
4
+ // When a select/multiselect overlay closes before the click event fires (single select),
5
+ // the click retargets to body and PrimeVue's outside-click closes the popover.
6
+ // Fix: on pointerdown inside a teleported overlay, suppress the popover's outside-click
7
+ // listener for one click cycle so it doesn't fire on the retargeted body click.
8
+ export const usePopoverOverlayFix = (
9
+ innerPopover: Ref<{
10
+ outsideClickListener?: EventListener;
11
+ } | null>,
12
+ ) => {
13
+ const onDocumentPointerdown = (event: PointerEvent) => {
14
+ const target = event.target as Element;
15
+ if (!target?.closest('.p-select-overlay, .p-multiselect-overlay')) return;
16
+ const listener = innerPopover.value?.outsideClickListener;
17
+ if (!listener) return;
18
+ document.removeEventListener('click', listener);
19
+ document.addEventListener(
20
+ 'click',
21
+ () => {
22
+ document.addEventListener('click', listener);
23
+ },
24
+ {
25
+ once: true,
26
+ capture: false,
27
+ },
28
+ );
29
+ };
30
+
31
+ onMounted(() =>
32
+ document.addEventListener('pointerdown', onDocumentPointerdown, true),
33
+ );
34
+ onBeforeUnmount(() =>
35
+ document.removeEventListener('pointerdown', onDocumentPointerdown, true),
36
+ );
37
+ };
@@ -23,7 +23,8 @@
23
23
 
24
24
  <script setup lang="ts">
25
25
  import type { PopoverEmitsOptions, PopoverProps } from 'primevue';
26
- import { defineExpose, useAttrs, useTemplateRef } from 'vue';
26
+ import { useAttrs, useTemplateRef } from 'vue';
27
+ import { usePopoverOverlayFix } from './_internals/composables/usePopoverOverlayFix';
27
28
 
28
29
  interface Props extends PopoverProps {
29
30
  disabled?: boolean;
@@ -45,6 +46,8 @@ const props = withDefaults(defineProps<Props>(), {
45
46
  });
46
47
  defineEmits<PopoverEmitsOptions>();
47
48
 
49
+ usePopoverOverlayFix(innerPopover);
50
+
48
51
  const toggle = (event?: Event, target?: HTMLElement | null | undefined) => {
49
52
  if (props.disabled) return;
50
53
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  .table-page .wt-page-wrapper__main,
12
12
  /* coz .table-section can exist without .table-page (in tabs, for instance)*/
13
- .wt-page-wrapper__main:has(.table-section) {
13
+ .wt-page-wrapper__main:has(.table-section) {
14
14
  min-height: 0;
15
15
  }
16
16
 
@@ -59,5 +59,5 @@ export function createAppConfig<T>(
59
59
  };
60
60
  }
61
61
 
62
- export { fetchConfig };
63
62
  export type { PartialDeep };
63
+ export { fetchConfig };
@@ -83,22 +83,18 @@ export const createUserNotificationsStore = () => {
83
83
  };
84
84
 
85
85
  const showNotifications = async (userId: string) => {
86
- try {
87
- if (isShownUserNotifications(userId)) return;
86
+ if (isShownUserNotifications(userId)) return;
88
87
 
89
- const apiNotifications = await fetchNotifications();
90
- notifications.value = mapNotifications(apiNotifications);
88
+ const apiNotifications = await fetchNotifications();
89
+ notifications.value = mapNotifications(apiNotifications);
91
90
 
92
- if (!notifications.value?.length) return;
91
+ if (!notifications.value?.length) return;
93
92
 
94
- notifications.value.forEach((notification) => {
95
- emitNotification(notification);
96
- });
93
+ notifications.value.forEach((notification) => {
94
+ emitNotification(notification);
95
+ });
97
96
 
98
- setShownUserNotifications(userId);
99
- } catch (err) {
100
- throw err;
101
- }
97
+ setShownUserNotifications(userId);
102
98
  };
103
99
 
104
100
  return {
@@ -9,13 +9,13 @@ import type {
9
9
  WtApplication,
10
10
  WtObject,
11
11
  } from '../../../../enums';
12
+ import type { ApplicationsAccessSchema } from '../classes/ApplicationsAccess';
12
13
  import type {
13
14
  CrudGlobalAction,
14
15
  ScopeClass,
15
16
  SpecialGlobalAction,
16
17
  WebitelLicense,
17
18
  } from '../enums';
18
- import type { ApplicationsAccessSchema } from '../classes/ApplicationsAccess';
19
19
 
20
20
  /**
21
21
  * @description
@@ -0,0 +1,4 @@
1
+ import { type Ref } from 'vue';
2
+ export declare const usePopoverOverlayFix: (innerPopover: Ref<{
3
+ outsideClickListener?: EventListener;
4
+ } | null>) => void;
@@ -27,5 +27,5 @@ export interface AppConfigModule<T> {
27
27
  * ```
28
28
  */
29
29
  export declare function createAppConfig<T>(defaultConfig: PartialDeep<T>): AppConfigModule<T>;
30
- export { fetchConfig };
31
30
  export type { PartialDeep };
31
+ export { fetchConfig };
@@ -1,59 +0,0 @@
1
- import { defineComponent as b, useAttrs as m, useTemplateRef as y, resolveComponent as x, createElementBlock as h, openBlock as k, renderSlot as u, createVNode as B, normalizeProps as r, guardReactiveProps as i, mergeProps as g, unref as c, toHandlers as P, withCtx as w } from "vue";
2
- const I = /* @__PURE__ */ b({
3
- __name: "wt-popover",
4
- props: {
5
- disabled: { type: Boolean, default: !1 },
6
- dismissable: { type: Boolean },
7
- appendTo: { default: "body" },
8
- baseZIndex: { default: 0 },
9
- autoZIndex: { type: Boolean, default: !0 },
10
- breakpoints: { default: null },
11
- dt: { default: null },
12
- pt: { default: null },
13
- ptOptions: { default: null },
14
- unstyled: { type: Boolean, default: !1 },
15
- closeOnEscape: { type: Boolean, default: !0 }
16
- },
17
- emits: ["show", "hide"],
18
- setup(e, { expose: f }) {
19
- const s = m(), o = y("innerPopover"), d = e, a = (t, n) => {
20
- d.disabled || o.value?.toggle(t, n ?? void 0);
21
- }, p = (t, n) => {
22
- d.disabled || o.value?.show(t, n ?? void 0);
23
- }, l = (t) => {
24
- o.value?.hide(t);
25
- };
26
- return f({
27
- toggle: a,
28
- show: p,
29
- hide: l
30
- }), (t, n) => {
31
- const v = x("p-popover");
32
- return k(), h("div", null, [
33
- u(t.$slots, "activator", r(i({ show: p, toggle: a, hide: l }))),
34
- B(v, g(c(s), {
35
- ref_key: "innerPopover",
36
- ref: o
37
- }, {
38
- "append-to": e.appendTo,
39
- "base-z-index": e.baseZIndex,
40
- "auto-z-index": e.autoZIndex,
41
- breakpoints: e.breakpoints,
42
- dt: e.dt,
43
- pt: e.pt,
44
- "pt-options": e.ptOptions,
45
- "close-on-escape": e.closeOnEscape,
46
- unstyled: e.unstyled
47
- }, P(c(s))), {
48
- default: w(() => [
49
- u(t.$slots, "default", r(i({ hide: l, toggle: a })))
50
- ], void 0, !0),
51
- _: 3
52
- }, 16, ["append-to", "base-z-index", "auto-z-index", "breakpoints", "dt", "pt", "pt-options", "close-on-escape", "unstyled"])
53
- ]);
54
- };
55
- }
56
- });
57
- export {
58
- I as _
59
- };