@webitel/ui-sdk 26.6.63 → 26.6.65

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 (49) hide show
  1. package/dist/{components-eoQi5zKf.js → components-CE6UIGIl.js} +2993 -1402
  2. package/dist/toZonedTime-B8L5kbse.js +308 -0
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +12678 -578
  5. package/dist/ui-sdk.umd.cjs +1838 -1838
  6. package/dist/{wt-button-DSxkafVk.js → wt-button-uY5Q1GAg.js} +3 -2
  7. package/dist/{wt-chat-emoji-CROATNmD.js → wt-chat-emoji-Xw_v-yxx.js} +2 -2
  8. package/dist/wt-datepicker-BGSK1JFI.js +286 -0
  9. package/dist/{wt-display-chip-items-BYkx7GAw.js → wt-display-chip-items-Dsgzf_Ik.js} +1 -1
  10. package/dist/{wt-player-C-Ucuchh.js → wt-player-B2SZ_NSb.js} +1 -1
  11. package/dist/{wt-send-message-popup-DuRb4ozr.js → wt-send-message-popup-BkGO2Heo.js} +1 -1
  12. package/dist/{wt-type-extension-value-input-BroXv_Jr.js → wt-type-extension-value-input-CfuzPZ2M.js} +5 -5
  13. package/dist/{wt-vidstack-player-1BqwgHog.js → wt-vidstack-player-DDYdRLvZ.js} +2 -2
  14. package/package.json +2 -1
  15. package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +3 -3
  16. package/src/components/wt-button/wt-button.vue +2 -1
  17. package/src/components/wt-datepicker/wt-datepicker.vue +193 -253
  18. package/src/locale/en/en.js +2 -0
  19. package/src/locale/es/es.js +2 -0
  20. package/src/locale/kz/kz.js +2 -0
  21. package/src/locale/pl/pl.js +2 -0
  22. package/src/locale/ro/ro.js +2 -0
  23. package/src/locale/ru/ru.js +2 -0
  24. package/src/locale/uk/uk.js +2 -0
  25. package/src/locale/uz/uz.js +2 -0
  26. package/src/locale/vi/vi.js +2 -0
  27. package/src/modules/Filters/components/filter-datetime.vue +3 -3
  28. package/src/modules/QueryFilters/components/filter-datetime.vue +3 -3
  29. package/src/plugins/primevue/primevue.plugin.js +11 -1
  30. package/src/plugins/primevue/theme/components/button/button.js +1 -1
  31. package/src/plugins/primevue/theme/components/components.js +2 -0
  32. package/src/plugins/primevue/theme/components/datepicker/datepicker.js +8 -0
  33. package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +62 -140
  34. package/types/components/wt-popover/wt-popover.vue.d.ts +1 -1
  35. package/types/locale/en/en.d.ts +2 -0
  36. package/types/locale/es/es.d.ts +2 -0
  37. package/types/locale/i18n.d.ts +18 -0
  38. package/types/locale/index.d.ts +18 -0
  39. package/types/locale/kz/kz.d.ts +2 -0
  40. package/types/locale/pl/pl.d.ts +2 -0
  41. package/types/locale/ro/ro.d.ts +2 -0
  42. package/types/locale/ru/ru.d.ts +2 -0
  43. package/types/locale/uk/uk.d.ts +2 -0
  44. package/types/locale/uz/uz.d.ts +2 -0
  45. package/types/locale/vi/vi.d.ts +2 -0
  46. package/types/plugins/primevue/theme/components/components.d.ts +2 -0
  47. package/types/plugins/primevue/theme/components/datepicker/datepicker.d.ts +214 -0
  48. package/dist/dist-uCh8HaP3.js +0 -1910
  49. package/dist/wt-datepicker-EX4vuaeW.js +0 -5774
@@ -76,8 +76,9 @@ var w = /* @__PURE__ */ l({
76
76
  "p-button--loading": A.value,
77
77
  "p-button--icon": t.icon,
78
78
  [`p-button--size-${t.size}`]: !0,
79
- [`p-button--icon-${t.variant} p-button--icon-${t.size}`]: t.icon
80
- }, "wt-button typo-button typo-button"],
79
+ [`p-button--icon-${t.variant} p-button--icon-${t.size}`]: t.icon,
80
+ [`typo-button--${t.size}`]: t.size
81
+ }, "wt-button typo-button"],
81
82
  disabled: t.disabled,
