@webitel/ui-sdk 26.6.108 → 26.6.110

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--jBlnDLD.js";
1
+ import "./components-D-OqQDfD.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-De8CDKZ1.js";
4
4
  import { t as n } from "./wt-button-dC4nOW56.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components--jBlnDLD.js";
1
+ import { C as e, i as t } from "./components-D-OqQDfD.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,5 +1,5 @@
1
1
  import { n as e, r as t } from "./clients-DqzkR0RW.js";
2
- import { n } from "./components--jBlnDLD.js";
2
+ import { n } from "./components-D-OqQDfD.js";
3
3
  import { t as r } from "./vue-i18n-Db_oYfO8.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";
5
5
  //#endregion
@@ -42,6 +42,7 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
42
42
  return D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).getHours() : Math.floor(+D.modelValue / T);
43
43
  },
44
44
  set(e) {
45
+ if (!Number.isFinite(+e)) return;
45
46
  let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setHours(e) : Math.max(0, +D.modelValue - U.value * T + e * T);
46
47
  O("update:modelValue", t);
47
48
  }
@@ -50,6 +51,7 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
50
51
  return D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).getMinutes() : Math.floor(+D.modelValue / E % 60);
51
52
  },
52
53
  set(e) {
54
+ if (!Number.isFinite(+e)) return;
53
55
  let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setMinutes(e) : Math.max(0, +D.modelValue - W.value * E + e * E);
54
56
  O("update:modelValue", t);
55
57
  }
@@ -58,6 +60,7 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
58
60
  return D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).getSeconds() : Math.floor(D.modelValue % 60);
59
61
  },
60
62
  set(e) {
63
+ if (!Number.isFinite(+e)) return;
61
64
  let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setSeconds(e) : Math.max(0, +D.modelValue - G.value + +e);
62
65
  O("update:modelValue", t);
63
66
  }
@@ -96,7 +99,7 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
96
99
  "onUpdate:modelValue": i[1] ||= (e) => W.value = e,
97
100
  disabled: e.disabled,
98
101
  label: V.value,
99
- "min-value": -1,
102
+ "min-value": U.value ? -1 : 0,
100
103
  "max-value": 60,
101
104
  v: S(A),
102
105
  "hide-input-info": ""
@@ -104,6 +107,7 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
104
107
  "model-value",
105
108
  "disabled",
106
109
  "label",
110
+ "min-value",
107
111
  "v"
108
112
  ])) : s("", !0),
109
113
  z.value ? (_(), o(d, {
@@ -112,7 +116,7 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
112
116
  "onUpdate:modelValue": i[2] ||= (e) => G.value = e,
113
117
  disabled: e.disabled,
114
118
  label: H.value,
115
- "min-value": -1,
119
+ "min-value": W.value ? -1 : 0,
116
120
  "max-value": 60,
117
121
  v: S(A),
118
122
  "hide-input-info": ""
@@ -120,6 +124,7 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
120
124
  "model-value",
121
125
  "disabled",
122
126
  "label",
127
+ "min-value",
123
128
  "v"
124
129
  ])) : s("", !0)
125
130
  ]),
@@ -139,6 +144,6 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
139
144
  ], 2);
140
145
  };
141
146
  }
142
- }), [["__scopeId", "data-v-323eaef0"]]);
147
+ }), [["__scopeId", "data-v-3e79b83c"]]);
143
148
  //#endregion
144
149
  export { D as default };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clients-DqzkR0RW.js";
2
- import { a as t, o as n, r, s as i } from "./components--jBlnDLD.js";
2
+ import { a as t, o as n, r, s as i } from "./components-D-OqQDfD.js";
3
3
  import { t as a } from "./enums-De8CDKZ1.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 { w as e } from "./components--jBlnDLD.js";
1
+ import { w as e } from "./components-D-OqQDfD.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-De8CDKZ1.js";
4
4
  import "./wt-button-dC4nOW56.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.108",
3
+ "version": "26.6.110",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -44,7 +44,7 @@
44
44
  v-model:model-value="min"
45
45
  :disabled="disabled"
46
46
  :label="labelMin"
47
- :min-value="-1"
47
+ :min-value="hour ? -1 : 0"
48
48
  :max-value="60"
49
49
  :v="v"
50
50
  hide-input-info
@@ -54,7 +54,7 @@
54
54
  v-model:model-value="sec"
55
55
  :disabled="disabled"
56
56
  :label="labelSec"
57
- :min-value="-1"
57
+ :min-value="min ? -1 : 0"
58
58
  :max-value="60"
59
59
  :v="v"
60
60
  hide-input-info
@@ -212,6 +212,7 @@ const hour = computed({
212
212
  // : Math.floor((this.value % SEC_IN_DAY) / SEC_IN_HOUR);
213
213
  },
214
214
  set(value: number) {
215
+ if (!Number.isFinite(+value)) return;
215
216
  const newValue = props.dateMode
216
217
  ? new Date(+props.modelValue).setHours(value)
217
218
  : Math.max(
@@ -229,6 +230,7 @@ const min = computed({
229
230
  : Math.floor((+props.modelValue / SEC_IN_MIN) % 60);
230
231
  },
231
232
  set(value: number) {
233
+ if (!Number.isFinite(+value)) return;
232
234
  const newValue = props.dateMode
233
235
  ? new Date(+props.modelValue).setMinutes(value)
234
236
  : Math.max(
@@ -246,6 +248,7 @@ const sec = computed({
246
248
  : Math.floor(+props.modelValue % 60);
247
249
  },
248
250
  set(value: number) {
251
+ if (!Number.isFinite(+value)) return;
249
252
  const newValue = props.dateMode
250
253
  ? new Date(+props.modelValue).setSeconds(value)
251
254
  : Math.max(0, +props.modelValue - sec.value + +value);
@@ -14,7 +14,7 @@ const tooltip = {
14
14
  typo: WtTypography.Body2,
15
15
  })}
16
16
  white-space: pre-line;
17
- word-break: normal;
17
+ word-break: break-word;
18
18
  background: ${dt('tooltip.background')};
19
19
  color: ${dt('tooltip.color')};
20
20
  padding: ${dt('tooltip.padding')};