@webitel/ui-sdk 26.2.90 → 26.2.92

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/{index-6FcYE_tv.js → index-BErstUk_.js} +1 -1
  2. package/dist/{index-CoHdAWM4.js → index-BZXu2M3L.js} +1 -1
  3. package/dist/{install-XAkxN4AA.js → install-D3CIg-W2.js} +35 -35
  4. package/dist/{isObject-Ov3YgOq3.js → isObject-C6wvFzSx.js} +1 -1
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +1 -1
  7. package/dist/ui-sdk.umd.cjs +1 -1
  8. package/dist/{vidstack-Bq6c3Bam-BrqnG_lY.js → vidstack-Bq6c3Bam-Dv_qgz3d.js} +2 -2
  9. package/dist/{vidstack-D2pY00kU-DpuyCg6C.js → vidstack-D2pY00kU-S4bYdiza.js} +2 -2
  10. package/dist/{vidstack-DDXt6fpN-CaJC1mNX.js → vidstack-DDXt6fpN-BGe2od-L.js} +1 -1
  11. package/dist/{vidstack-D_-9AA6_-Dz8KT0Ww.js → vidstack-D_-9AA6_-CBc_XgaH.js} +1 -1
  12. package/dist/{vidstack-DqAw8m9J-qhKWLfDX.js → vidstack-DqAw8m9J-BdYttxwF.js} +1 -1
  13. package/dist/{vidstack-audio-BuOjgvxl.js → vidstack-audio-CvVtmWic.js} +2 -2
  14. package/dist/{vidstack-dash-Da5vvHhg.js → vidstack-dash-ICld3jc0.js} +3 -3
  15. package/dist/{vidstack-google-cast-DSuUziBG.js → vidstack-google-cast-C6_06oeW.js} +3 -3
  16. package/dist/{vidstack-hls-DI2Lv0Tm.js → vidstack-hls-BHuRhQpc.js} +3 -3
  17. package/dist/{vidstack-video-CCJlAiu2.js → vidstack-video-BIeRD0dm.js} +2 -2
  18. package/dist/{vidstack-vimeo-DJzB0wOs.js → vidstack-vimeo-CadUrmO4.js} +3 -3
  19. package/dist/{vidstack-youtube-DBkGM7Ai.js → vidstack-youtube-D3eB14FI.js} +2 -2
  20. package/dist/{wt-action-bar-BnzfUtC6.js → wt-action-bar-DMQg_wCW.js} +1 -1
  21. package/dist/{wt-button-select-DD8_0IX-.js → wt-button-select-8CIyr5wz.js} +1 -1
  22. package/dist/{wt-chat-emoji-CmTn47wV.js → wt-chat-emoji-B5r1sArZ.js} +2 -2
  23. package/dist/{wt-confirm-dialog-LkjnLCgr.js → wt-confirm-dialog-CGU393qs.js} +1 -1
  24. package/dist/{wt-context-menu-CefQWdnZ.js → wt-context-menu-vXLW5STJ.js} +1 -1
  25. package/dist/{wt-copy-action-Dda1PTha.js → wt-copy-action-BXAiQbiL.js} +1 -1
  26. package/dist/{wt-datepicker-BYEg6Jyr.js → wt-datepicker-B3_xWWny.js} +1 -1
  27. package/dist/{wt-display-chip-items-DLwm3ucB.js → wt-display-chip-items-hOFb8cYK.js} +1 -1
  28. package/dist/{wt-dual-panel-B6r876nC.js → wt-dual-panel-C-ZNDCVQ.js} +1 -1
  29. package/dist/{wt-dummy-8c8NGyPx.js → wt-dummy-CQuc2pUK.js} +1 -1
  30. package/dist/{wt-error-page-nzusv0fz.js → wt-error-page-C9mheaY_.js} +1 -1
  31. package/dist/{wt-expansion-card-Cuox-uYk.js → wt-expansion-card-DXNxtDT7.js} +1 -1
  32. package/dist/{wt-expansion-panel-CYgJHS_E.js → wt-expansion-panel-7-RBYVvB.js} +1 -1
  33. package/dist/{wt-filters-panel-wrapper-DRO4_eYB.js → wt-filters-panel-wrapper-BGQfDEOX.js} +1 -1
  34. package/dist/{wt-galleria-QIjBH-F8.js → wt-galleria-jLFEcRIl.js} +1 -1
  35. package/dist/{wt-navigation-menu-c_3tYges.js → wt-navigation-menu-bC3rktGf.js} +1 -1
  36. package/dist/{wt-notifications-bar-C5_fx9ud.js → wt-notifications-bar-Z1kdIJDM.js} +2 -2
  37. package/dist/{wt-page-header-DdmI3lR2.js → wt-page-header-C4OOc29C.js} +1 -1
  38. package/dist/{wt-pagination-OiuGP1j5.js → wt-pagination-DICSE94b.js} +1 -1
  39. package/dist/{wt-player-BT3cd1ON.js → wt-player-5pA1951C.js} +1 -1
  40. package/dist/{wt-search-bar-DAkBVeYm.js → wt-search-bar-CVhQ18eB.js} +1 -1
  41. package/dist/{wt-selection-popup-CFpQzcDb.js → wt-selection-popup-DSU0dJSC.js} +1 -1
  42. package/dist/{wt-start-page-Dt7149ic.js → wt-start-page-EDj1G61R.js} +1 -1
  43. package/dist/{wt-status-select-BSiFQJzt.js → wt-status-select-CiSRs0Sz.js} +1 -1
  44. package/dist/{wt-stepper-6SLPTeiS.js → wt-stepper-DPXK5o3M.js} +1 -1
  45. package/dist/{wt-table-DktUFZhG.js → wt-table-EW7Fh41H.js} +1 -1
  46. package/dist/{wt-table-actions-DkCOkH42.js → wt-table-actions-CxycqT11.js} +1 -1
  47. package/dist/{wt-table-column-select-DhlZ2yXS.js → wt-table-column-select-BA56ox9U.js} +2 -2
  48. package/dist/{wt-tabs-BXj61jKB.js → wt-tabs-CxZGM6Wo.js} +1 -1
  49. package/dist/{wt-tags-input-D8XVnobG.js → wt-tags-input-CNUemmb_.js} +2 -2
  50. package/dist/{wt-timepicker-_FoKTaR1.js → wt-timepicker-DavaE_Rg.js} +1 -1
  51. package/dist/{wt-tree-C0GPrZGJ.js → wt-tree-BEHGjMjN.js} +2 -2
  52. package/dist/{wt-tree-table-BLjae7-9.js → wt-tree-table-CS9erTT_.js} +1 -1
  53. package/dist/{wt-type-extension-value-input-8V93oP1r.js → wt-type-extension-value-input-yxSxuUE4.js} +2 -2
  54. package/dist/{wt-vidstack-player-B_-Gi5Gi.js → wt-vidstack-player-CvpfSF-r.js} +11 -11
  55. package/package.json +2 -2
  56. package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +1 -1
  57. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +26 -1
  58. package/src/modules/AgentPdfs/components/agent-pdfs-tab.vue +9 -1
  59. package/src/modules/Userinfo/stores/__tests__/UserinfoAccessControl.spec.ts +34 -0
  60. package/src/modules/Userinfo/stores/__tests__/accessStore.spec.ts +6 -22
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as qe, createElementBlock as Ie, openBlock as gt, createVNode as ie, useTemplateRef as ha, inject as nn, onMounted as ca, onBeforeUnmount as ua, normalizeClass as Xs, unref as Js, createElementVNode as yt, createBlock as is, createCommentVNode as ve, toDisplayString as da, renderSlot as os, ref as Ci, provide as pa, computed as Pi, withCtx as xi } from "vue";
2
- import { R as fa, S as ma, T as ga, U as ya, P as Ce, _ as Oe, V as ba, C as at } from "./install-XAkxN4AA.js";
2
+ import { R as fa, S as ma, T as ga, U as ya, P as Ce, _ as Oe, V as ba, C as at } from "./install-D3CIg-W2.js";
3
3
  const dt = /* @__PURE__ */ Symbol(0);
