@webitel/ui-sdk 26.8.75 → 26.8.76

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 (156) hide show
  1. package/dist/{clients-BmeOR90W.js → clients-oFIeYM2J.js} +66 -79
  2. package/dist/{components-C-ri6OSQ.js → components-BG2hOYak.js} +11 -11
  3. package/dist/{enums-BvonmHq2.js → enums-B_9ZBu01.js} +2 -2
  4. package/dist/ui-sdk.css +1 -1
  5. package/dist/ui-sdk.js +3 -3
  6. package/dist/ui-sdk.umd.cjs +574 -574
  7. package/dist/{useValidation-0JwQGpLM.js → useValidation-CEed9cxY.js} +1 -1
  8. package/dist/{utils-CzBdLnFt.js → utils-BZHq8qMH.js} +1 -1
  9. package/dist/wt-action-bar-D74sgDCk.js +94 -0
  10. package/dist/{wt-button-D-nFhi1f.js → wt-button-CVjzcwNg.js} +2 -2
  11. package/dist/{wt-chat-emoji-CLhgb02d.js → wt-chat-emoji-CP1IO0Z_.js} +4 -4
  12. package/dist/{wt-datepicker-DCa23hYx.js → wt-datepicker-BgjjbOMX.js} +2 -2
  13. package/dist/{wt-display-chip-items-B7QLz9QM.js → wt-display-chip-items-BcuWCOui.js} +2 -2
  14. package/dist/{wt-dual-panel-D-LChluY.js → wt-dual-panel-Cs_Yzfxt.js} +1 -1
  15. package/dist/{wt-expansion-card-CToBA1fy.js → wt-expansion-card-BT586Mul.js} +1 -1
  16. package/dist/{wt-expansion-panel-af2t3VrM.js → wt-expansion-panel-kZmHSvPU.js} +1 -1
  17. package/dist/{wt-icon-WyFAGc4t.js → wt-icon-CAn_j3EL.js} +1 -1
  18. package/dist/{wt-icon-action-DYBTs3Mf.js → wt-icon-action-DJzm0kEk.js} +1 -1
  19. package/dist/{wt-icon-btn-BfhuUt8-.js → wt-icon-btn-BL0OfOZM.js} +1 -1
  20. package/dist/{wt-notifications-bar-CvKwuTEg.js → wt-notifications-bar-DZUTZhZy.js} +2 -2
  21. package/dist/{wt-player-B2etfN5v.js → wt-player-DbQuCEZb.js} +3 -3
  22. package/dist/{wt-screen-recordings-action-CepB2pqh.js → wt-screen-recordings-action-CVHZAWjl.js} +1 -1
  23. package/dist/{wt-search-bar-B4YkhgIB.js → wt-search-bar-DosqJLXT.js} +1 -1
  24. package/dist/{wt-send-message-popup-BhZ7K_Vs.js → wt-send-message-popup-B59bhE16.js} +2 -2
  25. package/dist/{wt-status-select-ELI7j73g.js → wt-status-select-Dnv9tj7o.js} +1 -1
  26. package/dist/{wt-timepicker-C3v9Cp2e.js → wt-timepicker-B4MOaSEZ.js} +2 -2
  27. package/dist/{wt-toast-DxQBRGm2.js → wt-toast-DJJg7o3S.js} +2 -2
  28. package/dist/{wt-tree-table-C5sxm-Eb.js → wt-tree-table-D-Jzijlk.js} +1 -1
  29. package/dist/{wt-type-extension-value-input-gQGgxMcJ.js → wt-type-extension-value-input-BEfx2uDx.js} +3 -3
  30. package/dist/{wt-vidstack-player-B37Mdf0u.js → wt-vidstack-player-efSk6APE.js} +4 -4
  31. package/package.json +1 -1
  32. package/src/components/transitions/__tests__/ExpandTransition.spec.js +15 -0
  33. package/src/components/transitions/__tests__/WtReplaceTransition.spec.js +66 -0
  34. package/src/components/transitions/__tests__/WtTransition.spec.js +35 -0
  35. package/src/components/wt-action-bar/WtActionBarActionsOrder.js +1 -1
  36. package/src/components/wt-action-bar/__tests__/WtActionBar.spec.js +121 -0
  37. package/src/components/wt-action-bar/wt-action-bar.vue +57 -33
  38. package/src/components/wt-app-header/__tests__/WtAppNavigator.spec.js +65 -4
  39. package/src/components/wt-app-header/__tests__/WtHeaderActions.spec.js +81 -2
  40. package/src/components/wt-avatar/__tests__/WtAvatar.spec.js +111 -0
  41. package/src/components/wt-badge/__tests__/WtBadge.spec.js +80 -0
  42. package/src/components/wt-badge-new/__tests__/WtBadge.spec.js +61 -0
  43. package/src/components/wt-breadcrumb/__tests__/WtBreadcrumb.spec.js +117 -0
  44. package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +37 -5
  45. package/src/components/wt-call-media-metric/__tests__/WtCallMediaMetric.spec.js +84 -0
  46. package/src/components/wt-card/__tests__/WtCard.spec.js +20 -0
  47. package/src/components/wt-checkbox/__tests__/WtCheckbox.spec.js +63 -0
  48. package/src/components/wt-chip/__tests__/WtChip.spec.js +32 -0
  49. package/src/components/wt-confirm-dialog/__tests__/WtConfirmDialog.spec.js +92 -0
  50. package/src/components/wt-context-menu/__tests__/WtContextMenu.spec.js +146 -1
  51. package/src/components/wt-copy-action/__tests__/WtCopyAction.spec.js +57 -0
  52. package/src/components/wt-datepicker/__tests__/WtDatepicker.spec.js +53 -0
  53. package/src/components/wt-datetime-text/__tests__/WtDatetimeText.spec.js +49 -0
  54. package/src/components/wt-divider/__tests__/WtDivider.spec.js +30 -0
  55. package/src/components/wt-dual-panel/__tests__/WtDualPanel.spec.js +120 -0
  56. package/src/components/wt-dummy/__tests__/WtDummy.spec.js +63 -1
  57. package/src/components/wt-empty/__tests__/WtEmpty.spec.js +84 -0
  58. package/src/components/wt-error-page/__tests__/WtErrorPage.spec.js +60 -0
  59. package/src/components/wt-expansion-card/__tests__/WtExpansionCard.spec.js +63 -0
  60. package/src/components/wt-expansion-panel/__tests__/WtExpansionPanel.spec.js +48 -9
  61. package/src/components/wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js +81 -10
  62. package/src/components/wt-hint/__tests__/WtHint.spec.js +44 -1
  63. package/src/components/wt-icon/__tests__/WtIcon.spec.js +29 -0
  64. package/src/components/wt-icon-action/__tests__/WtIconAction.spec.js +79 -0
  65. package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
  66. package/src/components/wt-icon-btn/__tests__/WtIconBtn.spec.js +46 -0
  67. package/src/components/wt-image/__tests__/WtImage.spec.js +83 -0
  68. package/src/components/wt-indicator/__tests__/WtIndicator.spec.js +23 -0
  69. package/src/components/wt-input-number/__tests__/WtInputNumber.spec.js +77 -0
  70. package/src/components/wt-input-text/__tests__/WtInputText.spec.js +85 -0
  71. package/src/components/wt-intersection-observer/__tests__/WtIntersectionObserver.spec.js +24 -3
  72. package/src/components/wt-item-link/__tests__/WtItemLink.spec.js +93 -1
  73. package/src/components/wt-label/__tests__/WtLabel.spec.js +49 -1
  74. package/src/components/wt-load-bar/__tests__/WtLoadBar.spec.js +49 -0
  75. package/src/components/wt-loader/__tests__/WtLoader.spec.js +26 -1
  76. package/src/components/wt-logo/__tests__/WtLogo.spec.js +55 -0
  77. package/src/components/wt-menubar/__tests__/WtMenubar.spec.js +30 -0
  78. package/src/components/wt-message/__tests__/WtMessage.spec.js +46 -0
  79. package/src/components/wt-multi-select/__tests__/WtMultiSelect.spec.js +106 -0
  80. package/src/components/wt-page-header/__tests__/WtPageHeader.spec.js +111 -0
  81. package/src/components/wt-password/__tests__/WtPassword.spec.js +107 -0
  82. package/src/components/wt-popover/__tests__/WtPopover.spec.js +73 -0
  83. package/src/components/wt-progress-bar/__tests__/WtProgressBar.spec.js +34 -0
  84. package/src/components/wt-radio/__tests__/WtRadio.spec.js +45 -0
  85. package/src/components/wt-rounded-action/__tests__/WtRoundedAction.spec.js +48 -0
  86. package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +74 -13
  87. package/src/components/wt-single-select/__tests__/WtSingleSelect.spec.js +117 -0
  88. package/src/components/wt-slider/__tests__/WtSlider.spec.js +100 -0
  89. package/src/components/wt-stepper/__tests__/WtStepper.spec.js +105 -0
  90. package/src/components/wt-switcher/__tests__/WtSwitcher.spec.js +47 -0
  91. package/src/components/wt-table/__tests__/WtTable.spec.js +237 -0
  92. package/src/components/wt-table-actions/__tests__/WtTableActions.spec.js +153 -1
  93. package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +147 -0
  94. package/src/components/wt-tabs/__tests__/WtTabs.spec.js +55 -0
  95. package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +49 -0
  96. package/src/components/wt-time-input/__tests__/WtTimeInput.spec.js +29 -0
  97. package/src/components/wt-tree/__tests__/WtTree.spec.js +126 -2
  98. package/src/components/wt-tree-line/__tests__/WtTreeLine.spec.js +205 -0
  99. package/src/components/wt-tree-table/__tests__/WtTreeTable.spec.js +155 -0
  100. package/src/components/wt-tree-table-row/__tests__/WtTreeTableRow.spec.js +176 -0
  101. package/src/components/wt-vidstack-player/__tests__/WtVidstackPlayer.spec.js +82 -0
  102. package/src/enums/IconAction/{IconAction.enum.js → IconAction.ts} +4 -2
  103. package/src/enums/index.ts +1 -1
  104. package/src/modules/ObjectPermissions/components/_internal/permissions-tab-content.vue +1 -1
  105. package/types/.tsbuildinfo +1 -1
  106. package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +349 -105
  107. package/types/components/wt-datetime-text/__tests__/WtDatetimeText.spec.d.ts +1 -0
  108. package/types/components/wt-divider/__tests__/WtDivider.spec.d.ts +1 -0
  109. package/types/components/wt-dual-panel/__tests__/WtDualPanel.spec.d.ts +1 -0
  110. package/types/components/wt-empty/__tests__/WtEmpty.spec.d.ts +1 -0
  111. package/types/components/wt-error-page/__tests__/WtErrorPage.spec.d.ts +1 -0
  112. package/types/components/wt-expansion-card/__tests__/WtExpansionCard.spec.d.ts +1 -0
  113. package/types/components/wt-image/__tests__/WtImage.spec.d.ts +1 -0
  114. package/types/components/wt-input-number/__tests__/WtInputNumber.spec.d.ts +1 -0
  115. package/types/components/wt-input-text/__tests__/WtInputText.spec.d.ts +1 -0
  116. package/types/components/wt-logo/__tests__/WtLogo.spec.d.ts +1 -0
  117. package/types/components/wt-menubar/__tests__/WtMenubar.spec.d.ts +1 -0
  118. package/types/components/wt-message/__tests__/WtMessage.spec.d.ts +1 -0
  119. package/types/components/wt-multi-select/__tests__/WtMultiSelect.spec.d.ts +1 -0
  120. package/types/components/wt-page-header/__tests__/WtPageHeader.spec.d.ts +1 -0
  121. package/types/components/wt-password/__tests__/WtPassword.spec.d.ts +1 -0
  122. package/types/components/wt-popover/__tests__/WtPopover.spec.d.ts +1 -0
  123. package/types/components/wt-single-select/__tests__/WtSingleSelect.spec.d.ts +1 -0
  124. package/types/components/wt-slider/__tests__/WtSlider.spec.d.ts +1 -0
  125. package/types/components/wt-stepper/__tests__/WtStepper.spec.d.ts +1 -0
  126. package/types/components/wt-table/__tests__/WtTable.spec.d.ts +1 -0
  127. package/types/components/wt-tree-line/__tests__/WtTreeLine.spec.d.ts +1 -0
  128. package/types/components/wt-tree-table/__tests__/WtTreeTable.spec.d.ts +1 -0
  129. package/types/components/wt-tree-table-row/__tests__/WtTreeTableRow.spec.d.ts +1 -0
  130. package/types/components/wt-vidstack-player/__tests__/WtVidstackPlayer.spec.d.ts +1 -0
  131. package/types/enums/IconAction/IconAction.d.ts +31 -0
  132. package/types/enums/index.d.ts +1 -1
  133. package/dist/wt-action-bar-D4wDtBqb.js +0 -87
  134. package/src/components/wt-action-bar/__tests__/wt-action-bar.spec.js +0 -10
  135. package/src/components/wt-avatar/__tests__/wt-avatar.spec.js +0 -10
  136. package/src/components/wt-badge/__tests__/wt-badge.spec.js +0 -10
  137. package/src/components/wt-breadcrumb/__tests__/wt-breadcrumb.spec.js +0 -14
  138. package/src/components/wt-dual-panel/__tests__/WtDualPanel.js +0 -62
  139. package/src/components/wt-empty/__tests__/wt-empty.spec.js +0 -10
  140. package/src/components/wt-error-page/__tests__/wt-error-page.spec.js +0 -30
  141. package/src/components/wt-image/__tests__/wt-image.spec.js +0 -10
  142. package/src/components/wt-logo/__tests__/wt-logo.spec.js +0 -10
  143. package/src/components/wt-page-header/__tests__/wt-page-header.spec.js +0 -10
  144. package/src/components/wt-stepper/__tests__/WtStepper.spec.vue.js +0 -19
  145. package/types/enums/IconAction/IconAction.enum.d.ts +0 -30
  146. /package/types/components/{wt-action-bar/__tests__/wt-action-bar.spec.d.ts → transitions/__tests__/WtReplaceTransition.spec.d.ts} +0 -0
  147. /package/types/components/{wt-avatar/__tests__/wt-avatar.spec.d.ts → transitions/__tests__/WtTransition.spec.d.ts} +0 -0
  148. /package/types/components/{wt-badge/__tests__/wt-badge.spec.d.ts → wt-action-bar/__tests__/WtActionBar.spec.d.ts} +0 -0
  149. /package/types/components/{wt-breadcrumb/__tests__/wt-breadcrumb.spec.d.ts → wt-avatar/__tests__/WtAvatar.spec.d.ts} +0 -0
  150. /package/types/components/{wt-empty/__tests__/wt-empty.spec.d.ts → wt-badge/__tests__/WtBadge.spec.d.ts} +0 -0
  151. /package/types/components/{wt-dual-panel/__tests__/WtDualPanel.d.ts → wt-badge-new/__tests__/WtBadge.spec.d.ts} +0 -0
  152. /package/types/components/{wt-error-page/__tests__/wt-error-page.spec.d.ts → wt-breadcrumb/__tests__/WtBreadcrumb.spec.d.ts} +0 -0
  153. /package/types/components/{wt-image/__tests__/wt-image.spec.d.ts → wt-call-media-metric/__tests__/WtCallMediaMetric.spec.d.ts} +0 -0
  154. /package/types/components/{wt-logo/__tests__/wt-logo.spec.d.ts → wt-card/__tests__/WtCard.spec.d.ts} +0 -0
  155. /package/types/components/{wt-page-header/__tests__/wt-page-header.spec.d.ts → wt-confirm-dialog/__tests__/WtConfirmDialog.spec.d.ts} +0 -0
  156. /package/types/components/{wt-stepper/__tests__/WtStepper.spec.vue.d.ts → wt-copy-action/__tests__/WtCopyAction.spec.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { i as e } from "./enums-BvonmHq2.js";
1
+ import { i as e } from "./enums-B_9ZBu01.js";
2
2
  import { t } from "./vue-i18n-Db_oYfO8.js";
3
3
  import { computed as n, isReactive as r, isRef as i, unref as a } from "vue";
4
4
  //#region src/mixins/validationMixin/regle/useRegleValidation.ts
@@ -1,4 +1,4 @@
1
- import "./enums-BvonmHq2.js";
1
+ import "./enums-B_9ZBu01.js";
2
2
  import { i as e, n as t, t as n } from "./toZonedTime-B8L5kbse.js";
3
3
  var r = (e) => e || "-";
4
4
  //#endregion
@@ -0,0 +1,94 @@
1
+ import { t as e } from "./caseConverters-6cy_SaV5.js";
2
+ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { o as n } from "./enums-B_9ZBu01.js";
4
+ import { t as r } from "./wt-icon-action-DJzm0kEk.js";
5
+ import { Fragment as i, computed as a, createElementBlock as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m } from "vue";
6
+ //#region src/components/wt-action-bar/WtActionBarActionsOrder.js
7
+ var h = [
8
+ n.ADD,
9
+ n.ADD_CONTACT,
10
+ n.COPY,
11
+ n.DOWNLOAD_PDF,
12
+ n.DOWNLOAD,
13
+ n.LOGOUT,
14
+ n.UPLOAD,
15
+ n.COLUMNS,
16
+ n.VARIABLES,
17
+ n.FILTERS,
18
+ n.REFRESH,
19
+ n.RESET_MEMBERS,
20
+ n.DELETE,
21
+ n.SORT
22
+ ], g = h, _ = { class: "wt-action-bar" }, v = /*#__PURE__*/ t(/* @__PURE__ */ c({
23
+ __name: "wt-action-bar",
24
+ props: {
25
+ mode: {
26
+ type: String,
27
+ default: "table",
28
+ validator: (e) => ["table", "section"].includes(e)
29
+ },
30
+ size: { type: String },
31
+ include: {
32
+ type: Array,
33
+ default: () => []
34
+ },
35
+ exclude: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ "sort:order": {
40
+ type: String,
41
+ default: null,
42
+ required: !1,
43
+ validator: (e) => [
44
+ "asc",
45
+ "desc",
46
+ null
47
+ ].includes(e)
48
+ },
49
+ disabled: {
50
+ type: Boolean,
51
+ default: !1
52
+ },
53
+ ...Object.values(n).reduce((e, t) => (e[`disabled:${t}`] = {
54
+ type: Boolean,
55
+ default: !1
56
+ }, e), {})
57
+ },
58
+ emits: Object.values(n).map((e) => `click:${e}`),
59
+ setup(t, { emit: c }) {
60
+ let v = t, y = c, b = a(() => {
61
+ let e = v.mode === "section" ? g : h;
62
+ return v.include.length ? e.filter((e) => v.include.includes(e)) : v.exclude.length ? e.filter((e) => !v.exclude.includes(e)) : e;
63
+ }), x = (e) => {
64
+ y(`click:${e}`);
65
+ }, S = (t) => {
66
+ let n = `disabled:${e(t)}`;
67
+ return !!v[n];
68
+ }, C = (e) => {
69
+ switch (e) {
70
+ case n.SORT: return { "sort:order": v["sort:order"] ?? void 0 };
71
+ default: return {};
72
+ }
73
+ };
74
+ return (e, n) => (f(), o("div", _, [
75
+ m(e.$slots, "search-bar", d(l({ size: t.size })), void 0, !0),
76
+ m(e.$slots, "switcher", d(l({ size: t.size })), void 0, !0),
77
+ m(e.$slots, "default", d(l({ size: t.size })), void 0, !0),
78
+ (f(!0), o(i, null, p(b.value, (n) => m(e.$slots, n, d(l({
79
+ action: n,
80
+ size: t.size,
81
+ onClick: () => x(n)
82
+ })), () => [s(r, u(C(n), {
83
+ action: n,
84
+ disabled: S(n)
85
+ }, { onClick: (e) => x(n) }), null, 16, [
86
+ "action",
87
+ "disabled",
88
+ "onClick"
89
+ ])], !0)), 256))
90
+ ]));
91
+ }
92
+ }), [["__scopeId", "data-v-adcc0f1d"]]);
93
+ //#endregion
94
+ export { v as default };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./wt-icon-WyFAGc4t.js";
2
- import { _ as t, g as n, l as r } from "./enums-BvonmHq2.js";
1
+ import { t as e } from "./wt-icon-CAn_j3EL.js";
2
+ import { _ as t, g as n, l as r } from "./enums-B_9ZBu01.js";
3
3
  import { computed as i, createBlock as a, createCommentVNode as o, createElementVNode as s, createTextVNode as c, defineComponent as l, inject as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderSlot as h, resolveComponent as g, toDisplayString as _, toRef as v, unref as y, useAttrs as b, watch as x, withCtx as S, withModifiers as C } from "vue";
4
4
  //#endregion
5
5
  //#region src/components/wt-badge-new/wt-badge.vue
@@ -1,8 +1,8 @@
1
- import "./components-C-ri6OSQ.js";
1
+ import "./components-BG2hOYak.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { l as t } from "./enums-BvonmHq2.js";
4
- import { t as n } from "./wt-button-D-nFhi1f.js";
5
- import { n as r } from "./wt-toast-DxQBRGm2.js";
3
+ import { l as t } from "./enums-B_9ZBu01.js";
4
+ import { t as n } from "./wt-button-CVjzcwNg.js";
5
+ import { n as r } from "./wt-toast-DJJg7o3S.js";
6
6
  import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, nextTick as u, onBeforeUnmount as d, openBlock as f, ref as p, resolveDirective as m, unref as h, withDirectives as g } from "vue";
