@webitel/ui-sdk 26.4.32 → 26.4.34

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 (64) hide show
  1. package/dist/{index-Cm3e6GRo.js → index-7wsN-YZu.js} +1 -1
  2. package/dist/{index-CWYU_mwG.js → index-xIzFQNd0.js} +1 -1
  3. package/dist/{install-MeHxIEWi.js → install-D_goYtnz.js} +1653 -1650
  4. package/dist/{isObject-D71pqbIt.js → isObject-Gt5Jm-Ug.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 +299 -256
  8. package/dist/{useVidstackSrc-CpHWbv6g.js → useVidstackSrc-CTzsUo62.js} +1 -1
  9. package/dist/{vidstack-Bq6c3Bam-Bt_4I4OY.js → vidstack-Bq6c3Bam-BhMf-ZTn.js} +3 -3
  10. package/dist/{vidstack-D2pY00kU-TAqIAVUC.js → vidstack-D2pY00kU-gmAgDRVT.js} +3 -3
  11. package/dist/{vidstack-DDXt6fpN-BwFa-8yL.js → vidstack-DDXt6fpN-CmHiuC9m.js} +2 -2
  12. package/dist/{vidstack-D_-9AA6_-Fj0XhDLk.js → vidstack-D_-9AA6_-BGfLCdlb.js} +2 -2
  13. package/dist/{vidstack-DqAw8m9J-B_83AagG.js → vidstack-DqAw8m9J-DO1SEzrd.js} +1 -1
  14. package/dist/{vidstack-audio-_sHFibxB.js → vidstack-audio-Bk1wmJYd.js} +2 -2
  15. package/dist/{vidstack-dash-osW7_t7U.js → vidstack-dash-fN-vPQlr.js} +4 -4
  16. package/dist/{vidstack-google-cast-Dojpp59m.js → vidstack-google-cast-DzXyoIrl.js} +4 -4
  17. package/dist/{vidstack-hls-DXkSTucY.js → vidstack-hls-BvsDlNoZ.js} +4 -4
  18. package/dist/{vidstack-video-C7Qptkzg.js → vidstack-video-DVWLXMbZ.js} +3 -3
  19. package/dist/{vidstack-vimeo-CeaMORm2.js → vidstack-vimeo-C43vDg2R.js} +4 -4
  20. package/dist/{vidstack-youtube-BdX6H3uU.js → vidstack-youtube-BqjBo21Z.js} +3 -3
  21. package/dist/{wt-action-bar-CBibsTjl.js → wt-action-bar-C3ZOub4E.js} +1 -1
  22. package/dist/{wt-button-select-Pons2KxM.js → wt-button-select-cHYjfQdz.js} +1 -1
  23. package/dist/{wt-chat-emoji-gtRYtqkJ.js → wt-chat-emoji-CI3V_BeW.js} +2 -2
  24. package/dist/{wt-confirm-dialog-C-zIlk7t.js → wt-confirm-dialog-cSeWX-p6.js} +1 -1
  25. package/dist/{wt-context-menu-gqhg9Dut.js → wt-context-menu-DLz_SzEn.js} +1 -1
  26. package/dist/{wt-copy-action-q5aQb8MF.js → wt-copy-action-B8UQn0Ex.js} +1 -1
  27. package/dist/{wt-datepicker-DpDI_kB8.js → wt-datepicker-BghFL7dG.js} +1 -1
  28. package/dist/{wt-display-chip-items-mlhCN3fk.js → wt-display-chip-items-BuPaJqOp.js} +1 -1
  29. package/dist/{wt-dual-panel-BsgUBc28.js → wt-dual-panel-DSg_9Lq6.js} +1 -1
  30. package/dist/{wt-dummy-BJqC03G2.js → wt-dummy-DztLsixT.js} +1 -1
  31. package/dist/{wt-error-page-fD1n6Ca8.js → wt-error-page-DdMotrHk.js} +1 -1
  32. package/dist/{wt-expansion-card-BA4S2ek-.js → wt-expansion-card-DY8qL9Al.js} +1 -1
  33. package/dist/{wt-expansion-panel-z2cHIrtf.js → wt-expansion-panel-CTTDEN7q.js} +1 -1
  34. package/dist/{wt-filters-panel-wrapper-CMaOQ4qA.js → wt-filters-panel-wrapper-DdcIsO1N.js} +1 -1
  35. package/dist/{wt-galleria-BM3Xor8E.js → wt-galleria-CSbm0shh.js} +1 -1
  36. package/dist/wt-inline-add-panel-C_UyCvRw.js +49 -0
  37. package/dist/{wt-navigation-menu-C5TQqfjM.js → wt-navigation-menu-CfWKguu2.js} +1 -1
  38. package/dist/{wt-notifications-bar-Coqv4RKY.js → wt-notifications-bar-Cgu2wc9v.js} +2 -2
  39. package/dist/{wt-pagination-C7XbmBD5.js → wt-pagination-DN335p2t.js} +1 -1
  40. package/dist/{wt-player-DVXm-whp.js → wt-player-CnJGUlag.js} +2 -2
  41. package/dist/{wt-screen-recordings-action-Bs5d5Qza.js → wt-screen-recordings-action-BcEdGu6w.js} +1 -1
  42. package/dist/{wt-search-bar-Q7WOxr_e.js → wt-search-bar-u8SuElvI.js} +1 -1
  43. package/dist/{wt-selection-popup-XSUoyYXq.js → wt-selection-popup-BB7pO3iT.js} +1 -1
  44. package/dist/{wt-start-page-DSLIDt4I.js → wt-start-page-DdRpXVdV.js} +1 -1
  45. package/dist/{wt-status-select-k7fT8EML.js → wt-status-select-GO0gtD2B.js} +1 -1
  46. package/dist/{wt-stepper-B8hTikvF.js → wt-stepper-DbaiOlK9.js} +1 -1
  47. package/dist/{wt-table-CTQFqBOY.js → wt-table-CAVQW_vc.js} +1 -1
  48. package/dist/{wt-table-actions-BpjPRhUw.js → wt-table-actions-DrT2ZxPE.js} +1 -1
  49. package/dist/{wt-table-column-select-Rxr-d2pp.js → wt-table-column-select-HH02vVeu.js} +2 -2
  50. package/dist/{wt-tabs-DJ64mvrE.js → wt-tabs-B7kjsIG-.js} +1 -1
  51. package/dist/{wt-tags-input-CTp5WHMb.js → wt-tags-input-C7PwjLAR.js} +2 -2
  52. package/dist/{wt-timepicker-NAD78264.js → wt-timepicker-CjBjH-wE.js} +1 -1
  53. package/dist/{wt-tree-wViLtwUK.js → wt-tree-X0IBoelv.js} +2 -2
  54. package/dist/{wt-tree-table-Cz4fvtT7.js → wt-tree-table-DQkfKejv.js} +1 -1
  55. package/dist/{wt-type-extension-value-input-DlAUGobl.js → wt-type-extension-value-input-D6qSoXP6.js} +1208 -361
  56. package/dist/{wt-vidstack-player-1ALWyNaS.js → wt-vidstack-player-DJVlp2Go.js} +10 -10
  57. package/package.json +1 -1
  58. package/src/components/index.js +6 -0
  59. package/src/components/wt-inline-add-panel/__tests__/WtInlineAddPanel.spec.js +70 -0
  60. package/src/components/wt-inline-add-panel/wt-inline-add-panel.vue +69 -0
  61. package/src/enums/TypesExportedSettings/TypesExportedSettings.enum.js +1 -1
  62. package/types/components/wt-inline-add-panel/__tests__/WtInlineAddPanel.spec.d.ts +1 -0
  63. package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +26 -0
  64. package/types/enums/TypesExportedSettings/TypesExportedSettings.enum.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as lt, inject as ye, createElementBlock as ft, openBlock as G, normalizeClass as be, unref as ot, createElementVNode as at, renderSlot as pt, createVNode as U, useTemplateRef as _i, onMounted as Ii, onBeforeUnmount as Vi, createBlock as Ut, createCommentVNode as Kt, toDisplayString as Di, createSlots as Ds, withCtx as Qt, resolveComponent as Ri, ref as us, provide as Oi, toRefs as Ni } from "vue";