4
4
  let ls = !1, Fs = !1, ot = null, ee = null, et = null, X = 0, te = [], Zs = {};
5
5
  const $a = () => {
@@ -3263,7 +3263,7 @@ class To {
3263
3263
  return "audio";
3264
3264
  }
3265
3265
  async load(t) {
3266
- return new (await import("./vidstack-audio-BuOjgvxl.js")).AudioProvider(this.target, t);
3266
+ return new (await import("./vidstack-audio-CvVtmWic.js")).AudioProvider(this.target, t);
3267
3267
  }
3268
3268
  }
3269
3269
  class di {
@@ -3276,7 +3276,7 @@ class di {
3276
3276
  return "video";
3277
3277
  }
3278
3278
  async load(t) {
3279
- return new (await import("./vidstack-video-CCJlAiu2.js")).VideoProvider(this.target, t);
3279
+ return new (await import("./vidstack-video-BIeRD0dm.js")).VideoProvider(this.target, t);
3280
3280
  }
3281
3281
  }
3282
3282
  class pi extends di {
@@ -3286,7 +3286,7 @@ class pi extends di {
3286
3286
  return pi.supported && De(t);
3287
3287
  }
3288
3288
  async load(t) {
3289
- return new (await import("./vidstack-hls-DI2Lv0Tm.js")).HLSProvider(this.target, t);
3289
+ return new (await import("./vidstack-hls-BHuRhQpc.js")).HLSProvider(this.target, t);
3290
3290
  }
3291
3291
  }
