@phonghq/go-chat 1.0.71 → 1.0.73

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.
Files changed (68) hide show
  1. package/dist/assets/icons/chat/IconMenuDot.vue.js +31 -0
  2. package/dist/assets/icons/customer-appointment/IconChevronRight.vue.d.ts +2 -0
  3. package/dist/assets/icons/customer-appointment/IconChevronRight.vue.js +22 -0
  4. package/dist/assets/icons/global/IconMessageOutline.vue.d.ts +2 -0
  5. package/dist/assets/icons/global/IconMessageOutline.vue.js +22 -0
  6. package/dist/assets/icons/global/IconSms.vue.js +1 -1
  7. package/dist/assets/icons/lib/IconZoomOut.vue.d.ts +5 -0
  8. package/dist/assets/icons/lib/IconZoomOut.vue.js +52 -0
  9. package/dist/chat/App.vue.d.ts +14 -9
  10. package/dist/chat/App.vue.js +410 -514
  11. package/dist/chat/ChatHeader.vue.d.ts +15 -0
  12. package/dist/chat/ChatHeader.vue.js +218 -0
  13. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +8 -1
  14. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +66 -11
  15. package/dist/chat/page/customer-detail/SubInformation.vue.js +41 -9
  16. package/dist/chat/page/home/ChatList.vue.d.ts +6 -0
  17. package/dist/chat/page/home/ChatList.vue.js +65 -32
  18. package/dist/chat/page/home/ChatMessage.vue.js +11 -1
  19. package/dist/chat/page/home/ChatMessageItem.vue.d.ts +1 -0
  20. package/dist/chat/page/home/ChatMessageItem.vue.js +44 -5
  21. package/dist/chat/page/home/Home.vue.d.ts +1 -0
  22. package/dist/chat/page/home/Home.vue.js +134 -123
  23. package/dist/chat/page/home/HomeHeader.vue.js +103 -10
  24. package/dist/chat/page/home/NewCustomer.vue.js +11 -9
  25. package/dist/chat/page/home/PhoneNumpad.vue.d.ts +4 -0
  26. package/dist/chat/page/home/PhoneNumpad.vue.js +39 -21
  27. package/dist/components/chat/call/Calling.vue.js +5 -18
  28. package/dist/components/common/dropdown/DropdownBase.vue.d.ts +4 -4
  29. package/dist/components/common/dropdown/DropdownBase.vue.js +11 -9
  30. package/dist/components/common/select/SelectBase.vue.d.ts +9 -4
  31. package/dist/components/common/select/SelectBase.vue.js +49 -31
  32. package/dist/components/ui/button/c-button.js +1 -1
  33. package/dist/components/ui/dialog/DialogContent.vue.d.ts +2 -2
  34. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +2 -2
  35. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +2 -2
  36. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +3 -3
  37. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +11 -6
  38. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -4
  39. package/dist/components/ui/popover/PopoverContent.vue.d.ts +2 -2
  40. package/dist/components/ui/select/SelectContent.vue.js +7 -2
  41. package/dist/components/ui/select/SelectItem.vue.js +2 -2
  42. package/dist/composable/useInitData.js +2 -0
  43. package/dist/composable/useListConversations.d.ts +5 -1
  44. package/dist/composable/useListConversations.js +42 -31
  45. package/dist/composable/useListentEvent.js +20 -2
  46. package/dist/composable/usePlivo.d.ts +0 -2
  47. package/dist/composable/usePlivo.js +5 -11
  48. package/dist/go-chat.es.js +18061 -16541
  49. package/dist/go-chat.umd.js +23 -23
  50. package/dist/style.css +1 -1
  51. package/dist/types/chat/global.d.ts +35 -10
  52. package/dist/utils/chat/queue.d.ts +7 -0
  53. package/dist/utils/chat/queue.js +30 -0
  54. package/dist/utils/chat/store/conversation.d.ts +1 -0
  55. package/dist/utils/chat/store/conversation.js +4 -0
  56. package/dist/utils/chat/store/message.d.ts +0 -4
  57. package/dist/utils/chat/store/message.js +0 -4
  58. package/dist/utils/chat/store/time-limit.d.ts +5 -0
  59. package/dist/utils/chat/store/time-limit.js +8 -0
  60. package/dist/utils/string-helper.d.ts +1 -0
  61. package/dist/utils/string-helper.js +3 -0
  62. package/dist/views/home/phone-numpad/ConvercationList.vue.d.ts +1 -0
  63. package/dist/views/home/phone-numpad/ConvercationList.vue.js +4 -1
  64. package/dist/views/home/phone-numpad/PhoneNumpad.vue.d.ts +6 -2
  65. package/dist/views/home/phone-numpad/PhoneNumpad.vue.js +43 -17
  66. package/package.json +1 -1
  67. package/dist/assets/icons/call/IconPhoneBase.vue.js +0 -20
  68. /package/dist/assets/icons/{call/IconPhoneBase.vue.d.ts → chat/IconMenuDot.vue.d.ts} +0 -0