82
83
  loading: A.value,
83
84
  severity: t.color,
@@ -1,7 +1,7 @@
1
- import "./components-eoQi5zKf.js";
1
+ import "./components-CE6UIGIl.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-CoY-pIuZ.js";
4
- import { t as n } from "./wt-button-DSxkafVk.js";
4
+ import { t as n } from "./wt-button-uY5Q1GAg.js";
5
5
  import { n as r } from "./wt-toast-CS54GhLJ.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
@@ -0,0 +1,286 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import { d as t, f as n, l as r, r as i } from "./enums-CoY-pIuZ.js";
3
+ import { a, i as o, n as s, r as c, t as l } from "./toZonedTime-B8L5kbse.js";
4
+ import { t as u } from "./vue-i18n-lTFLGg_9.js";
5
+ import { t as d } from "./useValidation-CBCP45gh.js";
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, openBlock as T, renderSlot as E, resolveComponent as D, toDisplayString as O, toRefs as k, unref as A, useModel as j, useTemplateRef as M, vShow as N, withCtx as P, withDirectives as F } from "vue";
7
+ import I from "primevue/datepicker";
8
+ //#region node_modules/date-fns-tz/dist/esm/fromZonedTime/index.js
9
+ function L(e, t, n) {
10
+ if (typeof e == "string" && !e.match(c)) return s(e, {
11
+ ...n,
12
+ timeZone: t
13
+ });
14
+ e = s(e, n);
15
+ let r = a(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = o(t, new Date(r));
16
+ return new Date(r + i);
17
+ }
18
+ //#endregion
19
+ //#region src/components/wt-datepicker/wt-datepicker.vue?vue&type=script&setup=true&lang.ts
20
+ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" }, B = [
21
+ "onMousedown",
22
+ "onMouseup",
23
+ "onMouseleave"
24
+ ], V = [
25
+ "onMousedown",
26
+ "onMouseup",
27
+ "onMouseleave"
28
+ ], H = [
29
+ "onMousedown",
30
+ "onMouseup",
31
+ "onMouseleave"
32
+ ], U = [
33
+ "onMousedown",
34
+ "onMouseup",
35
+ "onMouseleave"
36
+ ], W = /*#__PURE__*/ e(/* @__PURE__ */ y({
37
+ __name: "wt-datepicker",
38
+ props: /*@__PURE__*/ x({
39
+ showTime: { type: Boolean },
40
+ minDate: {},
41
+ maxDate: {},
42
+ label: {},
43
+ labelProps: { default: () => ({}) },
44
+ placholder: {},
45
+ disabled: { type: Boolean },
46
+ required: { type: Boolean },
47
+ clearable: { type: Boolean },
48
+ timezone: {},
49
+ v: {},
50
+ customValidators: { default: () => [] },
51
+ modelValue: {},
52
+ defaultValue: {},
53
+ name: {},
54
+ selectionMode: {},
55
+ dateFormat: {},
56
+ updateModelType: {},
57
+ inline: { type: Boolean },
58
+ showOtherMonths: { type: Boolean },
59
+ selectOtherMonths: { type: Boolean },
60
+ showIcon: { type: Boolean },
61
+ iconDisplay: {},
62
+ icon: {},
63
+ prevIcon: {},
64
+ nextIcon: {},
65
+ incrementIcon: {},
66
+ decrementIcon: {},
67
+ numberOfMonths: {},
68
+ responsiveOptions: {},
69
+ breakpoint: {},
70
+ view: {},
71
+ disabledDates: {},
72
+ disabledDays: {},
73
+ maxDateCount: {},
74
+ showOnFocus: { type: Boolean },
75
+ autoZIndex: { type: Boolean },
76
+ baseZIndex: {},
77
+ showButtonBar: { type: Boolean },
78
+ shortYearCutoff: {},
79
+ timeOnly: { type: Boolean },
80
+ hourFormat: {},
81
+ stepHour: {},
82
+ stepMinute: {},
83
+ stepSecond: {},
84
+ showSeconds: { type: Boolean },
85
+ hideOnDateTimeSelect: { type: Boolean },
86
+ hideOnRangeSelection: { type: Boolean },
87
+ timeSeparator: {},
88
+ showWeek: { type: Boolean },
89
+ manualInput: { type: Boolean },
90
+ showClear: { type: Boolean },
91
+ size: {},
92
+ invalid: { type: Boolean },
93
+ variant: {},
94
+ readonly: { type: Boolean },
95
+ placeholder: {},
96
+ appendTo: {},
97
+ inputId: {},
98
+ inputStyle: {},
99
+ inputClass: {},
100
+ panelStyle: {},
101
+ panelClass: {},
102
+ todayButtonProps: {},
103
+ clearButtonProps: {},
104
+ navigatorButtonProps: {},
105
+ timepickerButtonProps: {},
106
+ fluid: { type: Boolean },
107
+ ariaLabelledby: {},
108
+ ariaLabel: {},
109
+ formControl: {},
110
+ dt: {},
111
+ pt: {},
112
+ ptOptions: {},
113
+ unstyled: { type: Boolean }
114
+ }, {
115
+ modelValue: { default: null },
116
+ modelModifiers: {}
117
+ }),
118
+ emits: /*@__PURE__*/ x([
119
+ "update:modelValue",
120
+ "value-change",
121
+ "input",
122
+ "date-select",
123
+ "show",
124
+ "hide",
125
+ "today-click",
126
+ "clear-click",
127
+ "month-change",
128
+ "year-change",
129
+ "focus",
130
+ "blur",
131
+ "keydown"
132
+ ], ["update:modelValue"]),
133
+ setup(e, { emit: a }) {
134
+ let o = e, s = j(e, "modelValue"), { t: c } = u(), y = f({
135
+ get() {
136
+ if (!s.value) return null;
137
+ let e = /* @__PURE__ */ new Date(+s.value);
138
+ return o.timezone ? l(e, o.timezone) : e;
139
+ },
140
+ set(e) {
141
+ if (!e) {
142
+ s.value = null;
143
+ return;
144
+ }
145
+ s.value = (o.timezone ? L(e, o.timezone) : e).getTime();
146
+ }
147
+ }), x = M("datepicker"), W = `datepicker-${Math.random().toString(36).slice(2, 11)}`, G = () => {
148
+ if (o.showTime && y.value) {
149
+ let e = y.value;
150
+ C(() => {
151
+ y.value = new Date(e.getTime());
152
+ });
153
+ }
154
+ setTimeout(() => {
155
+ x.value?.alignOverlay();
156
+ }, 0);
157
+ }, K = f(() => o.required ? `${o.label}*` : o.label), { v: q, customValidators: J } = k(o), { isValidation: Y, invalid: X, validationText: Z, validationTextColor: Q } = d({
158
+ v: q,
159
+ customValidators: J
160
+ });
161
+ return (a, o) => {
162
+ let s = D("wt-label"), l = D("wt-button"), u = D("wt-icon-btn"), d = D("wt-message");
163
+ return T(), h("div", R, [
164
+ v(s, S(e.labelProps, { disabled: e.disabled }, {
165
+ for: W,
166
+ invalid: A(X)
167
+ }), {
168
+ default: P(() => [E(a.$slots, "label", w(b({ label: e.label })), () => [_(O(K.value), 1)], !0)], void 0, !0),
169
+ _: 3
170
+ }, 16, ["disabled", "invalid"]),
171
+ v(A(I), {
172
+ ref_key: "datepicker",
173
+ ref: x,
174
+ id: W,
175
+ modelValue: y.value,
176
+ "onUpdate:modelValue": o[0] ||= (e) => y.value = e,
177
+ "date-format": "dd/mm/yy",
178
+ required: e.required,
179
+ disabled: e.disabled,
180
+ "show-time": e.showTime,
181
+ "min-date": e.minDate,
182
+ "max-date": e.maxDate,
183
+ placeholder: e.placholder,
184
+ "show-clear": e.clearable && y.value,
185
+ "show-button-bar": "",
186
+ fluid: "",
187
+ pt: {
188
+ selectMonth: { class: "typo-subtitle-1" },
189
+ selectYear: { class: "typo-subtitle-1" },
190
+ tableHeaderCell: { class: "typo-body-2-bold" },
191
+ day: { class: "typo-body-2" },
192
+ hour: { class: "typo-body-2" },
193
+ minute: { class: "typo-body-2" }
194
+ },
195
+ onShow: G
196
+ }, {
197
+ buttonbar: P(({ todayCallback: i, clearCallback: a }) => [g("div", z, [v(l, {
198
+ color: A(n).SECONDARY,
199
+ variant: A(t).OUTLINED,
200
+ size: A(r).SM,
201
+ onClick: i
202
+ }, {
203
+ default: P(() => [_(O(A(c)("reusable.today")), 1)], void 0, !0),
204
+ _: 1
205
+ }, 8, [
206
+ "color",
207
+ "variant",
208
+ "size",
209
+ "onClick"
210
+ ]), F(v(l, {
211
+ color: A(n).SECONDARY,
212
+ variant: A(t).OUTLINED,
213
+ size: A(r).SM,
214
+ onClick: a
215
+ }, {
216
+ default: P(() => [_(O(A(c)("reusable.clear")), 1)], void 0, !0),
217
+ _: 1
218
+ }, 8, [
219
+ "color",
220
+ "variant",
221
+ "size",
222
+ "onClick"
223
+ ]), [[N, e.clearable && y.value]])])]),
224
+ prevbutton: P(({ actionCallback: e }) => [v(u, {
225
+ icon: "arrow-left",
226
+ onClick: e
227
+ }, null, 8, ["onClick"])]),
228
+ nextbutton: P(({ actionCallback: e }) => [v(u, {
229
+ icon: "arrow-right",
230
+ onClick: e
231
+ }, null, 8, ["onClick"])]),
232
+ clearicon: P(({ clearCallback: e }) => [v(u, {
233
+ icon: "close",
234
+ class: "wt-datepicker__clear-icon",
235
+ onClick: e
236
+ }, null, 8, ["onClick"])]),
237
+ hourincrementbutton: P(({ callbacks: e }) => [g("span", {
238
+ onMousedown: e.mousedown,
239
+ onMouseup: e.mouseup,
240
+ onMouseleave: e.mouseleave
241
+ }, [v(u, { icon: "arrow-up" })], 40, B)]),
242
+ hourdecrementbutton: P(({ callbacks: e }) => [g("span", {
243
+ onMousedown: e.mousedown,
244
+ onMouseup: e.mouseup,
245
+ onMouseleave: e.mouseleave
246
+ }, [v(u, { icon: "arrow-down" })], 40, V)]),
247
+ minuteincrementbutton: P(({ callbacks: e }) => [g("span", {
248
+ onMousedown: e.mousedown,
249
+ onMouseup: e.mouseup,
250
+ onMouseleave: e.mouseleave
251
+ }, [v(u, { icon: "arrow-up" })], 40, H)]),
252
+ minutedecrementbutton: P(({ callbacks: e }) => [g("span", {
253
+ onMousedown: e.mousedown,
254
+ onMouseup: e.mouseup,
255
+ onMouseleave: e.mouseleave
256
+ }, [v(u, { icon: "arrow-down" })], 40, U)]),
257
+ _: 1
258
+ }, 8, [
259
+ "modelValue",
260
+ "required",
261
+ "disabled",
262
+ "show-time",
263
+ "min-date",
264
+ "max-date",
265
+ "placeholder",
266
+ "show-clear"
267
+ ]),
268
+ A(Y) && A(Z) ? (T(), p(d, {
269
+ key: 0,
270
+ color: A(Q),
271
+ variant: A(i).SIMPLE,
272
+ size: A(r).SM
273
+ }, {
274
+ default: P(() => [_(O(A(Z)), 1)], void 0, !0),
275
+ _: 1
276
+ }, 8, [
277
+ "color",
278
+ "variant",
279
+ "size"
280
+ ])) : m("", !0)
281
+ ]);
282
+ };
283
+ }
284
+ }), [["__scopeId", "data-v-07d7fc7e"]]);
285
+ //#endregion
286
+ export { W as default };
@@ -1,4 +1,4 @@
1
- import { c as e, i as t } from "./components-eoQi5zKf.js";
1
+ import { C as e, i as t } from "./components-CE6UIGIl.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t as r } from "./displayText-CtaxzaBz.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,7 +1,7 @@
1
1
  import { t as e } from "./wt-icon-CU2jtYw1.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-CoY-pIuZ.js";