2
- import { a as q, c as gt, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as te, g as Rs, E as Os, D as L, h as Q, o as P, j as Hi, k as f, m as l, n as M, p as Ns, q as Fi, r as he, t as W, V as J, v as w, C as b, S as yt, w as Vt, x as p, y as rt, z, I as Hs, A as Bi, B as Gi, F as tt, G as Ge, H as Fs, J as ps, K as Ue, L as Bs, M as kt, N as Ke, O as ce, P as Ui, Q as xt, R as Ki, U as Qi, W as Wi, X as zi, Y as ji, Z as Yi, _ as Xi, $ as Ji, a0 as Zi, a1 as Gs, a2 as T, a3 as _, a4 as ue, a5 as ta, a6 as Dt, a7 as K, a8 as ea, a9 as sa, aa as ia, ab as aa, ac as ms, ad as na, ae as ra, af as v, ag as y, ah as oa, ai as ha, T as la, u as da } from "./useVidstackSrc-CpHWbv6g.js";
3
- import { T as ca, U as ua, V as pa, X as ma, _ as dt, Q as jt, Y as fa, C as Y } from "./install-MeHxIEWi.js";
2
+ import { a as q, c as gt, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as te, g as Rs, E as Os, D as L, h as Q, o as P, j as Hi, k as f, m as l, n as M, p as Ns, q as Fi, r as he, t as W, V as J, v as w, C as b, S as yt, w as Vt, x as p, y as rt, z, I as Hs, A as Bi, B as Gi, F as tt, G as Ge, H as Fs, J as ps, K as Ue, L as Bs, M as kt, N as Ke, O as ce, P as Ui, Q as xt, R as Ki, U as Qi, W as Wi, X as zi, Y as ji, Z as Yi, _ as Xi, $ as Ji, a0 as Zi, a1 as Gs, a2 as T, a3 as _, a4 as ue, a5 as ta, a6 as Dt, a7 as K, a8 as ea, a9 as sa, aa as ia, ab as aa, ac as ms, ad as na, ae as ra, af as v, ag as y, ah as oa, ai as ha, T as la, u as da } from "./useVidstackSrc-CTzsUo62.js";
3
+ import { T as ca, U as ua, V as pa, X as ma, _ as dt, Q as jt, Y as fa, C as Y } from "./install-D_goYtnz.js";
4
4
  import { _ as ga } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
