@phonghq/go-chat 1.0.4 → 1.0.6
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/assets/icons/IconArrowLeft.vue.d.ts +2 -0
- package/dist/assets/icons/IconPhone.vue.d.ts +2 -0
- package/dist/assets/icons/IconPlan.vue.d.ts +2 -0
- package/dist/assets/icons/IconPlus.vue.d.ts +2 -0
- package/dist/assets/icons/IconSearch.vue.d.ts +32 -0
- package/dist/assets/icons/call/IconMic.vue.d.ts +14 -0
- package/dist/assets/icons/call/IconPhone.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconSpeaker.vue.d.ts +14 -0
- package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +2 -0
- package/dist/chat/App.vue.d.ts +5 -0
- package/dist/chat/main.d.ts +6 -0
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +2 -0
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +12 -0
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +2 -0
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +7 -0
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +16 -0
- package/dist/chat/page/error/Error.vue.d.ts +2 -0
- package/dist/chat/page/home/ChatList.vue.d.ts +20 -0
- package/dist/chat/page/home/ChatMessage.vue.d.ts +17 -0
- package/dist/chat/page/home/Home.vue.d.ts +14 -0
- package/dist/chat/page/home/HomeHeader.vue.d.ts +10 -0
- package/dist/chat/page/home/InputChat.vue.d.ts +19 -0
- package/dist/chat/page/home/NewCustomer.vue.d.ts +6 -0
- package/dist/components/ListenEvent.vue.d.ts +2 -0
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +22 -0
- package/dist/components/chat/call/Calling.vue.d.ts +7 -0
- package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +13 -0
- package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +20 -0
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +16 -0
- package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +35 -0
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +2 -0
- package/dist/components/chat/customer/Avatar.vue.d.ts +12 -0
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +2 -0
- package/dist/components/common/CustomLoading.vue.d.ts +2 -0
- package/dist/components/common/Notification/NotificationDescription.vue.d.ts +7 -0
- package/dist/components/common/button/ButtonBase.vue.d.ts +22 -0
- package/dist/components/common/button/ButtonToggle.vue.d.ts +20 -0
- package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +16 -0
- package/dist/components/common/collapse/BaseCollapse.vue.d.ts +12 -0
- package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +4 -0
- package/dist/components/common/drawer/DrawerBase.vue.d.ts +39 -0
- package/dist/components/common/dropdown/DropdownBase.vue.d.ts +21 -0
- package/dist/components/common/input/CInputSearch.vue.d.ts +14 -0
- package/dist/components/common/modal/ModalBase.vue.d.ts +35 -0
- package/dist/components/common/popover/PopoverBase.vue.d.ts +3 -0
- package/dist/components/common/slider/BaseSlider.vue.d.ts +11 -0
- package/dist/components/common/spin/CSpin.vue.d.ts +9 -0
- package/dist/components/common/tooltip/TooltipBase.vue.d.ts +2 -0
- package/dist/components/layout/Blank.vue.d.ts +9 -0
- package/dist/components/layout/Default.vue.d.ts +9 -0
- package/dist/components/modal/Confirm.vue.d.ts +2 -0
- package/dist/components/ui/button/CButton.vue.d.ts +19 -0
- package/dist/components/ui/button/c-button.d.ts +7 -0
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +18 -0
- package/dist/components/ui/checkbox/index.d.ts +1 -0
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +16 -0
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +10 -0
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +10 -0
- package/dist/components/ui/collapsible/index.d.ts +3 -0
- package/dist/components/ui/dialog/Dialog.vue.d.ts +14 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +10 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +29 -0
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +14 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +13 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +13 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +30 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +14 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +10 -0
- package/dist/components/ui/dialog/index.d.ts +9 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +26 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +33 -0
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +14 -0
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +13 -0
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +13 -0
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +14 -0
- package/dist/components/ui/drawer/index.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +20 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +13 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +30 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/components/ui/popover/Popover.vue.d.ts +14 -0
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +28 -0
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +10 -0
- package/dist/components/ui/popover/index.d.ts +3 -0
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +18 -0
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
- package/dist/components/ui/radio-group/index.d.ts +2 -0
- package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
- package/dist/components/ui/slider/index.d.ts +1 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +18 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/composable/useCallHelper.d.ts +23 -0
- package/dist/composable/useDigibot.d.ts +7 -0
- package/dist/composable/useInitData.d.ts +11 -0
- package/dist/composable/useModalConfirm.d.ts +5 -0
- package/dist/constant/color.d.ts +22 -0
- package/dist/constant/datetime.d.ts +5 -0
- package/dist/constant/general.d.ts +8 -0
- package/dist/constant/message.d.ts +8 -0
- package/dist/constant/mqtt.d.ts +4 -0
- package/dist/constant/user.d.ts +8 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/plugins/axios-gci.d.ts +3 -0
- package/dist/plugins/axios.d.ts +3 -0
- package/dist/plugins/mqtt.d.ts +10 -0
- package/dist/plugins/sdk.d.ts +19 -0
- package/dist/plugins/websocket.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/test/assets/icons/IconArrowLeft.vue.js +29 -0
- package/dist/test/assets/icons/IconPhone.vue.js +19 -0
- package/dist/test/assets/icons/IconPlan.vue.js +19 -0
- package/dist/test/assets/icons/IconPlus.vue.js +22 -0
- package/dist/test/assets/icons/IconSearch.vue.js +68 -0
- package/dist/test/assets/icons/call/IconMic.vue.js +123 -0
- package/dist/test/assets/icons/call/IconPhone.vue.js +35 -0
- package/dist/test/assets/icons/call/IconPhoneCancel.vue.js +35 -0
- package/dist/test/assets/icons/call/IconSpeaker.vue.js +62 -0
- package/dist/test/assets/icons/customer-appointment/IconFilter.vue.js +53 -0
- package/dist/test/assets/icons/customer-detail/IconArrow.vue.js +22 -0
- package/dist/test/assets/icons/customer-detail/IconCheck.vue.js +27 -0
- package/dist/test/assets/icons/customer-detail/IconDate.vue.js +43 -0
- package/dist/test/assets/icons/customer-detail/IconGroup.vue.js +48 -0
- package/dist/test/assets/icons/customer-detail/IconMessage.vue.js +28 -0
- package/dist/test/assets/icons/customer-detail/IconNote.vue.js +29 -0
- package/dist/test/assets/icons/customer-detail/IconPhone.vue.js +21 -0
- package/dist/test/assets/icons/customer-detail/IconPin.vue.js +29 -0
- package/dist/test/assets/icons/customer-detail/IconSearch.vue.js +29 -0
- package/dist/test/chat/App.vue.js +502 -0
- package/dist/test/chat/main.js +6 -0
- package/dist/test/chat/page/customer-appointment/CustomerAppointment.vue.js +207 -0
- package/dist/test/chat/page/customer-check-in/CollapseCheckIn.vue.js +80 -0
- package/dist/test/chat/page/customer-check-in/CustomerCheckIn.vue.js +136 -0
- package/dist/test/chat/page/customer-detail/CustomerDetail.vue.js +235 -0
- package/dist/test/chat/page/customer-detail/SubInformation.vue.js +102 -0
- package/dist/test/chat/page/error/Error.vue.js +64 -0
- package/dist/test/chat/page/home/ChatList.vue.js +387 -0
- package/dist/test/chat/page/home/ChatMessage.vue.js +295 -0
- package/dist/test/chat/page/home/Home.vue.js +332 -0
- package/dist/test/chat/page/home/HomeHeader.vue.js +127 -0
- package/dist/test/chat/page/home/InputChat.vue.js +255 -0
- package/dist/test/chat/page/home/NewCustomer.vue.js +84 -0
- package/dist/test/components/ListenEvent.vue.js +45 -0
- package/dist/test/components/chat/ScrollEvent/ScrollEvent.vue.js +197 -0
- package/dist/test/components/chat/call/Calling.vue.js +291 -0
- package/dist/test/components/chat/card/CardCustomerDetail.vue.js +28 -0
- package/dist/test/components/chat/common/collapse/CollapseBase.vue.js +59 -0
- package/dist/test/components/chat/common/input/InputSearch.vue.js +71 -0
- package/dist/test/components/chat/common/popover/PopoverBase.vue.js +148 -0
- package/dist/test/components/chat/common/spin/BaseSpin.vue.js +12 -0
- package/dist/test/components/chat/customer/Avatar.vue.js +101 -0
- package/dist/test/components/chat/layout/mobile/Footer.vue.js +109 -0
- package/dist/test/components/common/CustomLoading.vue.js +19 -0
- package/dist/test/components/common/Notification/NotificationDescription.vue.js +38 -0
- package/dist/test/components/common/button/ButtonBase.vue.js +78 -0
- package/dist/test/components/common/button/ButtonToggle.vue.js +70 -0
- package/dist/test/components/common/checkbox/CCheckboxNumber.vue.js +48 -0
- package/dist/test/components/common/collapse/BaseCollapse.vue.js +36 -0
- package/dist/test/components/common/collapse/BaseCollapseItem.vue.js +22 -0
- package/dist/test/components/common/drawer/DrawerBase.vue.js +126 -0
- package/dist/test/components/common/dropdown/DropdownBase.vue.js +91 -0
- package/dist/test/components/common/input/CInputSearch.vue.js +62 -0
- package/dist/test/components/common/modal/ModalBase.vue.js +164 -0
- package/dist/test/components/common/popover/PopoverBase.vue.js +36 -0
- package/dist/test/components/common/slider/BaseSlider.vue.js +70 -0
- package/dist/test/components/common/spin/CSpin.vue.js +41 -0
- package/dist/test/components/common/tooltip/TooltipBase.vue.js +8 -0
- package/dist/test/components/layout/Blank.vue.js +19 -0
- package/dist/test/components/layout/Default.vue.js +21 -0
- package/dist/test/components/modal/Confirm.vue.js +164 -0
- package/dist/test/components/ui/button/CButton.vue.js +49 -0
- package/dist/test/components/ui/button/c-button.js +26 -0
- package/dist/test/components/ui/checkbox/Checkbox.vue.js +79 -0
- package/dist/test/components/ui/checkbox/index.js +1 -0
- package/dist/test/components/ui/collapsible/Collapsible.vue.js +47 -0
- package/dist/test/components/ui/collapsible/CollapsibleContent.vue.js +41 -0
- package/dist/test/components/ui/collapsible/CollapsibleTrigger.vue.js +35 -0
- package/dist/test/components/ui/collapsible/index.js +3 -0
- package/dist/test/components/ui/dialog/Dialog.vue.js +42 -0
- package/dist/test/components/ui/dialog/DialogClose.vue.js +35 -0
- package/dist/test/components/ui/dialog/DialogContent.vue.js +84 -0
- package/dist/test/components/ui/dialog/DialogDescription.vue.js +43 -0
- package/dist/test/components/ui/dialog/DialogFooter.vue.js +26 -0
- package/dist/test/components/ui/dialog/DialogHeader.vue.js +26 -0
- package/dist/test/components/ui/dialog/DialogScrollContent.vue.js +99 -0
- package/dist/test/components/ui/dialog/DialogTitle.vue.js +43 -0
- package/dist/test/components/ui/dialog/DialogTrigger.vue.js +35 -0
- package/dist/test/components/ui/dialog/index.js +9 -0
- package/dist/test/components/ui/drawer/Drawer.vue.js +48 -0
- package/dist/test/components/ui/drawer/DrawerContent.vue.js +81 -0
- package/dist/test/components/ui/drawer/DrawerDescription.vue.js +42 -0
- package/dist/test/components/ui/drawer/DrawerFooter.vue.js +26 -0
- package/dist/test/components/ui/drawer/DrawerHeader.vue.js +26 -0
- package/dist/test/components/ui/drawer/DrawerOverlay.vue.js +37 -0
- package/dist/test/components/ui/drawer/DrawerTitle.vue.js +42 -0
- package/dist/test/components/ui/drawer/index.js +8 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenu.vue.js +41 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +79 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuContent.vue.js +61 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +35 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuItem.vue.js +43 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +43 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +41 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +80 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +37 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +26 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuSub.vue.js +41 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +46 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +58 -0
- package/dist/test/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +41 -0
- package/dist/test/components/ui/dropdown-menu/index.js +15 -0
- package/dist/test/components/ui/popover/Popover.vue.js +41 -0
- package/dist/test/components/ui/popover/PopoverContent.vue.js +60 -0
- package/dist/test/components/ui/popover/PopoverTrigger.vue.js +35 -0
- package/dist/test/components/ui/popover/index.js +3 -0
- package/dist/test/components/ui/radio-group/RadioGroup.vue.js +46 -0
- package/dist/test/components/ui/radio-group/RadioGroupItem.vue.js +71 -0
- package/dist/test/components/ui/radio-group/index.js +2 -0
- package/dist/test/components/ui/slider/Slider.vue.js +155 -0
- package/dist/test/components/ui/slider/index.js +1 -0
- package/dist/test/components/ui/switch/Switch.vue.js +61 -0
- package/dist/test/components/ui/switch/index.js +1 -0
- package/dist/test/composable/useCallHelper.js +170 -0
- package/dist/test/composable/useDigibot.js +22 -0
- package/dist/test/composable/useInitData.js +84 -0
- package/dist/test/composable/useModalConfirm.js +39 -0
- package/dist/test/constant/color.js +43 -0
- package/dist/test/constant/datetime.js +5 -0
- package/dist/test/constant/general.js +9 -0
- package/dist/test/constant/message.js +8 -0
- package/dist/test/constant/mqtt.js +11 -0
- package/dist/test/constant/user.js +9 -0
- package/dist/test/lib/utils.js +5 -0
- package/dist/test/plugins/axios-gci.js +25 -0
- package/dist/test/plugins/axios.js +85 -0
- package/dist/test/plugins/mqtt.js +128 -0
- package/dist/test/plugins/sdk.js +83 -0
- package/dist/test/plugins/websocket.js +65 -0
- package/dist/test/types/call.js +1 -0
- package/dist/test/types/chat/auth.js +1 -0
- package/dist/test/types/chat/global.js +1 -0
- package/dist/test/types/chat/promise.js +1 -0
- package/dist/test/types/chat/user.js +1 -0
- package/dist/test/types/conversation.js +1 -0
- package/dist/test/types/global.js +15 -0
- package/dist/test/types/message.js +1 -0
- package/dist/test/utils/chat/auth.js +51 -0
- package/dist/test/utils/chat/call.js +61 -0
- package/dist/test/utils/chat/chat-router.js +8 -0
- package/dist/test/utils/chat/conversation.js +7 -0
- package/dist/test/utils/chat/message.js +42 -0
- package/dist/test/utils/chat/user.js +33 -0
- package/dist/test/utils/debounce.js +9 -0
- package/dist/test/utils/json.js +18 -0
- package/dist/test/utils/logger.js +5 -0
- package/dist/test/utils/string-helper.js +27 -0
- package/dist/types/call.d.ts +4 -0
- package/dist/types/chat/auth.d.ts +37 -0
- package/dist/types/chat/global.d.ts +7 -0
- package/dist/types/chat/promise.d.ts +17 -0
- package/dist/types/chat/user.d.ts +88 -0
- package/dist/types/conversation.d.ts +18 -0
- package/dist/types/global.d.ts +11 -0
- package/dist/types/message.d.ts +43 -0
- package/dist/utils/chat/auth.d.ts +45 -0
- package/dist/utils/chat/call.d.ts +5 -0
- package/dist/utils/chat/chat-router.d.ts +3 -0
- package/dist/utils/chat/conversation.d.ts +3 -0
- package/dist/utils/chat/message.d.ts +17 -0
- package/dist/utils/chat/user.d.ts +193 -0
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/json.d.ts +2 -0
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/string-helper.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { ref, onBeforeUnmount, onMounted } from 'vue';
|
|
3
|
+
import ModalBase from '../../components/common/modal/ModalBase.vue';
|
|
4
|
+
import ButtonBase from '../../components/common/button/ButtonBase.vue';
|
|
5
|
+
import { useModalConfirm } from '../../composable/useModalConfirm';
|
|
6
|
+
const { setHandleConfirm } = useModalConfirm();
|
|
7
|
+
const confirmPayload = ref(null);
|
|
8
|
+
const isVisible = ref(false);
|
|
9
|
+
const isResolved = ref(false);
|
|
10
|
+
const isOpeningModal = ref(false);
|
|
11
|
+
onMounted(() => {
|
|
12
|
+
setHandleConfirm(open);
|
|
13
|
+
});
|
|
14
|
+
onBeforeUnmount(() => { });
|
|
15
|
+
const open = (data) => {
|
|
16
|
+
if (isOpeningModal.value)
|
|
17
|
+
return;
|
|
18
|
+
if (!data?.type) {
|
|
19
|
+
data.type = 'confirm';
|
|
20
|
+
}
|
|
21
|
+
confirmPayload.value = data;
|
|
22
|
+
isVisible.value = true;
|
|
23
|
+
isOpeningModal.value = true;
|
|
24
|
+
};
|
|
25
|
+
const handleOk = () => {
|
|
26
|
+
confirmPayload.value?.resolve('ok');
|
|
27
|
+
isResolved.value = true;
|
|
28
|
+
isVisible.value = false;
|
|
29
|
+
};
|
|
30
|
+
const handleCancel = () => {
|
|
31
|
+
isVisible.value = false;
|
|
32
|
+
};
|
|
33
|
+
const handleAfterClose = () => {
|
|
34
|
+
if (!isResolved.value)
|
|
35
|
+
confirmPayload.value?.reject();
|
|
36
|
+
isResolved.value = false;
|
|
37
|
+
confirmPayload.value = null;
|
|
38
|
+
isOpeningModal.value = false;
|
|
39
|
+
};
|
|
40
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
41
|
+
const __VLS_ctx = {
|
|
42
|
+
...{},
|
|
43
|
+
...{},
|
|
44
|
+
};
|
|
45
|
+
let __VLS_elements;
|
|
46
|
+
let __VLS_components;
|
|
47
|
+
let __VLS_directives;
|
|
48
|
+
/** @type {[typeof ModalBase, typeof ModalBase, ]} */ ;
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
const __VLS_0 = __VLS_asFunctionalComponent(ModalBase, new ModalBase({
|
|
51
|
+
wrapClassName: "confirm-modal",
|
|
52
|
+
open: (__VLS_ctx.isVisible),
|
|
53
|
+
width: (652),
|
|
54
|
+
title: (__VLS_ctx.confirmPayload?.headerTitle),
|
|
55
|
+
showButtonClose: (false),
|
|
56
|
+
maskClosable: (false),
|
|
57
|
+
footer: (null),
|
|
58
|
+
centered: true,
|
|
59
|
+
afterClose: (__VLS_ctx.handleAfterClose),
|
|
60
|
+
zIndex: (9000),
|
|
61
|
+
}));
|
|
62
|
+
const __VLS_1 = __VLS_0({
|
|
63
|
+
wrapClassName: "confirm-modal",
|
|
64
|
+
open: (__VLS_ctx.isVisible),
|
|
65
|
+
width: (652),
|
|
66
|
+
title: (__VLS_ctx.confirmPayload?.headerTitle),
|
|
67
|
+
showButtonClose: (false),
|
|
68
|
+
maskClosable: (false),
|
|
69
|
+
footer: (null),
|
|
70
|
+
centered: true,
|
|
71
|
+
afterClose: (__VLS_ctx.handleAfterClose),
|
|
72
|
+
zIndex: (9000),
|
|
73
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
74
|
+
var __VLS_3 = {};
|
|
75
|
+
const { default: __VLS_4 } = __VLS_2.slots;
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
[isVisible, confirmPayload, handleAfterClose,];
|
|
78
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
79
|
+
...{ class: "text-center p-8" },
|
|
80
|
+
});
|
|
81
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
82
|
+
...{ class: "text-lg font-semibold mb-1" },
|
|
83
|
+
});
|
|
84
|
+
(__VLS_ctx.confirmPayload?.bodyTitle || '');
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
[confirmPayload,];
|
|
87
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
88
|
+
...{ class: "mb-0" },
|
|
89
|
+
});
|
|
90
|
+
__VLS_asFunctionalDirective(__VLS_directives.vHtml)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.confirmPayload?.bodyMessage) }, null, null);
|
|
91
|
+
// @ts-ignore
|
|
92
|
+
[confirmPayload,];
|
|
93
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
94
|
+
...{ class: "flex-center gap-4 pb-7 pt-4" },
|
|
95
|
+
});
|
|
96
|
+
if (__VLS_ctx.confirmPayload?.type === 'confirm') {
|
|
97
|
+
// @ts-ignore
|
|
98
|
+
[confirmPayload,];
|
|
99
|
+
/** @type {[typeof ButtonBase, typeof ButtonBase, ]} */ ;
|
|
100
|
+
// @ts-ignore
|
|
101
|
+
const __VLS_5 = __VLS_asFunctionalComponent(ButtonBase, new ButtonBase({
|
|
102
|
+
...{ 'onClick': {} },
|
|
103
|
+
...{ class: "min-w-[100px]" },
|
|
104
|
+
danger: true,
|
|
105
|
+
ghost: true,
|
|
106
|
+
type: "danger-outline",
|
|
107
|
+
}));
|
|
108
|
+
const __VLS_6 = __VLS_5({
|
|
109
|
+
...{ 'onClick': {} },
|
|
110
|
+
...{ class: "min-w-[100px]" },
|
|
111
|
+
danger: true,
|
|
112
|
+
ghost: true,
|
|
113
|
+
type: "danger-outline",
|
|
114
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_5));
|
|
115
|
+
let __VLS_8;
|
|
116
|
+
let __VLS_9;
|
|
117
|
+
const __VLS_10 = ({ click: {} },
|
|
118
|
+
{ onClick: (__VLS_ctx.handleCancel) });
|
|
119
|
+
const { default: __VLS_11 } = __VLS_7.slots;
|
|
120
|
+
// @ts-ignore
|
|
121
|
+
[handleCancel,];
|
|
122
|
+
(__VLS_ctx.confirmPayload?.cancelButtonText || 'No');
|
|
123
|
+
// @ts-ignore
|
|
124
|
+
[confirmPayload,];
|
|
125
|
+
var __VLS_7;
|
|
126
|
+
}
|
|
127
|
+
/** @type {[typeof ButtonBase, typeof ButtonBase, ]} */ ;
|
|
128
|
+
// @ts-ignore
|
|
129
|
+
const __VLS_12 = __VLS_asFunctionalComponent(ButtonBase, new ButtonBase({
|
|
130
|
+
...{ 'onClick': {} },
|
|
131
|
+
...{ class: "min-w-[100px]" },
|
|
132
|
+
type: ('primary'),
|
|
133
|
+
}));
|
|
134
|
+
const __VLS_13 = __VLS_12({
|
|
135
|
+
...{ 'onClick': {} },
|
|
136
|
+
...{ class: "min-w-[100px]" },
|
|
137
|
+
type: ('primary'),
|
|
138
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_12));
|
|
139
|
+
let __VLS_15;
|
|
140
|
+
let __VLS_16;
|
|
141
|
+
const __VLS_17 = ({ click: {} },
|
|
142
|
+
{ onClick: (__VLS_ctx.handleOk) });
|
|
143
|
+
const { default: __VLS_18 } = __VLS_14.slots;
|
|
144
|
+
// @ts-ignore
|
|
145
|
+
[handleOk,];
|
|
146
|
+
(__VLS_ctx.confirmPayload?.confirmButtonText || 'Yes');
|
|
147
|
+
// @ts-ignore
|
|
148
|
+
[confirmPayload,];
|
|
149
|
+
var __VLS_14;
|
|
150
|
+
var __VLS_2;
|
|
151
|
+
/** @type {__VLS_StyleScopedClasses['text-center']} */ ;
|
|
152
|
+
/** @type {__VLS_StyleScopedClasses['p-8']} */ ;
|
|
153
|
+
/** @type {__VLS_StyleScopedClasses['text-lg']} */ ;
|
|
154
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
155
|
+
/** @type {__VLS_StyleScopedClasses['mb-1']} */ ;
|
|
156
|
+
/** @type {__VLS_StyleScopedClasses['mb-0']} */ ;
|
|
157
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
158
|
+
/** @type {__VLS_StyleScopedClasses['gap-4']} */ ;
|
|
159
|
+
/** @type {__VLS_StyleScopedClasses['pb-7']} */ ;
|
|
160
|
+
/** @type {__VLS_StyleScopedClasses['pt-4']} */ ;
|
|
161
|
+
/** @type {__VLS_StyleScopedClasses['min-w-[100px]']} */ ;
|
|
162
|
+
/** @type {__VLS_StyleScopedClasses['min-w-[100px]']} */ ;
|
|
163
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
164
|
+
export default {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { Primitive } from "reka-ui";
|
|
3
|
+
import { cn } from "../../../lib/utils";
|
|
4
|
+
import { buttonVariants } from "./c-button";
|
|
5
|
+
const props = withDefaults(defineProps(), {
|
|
6
|
+
as: "button",
|
|
7
|
+
});
|
|
8
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
9
|
+
const __VLS_defaults = {
|
|
10
|
+
as: "button",
|
|
11
|
+
};
|
|
12
|
+
const __VLS_ctx = {
|
|
13
|
+
...{},
|
|
14
|
+
...{},
|
|
15
|
+
...{},
|
|
16
|
+
...{},
|
|
17
|
+
};
|
|
18
|
+
let __VLS_elements;
|
|
19
|
+
let __VLS_components;
|
|
20
|
+
let __VLS_directives;
|
|
21
|
+
const __VLS_0 = {}.Primitive;
|
|
22
|
+
/** @type {[typeof __VLS_components.Primitive, typeof __VLS_components.Primitive, ]} */ ;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
Primitive;
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
27
|
+
as: (__VLS_ctx.as),
|
|
28
|
+
asChild: (__VLS_ctx.asChild),
|
|
29
|
+
...{ class: (__VLS_ctx.cn(__VLS_ctx.buttonVariants({ variant: __VLS_ctx.variant, size: __VLS_ctx.size }), props.class)) },
|
|
30
|
+
}));
|
|
31
|
+
const __VLS_2 = __VLS_1({
|
|
32
|
+
as: (__VLS_ctx.as),
|
|
33
|
+
asChild: (__VLS_ctx.asChild),
|
|
34
|
+
...{ class: (__VLS_ctx.cn(__VLS_ctx.buttonVariants({ variant: __VLS_ctx.variant, size: __VLS_ctx.size }), props.class)) },
|
|
35
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
36
|
+
var __VLS_4 = {};
|
|
37
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
[as, asChild, cn, buttonVariants, variant, size,];
|
|
40
|
+
var __VLS_6 = {};
|
|
41
|
+
var __VLS_3;
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
var __VLS_7 = __VLS_6;
|
|
44
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
45
|
+
__typeProps: {},
|
|
46
|
+
props: {},
|
|
47
|
+
});
|
|
48
|
+
const __VLS_export = {};
|
|
49
|
+
export default {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
export { default as CButton } from './CButton.vue';
|
|
3
|
+
export const buttonVariants = cva('inline-flex flex-center gap-2 whitespace-nowrap rounded-[8px] text-base font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:duration-100', {
|
|
4
|
+
variants: {
|
|
5
|
+
variant: {
|
|
6
|
+
default: 'bg-primary text-white hover:bg-primary-hover [&_.loader::before]:border-white',
|
|
7
|
+
primary: 'bg-primary text-white hover:bg-primary-hover [&_.loader::before]:border-white',
|
|
8
|
+
['danger-outline']: 'bg-white border border-danger border-[1.5px] text-danger hover:bg-danger hover:text-white [&_.loader::before]:border-danger',
|
|
9
|
+
success: 'bg-success text-white hover:bg-success-hover [&_.loader::before]:border-white',
|
|
10
|
+
danger: 'bg-danger text-white hover:bg-danger-hover [&_.loader::before]:border-white',
|
|
11
|
+
['primary-outline']: 'bg-white text-primary hover:bg-primary border hover:text-white border-primary border-[1.5px] [&_.loader::before]:border-primary',
|
|
12
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
13
|
+
link: 'text-primary underline-offset-4 hover:underline'
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
default: 'h-10 px-4 py-2',
|
|
17
|
+
sm: 'h-9 rounded-md px-3',
|
|
18
|
+
lg: 'h-11 rounded-md px-8',
|
|
19
|
+
icon: 'h-10 w-10'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: 'default',
|
|
24
|
+
size: 'default'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { Check } from "lucide-vue-next";
|
|
4
|
+
import { CheckboxIndicator, CheckboxRoot, useForwardPropsEmits } from "reka-ui";
|
|
5
|
+
import { cn } from "../../../lib/utils";
|
|
6
|
+
const props = defineProps();
|
|
7
|
+
const emits = defineEmits();
|
|
8
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
9
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
10
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
11
|
+
const __VLS_ctx = {
|
|
12
|
+
...{},
|
|
13
|
+
...{},
|
|
14
|
+
...{},
|
|
15
|
+
...{},
|
|
16
|
+
...{},
|
|
17
|
+
};
|
|
18
|
+
let __VLS_elements;
|
|
19
|
+
let __VLS_components;
|
|
20
|
+
let __VLS_directives;
|
|
21
|
+
const __VLS_0 = {}.CheckboxRoot;
|
|
22
|
+
/** @type {[typeof __VLS_components.CheckboxRoot, typeof __VLS_components.CheckboxRoot, ]} */ ;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
CheckboxRoot;
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
27
|
+
...(__VLS_ctx.forwarded),
|
|
28
|
+
...{ class: (__VLS_ctx.cn('peer h-6 w-6 shrink-0 rounded-sm border border-[#DDDDE8] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', props.class)) },
|
|
29
|
+
}));
|
|
30
|
+
const __VLS_2 = __VLS_1({
|
|
31
|
+
...(__VLS_ctx.forwarded),
|
|
32
|
+
...{ class: (__VLS_ctx.cn('peer h-6 w-6 shrink-0 rounded-sm border border-[#DDDDE8] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', props.class)) },
|
|
33
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
34
|
+
var __VLS_4 = {};
|
|
35
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
[forwarded, cn,];
|
|
38
|
+
const __VLS_6 = {}.CheckboxIndicator;
|
|
39
|
+
/** @type {[typeof __VLS_components.CheckboxIndicator, typeof __VLS_components.CheckboxIndicator, ]} */ ;
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
CheckboxIndicator;
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
|
|
44
|
+
...{ class: "flex h-full w-full items-center justify-center text-white" },
|
|
45
|
+
}));
|
|
46
|
+
const __VLS_8 = __VLS_7({
|
|
47
|
+
...{ class: "flex h-full w-full items-center justify-center text-white" },
|
|
48
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
49
|
+
const { default: __VLS_10 } = __VLS_9.slots;
|
|
50
|
+
var __VLS_11 = {};
|
|
51
|
+
const __VLS_13 = {}.Check;
|
|
52
|
+
/** @type {[typeof __VLS_components.Check, ]} */ ;
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
Check;
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
const __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13({
|
|
57
|
+
...{ class: "h-6 w-6" },
|
|
58
|
+
}));
|
|
59
|
+
const __VLS_15 = __VLS_14({
|
|
60
|
+
...{ class: "h-6 w-6" },
|
|
61
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_14));
|
|
62
|
+
var __VLS_9;
|
|
63
|
+
var __VLS_3;
|
|
64
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
65
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
66
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
67
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
68
|
+
/** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
|
|
69
|
+
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
70
|
+
/** @type {__VLS_StyleScopedClasses['h-6']} */ ;
|
|
71
|
+
/** @type {__VLS_StyleScopedClasses['w-6']} */ ;
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
var __VLS_12 = __VLS_11;
|
|
74
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
75
|
+
__typeEmits: {},
|
|
76
|
+
__typeProps: {},
|
|
77
|
+
});
|
|
78
|
+
const __VLS_export = {};
|
|
79
|
+
export default {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Checkbox } from "./Checkbox.vue";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { CollapsibleRoot, useForwardPropsEmits } from "reka-ui";
|
|
3
|
+
const props = defineProps();
|
|
4
|
+
const emits = defineEmits();
|
|
5
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
6
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
7
|
+
const __VLS_ctx = {
|
|
8
|
+
...{},
|
|
9
|
+
...{},
|
|
10
|
+
...{},
|
|
11
|
+
...{},
|
|
12
|
+
...{},
|
|
13
|
+
};
|
|
14
|
+
let __VLS_elements;
|
|
15
|
+
let __VLS_components;
|
|
16
|
+
let __VLS_directives;
|
|
17
|
+
const __VLS_0 = {}.CollapsibleRoot;
|
|
18
|
+
/** @type {[typeof __VLS_components.CollapsibleRoot, typeof __VLS_components.CollapsibleRoot, ]} */ ;
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
CollapsibleRoot;
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
23
|
+
...(__VLS_ctx.forwarded),
|
|
24
|
+
}));
|
|
25
|
+
const __VLS_2 = __VLS_1({
|
|
26
|
+
...(__VLS_ctx.forwarded),
|
|
27
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
28
|
+
var __VLS_4 = {};
|
|
29
|
+
{
|
|
30
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
31
|
+
const [{ open }] = __VLS_getSlotParameters(__VLS_5);
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
[forwarded,];
|
|
34
|
+
var __VLS_6 = {
|
|
35
|
+
open: (open),
|
|
36
|
+
};
|
|
37
|
+
__VLS_3.slots['' /* empty slot name completion */];
|
|
38
|
+
}
|
|
39
|
+
var __VLS_3;
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
var __VLS_7 = __VLS_6;
|
|
42
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
43
|
+
__typeEmits: {},
|
|
44
|
+
__typeProps: {},
|
|
45
|
+
});
|
|
46
|
+
const __VLS_export = {};
|
|
47
|
+
export default {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { CollapsibleContent } from "reka-ui";
|
|
3
|
+
const props = defineProps();
|
|
4
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
5
|
+
const __VLS_ctx = {
|
|
6
|
+
...{},
|
|
7
|
+
...{},
|
|
8
|
+
...{},
|
|
9
|
+
...{},
|
|
10
|
+
};
|
|
11
|
+
let __VLS_elements;
|
|
12
|
+
let __VLS_components;
|
|
13
|
+
let __VLS_directives;
|
|
14
|
+
const __VLS_0 = {}.CollapsibleContent;
|
|
15
|
+
/** @type {[typeof __VLS_components.CollapsibleContent, typeof __VLS_components.CollapsibleContent, ]} */ ;
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
CollapsibleContent;
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
20
|
+
...(props),
|
|
21
|
+
...{ class: "overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down" },
|
|
22
|
+
}));
|
|
23
|
+
const __VLS_2 = __VLS_1({
|
|
24
|
+
...(props),
|
|
25
|
+
...{ class: "overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down" },
|
|
26
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
27
|
+
var __VLS_4 = {};
|
|
28
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
29
|
+
var __VLS_6 = {};
|
|
30
|
+
var __VLS_3;
|
|
31
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
32
|
+
/** @type {__VLS_StyleScopedClasses['transition-all']} */ ;
|
|
33
|
+
/** @type {__VLS_StyleScopedClasses['data-[state=closed]:animate-collapsible-up']} */ ;
|
|
34
|
+
/** @type {__VLS_StyleScopedClasses['data-[state=open]:animate-collapsible-down']} */ ;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
var __VLS_7 = __VLS_6;
|
|
37
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
38
|
+
__typeProps: {},
|
|
39
|
+
});
|
|
40
|
+
const __VLS_export = {};
|
|
41
|
+
export default {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { CollapsibleTrigger } from "reka-ui";
|
|
3
|
+
const props = defineProps();
|
|
4
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
5
|
+
const __VLS_ctx = {
|
|
6
|
+
...{},
|
|
7
|
+
...{},
|
|
8
|
+
...{},
|
|
9
|
+
...{},
|
|
10
|
+
};
|
|
11
|
+
let __VLS_elements;
|
|
12
|
+
let __VLS_components;
|
|
13
|
+
let __VLS_directives;
|
|
14
|
+
const __VLS_0 = {}.CollapsibleTrigger;
|
|
15
|
+
/** @type {[typeof __VLS_components.CollapsibleTrigger, typeof __VLS_components.CollapsibleTrigger, ]} */ ;
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
CollapsibleTrigger;
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
20
|
+
...(props),
|
|
21
|
+
}));
|
|
22
|
+
const __VLS_2 = __VLS_1({
|
|
23
|
+
...(props),
|
|
24
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
25
|
+
var __VLS_4 = {};
|
|
26
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
27
|
+
var __VLS_6 = {};
|
|
28
|
+
var __VLS_3;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
var __VLS_7 = __VLS_6;
|
|
31
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
32
|
+
__typeProps: {},
|
|
33
|
+
});
|
|
34
|
+
const __VLS_export = {};
|
|
35
|
+
export default {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { DialogRoot, useForwardPropsEmits } from 'reka-ui';
|
|
3
|
+
defineOptions({ inheritAttrs: false });
|
|
4
|
+
const props = defineProps();
|
|
5
|
+
const emits = defineEmits();
|
|
6
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
7
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
8
|
+
const __VLS_ctx = {
|
|
9
|
+
...{},
|
|
10
|
+
...{},
|
|
11
|
+
...{},
|
|
12
|
+
...{},
|
|
13
|
+
...{},
|
|
14
|
+
};
|
|
15
|
+
let __VLS_elements;
|
|
16
|
+
let __VLS_components;
|
|
17
|
+
let __VLS_directives;
|
|
18
|
+
const __VLS_0 = {}.DialogRoot;
|
|
19
|
+
/** @type {[typeof __VLS_components.DialogRoot, typeof __VLS_components.DialogRoot, ]} */ ;
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
DialogRoot;
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
24
|
+
...(__VLS_ctx.forwarded),
|
|
25
|
+
}));
|
|
26
|
+
const __VLS_2 = __VLS_1({
|
|
27
|
+
...(__VLS_ctx.forwarded),
|
|
28
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
29
|
+
var __VLS_4 = {};
|
|
30
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
[forwarded,];
|
|
33
|
+
var __VLS_6 = {};
|
|
34
|
+
var __VLS_3;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
var __VLS_7 = __VLS_6;
|
|
37
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
38
|
+
__typeEmits: {},
|
|
39
|
+
__typeProps: {},
|
|
40
|
+
});
|
|
41
|
+
const __VLS_export = {};
|
|
42
|
+
export default {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { DialogClose } from "reka-ui";
|
|
3
|
+
const props = defineProps();
|
|
4
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
5
|
+
const __VLS_ctx = {
|
|
6
|
+
...{},
|
|
7
|
+
...{},
|
|
8
|
+
...{},
|
|
9
|
+
...{},
|
|
10
|
+
};
|
|
11
|
+
let __VLS_elements;
|
|
12
|
+
let __VLS_components;
|
|
13
|
+
let __VLS_directives;
|
|
14
|
+
const __VLS_0 = {}.DialogClose;
|
|
15
|
+
/** @type {[typeof __VLS_components.DialogClose, typeof __VLS_components.DialogClose, ]} */ ;
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
DialogClose;
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
20
|
+
...(props),
|
|
21
|
+
}));
|
|
22
|
+
const __VLS_2 = __VLS_1({
|
|
23
|
+
...(props),
|
|
24
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
25
|
+
var __VLS_4 = {};
|
|
26
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
27
|
+
var __VLS_6 = {};
|
|
28
|
+
var __VLS_3;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
var __VLS_7 = __VLS_6;
|
|
31
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
32
|
+
__typeProps: {},
|
|
33
|
+
});
|
|
34
|
+
const __VLS_export = {};
|
|
35
|
+
export default {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { DialogContent, DialogOverlay, DialogPortal, useForwardPropsEmits, } from "reka-ui";
|
|
5
|
+
import { cn } from "../../../lib/utils";
|
|
6
|
+
const props = defineProps();
|
|
7
|
+
const emits = defineEmits();
|
|
8
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
9
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
10
|
+
const customStyle = computed(() => {
|
|
11
|
+
let result = {};
|
|
12
|
+
if (props.width) {
|
|
13
|
+
result.width = Number(props.width) ? props.width + 'px' : props.width;
|
|
14
|
+
}
|
|
15
|
+
return result;
|
|
16
|
+
});
|
|
17
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
18
|
+
const __VLS_ctx = {
|
|
19
|
+
...{},
|
|
20
|
+
...{},
|
|
21
|
+
...{},
|
|
22
|
+
...{},
|
|
23
|
+
...{},
|
|
24
|
+
};
|
|
25
|
+
let __VLS_elements;
|
|
26
|
+
let __VLS_components;
|
|
27
|
+
let __VLS_directives;
|
|
28
|
+
const __VLS_0 = {}.DialogPortal;
|
|
29
|
+
/** @type {[typeof __VLS_components.DialogPortal, typeof __VLS_components.DialogPortal, ]} */ ;
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
DialogPortal;
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({}));
|
|
34
|
+
const __VLS_2 = __VLS_1({}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
35
|
+
var __VLS_4 = {};
|
|
36
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
37
|
+
const __VLS_6 = {}.DialogOverlay;
|
|
38
|
+
/** @type {[typeof __VLS_components.DialogOverlay, ]} */ ;
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
DialogOverlay;
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
|
|
43
|
+
...{ class: "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" },
|
|
44
|
+
}));
|
|
45
|
+
const __VLS_8 = __VLS_7({
|
|
46
|
+
...{ class: "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" },
|
|
47
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
48
|
+
const __VLS_11 = {}.DialogContent;
|
|
49
|
+
/** @type {[typeof __VLS_components.DialogContent, typeof __VLS_components.DialogContent, ]} */ ;
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
DialogContent;
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
const __VLS_12 = __VLS_asFunctionalComponent(__VLS_11, new __VLS_11({
|
|
54
|
+
...(__VLS_ctx.forwarded),
|
|
55
|
+
...{ style: (__VLS_ctx.customStyle) },
|
|
56
|
+
...{ class: (__VLS_ctx.cn('fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-white shadow-3xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg rounded-lg', props.class)) },
|
|
57
|
+
}));
|
|
58
|
+
const __VLS_13 = __VLS_12({
|
|
59
|
+
...(__VLS_ctx.forwarded),
|
|
60
|
+
...{ style: (__VLS_ctx.customStyle) },
|
|
61
|
+
...{ class: (__VLS_ctx.cn('fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-white shadow-3xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg rounded-lg', props.class)) },
|
|
62
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_12));
|
|
63
|
+
const { default: __VLS_15 } = __VLS_14.slots;
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
[forwarded, customStyle, cn,];
|
|
66
|
+
var __VLS_16 = {};
|
|
67
|
+
var __VLS_14;
|
|
68
|
+
var __VLS_3;
|
|
69
|
+
/** @type {__VLS_StyleScopedClasses['fixed']} */ ;
|
|
70
|
+
/** @type {__VLS_StyleScopedClasses['inset-0']} */ ;
|
|
71
|
+
/** @type {__VLS_StyleScopedClasses['z-50']} */ ;
|
|
72
|
+
/** @type {__VLS_StyleScopedClasses['bg-black/80']} */ ;
|
|
73
|
+
/** @type {__VLS_StyleScopedClasses['data-[state=open]:animate-in']} */ ;
|
|
74
|
+
/** @type {__VLS_StyleScopedClasses['data-[state=closed]:animate-out']} */ ;
|
|
75
|
+
/** @type {__VLS_StyleScopedClasses['data-[state=closed]:fade-out-0']} */ ;
|
|
76
|
+
/** @type {__VLS_StyleScopedClasses['data-[state=open]:fade-in-0']} */ ;
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
var __VLS_17 = __VLS_16;
|
|
79
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
80
|
+
__typeEmits: {},
|
|
81
|
+
__typeProps: {},
|
|
82
|
+
});
|
|
83
|
+
const __VLS_export = {};
|
|
84
|
+
export default {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { DialogDescription, useForwardProps } from "reka-ui";
|
|
4
|
+
import { cn } from "../../../lib/utils";
|
|
5
|
+
const props = defineProps();
|
|
6
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
7
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
8
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
9
|
+
const __VLS_ctx = {
|
|
10
|
+
...{},
|
|
11
|
+
...{},
|
|
12
|
+
...{},
|
|
13
|
+
...{},
|
|
14
|
+
};
|
|
15
|
+
let __VLS_elements;
|
|
16
|
+
let __VLS_components;
|
|
17
|
+
let __VLS_directives;
|
|
18
|
+
const __VLS_0 = {}.DialogDescription;
|
|
19
|
+
/** @type {[typeof __VLS_components.DialogDescription, typeof __VLS_components.DialogDescription, ]} */ ;
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
DialogDescription;
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
24
|
+
...(__VLS_ctx.forwardedProps),
|
|
25
|
+
...{ class: (__VLS_ctx.cn('text-sm text-muted-foreground', props.class)) },
|
|
26
|
+
}));
|
|
27
|
+
const __VLS_2 = __VLS_1({
|
|
28
|
+
...(__VLS_ctx.forwardedProps),
|
|
29
|
+
...{ class: (__VLS_ctx.cn('text-sm text-muted-foreground', props.class)) },
|
|
30
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
31
|
+
var __VLS_4 = {};
|
|
32
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
[forwardedProps, cn,];
|
|
35
|
+
var __VLS_6 = {};
|
|
36
|
+
var __VLS_3;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
var __VLS_7 = __VLS_6;
|
|
39
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
40
|
+
__typeProps: {},
|
|
41
|
+
});
|
|
42
|
+
const __VLS_export = {};
|
|
43
|
+
export default {};
|