4
- import { t as r } from "./wt-button-DSxkafVk.js";
4
+ import { t as r } from "./wt-button-uY5Q1GAg.js";
5
5
  import { n as i, t as a } from "./useVidstackSrc-epUQZhkL.js";
6
6
  import { t as o } from "./wt-popover-BdwrokVy.js";
7
7
  import { t as s } from "./wt-slider-BPzRTeYU.js";
@@ -1,4 +1,4 @@
1
- import { n as e } from "./components-eoQi5zKf.js";
1
+ import { n as e } from "./components-CE6UIGIl.js";
2
2
  import { t } from "./vue-i18n-lTFLGg_9.js";
3
3
  import { n, r } from "./clients-DtfBVBhI.js";
4
4
  import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
@@ -1,4 +1,4 @@
1
- import { a as e, o as t, r as n, s as r } from "./components-eoQi5zKf.js";
1
+ import { a as e, o as t, r as n, s as r } from "./components-CE6UIGIl.js";
2
2
  import { t as i } from "./enums-CoY-pIuZ.js";
3
3
  import { t as a } from "./vue-i18n-lTFLGg_9.js";
4
4
  import { t as o } from "./clients-DtfBVBhI.js";
@@ -93,10 +93,10 @@ var y = /* @__PURE__ */ d({
93
93
  value: C.value
94
94
  }
95
95
  }, () => [u(_(n), p(w.value, {
96
- value: C.value,
97
- mode: "datetime",
98
- onInput: D
99
- }), null, 16, ["value"])]) : l("", !0);
96
+ "model-value": C.value,
97
+ "show-time": "",
98
+ "onUpdate:modelValue": D
99
+ }), null, 16, ["model-value"])]) : l("", !0);
100
100
  };