7
7
  //#region node_modules/emoji-picker-element/database.js
8
8
  function _(e) {
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { _ as t, g as n, l as r, r as i } from "./enums-BvonmHq2.js";
2
+ import { _ as t, g as n, l as r, r as i } from "./enums-B_9ZBu01.js";
3
3
  import { a, i as o, n as s, r as c, t as l } from "./toZonedTime-B8L5kbse.js";
4
4
  import { t as u } from "./vue-i18n-Db_oYfO8.js";
5
- import { t as d } from "./useValidation-0JwQGpLM.js";
5
+ import { t as d } from "./useValidation-CEed9cxY.js";
6
6
  import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeModels as x, mergeProps as S, nextTick as C, normalizeProps as w, onMounted as T, onUnmounted as E, openBlock as D, renderSlot as O, resolveComponent as k, toDisplayString as A, toRefs as j, unref as M, useModel as N, useTemplateRef as P, vShow as F, withCtx as I, withDirectives as ee } from "vue";
7
7
  import te from "primevue/datepicker";
8
8
  //#region node_modules/date-fns-tz/dist/esm/fromZonedTime/index.js
@@ -1,6 +1,6 @@
1
- import { C as e, i as t } from "./components-C-ri6OSQ.js";
1
+ import { C as e, i as t } from "./components-BG2hOYak.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { o as r } from "./utils-CzBdLnFt.js";
3
+ import { o as r } from "./utils-BZHq8qMH.js";
4
4
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
5
5
  //#region src/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue?vue&type=script&setup=true&lang.ts
