@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.
- package/dist/{components-Ba1lcvXA.js → components-BGDAdIES.js} +3 -3
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +1 -1
- package/dist/{wt-chat-emoji-XZI_gxkA.js → wt-chat-emoji-CIzpVaAo.js} +1 -1
- package/dist/{wt-datepicker-BAm9JPkW.js → wt-datepicker-OeVFA-Z3.js} +12 -12
- package/dist/{wt-display-chip-items-Dcqpc9EL.js → wt-display-chip-items-DwXiAC9Q.js} +1 -1
- package/dist/{wt-send-message-popup-C0PI_PfY.js → wt-send-message-popup-Ca0k3qYD.js} +1 -1
- package/dist/{wt-type-extension-value-input-C8wF5fp2.js → wt-type-extension-value-input-i4J1iGaf.js} +1 -1
- package/dist/{wt-vidstack-player-BVTJV4sL.js → wt-vidstack-player-DaImpTZt.js} +1 -1
- package/package.json +1 -1
- package/src/components/wt-datepicker/wt-datepicker.vue +5 -1
|
@@ -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
|
-
},
|
|
160
|
-
v:
|
|
161
|
-
customValidators:
|
|
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(
|
|
168
|
+
invalid: A(Z)
|
|
169
169
|
}), {
|
|
170
|
-
default: P(() => [E(a.$slots, "label", w(b({ label: e.label })), () => [_(O(
|
|
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:
|
|
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:
|
|
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(
|
|
271
|
+
A(X) && A(Q) ? (T(), p(d, {
|
|
272
272
|
key: 0,
|
|
273
|
-
color: A(
|
|
273
|
+
color: A($),
|
|
274
274
|
variant: A(i).SIMPLE,
|
|
275
275
|
size: A(r).SM
|
|
276
276
|
}, {
|
|
277
|
-
default: P(() => [_(O(A(
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
package/dist/{wt-type-extension-value-input-C8wF5fp2.js → wt-type-extension-value-input-i4J1iGaf.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, o as t, r as n, s as r } from "./components-
|
|
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";
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:show-time="showTime"
|
|
19
19
|
:min-date="minDate"
|
|
20
20
|
:max-date="maxDate"
|
|
21
|
-
:placeholder="
|
|
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 = () => {
|