@webitel/ui-sdk 26.6.69 → 26.6.70

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-Ba1lcvXA.js";
1
+ import "./components-BGDAdIES.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
4
  import { t as n } from "./wt-button-uY5Q1GAg.js";
@@ -144,7 +144,7 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
144
144
  }
145
145
  s.value = (o.timezone ? L(e, o.timezone) : e).getTime();
146
146
  }
147
- }), x = M("datepicker"), W = `datepicker-${Math.random().toString(36).slice(2, 11)}`, G = () => {
147
+ }), x = M("datepicker"), W = `datepicker-${Math.random().toString(36).slice(2, 11)}`, G = f(() => o.placholder || `dd/mm/yyyy ${o.showTime ? "hh:mm" : ""}`), K = () => {
148
148
  if (o.showTime && y.value) {
149
149
  let e = y.value;
150
150
  C(() => {
@@ -156,18 +156,18 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
156
156
  let e = x.value?.overlay;
157
157
  e && (e.style.minWidth = "");
158
158
  }, 0);
159
- }, K = f(() => o.required ? `${o.label}*` : o.label), { v: q, customValidators: J } = k(o), { isValidation: Y, invalid: X, validationText: Z, validationTextColor: Q } = d({
160
- v: q,
161
- customValidators: J
159
+ }, q = f(() => o.required ? `${o.label}*` : o.label), { v: J, customValidators: Y } = k(o), { isValidation: X, invalid: Z, validationText: Q, validationTextColor: $ } = d({
160
+ v: J,
161
+ customValidators: Y
162
162
  });
163
163
  return (a, o) => {
164
164
  let s = D("wt-label"), l = D("wt-button"), u = D("wt-icon-btn"), d = D("wt-message");
165
165
  return T(), h("div", R, [
166
166
  v(s, S(e.labelProps, { disabled: e.disabled }, {
167
167
  for: W,
168
- invalid: A(X)
168
+ invalid: A(Z)
169
169
  }), {
170
- default: P(() => [E(a.$slots, "label", w(b({ label: e.label })), () => [_(O(K.value), 1)], !0)], void 0, !0),
170
+ default: P(() => [E(a.$slots, "label", w(b({ label: e.label })), () => [_(O(q.value), 1)], !0)], void 0, !0),
171
171
  _: 3
172
172
  }, 16, ["disabled", "invalid"]),
173
173
  v(A(I), {
@@ -182,7 +182,7 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
182
182
  "show-time": e.showTime,
183
183
  "min-date": e.minDate,
184
184
  "max-date": e.maxDate,
185
- placeholder: e.placholder,
185
+ placeholder: G.value,
186
186
  "show-clear": e.clearable && y.value,
187
187
  "show-button-bar": "",
188
188
  fluid: "",
@@ -195,7 +195,7 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
195
195
  minute: { class: "typo-body-2" },
196
196
  panel: { style: { maxWidth: "380px" } }
197
197
  },
198
- onShow: G
198
+ onShow: K
199
199
  }, {
200
200
  buttonbar: P(({ todayCallback: i, clearCallback: a }) => [g("div", z, [v(l, {
201
201
  color: A(n).SECONDARY,
@@ -268,13 +268,13 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
268
268
  "placeholder",
269
269
  "show-clear"
270
270
  ]),
271
- A(Y) && A(Z) ? (T(), p(d, {
271
+ A(X) && A(Q) ? (T(), p(d, {
272
272
  key: 0,
273
- color: A(Q),
273
+ color: A($),
274
274
  variant: A(i).SIMPLE,
275
275
  size: A(r).SM
276
276
  }, {
277
- default: P(() => [_(O(A(Z)), 1)], void 0, !0),
277
+ default: P(() => [_(O(A(Q)), 1)], void 0, !0),
278
278
  _: 1
279
279
  }, 8, [
280
280
  "color",
@@ -284,6 +284,6 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
284
284
  ]);
285
285
  };
286
286
  }
287
- }), [["__scopeId", "data-v-8518d071"]]);
287
+ }), [["__scopeId", "data-v-24efc01b"]]);
288
288
  //#endregion
289
289
  export { W as default };
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-Ba1lcvXA.js";
1
+ import { C as e, i as t } from "./components-BGDAdIES.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,4 +1,4 @@
1
- import { n as e } from "./components-Ba1lcvXA.js";
1
+ import { n as e } from "./components-BGDAdIES.js";
2
2
  import { t } from "./vue-i18n-lTFLGg_9.js";
3
3
  import { n, r } from "./clients-B1AOAvEK.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-Ba1lcvXA.js";
1
+ import { a as e, o as t, r as n, s as r } from "./components-BGDAdIES.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-B1AOAvEK.js";
@@ -1,4 +1,4 @@
1
- import { w as e } from "./components-Ba1lcvXA.js";
1
+ import { w as e } from "./components-BGDAdIES.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-CoY-pIuZ.js";
4
4
  import "./wt-button-uY5Q1GAg.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.69",
3
+ "version": "26.6.70",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -18,7 +18,7 @@
18
18
  :show-time="showTime"
19
19
  :min-date="minDate"
20
20
  :max-date="maxDate"
21
- :placeholder="placholder"
21
+ :placeholder="getPlaceholder"
22
22
  :show-clear="clearable && modelValue"
23
23
  show-button-bar
24
24
  fluid
@@ -199,6 +199,10 @@ const datepicker = useTemplateRef<HTMLDivElement>('datepicker');
199
199
 
200
200
  const datepickerId = `datepicker-${Math.random().toString(36).slice(2, 11)}`;
201
201
 
202
+ const getPlaceholder = computed(() => {
203
+ return props.placholder || `dd/mm/yyyy ${props.showTime ? 'hh:mm' : ''}`;
204
+ });
205
+
202
206
  // PrimeVue initializes its internal currentHour/currentMinute from new Date() when the
203
207
  // overlay opens, ignoring the model value. Re-assigning the same value forces a re-sync.
204
208
  const onPanelShow = () => {