6
6
  var _ = { class: "wt-display-chip-items" }, v = { key: 0 }, y = ["onClick"], b = /*#__PURE__*/ n(/* @__PURE__ */ u({
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { l as t, o as n } from "./enums-BvonmHq2.js";
2
+ import { l as t, o as n } from "./enums-B_9ZBu01.js";
3
3
  import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, normalizeClass as c, openBlock as l, ref as u, renderSlot as d, resolveComponent as f, unref as p } from "vue";
4
4
  //#region src/components/wt-dual-panel/wt-dual-panel.vue
5
5
  var m = { class: "wt-dual-panel" }, h = {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { l as t } from "./enums-BvonmHq2.js";
2
+ import { l as t } from "./enums-B_9ZBu01.js";
3
3
  import { t as n } from "./useExpansion-DVdIpoOn.js";
4
4
  import "./composables-BtWSAI5D.js";
5
5
  import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { l as t } from "./enums-BvonmHq2.js";
2
+ import { l as t } from "./enums-B_9ZBu01.js";
3
3
  import { t as n } from "./useExpansion-DVdIpoOn.js";
4
4
  import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
5
5
  import { createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, normalizeClass as l, normalizeProps as u, openBlock as d, renderSlot as f, resolveComponent as p, toRef as m, unref as h, vShow as g, withCtx as _, withDirectives as v, withKeys as y } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./caseConverters-6cy_SaV5.js";
2
- import { a as t, l as n } from "./enums-BvonmHq2.js";
2
+ import { a as t, l as n } from "./enums-B_9ZBu01.js";
3
3
  import { computed as r, createElementBlock as i, defineComponent as a, normalizeClass as o, openBlock as s } from "vue";
4
4
  //#region node_modules/dompurify/dist/purify.es.mjs
5
5
  function c(e, t) {
@@ -1,4 +1,4 @@
1
- import { o as e } from "./enums-BvonmHq2.js";
1
+ import { o as e } from "./enums-B_9ZBu01.js";
2
2
  import { t } from "./vue-i18n-Db_oYfO8.js";
3
3
  import { t as n } from "./sortQueryAdapters-CyYXvnDN.js";
4
4
  import { computed as r, createBlock as i, openBlock as a, resolveComponent as o, resolveDirective as s, unref as c, withDirectives as l } from "vue";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./wt-icon-WyFAGc4t.js";
1
+ import { t as e } from "./wt-icon-CAn_j3EL.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeModels as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, toDisplayString as _, useModel as v, useSlots as y, withCtx as b } from "vue";
4
4
  //#region src/components/wt-checkbox/wt-checkbox.vue?vue&type=script&setup=true&lang.ts
@@ -1,5 +1,5 @@
1
- import { i as e } from "./enums-BvonmHq2.js";
2
- import { n as t, t as n } from "./wt-toast-DxQBRGm2.js";
1
+ import { i as e } from "./enums-B_9ZBu01.js";
2
+ import { n as t, t as n } from "./wt-toast-DJJg7o3S.js";
3
3
  import { createBlock as r, inject as i, onUnmounted as a, openBlock as o } from "vue";
4
4
  import { useToast as s } from "primevue/usetoast";
5
5
  //#region src/components/wt-toast/types/index.ts
@@ -1,7 +1,7 @@
1
- import { t as e } from "./wt-icon-WyFAGc4t.js";
1
+ import { t as e } from "./wt-icon-CAn_j3EL.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { l as n } from "./enums-BvonmHq2.js";
4
- import { t as r } from "./wt-button-D-nFhi1f.js";
3
+ import { l as n } from "./enums-B_9ZBu01.js";
4
+ import { t as r } from "./wt-button-CVjzcwNg.js";
5
5
  import { n as i, t as a } from "./useVidstackSrc-aQcqC_v0.js";
6
6
  import { t as o } from "./wt-popover-BCYPu5NC.js";
7
7
  import { t as s } from "./wt-slider-BPzRTeYU.js";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import "./utils-CzBdLnFt.js";
2
+ import "./utils-BZHq8qMH.js";
3
3
  import { t } from "./engineCallFileType-D7QVFOac.js";
4
4
  import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, resolveComponent as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
5
5
  //#region src/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue?vue&type=script&setup=true&lang.ts
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { t } from "./debounce-Bp3jy7S5.js";
3
- import { t as n } from "./useValidation-0JwQGpLM.js";
3
+ import { t as n } from "./useValidation-CEed9cxY.js";
4
4
  import { computed as r, createBlock as i, createCommentVNode as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, resolveComponent as m, resolveDirective as h, toDisplayString as g, toRefs as _, unref as v, withCtx as y, withDirectives as b } from "vue";
5
5
  //#region src/components/wt-search-bar/wt-search-bar.vue?vue&type=script&setup=true&lang.ts
6
6
  var x = { class: "wt-search-bar__icon-controls" }, S = /*#__PURE__*/ e(/* @__PURE__ */ u({
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./rolldown-runtime-BEcgMyyN.js";
2
- import { n as t, r as n } from "./clients-BmeOR90W.js";
3
- import { T as r, n as i, w as a } from "./components-C-ri6OSQ.js";
2
+ import { n as t, r as n } from "./clients-oFIeYM2J.js";
3
+ import { T as r, n as i, w as a } from "./components-BG2hOYak.js";
4
4
  import { t as o } from "./vue-i18n-Db_oYfO8.js";
5
5
  import { n as s } from "./useEventBus-B-ZeklLu.js";
6
6
  import { createBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as f, onMounted as p, openBlock as m, ref as h, resolveComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
@@ -1,4 +1,4 @@
1
- import { l as e, v as t } from "./enums-BvonmHq2.js";
1
+ import { l as e, v as t } from "./enums-B_9ZBu01.js";
2
2
  import { t as n } from "./vue-i18n-Db_oYfO8.js";
3
3
  import { t as r } from "./convertDuration-1K7fuEpO.js";
4
4
  import { computed as i, createBlock as a, createVNode as o, defineComponent as s, openBlock as c, resolveComponent as l, unref as u, withCtx as d } from "vue";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { l as t, r as n } from "./enums-BvonmHq2.js";
2
+ import { l as t, r as n } from "./enums-B_9ZBu01.js";
3
3
  import { t as r } from "./vue-i18n-Db_oYfO8.js";
4
- import { t as i } from "./useValidation-0JwQGpLM.js";
4
+ import { t as i } from "./useValidation-CEed9cxY.js";
5
5
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, resolveComponent as y, toDisplayString as b, toRefs as x, unref as S, withCtx as C } from "vue";
6
6
  //#region src/components/wt-timepicker/wt-timepicker.vue?vue&type=script&setup=true&lang.ts
7
7
  var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/ e(/* @__PURE__ */ d({
@@ -1,5 +1,5 @@
1
- import { t as e } from "./wt-icon-WyFAGc4t.js";
2
- import { i as t, l as n } from "./enums-BvonmHq2.js";
1
+ import { t as e } from "./wt-icon-CAn_j3EL.js";
2
+ import { i as t, l as n } from "./enums-B_9ZBu01.js";
3
3
  import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, normalizeProps as d, normalizeStyle as f, openBlock as p, resolveComponent as m, toDisplayString as h, unref as g, useAttrs as _, withCtx as v } from "vue";
4
4
  //#region node_modules/mitt/dist/mitt.mjs
5
5
  function y(e) {
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { n as t } from "./sortQueryAdapters-CyYXvnDN.js";
3
- import { n, t as r } from "./wt-icon-btn-BfhuUt8-.js";
3
+ import { n, t as r } from "./wt-icon-btn-BL0OfOZM.js";
4
4
  import { t as i } from "./useWtTable-DLWucXPx.js";
5
5
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toRef as w, unref as T, withCtx as E, withModifiers as D } from "vue";
6
6
  //#region src/components/wt-tree-table-row/wt-tree-table-row.vue?vue&type=script&setup=true&lang.ts
@@ -1,6 +1,6 @@
1
- import { t as e } from "./clients-BmeOR90W.js";
2
- import { a as t, o as n, r, s as i } from "./components-C-ri6OSQ.js";
3
- import { t as a } from "./enums-BvonmHq2.js";
1
+ import { t as e } from "./clients-oFIeYM2J.js";
2
+ import { a as t, o as n, r, s as i } from "./components-BG2hOYak.js";
3
+ import { t as a } from "./enums-B_9ZBu01.js";
4
4
  import { t as o } from "./vue-i18n-Db_oYfO8.js";
5
5
  import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
6
6
  //#endregion
@@ -1,8 +1,8 @@
1
- import { k as e } from "./components-C-ri6OSQ.js";
1
+ import { k as e } from "./components-BG2hOYak.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { l as n } from "./enums-BvonmHq2.js";
4
- import "./wt-button-D-nFhi1f.js";
5
- import { t as r } from "./wt-icon-btn-BfhuUt8-.js";
3
+ import { l as n } from "./enums-B_9ZBu01.js";
4
+ import "./wt-button-CVjzcwNg.js";
5
+ import { t as r } from "./wt-icon-btn-BL0OfOZM.js";
6
6
  import { $ as i, C as a, D as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as ee, P as te, Q as g, R as ne, S as _, U as re, V as v, W as y, X as b, Y as ie, Z as x, _ as S, a as ae, b as oe, c as se, d as ce, et as le, f as ue, g as de, h as fe, i as C, it as pe, j as me, k as he, l as w, m as ge, n as T, nt as E, o as D, ot as _e, p as O, q as k, r as A, rt as ve, t as ye, tt as be, u as xe, v as j, w as Se, y as Ce, z as we } from "./vidstack-D9mvYVIz-DesuYgKV.js";
7
7
  import { _ as M, a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, o as Fe, p as Ie, r as Le, s as Re, t as N, u as ze } from "./vidstack-CgfrU1hS-CNTJkyzm.js";
8
8
  import { _ as Be, a as Ve, c as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, n as Je, r as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./useVidstackSrc-aQcqC_v0.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.75",
3
+ "version": "26.8.76",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -7,4 +7,19 @@ describe('ExpandTransition', () => {
7
7
  const wrapper = shallowMount(ExpandTransition);
8
8
  expect(wrapper.exists()).toBe(true);
9
9
  });
10
+
11
+ it('renders default slot content', () => {
12
+ const wrapper = shallowMount(ExpandTransition, {
13
+ slots: {
14
+ default: '<div class="content">hello</div>',
15
+ },
16
+ });
17
+ expect(wrapper.find('.content').text()).toBe('hello');
18
+ });
19
+
20
+ it('sets height to auto on afterEnter', () => {
21
+ const element = document.createElement('div');
22
+ ExpandTransition.methods.afterEnter(element);
23
+ expect(element.style.height).toBe('auto');
24
+ });
10
25
  });
@@ -0,0 +1,66 @@
1
+ import { mount } from '@vue/test-utils';
2
+
3
+ import WtReplaceTransition from '../cases/wt-replace-transition.vue';
4
+
5
+ describe('WtReplaceTransition', () => {
6
+ it('renders default slot content', () => {
7
+ const wrapper = mount(WtReplaceTransition, {
8
+ slots: {
9
+ default: '<div class="content">hello</div>',
10
+ },
11
+ });
12
+ expect(wrapper.find('.content').text()).toBe('hello');
13
+ });
14
+
15
+ it('builds the transition name from the default opacity pattern', () => {
16
+ const wrapper = mount(WtReplaceTransition, {
17
+ slots: {
18
+ default: '<div />',
19
+ },
20
+ });
21
+ expect(
22
+ wrapper
23
+ .findComponent({
24
+ name: 'wt-transition',
25
+ })
26
+ .props('name'),
27
+ ).toBe('fade-opacity');
28
+ });
29
+
30
+ it('builds the transition name from a custom pattern', () => {
31
+ const wrapper = mount(WtReplaceTransition, {
32
+ props: {
33
+ pattern: 'slide-up',
34
+ },
35
+ slots: {
36
+ default: '<div />',
37
+ },
38
+ });
39
+ expect(
40
+ wrapper
41
+ .findComponent({
42
+ name: 'wt-transition',
43
+ })
44
+ .props('name'),
45
+ ).toBe('fade-slide-up');
46
+ });
47
+
48
+ it('passes duration, appear and mode props through to wt-transition', () => {
49
+ const wrapper = mount(WtReplaceTransition, {
50
+ props: {
51
+ duration: 'slow',
52
+ appear: true,
53
+ mode: 'in-out',
54
+ },
55
+ slots: {
56
+ default: '<div />',
57
+ },
58
+ });
59
+ const inner = wrapper.findComponent({
60
+ name: 'wt-transition',
61
+ });
62
+ expect(inner.props('duration')).toBe('slow');
63
+ expect(inner.props('appear')).toBe(true);
64
+ expect(inner.props('mode')).toBe('in-out');
65
+ });
66
+ });
@@ -0,0 +1,35 @@
1
+ import { mount } from '@vue/test-utils';
2
+
3
+ import WtTransition from '../wt-transition.vue';
4
+
5
+ describe('WtTransition', () => {
6
+ it('renders default slot content', () => {
7
+ const wrapper = mount(WtTransition, {
8
+ slots: {
9
+ default: '<div class="content">hello</div>',
10
+ },
11
+ });
12
+ expect(wrapper.find('.content').text()).toBe('hello');
13
+ });
14
+
15
+ it('applies the default fast duration class', () => {
16
+ const wrapper = mount(WtTransition, {
17
+ slots: {
18
+ default: '<div />',
19
+ },
20
+ });
21
+ expect(wrapper.classes()).toContain('wt-transition--fast');
22
+ });
23
+
24
+ it('applies a custom duration class', () => {
25
+ const wrapper = mount(WtTransition, {
26
+ props: {
27
+ duration: 'slow',
28
+ },
29
+ slots: {
30
+ default: '<div />',
31
+ },
32
+ });
33
+ expect(wrapper.classes()).toContain('wt-transition--slow');
34
+ });
35
+ });
@@ -1,4 +1,4 @@
1
- import IconAction from '../../enums/IconAction/IconAction.enum.js';
1
+ import { IconAction } from '../../enums';
2
2
 
3
3
  export const tableActionsOrder = [
4
4
  IconAction.ADD,
@@ -0,0 +1,121 @@
1
+ import { mount } from '@vue/test-utils';
2
+
3
+ import { IconAction } from '../../../enums';
4
+ import {
5
+ sectionActionsOrder,
6
+ tableActionsOrder,
7
+ } from '../WtActionBarActionsOrder.js';
8
+ import WtActionBar from '../wt-action-bar.vue';
9
+
10
+ describe('WtActionBar', () => {
11
+ it('renders a component', () => {
12
+ const wrapper = mount(WtActionBar);
13
+ expect(wrapper.exists()).toBe(true);
14
+ });
15
+
16
+ it('renders table actions by default', () => {
17
+ const wrapper = mount(WtActionBar);
18
+ const actions = wrapper.findAllComponents({
19
+ name: 'wt-icon-action',
20
+ });
21
+ expect(actions.length).toBe(tableActionsOrder.length);
22
+ });
23
+
24
+ it('renders section actions when mode is "section"', () => {
25
+ const wrapper = mount(WtActionBar, {
26
+ props: {
27
+ mode: 'section',
28
+ },
29
+ });
30
+ const actions = wrapper.findAllComponents({
31
+ name: 'wt-icon-action',
32
+ });
33
+ expect(actions.length).toBe(sectionActionsOrder.length);
34
+ });
35
+
36
+ it('renders only actions listed in include', () => {
37
+ const included = [
38
+ tableActionsOrder[0],
39
+ ];
40
+ const wrapper = mount(WtActionBar, {
41
+ props: {
42
+ include: included,
43
+ },
44
+ });
45
+ const actions = wrapper.findAllComponents({
46
+ name: 'wt-icon-action',
47
+ });
48
+ expect(actions.length).toBe(included.length);
49
+ expect(actions[0].props('action')).toBe(included[0]);
50
+ });
51
+
52
+ it('excludes actions listed in exclude', () => {
53
+ const excluded = tableActionsOrder[0];
54
+ const wrapper = mount(WtActionBar, {
55
+ props: {
56
+ exclude: [
57
+ excluded,
58
+ ],
59
+ },
60
+ });
61
+ const actions = wrapper.findAllComponents({
62
+ name: 'wt-icon-action',
63
+ });
64
+ expect(actions.length).toBe(tableActionsOrder.length - 1);
65
+ expect(actions.some((a) => a.props('action') === excluded)).toBe(false);
66
+ });
67
+
68
+ it('emits click:[action] when an action is clicked', async () => {
69
+ const action = tableActionsOrder[0];
70
+ const wrapper = mount(WtActionBar, {
71
+ props: {
72
+ include: [
73
+ action,
74
+ ],
75
+ },
76
+ });
77
+ await wrapper
78
+ .findComponent({
79
+ name: 'wt-icon-action',
80
+ })
81
+ .trigger('click');
82
+ expect(wrapper.emitted(`click:${action}`)).toBeTruthy();
83
+ });
84
+
85
+ it('disables an action via disabled:[action] prop', () => {
86
+ const action = IconAction.SORT;
87
+ const wrapper = mount(WtActionBar, {
88
+ props: {
89
+ include: [
90
+ action,
91
+ ],
92
+ [`disabled:${action}`]: true,
93
+ },
94
+ });
95
+ expect(
96
+ wrapper
97
+ .findComponent({
98
+ name: 'wt-icon-action',
99
+ })
100
+ .props('disabled'),
101
+ ).toBe(true);
102
+ });
103
+
104
+ it('passes sort:order prop to sort action', () => {
105
+ const wrapper = mount(WtActionBar, {
106
+ props: {
107
+ include: [
108
+ IconAction.SORT,
109
+ ],
110
+ 'sort:order': 'asc',
111
+ },
112
+ });
113
+ expect(
114
+ wrapper
115
+ .findComponent({
116
+ name: 'wt-icon-action',
117
+ })
118
+ .props('sort:order'),
119
+ ).toBe('asc');
120
+ });
121
+ });