5
5
  const Us = gt();
6
6
  function $() {
@@ -2070,7 +2070,7 @@ class un {
2070
2070
  return "audio";
2071
2071
  }
2072
2072
  async load(t) {
2073
- return new (await import("./vidstack-audio-_sHFibxB.js")).AudioProvider(this.target, t);
2073
+ return new (await import("./vidstack-audio-Bk1wmJYd.js")).AudioProvider(this.target, t);
2074
2074
  }
2075
2075
  }
2076
2076
  class je {
@@ -2083,7 +2083,7 @@ class je {
2083
2083
  return "video";
2084
2084
  }
2085
2085
  async load(t) {
2086
- return new (await import("./vidstack-video-C7Qptkzg.js")).VideoProvider(this.target, t);
2086
+ return new (await import("./vidstack-video-DVWLXMbZ.js")).VideoProvider(this.target, t);
2087
2087
  }
2088
2088
  }
2089
2089
  class Ye extends je {
@@ -2093,7 +2093,7 @@ class Ye extends je {
2093
2093
  return Ye.supported && Ge(t);
2094
2094
  }
2095
2095
  async load(t) {
2096
- return new (await import("./vidstack-hls-DXkSTucY.js")).HLSProvider(this.target, t);
2096
+ return new (await import("./vidstack-hls-BvsDlNoZ.js")).HLSProvider(this.target, t);
2097
2097
  }
2098
2098
  }
2099
2099
  class Xe extends je {
@@ -2103,7 +2103,7 @@ class Xe extends je {
2103
2103
  return Xe.supported && Ue(t);
2104
2104
  }
2105
2105
  async load(t) {
2106
- return new (await import("./vidstack-dash-osW7_t7U.js")).DASHProvider(this.target, t);
2106
+ return new (await import("./vidstack-dash-fN-vPQlr.js")).DASHProvider(this.target, t);
2107
2107
  }
2108
2108
  }