3292
3292
  class fi extends di {
@@ -3296,7 +3296,7 @@ class fi extends di {
3296
3296
  return fi.supported && li(t);
3297
3297
  }
3298
3298
  async load(t) {
3299
- return new (await import("./vidstack-dash-Da5vvHhg.js")).DASHProvider(this.target, t);
3299
+ return new (await import("./vidstack-dash-ICld3jc0.js")).DASHProvider(this.target, t);
3300
3300
  }
3301
3301
  }
3302
3302
  class So {
@@ -3318,7 +3318,7 @@ class So {
3318
3318
  return "video";
3319
3319
  }
3320
3320
  async load(t) {
3321
- return new (await import("./vidstack-vimeo-DJzB0wOs.js")).VimeoProvider(this.target, t);
3321
+ return new (await import("./vidstack-vimeo-CadUrmO4.js")).VimeoProvider(this.target, t);
3322
3322
  }
3323
3323
  async loadPoster(t, e, s) {
3324
3324
  const { resolveVimeoVideoId: n, getVimeoVideoInfo: a } = await import("./vidstack-krOAtKMi-C50BTxmn.js");
@@ -3350,7 +3350,7 @@ class ko {
3350
3350
  return "video";
3351
3351
  }
3352
3352
  async load(t) {
3353
- return new (await import("./vidstack-youtube-DBkGM7Ai.js")).YouTubeProvider(this.target, t);
3353
+ return new (await import("./vidstack-youtube-D3eB14FI.js")).YouTubeProvider(this.target, t);
3354
3354
  }
3355
3355
  async loadPoster(t, e, s) {
3356
3356
  const { findYouTubePoster: n, resolveYouTubeVideoId: a } = await import("./vidstack-Dm1xEU9Q-CXHNvShT.js"), r = v(t.src) && a(t.src);
@@ -3818,7 +3818,7 @@ class Ao extends Qt {
3818
3818
  throw n.code = "CAST_NOT_AVAILABLE", n;
3819
3819
  }
3820
3820
  if (_e("https://www.gstatic.com"), !this.#$) {
3821
- const n = await import("./vidstack-D2pY00kU-DpuyCg6C.js").then((a) => a.v);
3821
+ const n = await import("./vidstack-D2pY00kU-S4bYdiza.js").then((a) => a.v);
3822
3822
  this.#$ = new n.GoogleCastLoader();
3823
3823
  }
3824
3824
  await this.#$.prompt(this.#s), t && this.#e.queue.enqueue("media-google-cast-request", t);
@@ -5511,7 +5511,7 @@ class Bo extends $(HTMLElement, Hn) {
5511
5511
  if (this.#e?.classList.contains("vds-google-cast"))
5512
5512
  return this.#e;
5513
5513
  const t = document.createElement("div");
5514
- return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-Dz8KT0Ww.js").then(({ insertContent: e }) => {
5514
+ return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-CBc_XgaH.js").then(({ insertContent: e }) => {
5515
5515
  e(t, this.#t.$state);
5516
5516
  }), t;
5517
5517
  }
@@ -10079,7 +10079,7 @@ const ic = /* @__PURE__ */ qe({
10079
10079
  ])
10080
10080
  ], 2));
