@webitel/ui-sdk 26.8.80 → 26.8.81

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.
@@ -1,4 +1,4 @@
1
- import "./components-BHiUKBm2.js";
1
+ import "./components-CD2UugXN.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-B_9ZBu01.js";
4
4
  import { t as n } from "./wt-button-BwPz__rU.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-BHiUKBm2.js";
1
+ import { C as e, i as t } from "./components-CD2UugXN.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { s as r } from "./utils-DReAiJBV.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";
@@ -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-C7WyEzGF.js";
3
- import { T as r, n as i, w as a } from "./components-BHiUKBm2.js";
2
+ import { n as t, r as n } from "./clients-D_JfZnLU.js";
3
+ import { T as r, n as i, w as a } from "./components-CD2UugXN.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,5 +1,5 @@
1
- import { t as e } from "./clients-C7WyEzGF.js";
2
- import { a as t, o as n, r, s as i } from "./components-BHiUKBm2.js";
1
+ import { t as e } from "./clients-D_JfZnLU.js";
2
+ import { a as t, o as n, r, s as i } from "./components-CD2UugXN.js";
3
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";
@@ -1,4 +1,4 @@
1
- import { k as e } from "./components-BHiUKBm2.js";
1
+ import { k as e } from "./components-CD2UugXN.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-B_9ZBu01.js";
4
4
  import "./wt-button-BwPz__rU.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.80",
3
+ "version": "26.8.81",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -21,7 +21,6 @@
21
21
  >
22
22
  <slot name="prefix" />
23
23
  </p-input-group-addon>
24
- <!-- $listeners is because of compat using in applications -->
25
24
  <p-input-text
26
25
  :id="inputId"
27
26
  ref="inputText"
@@ -34,6 +33,7 @@
34
33
  :inputmode="type"
35
34
  :size="size ? primevueSizeMap[size] : undefined"
36
35
  v-bind="$attrs"
36
+ v-on="listeners"
37
37
  @update:model-value="inputHandler"
38
38
  @keyup="handleKeyup"
39
39
  @focus="emit('focus', $event)"
@@ -66,7 +66,14 @@
66
66
  import type { SuperCompatibleRegleFieldStatus } from '@regle/core';
67
67
  import type { InputTextProps } from 'primevue';
68
68
  import type { InputHTMLAttributes } from 'vue';
69
- import { computed, ref, toRefs, useSlots, useTemplateRef } from 'vue';
69
+ import {
70
+ computed,
71
+ getCurrentInstance,
72
+ ref,
73
+ toRefs,
74
+ useSlots,
75
+ useTemplateRef,
76
+ } from 'vue';
70
77
  import { ComponentSize, MessageVariant } from '../../enums';
71
78
  import { useValidation } from '../../mixins/validationMixin/useValidation';
72
79
  import type {
@@ -132,6 +139,16 @@ const emit = defineEmits<{
132
139
 
133
140
  const slots = useSlots();
134
141
 
142
+ // $listeners is used for compat mode in consuming applications
143
+ const listeners = computed(
144
+ () =>
145
+ (
146
+ getCurrentInstance()?.proxy as {
147
+ $listeners?: Record<string, unknown>;
148
+ } | null
149
+ )?.$listeners,
150
+ );
151
+
135
152
  const { v, customValidators, regleValidation } = toRefs(props);
136
153
 
137
154
  const { isValidation, invalid, validationText, validationTextColor } =
@@ -60,7 +60,7 @@ describe('WtTreeTableRow', () => {
60
60
  expect(cells[1].text()).toContain('30');
61
61
  });
62
62
 
63
- it('applies the alternate class on odd row positions', () => {
63
+ it('does not apply an alternate class on odd row positions', () => {
64
64
  const wrapper = shallowMount(WtTreeTableRow, {
65
65
  props: {
66
66
  data: leafRow,
@@ -70,7 +70,7 @@ describe('WtTreeTableRow', () => {
70
70
  dataHeaders,
71
71
  },
72
72
  });
73
- expect(wrapper.find('.wt-tree-table-row').classes()).toContain(
73
+ expect(wrapper.find('.wt-tree-table-row').classes()).not.toContain(
74
74
  'wt-tree-table-row--alternate',
75
75
  );
76
76
  });