@webitel/ui-sdk 26.6.33 → 26.6.35

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 (177) hide show
  1. package/dist/AgentStatus.enum-C3IGHtvR.js +9 -0
  2. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  3. package/dist/caseConverters-DXegZoCt.js +27 -0
  4. package/dist/chunk-CY3AvKd6.js +20 -0
  5. package/dist/clients-A6MHYfOX.js +36118 -0
  6. package/dist/components-B4aAS7wB.js +5391 -0
  7. package/dist/composables-DnDH-KUv.js +263 -0
  8. package/dist/convertDuration-1K7fuEpO.js +8 -0
  9. package/dist/debounce-DrmECuJ2.js +128 -0
  10. package/dist/deep-copy-CQw5yeEH.js +41 -0
  11. package/dist/displayText-CtaxzaBz.js +3 -0
  12. package/dist/dist-05Bf47Wg.js +87 -0
  13. package/dist/dist-BYiYpK00.js +7 -0
  14. package/dist/dist-Dz55hlwp.js +1371 -0
  15. package/dist/engineCallFileType-D7QVFOac.js +11 -0
  16. package/dist/enums-pbYAJNeb.js +158 -0
  17. package/dist/errors-SUXKojVW.js +69 -0
  18. package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
  19. package/dist/generateInstance-ppTIeLX4.js +2582 -0
  20. package/dist/isObject-Dgs_L5xI.js +11 -0
  21. package/dist/logger-hl3ueNok.js +47 -0
  22. package/dist/prod-Cp0BjuxI.js +775 -0
  23. package/dist/prod-DSuxcp5t.js +2 -0
  24. package/dist/side-channel-Cyte-MzW.js +833 -0
  25. package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
  26. package/dist/srt-parser-DdH5U08c.js +21 -0
  27. package/dist/ssa-parser-Bjs7yDD1.js +184 -0
  28. package/dist/ui-sdk.css +2 -1
  29. package/dist/ui-sdk.js +34541 -4
  30. package/dist/ui-sdk.umd.cjs +7740 -7606
  31. package/dist/useExpansion-DVdIpoOn.js +24 -0
  32. package/dist/useValidation-DG0tifBv.js +37 -0
  33. package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
  34. package/dist/useWtTable-tqmVOvve.js +12 -0
  35. package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
  36. package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
  37. package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
  38. package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
  39. package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
  40. package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
  41. package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
  42. package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
  43. package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
  44. package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
  45. package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
  46. package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
  47. package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
  48. package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
  49. package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
  50. package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
  51. package/dist/vidstack-audio-B58bvsna.js +23 -0
  52. package/dist/vidstack-dash-CX-LTHx3.js +332 -0
  53. package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
  54. package/dist/vidstack-hls-CLzdTFu6.js +269 -0
  55. package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
  56. package/dist/vidstack-video-XtP8iTBc.js +151 -0
  57. package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
  58. package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
  59. package/dist/vue-i18n-B8Px6VcD.js +2201 -0
  60. package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
  61. package/dist/wt-button-DENbrKdy.js +785 -0
  62. package/dist/wt-button-select-BnRHgJ4i.js +80 -0
  63. package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
  64. package/dist/wt-chat-emoji-wdBt1XzD.js +2208 -0
  65. package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
  66. package/dist/wt-context-menu-yW52oF-2.js +89 -0
  67. package/dist/wt-copy-action-d9gVzAsB.js +38 -0
  68. package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
  69. package/dist/wt-display-chip-items-CvMM8WMk.js +34 -0
  70. package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
  71. package/dist/wt-dummy-CLjhRWZ6.js +59 -0
  72. package/dist/wt-error-page-vhu4lIyF.js +62 -0
  73. package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
  74. package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
  75. package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
  76. package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
  77. package/dist/wt-galleria-CWXKuZTD.js +224 -0
  78. package/dist/wt-icon-action-CQlZHMDB.js +100 -0
  79. package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
  80. package/dist/wt-icon-pxO7IjwV.js +1026 -0
  81. package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
  82. package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
  83. package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
  84. package/dist/wt-page-header-CDbd4aOh.js +59 -0
  85. package/dist/wt-pagination-BA_PZPIE.js +94 -0
  86. package/dist/wt-player-uidPXSTe.js +287 -0
  87. package/dist/wt-popover-CJZH3wMl.js +98 -0
  88. package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
  89. package/dist/wt-search-bar-CWZdvAOf.js +123 -0
  90. package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
  91. package/dist/wt-send-message-popup-D0GJMGni.js +77 -0
  92. package/dist/wt-slider-BS3SoGht.js +68 -0
  93. package/dist/wt-start-page-eN1PEokc.js +86 -0
  94. package/dist/wt-status-select-A5t6Vjm4.js +101 -0
  95. package/dist/wt-stepper-B6zpd1Uh.js +41 -0
  96. package/dist/wt-table-D0FynxIE.js +364 -0
  97. package/dist/wt-table-actions-4-peSVkc.js +63 -0
  98. package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
  99. package/dist/wt-tabs-DuOgj-lZ.js +60 -0
  100. package/dist/wt-time-input-CO2cop3y.js +62 -0
  101. package/dist/wt-timepicker-BltFF1QD.js +145 -0
  102. package/dist/wt-tree-ZyoPrNOl.js +1206 -0
  103. package/dist/wt-tree-table-MLET4gIv.js +221 -0
  104. package/dist/wt-type-extension-value-input-fnNxJLsq.js +104 -0
  105. package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
  106. package/package.json +5 -5
  107. package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
  108. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +2 -2
  109. package/dist/contacts-C-FnP7wP.js +0 -49654
  110. package/dist/displayText-Cbh4IOfM.js +0 -5
  111. package/dist/engineCallFileType-yaadA7-2.js +0 -8
  112. package/dist/errors-CTL-RV3B.js +0 -70
  113. package/dist/index-BBLSS-t1.js +0 -50
  114. package/dist/install-DOSuNFtE.js +0 -53489
  115. package/dist/isObject-CMQJaQIp.js +0 -28
  116. package/dist/prod-BoQuiIB3.js +0 -973
  117. package/dist/srt-parser-CsN7bp5E.js +0 -26
  118. package/dist/ssa-parser-BJOOPeQF.js +0 -200
  119. package/dist/useExpansion-BrQ40HiR.js +0 -24
  120. package/dist/useVidstackSrc-MfWBq7Ef.js +0 -1341
  121. package/dist/vidstack-Bq6c3Bam-C_T8PkmG.js +0 -426
  122. package/dist/vidstack-D2pY00kU-CphVKcJq.js +0 -136
  123. package/dist/vidstack-DDXt6fpN-2lNfj8Ca.js +0 -51
  124. package/dist/vidstack-D_-9AA6_-Cyl8HzDm.js +0 -21
  125. package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
  126. package/dist/vidstack-DqAw8m9J-C2p9K7Db.js +0 -22
  127. package/dist/vidstack-audio-BL-Sa_Ap.js +0 -28
  128. package/dist/vidstack-dash-mKhgfurw.js +0 -393
  129. package/dist/vidstack-google-cast-BGqSw2iP.js +0 -383
  130. package/dist/vidstack-hls-U5fTV3hj.js +0 -310
  131. package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
  132. package/dist/vidstack-video-Bxf7KDne.js +0 -164
  133. package/dist/vidstack-vimeo-MngSXtDR.js +0 -452
  134. package/dist/vidstack-youtube-Ctg91VeX.js +0 -233
  135. package/dist/wt-action-bar-DaDcqA4n.js +0 -102
  136. package/dist/wt-button-select-q_BITVhH.js +0 -105
  137. package/dist/wt-call-media-action-BkBcZN17.js +0 -60
  138. package/dist/wt-chat-emoji-BGuSgYi3.js +0 -2909
  139. package/dist/wt-confirm-dialog-C7-74ROm.js +0 -92
  140. package/dist/wt-context-menu-CzAHMaOj.js +0 -104
  141. package/dist/wt-copy-action-BpckAObd.js +0 -60
  142. package/dist/wt-datepicker-DauMnf2r.js +0 -5660
  143. package/dist/wt-display-chip-items-zcqxH89_.js +0 -47
  144. package/dist/wt-dual-panel-Cj79kJpk.js +0 -66
  145. package/dist/wt-dummy-BUHYAcsk.js +0 -104
  146. package/dist/wt-error-page-CNSqDA-o.js +0 -89
  147. package/dist/wt-expansion-card-CtcuXg6f.js +0 -56
  148. package/dist/wt-expansion-panel-BU2Hb-N2.js +0 -54
  149. package/dist/wt-filters-panel-wrapper-BlLlAixc.js +0 -75
  150. package/dist/wt-galleria-BQzGD6-3.js +0 -323
  151. package/dist/wt-inline-add-panel-fG58a6T3.js +0 -49
  152. package/dist/wt-navigation-menu-2ggfyrM_.js +0 -159
  153. package/dist/wt-notifications-bar-Epn_SA_R.js +0 -79
  154. package/dist/wt-page-header-DdsnoLgd.js +0 -115
  155. package/dist/wt-pagination-Byg79HfY.js +0 -144
  156. package/dist/wt-player-kjdJYVi3.js +0 -291
  157. package/dist/wt-popover-Di-7_rDL.js +0 -4
  158. package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
  159. package/dist/wt-screen-recordings-action-Z3x-gI0n.js +0 -54
  160. package/dist/wt-search-bar-CxwSi-Xo.js +0 -144
  161. package/dist/wt-selection-popup-MdCfrgcd.js +0 -109
  162. package/dist/wt-send-message-popup-DklTgoGj.js +0 -579
  163. package/dist/wt-slider-BEkw4KGp.js +0 -4
  164. package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
  165. package/dist/wt-start-page-B59KbWqX.js +0 -99
  166. package/dist/wt-status-select-hOAr_xBg.js +0 -138
  167. package/dist/wt-stepper-CMeW3d6N.js +0 -65
  168. package/dist/wt-table-C5CLtnK5.js +0 -426
  169. package/dist/wt-table-actions-DgAfy-dd.js +0 -79
  170. package/dist/wt-table-column-select-BK5rozpI.js +0 -128
  171. package/dist/wt-tabs-Bn6rSg0s.js +0 -74
  172. package/dist/wt-time-input-DYiW0ijt.js +0 -42
  173. package/dist/wt-timepicker-CkjoLwXC.js +0 -118
  174. package/dist/wt-tree-CCvr4TTF.js +0 -2777
  175. package/dist/wt-tree-table-BWmGF3rE.js +0 -285
  176. package/dist/wt-type-extension-value-input-q5286OSO.js +0 -121
  177. package/dist/wt-vidstack-player-CTWna35Q.js +0 -9093