10081
10081
  }
10082
- }), yc = /* @__PURE__ */ Oe(gc, [["__scopeId", "data-v-2edb1963"]]), bc = ["autoplay", "muted", "src"], $c = /* @__PURE__ */ qe({
10082
+ }), yc = /* @__PURE__ */ Oe(gc, [["__scopeId", "data-v-4fb2b9f3"]]), bc = ["autoplay", "muted", "src"], $c = /* @__PURE__ */ qe({
10083
10083
  __name: "wt-vidstack-player",
10084
10084
  props: {
10085
10085
  src: {},
@@ -10172,7 +10172,7 @@ const ic = /* @__PURE__ */ qe({
10172
10172
  ], 40, bc)
10173
10173
  ], 2));
10174
10174
  }
10175
- }), vc = /* @__PURE__ */ Oe($c, [["__scopeId", "data-v-fe960280"]]), Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10175
+ }), vc = /* @__PURE__ */ Oe($c, [["__scopeId", "data-v-b5f27cee"]]), Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10176
10176
  __proto__: null,
10177
10177
  default: vc
10178
10178
  }, Symbol.toStringTag, { value: "Module" }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.2.90",
3
+ "version": "26.2.92",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run biome:format:all || true) && npm run publish-lib",
@@ -10,7 +10,7 @@
10
10
  "biome:format:all": "npx biome check --write ./src",
11
11
  "build:types": "vue-tsc -p ./tsconfig.build.json",
12
12
  "publish-lib": " npm publish --access public --tag latest",
13
- "docs:dev": "vitepress dev docs --port 8080",
13
+ "docs:dev": "vitepress dev docs",
14
14
  "docs:build": "vitepress build docs",
15
15
  "lint:fix-staged": "npx lint-staged",
16
16
  "lint:package": "publint",
@@ -80,7 +80,7 @@ const emit = defineEmits<{
80
80
  align-self: flex-start;
81
81
  }
82
82
 
