@tmsoft/webphone 1.0.8 → 1.0.12
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/README.md +9 -8
- package/dist/index.d.ts +42 -14
- package/dist/webphone.cjs.js +56 -56
- package/dist/webphone.es.js +1491 -1444
- package/dist/webphone.iife.js +57 -57
- package/dist/webphone.umd.js +56 -56
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,14 +60,15 @@ const domain = ref('sip.example.com')
|
|
|
60
60
|
|
|
61
61
|
## 📌 **Props del Componente**
|
|
62
62
|
|
|
63
|
-
| Propiedad | Tipo
|
|
64
|
-
| ----------- |
|
|
65
|
-
| `extension` | `String`
|
|
66
|
-
| `password` | `String`
|
|
67
|
-
| `domain` | `String`
|
|
68
|
-
| `mode` | `String`
|
|
69
|
-
| `image` | `String`
|
|
70
|
-
| `to` | `String`
|
|
63
|
+
| Propiedad | Tipo | Requerida | Descripción |
|
|
64
|
+
| ----------- | ---------- | --------- | --------------------------------------------------------------------------------- |
|
|
65
|
+
| `extension` | `String` | ✅ | Número de extensión del usuario. |
|
|
66
|
+
| `password` | `String` | ✅ | Contraseña SIP de la extensión. |
|
|
67
|
+
| `domain` | `String` | ✅ | Dominio del servidor SIP. |
|
|
68
|
+
| `mode` | `String` | ❌ | Tipo de llamada. Valores: `'call'`, `'webcall'`, `'video'`. Por defecto `'call'`. |
|
|
69
|
+
| `image` | `String` | ❌ | Imagen base64 o URL para mostrar en modo `webcall`. |
|
|
70
|
+
| `to` | `String` | ❌ | Número de destino en modo `webcall`. |
|
|
71
|
+
| `callback` | `Function` | ❌ | Función de volver atrás en modo `webcall`. |
|
|
71
72
|
|
|
72
73
|
---
|
|
73
74
|
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { SliderProps } from 'primevue/slider';
|
|
|
22
22
|
import { SliderSlideEndEvent } from 'primevue/slider';
|
|
23
23
|
import { SliderSlots } from 'primevue/slider';
|
|
24
24
|
import { SVGAttributes } from 'vue';
|
|
25
|
+
import { VueElementConstructor } from 'vue';
|
|
25
26
|
|
|
26
27
|
export declare const WebPhone: DefineComponent<ExtractPropTypes< {
|
|
27
28
|
extension: {
|
|
@@ -49,6 +50,10 @@ to: {
|
|
|
49
50
|
type: StringConstructor;
|
|
50
51
|
required: false;
|
|
51
52
|
};
|
|
53
|
+
callback: {
|
|
54
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
52
57
|
}>, {
|
|
53
58
|
setCallVolume: (value: number | number[]) => void;
|
|
54
59
|
validateKeydown: (event: KeyboardEvent) => void;
|
|
@@ -108,20 +113,6 @@ toJSON: () => any;
|
|
|
108
113
|
}[]>;
|
|
109
114
|
selectedMicId: Ref<string | null, string | null>;
|
|
110
115
|
selectedSpeakerId: Ref<string | null, string | null>;
|
|
111
|
-
selectedMic: ComputedRef< {
|
|
112
|
-
readonly deviceId: string;
|
|
113
|
-
readonly groupId: string;
|
|
114
|
-
readonly kind: MediaDeviceKind;
|
|
115
|
-
readonly label: string;
|
|
116
|
-
toJSON: () => any;
|
|
117
|
-
} | null>;
|
|
118
|
-
selectedSpeaker: ComputedRef< {
|
|
119
|
-
readonly deviceId: string;
|
|
120
|
-
readonly groupId: string;
|
|
121
|
-
readonly kind: MediaDeviceKind;
|
|
122
|
-
readonly label: string;
|
|
123
|
-
toJSON: () => any;
|
|
124
|
-
} | null>;
|
|
125
116
|
isMuted: Ref<boolean, boolean>;
|
|
126
117
|
activeCall: Ref<boolean, boolean>;
|
|
127
118
|
isSIPActive: Ref<boolean, boolean>;
|
|
@@ -171,10 +162,15 @@ to: {
|
|
|
171
162
|
type: StringConstructor;
|
|
172
163
|
required: false;
|
|
173
164
|
};
|
|
165
|
+
callback: {
|
|
166
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
167
|
+
required: false;
|
|
168
|
+
};
|
|
174
169
|
}>> & Readonly<{}>, {
|
|
175
170
|
mode: string;
|
|
176
171
|
}, {}, {
|
|
177
172
|
PrimeButton: DefineComponent_2<ButtonProps, ButtonSlots, (e: string, ...args: any[]) => void>;
|
|
173
|
+
ArrowBackIcon: FunctionalComponent<SVGAttributes, {}, any, {}>;
|
|
178
174
|
PrimeInputText: DefineComponent_2<InputTextProps, InputTextSlots, ((e: "update:modelValue", value: string | undefined) => void) & ((e: "value-change", value: string | undefined) => void)>;
|
|
179
175
|
WebphoneSettings: DefineComponent<ExtractPropTypes< {
|
|
180
176
|
callVolume: NumberConstructor;
|
|
@@ -243,4 +239,36 @@ KeyboardDeleteIcon: FunctionalComponent<SVGAttributes, {}, any, {}>;
|
|
|
243
239
|
NebulaIcon: FunctionalComponent<SVGAttributes, {}, any, {}>;
|
|
244
240
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
245
241
|
|
|
242
|
+
export declare const WebphoneElement: VueElementConstructor<ExtractPropTypes< {
|
|
243
|
+
extension: {
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
required: true;
|
|
246
|
+
};
|
|
247
|
+
password: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
required: true;
|
|
250
|
+
};
|
|
251
|
+
domain: {
|
|
252
|
+
type: StringConstructor;
|
|
253
|
+
required: true;
|
|
254
|
+
};
|
|
255
|
+
mode: {
|
|
256
|
+
type: StringConstructor;
|
|
257
|
+
default: string;
|
|
258
|
+
validator: (value: string) => boolean;
|
|
259
|
+
};
|
|
260
|
+
image: {
|
|
261
|
+
type: StringConstructor;
|
|
262
|
+
required: false;
|
|
263
|
+
};
|
|
264
|
+
to: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
required: false;
|
|
267
|
+
};
|
|
268
|
+
callback: {
|
|
269
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
270
|
+
required: false;
|
|
271
|
+
};
|
|
272
|
+
}>>;
|
|
273
|
+
|
|
246
274
|
export { }
|