@@ -0,0 +1,31 @@
1
+ /// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
3
+ const __VLS_ctx = {};
4
+ let __VLS_elements;
5
+ let __VLS_components;
6
+ let __VLS_directives;
7
+ __VLS_asFunctionalElement(__VLS_elements.svg, __VLS_elements.svg)({
8
+ fill: "#000000",
9
+ width: "16",
10
+ height: "16",
11
+ viewBox: "0 0 32 32",
12
+ 'enable-background': "new 0 0 32 32",
13
+ id: "Glyph",
14
+ version: "1.1",
15
+ 'xml:space': "preserve",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ });
18
+ __VLS_asFunctionalElement(__VLS_elements.path)({
19
+ d: "M13,16c0,1.654,1.346,3,3,3s3-1.346,3-3s-1.346-3-3-3S13,14.346,13,16z",
20
+ id: "XMLID_294_",
21
+ });
22
+ __VLS_asFunctionalElement(__VLS_elements.path)({
23
+ d: "M13,26c0,1.654,1.346,3,3,3s3-1.346,3-3s-1.346-3-3-3S13,24.346,13,26z",
24
+ id: "XMLID_295_",
25
+ });
26
+ __VLS_asFunctionalElement(__VLS_elements.path)({
27
+ d: "M13,6c0,1.654,1.346,3,3,3s3-1.346,3-3s-1.346-3-3-3S13,4.346,13,6z",
28
+ id: "XMLID_297_",
29
+ });
30
+ const __VLS_export = (await import('vue')).defineComponent({});
31
+ export default {};
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ /// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
3
+ const __VLS_ctx = {};
4
+ let __VLS_elements;
5
+ let __VLS_components;
6
+ let __VLS_directives;
7
+ __VLS_asFunctionalElement(__VLS_elements.svg, __VLS_elements.svg)({
8
+ width: "24",
9
+ height: "24",
10
+ viewBox: "0 0 24 24",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ });
14
+ __VLS_asFunctionalElement(__VLS_elements.path)({
15
+ d: "M9 6L15 12L9 18",
16
+ stroke: "currentColor",
17
+ 'stroke-width': "2",
18
+ 'stroke-linecap': "round",
19
+ 'stroke-linejoin': "round",
20
+ });
21
+ const __VLS_export = (await import('vue')).defineComponent({});
22
+ export default {};
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ /// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
3
+ const __VLS_ctx = {};
4
+ let __VLS_elements;
5
+ let __VLS_components;
6
+ let __VLS_directives;
7
+ __VLS_asFunctionalElement(__VLS_elements.svg, __VLS_elements.svg)({
8
+ width: "24",
9
+ height: "24",
10
+ viewBox: "0 0 24 24",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ });
14
+ __VLS_asFunctionalElement(__VLS_elements.path)({
15
+ d: "M3 7.2C3 6.07989 3 5.51984 3.21799 5.09202C3.40973 4.71569 3.71569 4.40973 4.09202 4.21799C4.51984 4 5.0799 4 6.2 4H17.8C18.9201 4 19.4802 4 19.908 4.21799C20.2843 4.40973 20.5903 4.71569 20.782 5.09202C21 5.51984 21 6.0799 21 7.2V20L17.6757 18.3378C17.4237 18.2118 17.2977 18.1488 17.1656 18.1044C17.0484 18.065 16.9277 18.0365 16.8052 18.0193C16.6672 18 16.5263 18 16.2446 18H6.2C5.07989 18 4.51984 18 4.09202 17.782C3.71569 17.5903 3.40973 17.2843 3.21799 16.908C3 16.4802 3 15.9201 3 14.8V7.2Z",
16
+ stroke: "currentColor",
17
+ 'stroke-width': "2",
18
+ 'stroke-linecap': "round",
19
+ 'stroke-linejoin': "round",
20
+ });
21
+ const __VLS_export = (await import('vue')).defineComponent({});
22
+ export default {};
@@ -16,7 +16,7 @@ __VLS_asFunctionalElement(__VLS_elements.svg, __VLS_elements.svg)({
16
16
  'xml:space': "preserve",
17
17
  });
