@webitel/ui-sdk 26.4.62 → 26.4.63

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 (61) hide show
  1. package/dist/{index-2RuzTRCZ.js → index-B3Jymb2C.js} +1 -1
  2. package/dist/{index-FB11lRZm.js → index-CvrqHr0L.js} +1 -1
  3. package/dist/{install-BTw4h6La.js → install-uRNiMbqp.js} +37 -37
  4. package/dist/{isObject-BFrSZfip.js → isObject-BK-6Iryr.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 +19 -19
  8. package/dist/{useVidstackSrc-DggVBhQy.js → useVidstackSrc-aTg3neHg.js} +1 -1
  9. package/dist/{vidstack-Bq6c3Bam-Brto8BVf.js → vidstack-Bq6c3Bam-Cp_lukNy.js} +3 -3
  10. package/dist/{vidstack-D2pY00kU-Cpy-wek9.js → vidstack-D2pY00kU-BMVupxjA.js} +3 -3
  11. package/dist/{vidstack-DDXt6fpN-BqFmvH0M.js → vidstack-DDXt6fpN-CMC_23cl.js} +2 -2
  12. package/dist/{vidstack-D_-9AA6_-DJIX4G2R.js → vidstack-D_-9AA6_-CyZ84iqc.js} +2 -2
  13. package/dist/{vidstack-DqAw8m9J-DBBU_lk_.js → vidstack-DqAw8m9J-6e1QHu7M.js} +1 -1
  14. package/dist/{vidstack-audio-C4CyIInn.js → vidstack-audio-Cq1qlG1C.js} +2 -2
  15. package/dist/{vidstack-dash-uK2dDz8T.js → vidstack-dash-CQMo6qb2.js} +4 -4
  16. package/dist/{vidstack-google-cast-C1HYF_2j.js → vidstack-google-cast-CdjSB6jU.js} +4 -4
  17. package/dist/{vidstack-hls-Bn3hnf9h.js → vidstack-hls-DXA5M8xE.js} +4 -4
  18. package/dist/{vidstack-video-Boo7uoZI.js → vidstack-video-C9hL1TBH.js} +3 -3
  19. package/dist/{vidstack-vimeo-PNsaLSEO.js → vidstack-vimeo-DmcPEIAz.js} +4 -4
  20. package/dist/{vidstack-youtube-CtY98HNF.js → vidstack-youtube-DVrEbkfS.js} +3 -3
  21. package/dist/{wt-action-bar-DQqNd2mj.js → wt-action-bar-HuVY9BVz.js} +1 -1
  22. package/dist/{wt-button-select-CzWp6E7X.js → wt-button-select-h15NwRyX.js} +1 -1
  23. package/dist/{wt-call-media-action-BMKcEg3T.js → wt-call-media-action-nEB9IkUB.js} +1 -1
  24. package/dist/{wt-chat-emoji-CPpRiG3z.js → wt-chat-emoji-BlKZydZ3.js} +2 -2
  25. package/dist/{wt-confirm-dialog-BQ_tHChS.js → wt-confirm-dialog-CWoDd5jv.js} +1 -1
  26. package/dist/{wt-context-menu-D9A52yob.js → wt-context-menu-By5_1zL6.js} +1 -1
  27. package/dist/{wt-copy-action-SgnK45r-.js → wt-copy-action-DGAOCeIL.js} +1 -1
  28. package/dist/{wt-datepicker-Cpmte3rg.js → wt-datepicker-DGEKsX77.js} +1 -1
  29. package/dist/{wt-display-chip-items-DL5Q6Obr.js → wt-display-chip-items-rsBIxjvO.js} +1 -1
  30. package/dist/{wt-dual-panel-Cbp3-6Fz.js → wt-dual-panel-DpOUtmSu.js} +1 -1
  31. package/dist/{wt-dummy-CQoomGSQ.js → wt-dummy-nq43ktii.js} +1 -1
  32. package/dist/{wt-error-page-ND0BquL3.js → wt-error-page-CNwzDAa5.js} +1 -1
  33. package/dist/{wt-expansion-card-HYWe9uzx.js → wt-expansion-card-D_N3668C.js} +1 -1
  34. package/dist/{wt-expansion-panel-CDn9iF8y.js → wt-expansion-panel-C_K7VV-a.js} +1 -1
  35. package/dist/{wt-filters-panel-wrapper-DRzlDKj3.js → wt-filters-panel-wrapper-D87l2D-4.js} +1 -1
  36. package/dist/{wt-galleria-B_9-n0Iv.js → wt-galleria-MXnF8Yry.js} +1 -1
  37. package/dist/{wt-inline-add-panel-D4vbb7DT.js → wt-inline-add-panel-BMBryg2k.js} +1 -1
  38. package/dist/{wt-navigation-menu-CoABCwJg.js → wt-navigation-menu-BkaOMc1p.js} +1 -1
  39. package/dist/{wt-notifications-bar-BHwh2Uhl.js → wt-notifications-bar-D7EPCV4R.js} +2 -2
  40. package/dist/{wt-pagination-CaBK5kAI.js → wt-pagination-C1os93jv.js} +1 -1
  41. package/dist/{wt-player-CFAv3Bth.js → wt-player-C0WYT8pr.js} +2 -2
  42. package/dist/{wt-screen-recordings-action-Bkn5QjBL.js → wt-screen-recordings-action-cUC0DnI2.js} +1 -1
  43. package/dist/{wt-search-bar-86T7O7I2.js → wt-search-bar-DGpkQtFD.js} +1 -1
  44. package/dist/{wt-selection-popup-ZJ0J-VDP.js → wt-selection-popup-r_SqyM8F.js} +1 -1
  45. package/dist/{wt-start-page-CbQDXOdl.js → wt-start-page-tstlgmOl.js} +1 -1
  46. package/dist/{wt-status-select-DwWcH1x9.js → wt-status-select-BsTiJLm6.js} +1 -1
  47. package/dist/{wt-stepper-fv8Im1Gl.js → wt-stepper-DKw-11S4.js} +1 -1
  48. package/dist/{wt-table-Clbp4lq3.js → wt-table-5cRcGoJt.js} +1 -1
  49. package/dist/{wt-table-actions-DiyOBZhY.js → wt-table-actions-B0YfVrkR.js} +1 -1
  50. package/dist/{wt-table-column-select-D3oCCDNW.js → wt-table-column-select-D6LkZ5Mu.js} +2 -2
  51. package/dist/{wt-tabs-B8eLeduC.js → wt-tabs-idB6TsFS.js} +1 -1
  52. package/dist/{wt-tags-input-CbaLK4J8.js → wt-tags-input-IheqH-c8.js} +2 -2
  53. package/dist/wt-timepicker-WnnuHjC0.js +118 -0
  54. package/dist/{wt-tree-CwK_7_2I.js → wt-tree-7fYGdVb1.js} +2 -2
  55. package/dist/{wt-tree-table-DxhPCn7z.js → wt-tree-table-D_RMkM7_.js} +1 -1
  56. package/dist/{wt-type-extension-value-input-BcH58urY.js → wt-type-extension-value-input-BtV7VvsT.js} +2 -2
  57. package/dist/{wt-vidstack-player-BpmqdjlG.js → wt-vidstack-player-CCfw5MjM.js} +10 -10
  58. package/package.json +1 -1
  59. package/src/components/wt-timepicker/wt-timepicker.vue +11 -1
  60. package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +5 -0
  61. package/dist/wt-timepicker-Dwf0Hdhv.js +0 -117
@@ -35,7 +35,7 @@
35
35
  v-model:model-value="hour"
36
36
  :disabled="disabled"
37
37
  :label="labelHours"
38
- :max-value="dateMode ? null : 23"
38
+ :max-value="getHoursMaxValue"
39
39
  :v="v"
40
40
  hide-input-info
41
41
  @blur="onHoursBlurEvent"
@@ -127,11 +127,16 @@ interface WtTimepickerProps {
127
127
  * Custom validators for vuelidate
128
128
  */
129
129
  customValidators?: unknown[];
130
+ /**
131
+ * remove max hour restriction
132
+ */
133
+ noMaxHours?: boolean;
130
134
  }
131
135
 
132
136
  const props = withDefaults(defineProps<WtTimepickerProps>(), {
133
137
  modelValue: 0,
134
138
  dateMode: false,
139
+ noMaxHours: false,
135
140
  label: '',
136
141
  format: 'hh:mm:ss',
137
142
  disabled: false,
@@ -167,6 +172,11 @@ const isHour = computed(() => props.format.includes('hh'));
167
172
  const isMin = computed(() => props.format.includes('mm'));
168
173
  const isSec = computed(() => props.format.includes('ss'));
169
174
 
175
+ const getHoursMaxValue = computed(() => {
176
+ if (props.noMaxHours || props.dateMode) return null;
177
+ return 23;
178
+ });
179
+
170
180
  // labelDays() {
171
181
  // if (this.noLabel) return null;
172
182
  // return this.label ? null : this.$t('webitelUI.timepicker.day');
@@ -44,6 +44,10 @@ interface WtTimepickerProps {
44
44
  * Custom validators for vuelidate
45
45
  */
46
46
  customValidators?: unknown[];
47
+ /**
48
+ * remove max hour restriction
49
+ */
50
+ noMaxHours?: boolean;
47
51
  }
48
52
  declare var __VLS_7: {
49
53
  label: string;
@@ -67,6 +71,7 @@ declare const __VLS_base: import("vue").DefineComponent<WtTimepickerProps, {}, {
67
71
  format: string;
68
72
  dateMode: boolean;
69
73
  noLabel: boolean;
74
+ noMaxHours: boolean;
70
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
76
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
72
77
  declare const _default: typeof __VLS_export;
@@ -1,117 +0,0 @@
1
- import { defineComponent as q, toRefs as R, computed as o, resolveComponent as w, createElementBlock as O, openBlock as d, normalizeClass as j, unref as t, createBlock as r, createCommentVNode as m, createElementVNode as A, mergeProps as F, withCtx as x, renderSlot as G, normalizeProps as J, guardReactiveProps as K, createTextVNode as S, toDisplayString as y, nextTick as Q } from "vue";
2
- import { B as W, z as X, C as Y, M as Z, _ as ee } from "./install-BTw4h6La.js";
3
- const le = { class: "wt-timepicker__wrapper" }, c = 3600, M = 60, ae = /* @__PURE__ */ q({
4
- __name: "wt-timepicker",
5
- props: {
6
- modelValue: { default: 0 },
7
- dateMode: { type: Boolean, default: !1 },
8
- label: { default: "" },
9
- format: { default: "hh:mm:ss" },
10
- disabled: { type: Boolean, default: !1 },
11
- labelProps: { default: () => ({}) },
12
- noLabel: { type: Boolean, default: !1 },
13
- required: { type: Boolean, default: !1 },
14
- v: { default: null },
15
- regleValidation: { default: null },
16
- customValidators: { default: () => [] }
17
- },
18
- emits: ["update:modelValue"],
19
- setup(u, { emit: B }) {
20
- const e = u, i = B, { t: b } = W(), { v, customValidators: C, regleValidation: h } = R(e), { isValidation: I, invalid: k, validationText: g, validationTextColor: D } = X({
21
- v,
22
- customValidators: C,
23
- regleValidation: h
24
- }), _ = o(() => e.format.includes("hh")), H = o(() => e.format.includes("mm")), L = o(() => e.format.includes("ss")), U = o(() => e.noLabel || e.label ? null : b("webitelUI.timepicker.hour")), z = o(() => e.noLabel || e.label ? null : b("webitelUI.timepicker.min")), E = o(() => e.noLabel || e.label ? null : b("webitelUI.timepicker.sec")), n = o({
25
- get() {
26
- return e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).getHours() : Math.floor(+e.modelValue / c);
27
- },
28
- set(l) {
29
- const a = e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).setHours(l) : +e.modelValue - n.value * c + l * c;
30
- i("update:modelValue", a);
31
- }
32
- }), f = o({
33
- get() {
34
- return e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).getMinutes() : Math.floor(+e.modelValue / M % 60);
35
- },
36
- set(l) {
37
- const a = e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).setMinutes(l) : +e.modelValue - f.value * M + l * M;
38
- i("update:modelValue", a);
39
- }
40
- }), V = o({
41
- get() {
42
- return e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).getSeconds() : Math.floor(+e.modelValue % 60);
43
- },
44
- set(l) {
45
- const a = e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).setSeconds(l) : +e.modelValue - V.value + +l;
46
- i("update:modelValue", a);
47
- }
48
- }), N = o(() => e.required ? `${e.label} (${e.format})*` : `${e.label} (${e.format})`), P = () => {
49
- const l = e.dateMode ? (/* @__PURE__ */ new Date(+e.modelValue)).setHours(n.value) : +e.modelValue - n.value * c + n.value * c;
50
- i("update:modelValue", 0), Q(() => {
51
- i("update:modelValue", l);
52
- });
53
- };
54
- return (l, a) => {
55
- const T = w("wt-label"), p = w("wt-time-input"), $ = w("wt-message");
56
- return d(), O("div", {
57
- class: j([{ "wt-timepicker--invalid": t(k) }, "wt-timepicker"])
58
- }, [
59
- u.label || !u.noLabel ? (d(), r(T, F({ key: 0 }, u.labelProps, { invalid: t(k) }), {
60
- default: x(() => [
61
- G(l.$slots, "label", J(K({ label: u.label })), () => [
62
- S(y(N.value), 1)
63
- ], !0)
64
- ], void 0, !0),
65
- _: 3
66
- }, 16, ["invalid"])) : m("", !0),
67
- A("div", le, [
68
- _.value ? (d(), r(p, {
69
- key: 0,
70
- "model-value": n.value,
71
- "onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
72
- disabled: u.disabled,
73
- label: U.value,
74
- "max-value": u.dateMode ? null : 23,
75
- v: t(v),
76
- "hide-input-info": "",
77
- onBlur: P
78
- }, null, 8, ["model-value", "disabled", "label", "max-value", "v"])) : m("", !0),
79
- H.value ? (d(), r(p, {
80
- key: 1,
81
- "model-value": f.value,
82
- "onUpdate:modelValue": a[1] || (a[1] = (s) => f.value = s),
83
- disabled: u.disabled,
84
- label: z.value,
85
- "max-value": 59,
86
- v: t(v),
87
- "hide-input-info": ""
88
- }, null, 8, ["model-value", "disabled", "label", "v"])) : m("", !0),
89
- L.value ? (d(), r(p, {
90
- key: 2,
91
- "model-value": V.value,
92
- "onUpdate:modelValue": a[2] || (a[2] = (s) => V.value = s),
93
- disabled: u.disabled,
94
- label: E.value,
95
- "max-value": 59,
96
- v: t(v),
97
- "hide-input-info": ""
98
- }, null, 8, ["model-value", "disabled", "label", "v"])) : m("", !0)
99
- ]),
100
- t(I) && t(g) ? (d(), r($, {
101
- key: 1,
102
- color: t(D),
103
- variant: t(Z).SIMPLE,
104
- size: t(Y).SM
105
- }, {
106
- default: x(() => [
107
- S(y(t(g)), 1)
108
- ], void 0, !0),
109
- _: 1
110
- }, 8, ["color", "variant", "size"])) : m("", !0)
111
- ], 2);
112
- };
113
- }
114
- }), ue = /* @__PURE__ */ ee(ae, [["__scopeId", "data-v-35e5a4db"]]);
115
- export {
116
- ue as default
117
- };