@webitel/ui-sdk 26.8.17 → 26.8.18

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-C7jH_1i9.js";
1
+ import "./components-BdV7NKIV.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-DwAda_g4.js";
@@ -3,10 +3,10 @@ import { d as t, f as n, l as r, r as i } from "./enums-De8CDKZ1.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
5
  import { t as d } from "./useValidation-DgSm80YX.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, 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 ee, vShow as P, withCtx as F, withDirectives as I } from "vue";
7
- import L from "primevue/datepicker";
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 ee, vShow as te, withCtx as P, withDirectives as F } from "vue";
7
+ import I from "primevue/datepicker";
8
8
  //#region node_modules/date-fns-tz/dist/esm/fromZonedTime/index.js
9
- function R(e, t, n) {
9
+ function L(e, t, n) {
10
10
  if (typeof e == "string" && !e.match(c)) return s(e, {
11
11
  ...n,
12
12
  timeZone: t
@@ -17,7 +17,7 @@ function R(e, t, n) {
17
17
  }
18
18
  //#endregion
19
19
  //#region src/components/wt-datepicker/_internals/composables/useAutoSeparator.ts
20
- function z(e) {
20
+ function R(e) {
21
21
  let t = [{
22
22
  afterPos: 2,
23
23
  sep: "/"
@@ -56,7 +56,7 @@ function z(e) {
56
56
  }
57
57
  //#endregion
58
58
  //#region src/components/wt-datepicker/_internals/composables/useOverlayAnchor.ts
59
- function B() {
59
+ function z() {
60
60
  let e = null;
61
61
  function t(e, t) {
62
62
  e.style.width !== t && (e.style.width = t, e.style.minWidth = "");
@@ -84,7 +84,7 @@ function B() {
84
84
  }
85
85
  //#endregion
86
86
  //#region src/components/wt-datepicker/_internals/composables/usePreventZeroPad.ts
87
- function V() {
87
+ function B() {
88
88
  let e = null;
89
89
  function t(t) {
90
90
  let n = t.target, r = n.value, i = n.selectionStart ?? 0, a = r.split("/"), o = 0;
@@ -112,7 +112,7 @@ function V() {
112
112
  }
113
113
  //#endregion
114
114
  //#region src/components/wt-datepicker/_internals/composables/useRestoreOnBlur.ts
115
- function H(e, t) {
115
+ function V(e, t) {
116
116
  function n() {
117
117
  if (t()) return;
118
118
  let n = e();
@@ -124,7 +124,7 @@ function H(e, t) {
124
124
  }
125
125
  //#endregion
126
126
  //#region src/components/wt-datepicker/_internals/composables/useStrictInput.ts
127
- function U(e) {
127
+ function H(e) {
128
128
  let t = /^[0-9]$/, n = /* @__PURE__ */ new Set([
129
129
  "Backspace",
130
130
  "Delete",
@@ -151,8 +151,8 @@ function U(e) {
151
151
  }
152
152
  //#endregion
153
153
  //#region src/components/wt-datepicker/_internals/composables/useDatepicker.ts
154
- function W(e, t, n, r) {
155
- let { onInputCapture: i, onInputBubble: a } = V(), { onInputBubble: o, resetLength: s } = z(n), { onKeydown: c } = U(n), { lock: l, unlock: u } = B(), { onBlur: d } = H(t, r);
154
+ function U(e, t, n, r) {
155
+ let { onInputCapture: i, onInputBubble: a } = B(), { onInputBubble: o, resetLength: s } = R(n), { onKeydown: c } = H(n), { lock: l, unlock: u } = z(), { onBlur: d } = V(t, r);
156
156
  function f(e) {
157
157
  i(e);
158
158
  }
@@ -173,23 +173,23 @@ function W(e, t, n, r) {
173
173
  }
174
174
  //#endregion
175
175
  //#region src/components/wt-datepicker/wt-datepicker.vue?vue&type=script&setup=true&lang.ts
176
- var G = { class: "wt-datepicker" }, K = { class: "wt-datepicker__button-bar" }, q = [
176
+ var W = { class: "wt-datepicker" }, G = { class: "wt-datepicker__button-bar" }, K = [
177
177
  "onMousedown",
178
178
  "onMouseup",
179
179
  "onMouseleave"
180
- ], J = [
180
+ ], q = [
181
181
  "onMousedown",
182
182
  "onMouseup",
183
183
  "onMouseleave"
184
- ], Y = [
184
+ ], J = [
185
185
  "onMousedown",
186
186
  "onMouseup",
187
187
  "onMouseleave"
188
- ], X = [
188
+ ], Y = [
189
189
  "onMousedown",
190
190
  "onMouseup",
191
191
  "onMouseleave"
192
- ], Z = /*#__PURE__*/ e(/* @__PURE__ */ y({
192
+ ], X = /*#__PURE__*/ e(/* @__PURE__ */ y({
193
193
  __name: "wt-datepicker",
194
194
  props: /*@__PURE__*/ x({
195
195
  showTime: { type: Boolean },
@@ -299,10 +299,10 @@ var G = { class: "wt-datepicker" }, K = { class: "wt-datepicker__button-bar" },
299
299
  s.value = null;
300
300
  return;
301
301
  }
302
- let t = o.timezone ? R(e, o.timezone) : e;
302
+ let t = o.timezone ? L(e, o.timezone) : e;
303
303
  s.value = t.getTime();
304
304
  }
305
- }), x = ee("datepicker"), T = `datepicker-${Math.random().toString(36).slice(2, 11)}`, { onBlur: E, lockOverlay: z, unlockOverlay: B } = W(() => x.value?.$el?.querySelector("input"), () => x.value, () => !!o.showTime, () => !!o.clearable), V = f(() => o.placholder || `dd/mm/yyyy ${o.showTime ? "hh:mm" : ""}`), H = () => {
305
+ }), x = ee("datepicker"), T = `datepicker-${Math.random().toString(36).slice(2, 11)}`, { onBlur: E, lockOverlay: R, unlockOverlay: z } = U(() => x.value?.$el?.querySelector("input"), () => x.value, () => !!o.showTime, () => !!o.clearable), B = f(() => o.placholder || `dd/mm/yyyy ${o.showTime ? "hh:mm" : ""}`), V = () => {
306
306
  if (o.showTime && y.value) {
307
307
  let e = y.value;
308
308
  C(() => {
@@ -312,25 +312,25 @@ var G = { class: "wt-datepicker" }, K = { class: "wt-datepicker__button-bar" },
312
312
  setTimeout(() => {
313
313
  x.value?.alignOverlay();
314
314
  let e = x.value?.overlay;
315
- e && (e.style.minWidth = "", z(e));
315
+ e && (e.style.minWidth = "", R(e));
316
316
  }, 0);
317
- }, U = () => {
318
- B();
319
- }, Z = f(() => o.required ? `${o.label}*` : o.label), { v: Q, customValidators: te } = j(o), { isValidation: ne, invalid: re, validationText: $, validationTextColor: ie } = d({
320
- v: Q,
321
- customValidators: te
317
+ }, H = () => {
318
+ z();
319
+ }, X = f(() => o.required ? `${o.label}*` : o.label), { v: Z, customValidators: ne } = j(o), { isValidation: re, invalid: Q, validationText: $, validationTextColor: ie } = d({
320
+ v: Z,
321
+ customValidators: ne
322
322
  });
323
323
  return (a, o) => {
324
324
  let s = k("wt-label"), l = k("wt-button"), u = k("wt-icon-btn"), d = k("wt-message");
325
- return D(), h("div", G, [
325
+ return D(), h("div", W, [
326
326
  v(s, S(e.labelProps, { disabled: e.disabled }, {
327
327
  for: T,
328
- invalid: M(re)
328
+ invalid: M(Q)
329
329
  }), {
330
- default: F(() => [O(a.$slots, "label", w(b({ label: e.label })), () => [_(A(Z.value), 1)], !0)], void 0, !0),
330
+ default: P(() => [O(a.$slots, "label", w(b({ label: e.label })), () => [_(A(X.value), 1)], !0)], void 0, !0),
331
331
  _: 3
332
332
  }, 16, ["disabled", "invalid"]),
333
- v(M(L), {
333
+ v(M(I), {
334
334
  ref_key: "datepicker",
335
335
  ref: x,
336
336
  id: T,
@@ -340,10 +340,11 @@ var G = { class: "wt-datepicker" }, K = { class: "wt-datepicker__button-bar" },
340
340
  "input-class": "typo-body-1",
341
341
  required: e.required,
342
342
  disabled: e.disabled,
343
+ invalid: M(Q),
343
344
  "show-time": e.showTime,
344
345
  "min-date": e.minDate,
345
346
  "max-date": e.maxDate,
346
- placeholder: V.value,
347
+ placeholder: B.value,
347
348
  "show-clear": e.clearable && y.value,
348
349
  "show-button-bar": "",
349
350
  fluid: "",
@@ -356,75 +357,76 @@ var G = { class: "wt-datepicker" }, K = { class: "wt-datepicker__button-bar" },
356
357
  minute: { class: "typo-body-2" },
357
358
  panel: { style: { maxWidth: "380px" } }
358
359
  },
359
- onShow: H,
360
- onHide: U,
360
+ onShow: V,
361
+ onHide: H,
361
362
  onBlur: M(E)
362
363
  }, {
363
- buttonbar: F(({ todayCallback: i, clearCallback: a }) => [g("div", K, [v(l, {
364
+ buttonbar: P(({ todayCallback: i, clearCallback: a }) => [g("div", G, [v(l, {
364
365
  color: M(n).SECONDARY,
365
366
  variant: M(t).OUTLINED,
366
367
  size: M(r).SM,
367
368
  onClick: i
368
369
  }, {
369
- default: F(() => [_(A(M(c)("reusable.today")), 1)], void 0, !0),
370
+ default: P(() => [_(A(M(c)("reusable.today")), 1)], void 0, !0),
370
371
  _: 1
371
372
  }, 8, [
372
373
  "color",
373
374
  "variant",
374
375
  "size",
375
376
  "onClick"
376
- ]), I(v(l, {
377
+ ]), F(v(l, {
377
378
  color: M(n).SECONDARY,
378
379
  variant: M(t).OUTLINED,
379
380
  size: M(r).SM,
380
381
  onClick: a
381
382
  }, {
382
- default: F(() => [_(A(M(c)("reusable.clear")), 1)], void 0, !0),
383
+ default: P(() => [_(A(M(c)("reusable.clear")), 1)], void 0, !0),
383
384
  _: 1
384
385
  }, 8, [
385
386
  "color",
386
387
  "variant",
387
388
  "size",
388
389
  "onClick"
389
- ]), [[P, e.clearable && y.value]])])]),
390
- prevbutton: F(({ actionCallback: e }) => [v(u, {
390
+ ]), [[te, e.clearable && y.value]])])]),
391
+ prevbutton: P(({ actionCallback: e }) => [v(u, {
391
392
  icon: "arrow-left",
392
393
  onClick: e
393
394
  }, null, 8, ["onClick"])]),
394
- nextbutton: F(({ actionCallback: e }) => [v(u, {
395
+ nextbutton: P(({ actionCallback: e }) => [v(u, {
395
396
  icon: "arrow-right",
396
397
  onClick: e
397
398
  }, null, 8, ["onClick"])]),
398
- clearicon: F(({ clearCallback: e }) => [v(u, {
399
+ clearicon: P(({ clearCallback: e }) => [v(u, {
399
400
  icon: "close",
400
401
  class: "wt-datepicker__clear-icon",
401
402
  onClick: e
402
403
  }, null, 8, ["onClick"])]),
403
- hourincrementbutton: F(({ callbacks: e }) => [g("span", {
404
+ hourincrementbutton: P(({ callbacks: e }) => [g("span", {
404
405
  onMousedown: e.mousedown,
405
406
  onMouseup: e.mouseup,
406
407
  onMouseleave: e.mouseleave
407
- }, [v(u, { icon: "arrow-up" })], 40, q)]),
408
- hourdecrementbutton: F(({ callbacks: e }) => [g("span", {
408
+ }, [v(u, { icon: "arrow-up" })], 40, K)]),
409
+ hourdecrementbutton: P(({ callbacks: e }) => [g("span", {
409
410
  onMousedown: e.mousedown,
410
411
  onMouseup: e.mouseup,
411
412
  onMouseleave: e.mouseleave
412
- }, [v(u, { icon: "arrow-down" })], 40, J)]),
413
- minuteincrementbutton: F(({ callbacks: e }) => [g("span", {
413
+ }, [v(u, { icon: "arrow-down" })], 40, q)]),
414
+ minuteincrementbutton: P(({ callbacks: e }) => [g("span", {
414
415
  onMousedown: e.mousedown,
415
416
  onMouseup: e.mouseup,
416
417
  onMouseleave: e.mouseleave
417
- }, [v(u, { icon: "arrow-up" })], 40, Y)]),
418
- minutedecrementbutton: F(({ callbacks: e }) => [g("span", {
418
+ }, [v(u, { icon: "arrow-up" })], 40, J)]),
419
+ minutedecrementbutton: P(({ callbacks: e }) => [g("span", {
419
420
  onMousedown: e.mousedown,
420
421
  onMouseup: e.mouseup,
421
422
  onMouseleave: e.mouseleave
422
- }, [v(u, { icon: "arrow-down" })], 40, X)]),
423
+ }, [v(u, { icon: "arrow-down" })], 40, Y)]),
423
424
  _: 1
424
425
  }, 8, [
425
426
  "modelValue",
426
427
  "required",
427
428
  "disabled",
429
+ "invalid",
428
430
  "show-time",
429
431
  "min-date",
430
432
  "max-date",
@@ -432,13 +434,13 @@ var G = { class: "wt-datepicker" }, K = { class: "wt-datepicker__button-bar" },
432
434
  "show-clear",
433
435
  "onBlur"
434
436
  ]),
435
- M(ne) && M($) ? (D(), p(d, {
437
+ M(re) && M($) ? (D(), p(d, {
436
438
  key: 0,
437
439
  color: M(ie),
438
440
  variant: M(i).SIMPLE,
439
441
  size: M(r).SM
440
442
  }, {
441
- default: F(() => [_(A(M($)), 1)], void 0, !0),
443
+ default: P(() => [_(A(M($)), 1)], void 0, !0),
442
444
  _: 1
443
445
  }, 8, [
444
446
  "color",
@@ -448,6 +450,6 @@ var G = { class: "wt-datepicker" }, K = { class: "wt-datepicker__button-bar" },
448
450
  ]);
449
451
  };
450
452
  }
451
- }), [["__scopeId", "data-v-bdb1c01b"]]);
453
+ }), [["__scopeId", "data-v-9074dc97"]]);
452
454
  //#endregion
453
- export { Z as default };
455
+ export { X as default };
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-C7jH_1i9.js";
1
+ import { C as e, i as t } from "./components-BdV7NKIV.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-Ba7VhTMH.js";
2
- import { n } from "./components-C7jH_1i9.js";
2
+ import { n } from "./components-BdV7NKIV.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
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clients-Ba7VhTMH.js";
2
- import { a as t, o as n, r, s as i } from "./components-C7jH_1i9.js";
2
+ import { a as t, o as n, r, s as i } from "./components-BdV7NKIV.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-C7jH_1i9.js";
1
+ import { w as e } from "./components-BdV7NKIV.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-DwAda_g4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.17",
3
+ "version": "26.8.18",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -16,6 +16,7 @@
16
16
  input-class="typo-body-1"
17
17
  :required="required"
18
18
  :disabled="disabled"
19
+ :invalid="invalid"
19
20
  :show-time="showTime"
20
21
  :min-date="minDate"
21
22
  :max-date="maxDate"