83
- :deep(media-player[data-hocus]) :deep(.video-display-panel) {
83
+ media-player[data-hocus] .video-display-panel {
84
84
  /* hover or focus within https://vidstack.io/docs/wc/player/components/core/player/?styling=css#player.attrs */
85
85
  background: var(--p-player-head-line-hover-background);
86
86
  opacity: 1;
@@ -224,8 +224,33 @@ const onCanPlay = (ev: Event) => {
224
224
  * Note: popup-wrapper and popup-container mixins removed - apply popup styles separately if needed
225
225
  */
226
226
  .wt-vidstack-player--md:not(.wt-vidstack-player--static) {
227
- overflow: visible;
227
+ display: flex;
228
+ position: fixed;
229
+ top: 0;
230
+ right: 0;
231
+ bottom: 0;
232
+ left: 0;
233
+ justify-content: center;
234
+ align-items: center;
235
+ z-index: var(--popup-wrapper-z-index);
236
+ background: var(--wt-popup-shadow-color);
228
237
  border-radius: 0;
238
+ overflow: visible;
239
+ }
240
+
241
+ .wt-vidstack-player--md:not(.wt-vidstack-player--static) .wt-vidstack-player__player {
242
+ flex-direction: column;
243
+ gap: var(--popup-sections-gap);
244
+ z-index: 1;
245
+ box-shadow: var(--elevation-10);
246
+ background: var(--wt-popup-background-color);
247
+ position: relative;
248
+ display: block;
249
+ padding: 0;
250
+ margin: 0;
251
+ max-height: var(--p-player-wrapper-md-height);
252
+ border-radius: var(--p-player-wrapper-md-border-radius);
253
+ overflow: hidden;
229
254
  }
230
255
 
231
256
  .wt-vidstack-player--lg {
@@ -211,6 +211,14 @@ const {
211
211
  closeDelete,
212
212
  } = useDeleteConfirmationPopup();
213
213
 
214
+ const tabFilters = computed(() =>
215
+ filtersManager.value.getAllValues({
216
+ exclude: [
217
+ props.entityIdKey,
218
+ ],
219
+ }),
220
+ );
221
+
214
222
  const {
215
223
  showEmpty,
216
224
  image: imageEmpty,
@@ -218,7 +226,7 @@ const {
218
226
  } = useTableEmpty({
219
227
  dataList,
220
228
  error,
221
- filters: computed(() => filtersManager.value.getAllValues()),
229
+ filters: tabFilters.value,
222
230
  isLoading,
223
231
  });
224
232
 
@@ -0,0 +1,34 @@
1
+ import { createPinia, setActivePinia, storeToRefs } from 'pinia';
2
+ import { beforeEach, describe, expect, it, vi } from 'vitest';
3
+
4
+ import { createUserinfoStore } from '../userinfoStore';
5
+
6
+ describe('UserinfoAccessControl', () => {
7
+ let useUserinfoStore: ReturnType<typeof createUserinfoStore>;
8
+
9
+ beforeEach(() => {
10
+ const pinia = createPinia();
11
+ setActivePinia(pinia);
12
+ useUserinfoStore = createUserinfoStore();
13
+ });
14
+
15
+ it('should be defined', async () => {
16
+ vi.mock(import('../../api/UserinfoAPI'), () => ({
17
+ getSession: vi.fn().mockResolvedValue({
18
+ userId: 1,
19
+ username: 'test',
20
+ permissions: [],
21
+ scope: [],
22
+ access: {},
23
+ license: [],
24
+ }),
25
+ getUiVisibilityAccess: vi.fn().mockResolvedValue({}),
26
+ }));
27
+ const userinfoStore = useUserinfoStore();
28
+ const { initialize } = userinfoStore;
29
+ const { userId } = storeToRefs(userinfoStore);
30
+ await initialize();
31
+
32
+ expect(userId.value).toBe(1);
33
+ });
34
+ });
@@ -3,8 +3,7 @@ import { beforeEach, describe, expect, it } from 'vitest';
3
3
  import { createApp, h } from 'vue';
4
4
  import { createRouter, createWebHistory, type Router } from 'vue-router';
5
5
 
6
- import { AdminSections, WtApplication, WtObject } from '../../../../../enums';
7
- import { CrudGlobalAction } from '../../enums';
6
+ import { AdminSections, WtApplication, WtObject } from '../../../../enums';
8
7
  import { createUserAccessStore } from '../accessStore';
9
8
 
10
9
  describe('AccessStore', () => {
@@ -25,6 +24,7 @@ describe('AccessStore', () => {
25
24
  name: 'users',
26
25
  component: () => h('div', 'users'),
27
26
  meta: {
27
+ WtApplication: WtApplication.Admin,
28
28
  WtObject: WtObject.User,
29
29
  UiSection: AdminSections.Users,
30
30
  },
@@ -48,6 +48,7 @@ describe('AccessStore', () => {
48
48
  permissions: [],
49
49
  scope: [],
50
50
  access: {},
51
+ license: [],
51
52
  });
52
53
 
53
54
  await router.push({
@@ -59,26 +60,6 @@ describe('AccessStore', () => {
59
60
  expect(router.currentRoute.value.name).not.toBe('users');
60
61
  });
61
62
 
62
- it('allows route access if has global permission', async () => {
63
- const { initialize, routeAccessGuard } = useAccessStore();
64
- router.beforeEach(routeAccessGuard);
65
-
66
- initialize({
67
- permissions: [
68
- {
69
- id: CrudGlobalAction.Read,
70
- },
71
- ],
72
- scope: [],
73
- access: {},
74
- });
75
-
76
- await router.push({
77
- name: 'users',
78
- });
79
- expect(router.currentRoute.value.name).toBe('users');
80
- });
81
-
82
63
  it('allows route access if has scope permission, app visibility and section visibility', async () => {
83
64
  const { initialize, routeAccessGuard } = useAccessStore();
84
65
  router.beforeEach(routeAccessGuard);
@@ -99,6 +80,7 @@ describe('AccessStore', () => {
99
80
  },
100
81
  },
101
82
  },
83
+ license: [],
102
84
  });
103
85
 
104
86
  await router.push({
@@ -127,6 +109,7 @@ describe('AccessStore', () => {
127
109
  },
128
110
  },
129
111
  },
112
+ license: [],
130
113
  });
131
114
 
132
115
  await router.push({
@@ -155,6 +138,7 @@ describe('AccessStore', () => {
155
138
  },
156
139
  },
157
140
  },
141
+ license: [],
158
142
  });
159
143
 
160
144
  await router.push({