@@ -1,233 +0,0 @@
1
- import { ab as p, v as y, m, d as f, f as g, aa as b, h as d, ai as v } from "./useVidstackSrc-MfWBq7Ef.js";
2
- import { p as k, e as u } from "./wt-vidstack-player-CTWna35Q.js";
3
- import { E as P } from "./vidstack-DDXt6fpN-2lNfj8Ca.js";
4
- import { resolveYouTubeVideoId as w } from "./vidstack-Dm1xEU9Q-CXHNvShT.js";
5
- const r = {
6
- Ended: 0,
7
- Playing: 1,
8
- Paused: 2,
9
- Buffering: 3,
10
- Cued: 5
11
- };
12
- class R extends P {
13
- $$PROVIDER_TYPE = "YOUTUBE";
14
- scope = p();
15
- #e;
16
- #a = y("");
17
- #o = -1;
18
- #d = null;
19
- #r = -1;
20
- #i = !1;
21
- #s = /* @__PURE__ */ new Map();
22
- constructor(e, t) {
23
- super(e), this.#e = t;
24
- }
25
- /**
26
- * Sets the player's interface language. The parameter value is an ISO 639-1 two-letter
27
- * language code or a fully specified locale. For example, fr and fr-ca are both valid values.
28
- * Other language input codes, such as IETF language tags (BCP 47) might also be handled properly.
29
- *
30
- * The interface language is used for tooltips in the player and also affects the default caption
31
- * track. Note that YouTube might select a different caption track language for a particular
32
- * user based on the user's individual language preferences and the availability of caption tracks.
33
- *
34
- * @defaultValue 'en'
35
- */
36
- language = "en";
37
- color = "red";
38
- /**
39
- * Whether cookies should be enabled on the embed. This is turned off by default to be
40
- * GDPR-compliant.
41
- *
42
- * @defaultValue `false`
43
- */
44
- cookies = !1;
45
- get currentSrc() {
46
- return this.#d;
47
- }
48
- get type() {
49
- return "youtube";
50
- }
51
- get videoId() {
52
- return this.#a();
53
- }
54
- preconnect() {
55
- k(this.getOrigin());
56
- }
57
- setup() {
58
- super.setup(), m(this.#c.bind(this)), this.#e.notify("provider-setup", this);
59
- }
60
- destroy() {
61
- this.#l();
62
- const e = "provider destroyed";
63
- for (const t of this.#s.values())
64
- for (const { reject: s } of t) s(e);
65
- this.#s.clear();
66
- }
67
- async play() {
68
- return this.#t("playVideo");
69
- }
70
- #v(e) {
71
- this.#n("playVideo")?.reject(e);
72
- }
73
- async pause() {
74
- return this.#t("pauseVideo");
75
- }
76
- #k(e) {
77
- this.#n("pauseVideo")?.reject(e);
78
- }
79
- setMuted(e) {
80
- e ? this.#t("mute") : this.#t("unMute");
81
- }
82
- setCurrentTime(e) {
83
- this.#t("seekTo", e), this.#e.notify("seeking", e);
84
- }
85
- setVolume(e) {
86
- this.#t("setVolume", e * 100);
87
- }
88
- setPlaybackRate(e) {
89
- this.#t("setPlaybackRate", e);
90
- }
91
- async loadSource(e) {
92
- if (!f(e.src)) {
93
- this.#d = null, this.#a.set("");
94
- return;
95
- }
96
- const t = w(e.src);
97
- this.#a.set(t ?? ""), this.#d = e;
98
- }
99
- getOrigin() {
100
- return this.cookies ? "https://www.youtube.com" : "https://www.youtube-nocookie.com";
101
- }
102
- #c() {
103
- this.#l();
104
- const e = this.#a();
105
- if (!e) {
106
- this.src.set("");
107
- return;
108
- }
109
- this.src.set(`${this.getOrigin()}/embed/${e}`), this.#e.notify("load-start");
110
- }
111
- buildParams() {
112
- const { keyDisabled: e } = this.#e.$props, { muted: t, playsInline: s, nativeControls: a } = this.#e.$state, i = a();
113
- return {
114
- rel: 0,
115
- autoplay: 0,
116
- cc_lang_pref: this.language,
117
- cc_load_policy: i ? 1 : void 0,
118
- color: this.color,
119
- controls: i ? 1 : 0,
120
- disablekb: !i || e() ? 1 : 0,
121
- enablejsapi: 1,
122
- fs: 1,
123
- hl: this.language,
124
- iv_load_policy: i ? 1 : 3,
125
- mute: t() ? 1 : 0,
126
- playsinline: s() ? 1 : 0
127
- };
128
- }
129
- #t(e, t) {
130
- let s = g(), a = this.#s.get(e);
131
- return a || this.#s.set(e, a = []), a.push(s), this.postMessage({
132
- event: "command",
133
- func: e,
134
- args: t ? [t] : void 0
135
- }), s.promise;
136
- }
137
- onLoad() {
138
- window.setTimeout(() => this.postMessage({ event: "listening" }), 100);
139
- }
140
- #p(e) {
141
- this.#e.notify("loaded-metadata"), this.#e.notify("loaded-data"), this.#e.delegate.ready(void 0, e);
142
- }
143
- #y(e) {
144
- this.#n("pauseVideo")?.resolve(), this.#e.notify("pause", void 0, e);
145
- }
146
- #m(e, t) {
147
- const { duration: s, realCurrentTime: a } = this.#e.$state, i = this.#o === r.Ended, o = i ? s() : e;
148
- this.#e.notify("time-change", o, t), !i && Math.abs(o - a()) > 1 && this.#e.notify("seeking", o, t);
149
- }
150
- #u(e, t, s) {
151
- const a = {
152
- buffered: new u(0, e),
153
- seekable: t
154
- };
155
- this.#e.notify("progress", a, s);
156
- const { seeking: i, realCurrentTime: o } = this.#e.$state;
157
- i() && e > o() && this.#h(s);
158
- }
159
- #h(e) {
160
- const { paused: t, realCurrentTime: s } = this.#e.$state;
161
- window.clearTimeout(this.#r), this.#r = window.setTimeout(
162
- () => {
163
- this.#e.notify("seeked", s(), e), this.#r = -1;
164
- },
165
- t() ? 100 : 0
166
- );
167
- }
168
- #f(e) {
169
- const { seeking: t } = this.#e.$state;
170
- t() && this.#h(e), this.#e.notify("pause", void 0, e), this.#e.notify("end", void 0, e);
171
- }
172
- #g(e, t) {
173
- const { paused: s, seeking: a } = this.#e.$state, i = e === r.Playing, o = e === r.Buffering, n = this.#b("playVideo"), h = s() && (o || i);
174
- if (o && this.#e.notify("waiting", void 0, t), a() && i && this.#h(t), this.#i && i) {
175
- this.pause(), this.#i = !1, this.setMuted(this.#e.$state.muted());
176
- return;
177
- }
178
- if (!n && h) {
179
- this.#i = !0, this.setMuted(!0);
180
- return;
181
- }
182
- switch (h && (this.#n("playVideo")?.resolve(), this.#e.notify("play", void 0, t)), e) {
183
- case r.Cued:
184
- this.#p(t);
185
- break;
186
- case r.Playing:
187
- this.#e.notify("playing", void 0, t);
188
- break;
189
- case r.Paused:
190
- this.#y(t);
191
- break;
192
- case r.Ended:
193
- this.#f(t);
194
- break;
195
- }
196
- this.#o = e;
197
- }
198
- onMessage({ info: e }, t) {
199
- if (!e) return;
200
- const { title: s, intrinsicDuration: a, playbackRate: i } = this.#e.$state;
201
- if (b(e.videoData) && e.videoData.title !== s() && this.#e.notify("title-change", e.videoData.title, t), d(e.duration) && e.duration !== a()) {
202
- if (d(e.videoLoadedFraction)) {
203
- const o = e.progressState?.loaded ?? e.videoLoadedFraction * e.duration, n = new u(0, e.duration);
204
- this.#u(o, n, t);
205
- }
206
- this.#e.notify("duration-change", e.duration, t);
207
- }
208
- if (d(e.playbackRate) && e.playbackRate !== i() && this.#e.notify("rate-change", e.playbackRate, t), e.progressState) {
209
- const { current: o, seekableStart: n, seekableEnd: h, loaded: c, duration: l } = e.progressState;
210
- this.#m(o, t), this.#u(c, new u(n, h), t), l !== a() && this.#e.notify("duration-change", l, t);
211
- }
212
- if (d(e.volume) && v(e.muted) && !this.#i) {
213
- const o = {
214
- muted: e.muted,
215
- volume: e.volume / 100
216
- };
217
- this.#e.notify("volume-change", o, t);
218
- }
219
- d(e.playerState) && e.playerState !== this.#o && this.#g(e.playerState, t);
220
- }
221
- #l() {
222
- this.#o = -1, this.#r = -1, this.#i = !1;
223
- }
224
- #n(e) {
225
- return this.#s.get(e)?.shift();
226
- }
227
- #b(e) {
228
- return !!this.#s.get(e)?.length;
229
- }
230
- }
231
- export {
232
- R as YouTubeProvider
233
- };
@@ -1,102 +0,0 @@
1
- import { computed as O, createElementBlock as u, openBlock as f, renderSlot as a, normalizeProps as i, guardReactiveProps as c, Fragment as S, renderList as D, createVNode as k, mergeProps as v, unref as y } from "vue";
2
- import { I as e, _ as g, a as C, k as $, S as h } from "./install-DOSuNFtE.js";
3
- const b = [
4
- e.ADD,
5
- e.ADD_CONTACT,
6
- e.COPY,
7
- e.DOWNLOAD_PDF,
8
- e.DOWNLOAD,
9
- e.UPLOAD,
10
- e.COLUMNS,
11
- e.VARIABLES,
12
- e.FILTERS,
13
- e.REFRESH,
14
- e.DELETE,
15
- e.SORT
16
- ], z = b, E = { class: "wt-action-bar" }, L = {
17
- __name: "wt-action-bar",
18
- props: {
19
- /**
20
- * [`'table'`, `'section'`]
21
- * */
22
- mode: {
23
- type: String,
24
- default: "table",
25
- validator: (t) => [
26
- "table",
27
- "section"
28
- ].includes(t)
29
- },
30
- /**
31
- * Not implemented
32
- */
33
- size: {
34
- type: String
35
- // default: 'md',
36
- // validator: (v) => ['sm', 'md', 'lg'].includes(v),
37
- },
38
- /**
39
- * Leave the default value for the mode only listed in includes prop
40
- */
41
- include: {
42
- type: Array,
43
- default: () => []
44
- },
45
- /**
46
- * Leave the default values for the mode, except for those in exclude prop
47
- */
48
- exclude: {
49
- type: Array,
50
- default: () => []
51
- },
52
- "sort:order": {
53
- type: String,
54
- default: null,
55
- required: !1,
56
- validator: (t) => Object.values(h).includes(t)
57
- },
58
- /**
59
- * Built dynamically on `disabled:[IconAction]` pattern for all available [IconActions](../../enums/IconAction/Readme.md).
60
- */
61
- disabled: {
62
- // Not implemented, but can be used to disable all actions
63
- type: Boolean,
64
- default: !1
65
- },
66
- ...Object.values(e).reduce((t, o) => (t[`disabled:${o}`] = {
67
- type: Boolean,
68
- default: !1
69
- }, t), {})
70
- },
71
- emits: [
72
- /**
73
- * click:IconAction
74
- */
75
- ...Object.values(e).map((t) => `click:${t}`)
76
- ],
77
- setup(t, { emit: o }) {
78
- const s = t, m = o, p = O(() => {
79
- const r = s.mode === "section" ? z : b;
80
- return s.include.length ? r.filter((l) => s.include.includes(l)) : s.exclude.length ? r.filter((l) => !s.exclude.includes(l)) : r;
81
- }), d = (r) => {
82
- m(`click:${r}`);
83
- }, A = (r) => r === e.SORT ? {
84
- "sort:order": s["sort:order"]
85
- } : {};
86
- return (r, l) => (f(), u("div", E, [
87
- a(r.$slots, "search-bar", i(c({ size: t.size })), void 0, !0),
88
- a(r.$slots, "default", i(c({ size: t.size })), void 0, !0),
89
- (f(!0), u(S, null, D(p.value, (n) => a(r.$slots, n, i(c({ action: n, size: t.size, onClick: () => d(n) })), () => [
90
- k(C, v(A(n), {
91
- action: n,
92
- disabled: s[`disabled:${y($)(n)}`]
93
- }, {
94
- onClick: (_) => d(n)
95
- }), null, 16, ["action", "disabled", "onClick"])
96
- ], !0)), 256))
97
- ]));
98
- }
99
- }, T = /* @__PURE__ */ g(L, [["__scopeId", "data-v-affcbbbe"]]);
100
- export {
101
- T as default
102
- };
@@ -1,105 +0,0 @@
1
- import { ref as y, useTemplateRef as C, resolveComponent as s, resolveDirective as g, withDirectives as S, createElementBlock as B, openBlock as $, createVNode as n, mergeProps as d, withCtx as i, renderSlot as x, normalizeClass as h } from "vue";
2
- import { _ as D } from "./install-DOSuNFtE.js";
3
- const O = {
4
- __name: "wt-button-select",
5
- props: {
6
- /**
7
- * See context-menu component docs
8
- */
9
- options: {
10
- type: Array,
11
- required: !0
12
- },
13
- /**
14
- * @values 'primary', 'secondary'
15
- * @example <wt-button color="secondary"></wt-button>
16
- */
17
- color: {
18
- type: String,
19
- default: "primary"
20
- },
21
- disabled: {
22
- type: Boolean,
23
- default: !1
24
- }
25
- },
26
- emits: [
27
- /**
28
- * @event click
29
- */
30
- "click",
31
- /**
32
- * Click on option in context-menu
33
- *
34
- * @event click:option
35
- *
36
- * @property {object} option clicked option object
37
- * @property {index} index clicked option index in options list
38
- */
39
- "click:option"
40
- ],
41
- setup(e, { emit: u }) {
42
- const b = u, o = y(!1), a = C("buttonSelect"), f = ({ option: t, index: l }) => {
43
- b("click:option", t, l), o.value = !1;
44
- }, m = () => {
45
- o.value = !1;
46
- }, w = (t, l) => {
47
- o.value = !o.value, t(l, a.value);
48
- };
49
- return (t, l) => {
50
- const r = s("wt-button"), v = s("wt-icon"), p = s("wt-context-menu"), _ = g("clickaway");
51
- return S(($(), B("div", {
52
- ref_key: "buttonSelect",
53
- ref: a,
54
- class: "wt-button-select"
55
- }, [
56
- n(r, d(t.$attrs, {
57
- color: e.color,
58
- disabled: e.disabled,
59
- class: "wt-button-select__button"
60
- }, {
61
- onClick: l[0] || (l[0] = (c) => t.$emit("click", c))
62
- }), {
63
- default: i(() => [
64
- x(t.$slots, "default", {}, void 0, !0)
65
- ], void 0, !0),
66
- _: 3
67
- }, 16, ["color", "disabled"]),
68
- n(p, {
69
- disabled: e.disabled,
70
- options: e.options,
71
- visible: o.value,
72
- "tooltip-triggers": [],
73
- onClick: f
74
- }, {
75
- activator: i(({ toggle: c, show: q }) => [
76
- n(r, d(t.$attrs, {
77
- color: e.color,
78
- disabled: e.disabled,
79
- loading: !1,
80
- class: "wt-button-select__select-btn"
81
- }, {
82
- onClick: (k) => w(c, k)
83
- }), {
84
- default: i(() => [
85
- n(v, {
86
- class: h([{ "wt-button-select__select-arrow--active": o.value }, "wt-button-select__select-arrow"]),
87
- color: e.color === "primary" ? "on-primary" : "default",
88
- disabled: e.disabled,
89
- icon: "arrow-down"
90
- }, null, 8, ["class", "color", "disabled"])
91
- ], void 0, !0),
92
- _: 1
93
- }, 16, ["color", "disabled", "onClick"])
94
- ]),
95
- _: 1
96
- }, 8, ["disabled", "options", "visible"])
97
- ])), [
98
- [_, m]
99
- ]);
100
- };
101
- }
102
- }, E = /* @__PURE__ */ D(O, [["__scopeId", "data-v-17b6dce6"]]);
103
- export {
104
- E as default
105
- };
@@ -1,60 +0,0 @@
1
- import { defineComponent as h, computed as i, resolveComponent as a, createBlock as m, openBlock as _, withCtx as u, createElementVNode as k, createVNode as I, createTextVNode as V, toDisplayString as N, createCommentVNode as T } from "vue";
2
- import { E as s } from "./engineCallFileType-yaadA7-2.js";
3
- import { _ as b } from "./install-DOSuNFtE.js";
4
- const E = { class: "wt-call-media-action__option" }, O = /* @__PURE__ */ h({
5
- __name: "wt-call-media-action",
6
- props: {
7
- files: {},
8
- playingFileId: { default: "" }
9
- },
10
- emits: ["play", "stop"],
11
- setup(p, { emit: v }) {
12
- const t = p, d = v, n = i(() => [
13
- ...t.files[s.FileTypeAudio] || [],
14
- ...t.files[s.FileTypeVideo] || []
15
- ]), w = i(
16
- () => t.files[s.FileTypeVideo] ? "preview-tag-video" : "play"
17
- ), f = i(
18
- () => n.value.some((e) => e.id === t.playingFileId)
19
- ), y = i(
20
- () => n.value.map(({ name: e, id: r, mimeType: o, type: c }) => ({
21
- text: e,
22
- id: r,
23
- mimeType: o,
24
- type: c,
25
- icon: o === "video/mp4" ? "preview-tag-video" : "preview-tag-audio"
26
- }))
27
- ), g = ({ option: e }) => {
28
- t.playingFileId === e.id ? d("stop") : d("play", e);
29
- };
30
- return (e, r) => {
31
- const o = a("wt-icon-btn"), c = a("wt-icon"), x = a("wt-context-menu");
32
- return _(), m(x, {
33
- class: "wt-call-media-action",
34
- options: y.value,
35
- "max-width": "400px",
36
- onClick: g
37
- }, {
38
- activator: u(({ toggle: l }) => [
39
- n.value.length ? (_(), m(o, {
40
- key: 0,
41
- icon: f.value ? "stop" : w.value,
42
- onClick: l
43
- }, null, 8, ["icon", "onClick"])) : T("", !0)
44
- ]),
45
- option: u(({ text: l, id: F, icon: C }) => [
46
- k("div", E, [
47
- I(c, {
48
- icon: F === p.playingFileId ? "stop" : C
49
- }, null, 8, ["icon"]),
50
- V(" " + N(l), 1)
51
- ])
52
- ]),
53
- _: 1
54
- }, 8, ["options"]);
55
- };
56
- }
57
- }), D = /* @__PURE__ */ b(O, [["__scopeId", "data-v-a6f7b638"]]);
58
- export {
59
- D as default
60
- };