@tmsoft/webphone 2.0.33 → 2.0.34
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/webphone.es.js
CHANGED
|
@@ -16145,7 +16145,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16145
16145
|
}), _hoisted_1$5 = ["data-call-status"], _hoisted_2$4 = { class: "webphone-display__connected-status-label wp:flex wp:gap-2 wp:items-center" }, _hoisted_3$4 = { class: "webphone-display__duration wp:ibrad wp:font-semibold wp:text-sm" }, _hoisted_4$4 = { class: "webphone-display__user-row wp:flex wp:items-center wp:gap-2" }, _hoisted_5$4 = {
|
|
16146
16146
|
key: 2,
|
|
16147
16147
|
class: "webphone-display__dialer wp:w-full wp:flex wp:items-center wp:justify-center wp:min-h-10"
|
|
16148
|
-
}, _hoisted_6$4 = { class: "webphone-display__dialer-field wp:relative" }, _hoisted_7$4 = { class: "webphone-display__suggestions wp:absolute wp:bottom-full wp:left-0 wp:w-full wp:z-50 wp:bg-popover wp:text-popover-foreground wp:shadow-md wp:rounded-md wp:border wp:mb-1 wp:max-h-40 wp:overflow-y-auto" }, _hoisted_8$4 = ["
|
|
16148
|
+
}, _hoisted_6$4 = { class: "webphone-display__dialer-field wp:relative" }, _hoisted_7$4 = { class: "webphone-display__suggestions wp:absolute wp:bottom-full wp:left-0 wp:w-full wp:z-50 wp:bg-popover wp:text-popover-foreground wp:shadow-md wp:rounded-md wp:border wp:mb-1 wp:max-h-40 wp:overflow-y-auto" }, _hoisted_8$4 = ["onPointerdown"], _hoisted_9$4 = { class: "webphone-display__contact-content wp:flex wp:flex-col wp:min-w-0" }, _hoisted_10$3 = { class: "webphone-display__contact-name wp:truncate" }, _hoisted_11$3 = { class: "webphone-display__contact-number wp:text-xs wp:text-muted-foreground wp:truncate" }, _hoisted_12$3 = {
|
|
16149
16149
|
key: 3,
|
|
16150
16150
|
class: "webphone-display__connected-summary wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:w-full"
|
|
16151
16151
|
}, _hoisted_13$1 = { class: "webphone-display__caller wp:flex wp:flex-col wp:items-center wp:gap-1" }, _hoisted_14$1 = { class: "webphone-display__caller-name wp:text-md wp:font-bold wp:text-neutral-800 wp:dark:text-white" }, _hoisted_15$1 = {
|
|
@@ -16196,7 +16196,7 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16196
16196
|
for (let n of o.contacts) if ((n.name.toLowerCase().includes(e) || n.number.includes(e)) && (t.push(n), t.length >= 10)) break;
|
|
16197
16197
|
return t;
|
|
16198
16198
|
}), E = (e) => {
|
|
16199
|
-
p.value && t.updateChannelState(p.value.id, { keypadValue: e.number }), v.value = !1
|
|
16199
|
+
p.value && t.updateChannelState(p.value.id, { keypadValue: e.number }), v.value = !1;
|
|
16200
16200
|
}, D = () => {
|
|
16201
16201
|
!x.value || !S.value || (v.value = !1, i.makeCall(x.value));
|
|
16202
16202
|
};
|
|
@@ -16302,11 +16302,11 @@ var icon_phone_default = { render }, Tooltip_default = /* @__PURE__ */ defineCom
|
|
|
16302
16302
|
]), withDirectives(createElementVNode("div", _hoisted_7$4, [S.value ? (openBlock(), createElementBlock("div", {
|
|
16303
16303
|
key: 0,
|
|
16304
16304
|
class: "webphone-display__suggestion webphone-display__suggestion--raw wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",
|
|
16305
|
-
|
|
16305
|
+
onPointerdown: withModifiers(D, ["prevent"])
|
|
16306
16306
|
}, [createVNode(unref(Phone), { class: "webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0" }), createElementVNode("span", null, "Marcar " + toDisplayString(x.value), 1)], 32)) : createCommentVNode("", !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(T.value, (e) => (openBlock(), createElementBlock("div", {
|
|
16307
16307
|
key: e.number,
|
|
16308
16308
|
class: "webphone-display__suggestion webphone-display__suggestion--contact wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",
|
|
16309
|
-
|
|
16309
|
+
onPointerdown: withModifiers((t) => E(e), ["prevent"])
|
|
16310
16310
|
}, [createElementVNode("div", { class: normalizeClass(unref(cn)("webphone-display__contact-badge wp:flex wp:items-center wp:justify-center wp:w-6 wp:h-6 wp:rounded-full wp:shrink-0", e.type === "extension" ? "wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400" : e.type === "contact" ? "wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400" : e.type === "voicemail" ? "wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400" : e.type === "tool" ? "wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400" : "wp:bg-neutral-100 wp:text-neutral-600 wp:dark:bg-neutral-800 wp:dark:text-neutral-400")) }, [e.type === "extension" ? (openBlock(), createBlock(unref(Building2), {
|
|
16311
16311
|
key: 0,
|
|
16312
16312
|
class: "wp:w-3 wp:h-3"
|