2109
2109
  class pn {
@@ -2125,7 +2125,7 @@ class pn {
2125
2125
  return "video";
2126
2126
  }
2127
2127
  async load(t) {
2128
- return new (await import("./vidstack-vimeo-CeaMORm2.js")).VimeoProvider(this.target, t);
2128
+ return new (await import("./vidstack-vimeo-C43vDg2R.js")).VimeoProvider(this.target, t);
2129
2129
  }
2130
2130
  async loadPoster(t, e, s) {
2131
2131
  const { resolveVimeoVideoId: i, getVimeoVideoInfo: n } = await import("./vidstack-krOAtKMi-C50BTxmn.js");
@@ -2157,7 +2157,7 @@ class mn {
2157
2157
  return "video";
2158
2158
  }
2159
2159
  async load(t) {
2160
- return new (await import("./vidstack-youtube-BdX6H3uU.js")).YouTubeProvider(this.target, t);
2160
+ return new (await import("./vidstack-youtube-BqjBo21Z.js")).YouTubeProvider(this.target, t);
2161
2161
  }
2162
2162
  async loadPoster(t, e, s) {
2163
2163
  const { findYouTubePoster: i, resolveYouTubeVideoId: n } = await import("./vidstack-Dm1xEU9Q-CXHNvShT.js"), r = S(t.src) && n(t.src);
@@ -2625,7 +2625,7 @@ class vn extends Ct {
2625
2625
  throw i.code = "CAST_NOT_AVAILABLE", i;
2626
2626
  }
2627
2627
  if (ee("https://www.gstatic.com"), !this.#v) {
2628
- const i = await import("./vidstack-D2pY00kU-TAqIAVUC.js").then((n) => n.v);
2628
+ const i = await import("./vidstack-D2pY00kU-gmAgDRVT.js").then((n) => n.v);
2629
2629
  this.#v = new i.GoogleCastLoader();
2630
2630
  }
2631
2631
  await this.#v.prompt(this.#s), t && this.#e.queue.enqueue("media-google-cast-request", t);
@@ -8022,7 +8022,7 @@ class Lr extends v(HTMLElement, ai) {
8022
8022
  if (this.#e?.classList.contains("vds-google-cast"))
8023
8023
  return this.#e;
8024
8024
  const t = document.createElement("div");
8025
- return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-Fj0XhDLk.js").then(({ insertContent: e }) => {
8025
+ return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-BGfLCdlb.js").then(({ insertContent: e }) => {
8026
8026
  e(t, this.#t.$state);
8027
8027
  }), t;
8028
8028
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.4.32",
3
+ "version": "26.4.34",
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",
@@ -162,6 +162,10 @@ const WtScreenRecordingsAction = defineAsyncComponent(
162
162
  ),
163
163
  );
164
164
 
165
+ const WtInlineAddPanel = defineAsyncComponent(
166
+ () => import('./wt-inline-add-panel/wt-inline-add-panel.vue'),
167
+ );
168
+
165
169
  const Components = {
166
170
  WtActionBar,
167
171
  WtImage,
@@ -243,6 +247,7 @@ const Components = {
243
247
  WtExpansionCard,
244
248
  WtDatetimeText,
245
249
  WtScreenRecordingsAction,
250
+ WtInlineAddPanel,
246
251
  };
247
252
 
248
253
  export {
@@ -281,6 +286,7 @@ export {
281
286
  WtIconBtn,
282
287
  WtImage,
283
288
  WtIndicator,
289
+ WtInlineAddPanel,
284
290
  WtInputNumber,
285
291
  WtInputText,
286
292
  WtIntersectionObserver,
@@ -0,0 +1,70 @@
1
+ import { shallowMount } from '@vue/test-utils';
2
+
3
+ import WtInlineAddPanel from '../wt-inline-add-panel.vue';
4
+
5
+ describe('WtInlineAddPanel', () => {
6
+ it('renders a component', () => {
7
+ const wrapper = shallowMount(WtInlineAddPanel);
8
+ expect(wrapper.classes('wt-inline-add-panel')).toBe(true);
9
+ });
10
+
11
+ it('renders default direction class "row"', () => {
12
+ const wrapper = shallowMount(WtInlineAddPanel);
13
+ expect(wrapper.classes('wt-inline-add-panel--row')).toBe(true);
14
+ });
15
+
16
+ it('renders "column" direction class when direction prop is "column"', () => {
17
+ const wrapper = shallowMount(WtInlineAddPanel, {
18
+ props: {
19
+ direction: 'column',
20
+ },
21
+ });
22
+ expect(wrapper.classes('wt-inline-add-panel--column')).toBe(true);
23
+ });
24
+
25
+ it('renders content via default slot', () => {
26
+ const content = 'slot content';
27
+ const wrapper = shallowMount(WtInlineAddPanel, {
28
+ slots: {
29
+ default: content,
30
+ },
31
+ });
32
+ expect(wrapper.text()).toContain(content);
33
+ });
34
+
35
+ it('emits "submit" on submit button click', async () => {
36
+ const wrapper = shallowMount(WtInlineAddPanel);
37
+ const buttons = wrapper.findAllComponents({
38
+ name: 'WtButton',
39
+ });
40
+ await buttons[0].trigger('click');
41
+ expect(wrapper.emitted('submit')).toBeTruthy();
42
+ });
43
+
44
+ it('emits "reset" on close button click', async () => {
45
+ const wrapper = shallowMount(WtInlineAddPanel);
46
+ const buttons = wrapper.findAllComponents({
47
+ name: 'WtButton',
48
+ });
49
+ await buttons[1].trigger('click');
50
+ expect(wrapper.emitted('reset')).toBeTruthy();
51
+ });
52
+
53
+ it('disables submit button when disabledAddAction is true', () => {
54
+ const wrapper = shallowMount(WtInlineAddPanel, {
55
+ props: {
56
+ disabledAddAction: true,
57
+ },
58
+ });
59
+ const submitButton = wrapper.findAllComponents({
60
+ name: 'WtButton',
61
+ })[0];
62
+ expect(submitButton.props('disabled')).toBe(true);
63
+ });
64
+
65
+ it('emits "submit" on form submit', async () => {
66
+ const wrapper = shallowMount(WtInlineAddPanel);
67
+ await wrapper.find('form').trigger('submit');
68
+ expect(wrapper.emitted('submit')).toBeTruthy();
69
+ });
70
+ });
@@ -0,0 +1,69 @@
1
+ <template>
2
+ <form
3
+ class="wt-inline-add-panel"
4
+ :class="[`wt-inline-add-panel--${props.direction}`]"
5
+ @submit.prevent="submit"
6
+ >
7
+ <slot />
8
+ <div class="wt-inline-add-panel__actions">
9
+ <wt-button
10
+ :disabled="props.disabledAddAction"
11
+ icon="tick"
12
+ color="secondary"
13
+ outlined
14
+ @click="submit"
15
+ />
16
+ <wt-button
17
+ icon="close"
18
+ outlined
19
+ color="secondary"
20
+ @click="reset"
21
+ />
22
+ </div>
23
+
24
+ </form>
25
+ </template>
26
+
27
+ <script lang="ts" setup>
28
+ interface WtInlineAddPanel {
29
+ disabledAddAction?: boolean;
30
+ direction?: 'row' | 'column';
31
+ }
32
+
33
+ const props = withDefaults(defineProps<WtInlineAddPanel>(), {
34
+ direction: 'row',
35
+ disabledAddAction: false,
36
+ });
37
+
38
+ const emit = defineEmits([
39
+ 'submit',
40
+ 'reset',
41
+ ]);
42
+
43
+ function submit() {
44
+ emit('submit');
45
+ }
46
+
47
+ function reset() {
48
+ emit('reset');
49
+ }
50
+ </script>
51
+
52
+ <style scoped>
53
+ .wt-inline-add-panel {
54
+ display: flex;
55
+ width: 100%;
56
+ gap: var(--spacing-xs);
57
+ }
58
+
59
+ .wt-inline-add-panel__actions {
60
+ display: flex;
61
+ align-items: flex-end;
62
+ justify-content: center;
63
+ gap: var(--spacing-xs);
64
+ }
65
+
66
+ .wt-inline-add-panel--column {
67
+ flex-direction: column;
68
+ }
69
+ </style>
@@ -1,4 +1,4 @@
1
1
  export default Object.freeze({
2
2
  CSV: 'csv',
3
- XLS: 'xls',
3
+ XLSX: 'xlsx',
4
4
  });
@@ -0,0 +1,26 @@
1
+ interface WtInlineAddPanel {
2
+ disabledAddAction?: boolean;
3
+ direction?: 'row' | 'column';
4
+ }
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<WtInlineAddPanel, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ submit: (...args: any[]) => void;
11
+ reset: (...args: any[]) => void;
12
+ }, string, import("vue").PublicProps, Readonly<WtInlineAddPanel> & Readonly<{
13
+ onSubmit?: (...args: any[]) => any;
14
+ onReset?: (...args: any[]) => any;
15
+ }>, {
16
+ disabledAddAction: boolean;
17
+ direction: "row" | "column";
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -1,5 +1,5 @@
1
1
  declare const _default: Readonly<{
2
2
  CSV: "csv";
3
- XLS: "xls";
3
+ XLSX: "xlsx";
4
4
  }>;
5
5
  export default _default;