18
18
  __VLS_asFunctionalElement(__VLS_elements.path)({
19
- d: "\u004d\u0034\u0034\u0038\u002c\u0030\u0048\u0036\u0034\u0043\u0032\u0038\u002e\u0036\u002c\u0030\u002c\u0030\u002c\u0032\u0038\u002e\u0036\u002c\u0030\u002c\u0036\u0034\u0076\u0032\u0035\u0036\u0063\u0030\u002c\u0033\u0035\u002e\u0034\u002c\u0032\u0038\u002e\u0036\u002c\u0036\u0034\u002c\u0036\u0034\u002c\u0036\u0034\u0068\u0031\u0032\u0038\u006c\u002d\u0034\u0032\u002e\u0037\u002c\u0031\u0032\u0038\u006c\u0031\u0039\u0032\u002d\u0031\u0032\u0038\u0048\u0034\u0034\u0038\u0063\u0033\u0035\u002e\u0034\u002c\u0030\u002c\u0036\u0034\u002d\u0032\u0038\u002e\u0036\u002c\u0036\u0034\u002d\u0036\u0034\u0056\u0036\u0034\u000a\u0009\u0043\u0035\u0031\u0032\u002c\u0032\u0038\u002e\u0036\u002c\u0034\u0038\u0033\u002e\u0034\u002c\u0030\u002c\u0034\u0034\u0038\u002c\u0030\u007a",
19
+ d: "\u004d\u0034\u0034\u0038\u002c\u0030\u0048\u0036\u0034\u0043\u0032\u0038\u002e\u0036\u002c\u0030\u002c\u0030\u002c\u0032\u0038\u002e\u0036\u002c\u0030\u002c\u0036\u0034\u0076\u0032\u0035\u0036\u0063\u0030\u002c\u0033\u0035\u002e\u0034\u002c\u0032\u0038\u002e\u0036\u002c\u0036\u0034\u002c\u0036\u0034\u002c\u0036\u0034\u0068\u0031\u0032\u0038\u006c\u002d\u0034\u0032\u002e\u0037\u002c\u0031\u0032\u0038\u006c\u0031\u0039\u0032\u002d\u0031\u0032\u0038\u0048\u0034\u0034\u0038\u0063\u0033\u0035\u002e\u0034\u002c\u0030\u002c\u0036\u0034\u002d\u0032\u0038\u002e\u0036\u002c\u0036\u0034\u002d\u0036\u0034\u0056\u0036\u0034\u000d\u000a\u0009\u0043\u0035\u0031\u0032\u002c\u0032\u0038\u002e\u0036\u002c\u0034\u0038\u0033\u002e\u0034\u002c\u0030\u002c\u0034\u0034\u0038\u002c\u0030\u007a",
20
20
  });
21
21
  const __VLS_export = (await import('vue')).defineComponent({});