101
101
  }
102
102
  });
@@ -1,7 +1,7 @@
1
- import { l as e } from "./components-eoQi5zKf.js";
1
+ import { w as e } from "./components-CE6UIGIl.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-CoY-pIuZ.js";
4
- import "./wt-button-DSxkafVk.js";
4
+ import "./wt-button-uY5Q1GAg.js";
5
5
  import { t as r } from "./wt-icon-btn-eDHK__L_.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.63",
3
+ "version": "26.6.65",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -68,6 +68,7 @@
68
68
  "flat": "^6.0.1",
69
69
  "is-valid-domain": "^0.1.6",
70
70
  "path-browserify": "^1.0.1",
71
+ "primelocale": "^2.3.2",
71
72
  "primevue": "^4.5.4",
72
73
  "qs-esm": "^7.0.3",
73
74
  "sortablejs": "^1.15.3",
@@ -64,9 +64,9 @@
64
64
  >
65
65
  <wt-datepicker
66
66
  v-bind="sharedChildrenProps"
67
- :value="value"
68
- mode="datetime"
69
- @input="setValue"
67
+ :model-value="value"
68
+ show-time
69
+ @update:model-value="setValue"
70
70
  />
71
71
  </slot>
72
72
  </template>
@@ -8,13 +8,14 @@
8
8
  'p-button--icon': icon,
9
9
  [`p-button--size-${size}`]: true,
10
10
  [ `p-button--icon-${variant} p-button--icon-${size}` ]: icon,
11
+ [ `typo-button--${size}` ]: size,
11
12
  }"
12
13
  :disabled="disabled"
13
14
  :loading="showLoader"
14
15
  :severity="color"
15
16
  :size="primevueSizeMap[size]"
16
17
  :variant="variant"
17
- class="wt-button typo-button typo-button"
18
+ class="wt-button typo-button"
18
19
  v-bind="attrs"
19
20
  @click.prevent="emit('click', $event)"
20
21
  >