22
22
  export default {};
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ isZoomIn?: boolean;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,52 @@
1
+ /// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ const props = withDefaults(defineProps(), {});
3
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
4
+ const __VLS_defaults = {};
5
+ const __VLS_ctx = {
6
+ ...{},
7
+ ...{},
8
+ ...{},
9
+ ...{},
10
+ };
11
+ let __VLS_elements;
12
+ let __VLS_components;
13
+ let __VLS_directives;
14
+ __VLS_asFunctionalElement(__VLS_elements.svg, __VLS_elements.svg)({
15
+ width: "24",
16
+ height: "24",
17
+ viewBox: "0 0 24 24",
18
+ fill: "none",
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ });
21
+ __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.isZoomIn == true) }, null, null);
22
+ // @ts-ignore
23
+ [isZoomIn,];
24
+ __VLS_asFunctionalElement(__VLS_elements.path)({
25
+ d: "M4 15V18C4 19.1046 4.89543 20 6 20H9M15.2173 20H18C19.1046 20 20 19.1046 20 18V15M20 9V6C20 4.89543 19.1046 4 18 4H15M4 9V6C4 4.89543 4.89543 4 6 4H9",
26
+ stroke: "#000000",
27
+ 'stroke-width': "2",
28
+ 'stroke-linecap': "round",
29
+ 'stroke-linejoin': "round",
30
+ });
31
+ __VLS_asFunctionalElement(__VLS_elements.svg, __VLS_elements.svg)({
32
+ width: "24",
33
+ height: "24",
34
+ viewBox: "0 0 24 24",
35
+ fill: "none",
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ });
38
+ __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.isZoomIn == false) }, null, null);
39
+ // @ts-ignore
40
+ [isZoomIn,];
41
+ __VLS_asFunctionalElement(__VLS_elements.path)({
42
+ d: "M15 4V7C15 8.10457 15.8954 9 17 9H20M9 4V7C9 8.10457 8.10457 9 7 9H4M15 20V17C15 15.8954 15.8954 15 17 15H20M9 20V17C9 15.8954 8.10457 15 7 15H4",
43
+ stroke: "#000000",
44
+ 'stroke-width': "2",
45
+ 'stroke-linecap': "round",
46
+ 'stroke-linejoin': "round",
47
+ });
48
+ const __VLS_export = (await import('vue')).defineComponent({
49
+ __typeProps: {},
50
+ props: {},
51
+ });
52
+ export default {};
@@ -1,21 +1,26 @@
1
1
  import type { GoChatInstance, GoChatProps, PAGE_RESPONSIVE } from '../types/chat/global';
2
2
  import type { IResUser } from '../types/message';
3
3
  import '../style/index.scss';
4
- declare const _default: import("vue").DefineComponent<GoChatProps, GoChatInstance, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
- close: () => any;
4
+ declare const _default: import("vue").DefineComponent<GoChatProps, GoChatInstance, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
5
  call: (data: IResUser) => any;
7
- openPhoneNumpad: () => any;
8
- userCalling: (id: IResUser) => any;
9
- endCall: () => any;
6
+ "booking-admin:viewAppointment": (id: any) => any;
10
7
  "error:noPhoneTenant": () => any;
8
+ "call:userCalling": (id: IResUser) => any;
9
+ "call:endCall": () => any;
10
+ "app:close": () => any;
11
+ "app:zoomChange": () => any;
12
+ "app:openPhoneNumpad": () => any;
11
13
  }, string, import("vue").PublicProps, Readonly<GoChatProps> & Readonly<{
12
- onClose?: (() => any) | undefined;
13
14
  onCall?: ((data: IResUser) => any) | undefined;
14
- onOpenPhoneNumpad?: (() => any) | undefined;
15
- onUserCalling?: ((id: IResUser) => any) | undefined;
16
- onEndCall?: (() => any) | undefined;
15
+ "onBooking-admin:viewAppointment"?: ((id: any) => any) | undefined;
17
16
  "onError:noPhoneTenant"?: (() => any) | undefined;
17
+ "onCall:userCalling"?: ((id: IResUser) => any) | undefined;
18
+ "onCall:endCall"?: (() => any) | undefined;
19
+ "onApp:close"?: (() => any) | undefined;
20
+ "onApp:zoomChange"?: (() => any) | undefined;
21
+ "onApp:openPhoneNumpad"?: (() => any) | undefined;
18
22
  }>, {
23
+ isZoomIn: boolean;
19
24
  response: PAGE_RESPONSIVE;
20
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
26
  export default _default;