@phonghq/go-chat 1.0.2 → 1.0.4
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/go-chat.es.js +6578 -6530
- package/dist/go-chat.umd.js +14 -14
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/assets/icons/IconArrowLeft.vue.d.ts +0 -2
- package/dist/assets/icons/IconArrowLeft.vue.js +0 -29
- package/dist/assets/icons/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/IconPhone.vue.js +0 -19
- package/dist/assets/icons/IconPlan.vue.d.ts +0 -2
- package/dist/assets/icons/IconPlan.vue.js +0 -19
- package/dist/assets/icons/IconPlus.vue.d.ts +0 -2
- package/dist/assets/icons/IconPlus.vue.js +0 -22
- package/dist/assets/icons/IconSearch.vue.d.ts +0 -32
- package/dist/assets/icons/IconSearch.vue.js +0 -68
- package/dist/assets/icons/call/IconMic.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconMic.vue.js +0 -123
- package/dist/assets/icons/call/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhone.vue.js +0 -35
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhoneCancel.vue.js +0 -35
- package/dist/assets/icons/call/IconSpeaker.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconSpeaker.vue.js +0 -62
- package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +0 -2
- package/dist/assets/icons/customer-appointment/IconFilter.vue.js +0 -53
- package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconArrow.vue.js +0 -22
- package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconCheck.vue.js +0 -27
- package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconDate.vue.js +0 -43
- package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconGroup.vue.js +0 -48
- package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconMessage.vue.js +0 -28
- package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconNote.vue.js +0 -29
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconPhone.vue.js +0 -21
- package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconPin.vue.js +0 -29
- package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconSearch.vue.js +0 -29
- package/dist/chat/App.vue.d.ts +0 -5
- package/dist/chat/App.vue.js +0 -502
- package/dist/chat/main.d.ts +0 -3
- package/dist/chat/main.js +0 -2
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +0 -2
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +0 -207
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +0 -12
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +0 -80
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +0 -2
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +0 -136
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +0 -7
- package/dist/chat/page/customer-detail/CustomerDetail.vue.js +0 -235
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +0 -16
- package/dist/chat/page/customer-detail/SubInformation.vue.js +0 -102
- package/dist/chat/page/error/Error.vue.d.ts +0 -2
- package/dist/chat/page/error/Error.vue.js +0 -64
- package/dist/chat/page/home/ChatList.vue.d.ts +0 -20
- package/dist/chat/page/home/ChatList.vue.js +0 -380
- package/dist/chat/page/home/ChatMessage.vue.d.ts +0 -16
- package/dist/chat/page/home/ChatMessage.vue.js +0 -271
- package/dist/chat/page/home/Home.vue.d.ts +0 -14
- package/dist/chat/page/home/Home.vue.js +0 -327
- package/dist/chat/page/home/HomeHeader.vue.d.ts +0 -10
- package/dist/chat/page/home/HomeHeader.vue.js +0 -122
- package/dist/chat/page/home/InputChat.vue.d.ts +0 -19
- package/dist/chat/page/home/InputChat.vue.js +0 -226
- package/dist/chat/page/home/NewCustomer.vue.d.ts +0 -6
- package/dist/chat/page/home/NewCustomer.vue.js +0 -82
- package/dist/components/ListenEvent.vue.d.ts +0 -2
- package/dist/components/ListenEvent.vue.js +0 -45
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +0 -22
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +0 -197
- package/dist/components/chat/call/Calling.vue.d.ts +0 -7
- package/dist/components/chat/call/Calling.vue.js +0 -291
- package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +0 -13
- package/dist/components/chat/card/CardCustomerDetail.vue.js +0 -28
- package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +0 -20
- package/dist/components/chat/common/collapse/CollapseBase.vue.js +0 -59
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +0 -16
- package/dist/components/chat/common/input/InputSearch.vue.js +0 -71
- package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +0 -35
- package/dist/components/chat/common/popover/PopoverBase.vue.js +0 -148
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +0 -2
- package/dist/components/chat/common/spin/BaseSpin.vue.js +0 -12
- package/dist/components/chat/customer/Avatar.vue.d.ts +0 -11
- package/dist/components/chat/customer/Avatar.vue.js +0 -79
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +0 -2
- package/dist/components/chat/layout/mobile/Footer.vue.js +0 -109
- package/dist/components/common/CustomLoading.vue.d.ts +0 -2
- package/dist/components/common/CustomLoading.vue.js +0 -19
- package/dist/components/common/Notification/NotificationDescription.vue.d.ts +0 -7
- package/dist/components/common/Notification/NotificationDescription.vue.js +0 -38
- package/dist/components/common/button/ButtonBase.vue.d.ts +0 -22
- package/dist/components/common/button/ButtonBase.vue.js +0 -78
- package/dist/components/common/button/ButtonToggle.vue.d.ts +0 -20
- package/dist/components/common/button/ButtonToggle.vue.js +0 -70
- package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +0 -16
- package/dist/components/common/checkbox/CCheckboxNumber.vue.js +0 -48
- package/dist/components/common/collapse/BaseCollapse.vue.d.ts +0 -12
- package/dist/components/common/collapse/BaseCollapse.vue.js +0 -36
- package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +0 -4
- package/dist/components/common/collapse/BaseCollapseItem.vue.js +0 -22
- package/dist/components/common/drawer/DrawerBase.vue.d.ts +0 -39
- package/dist/components/common/drawer/DrawerBase.vue.js +0 -126
- package/dist/components/common/dropdown/DropdownBase.vue.d.ts +0 -21
- package/dist/components/common/dropdown/DropdownBase.vue.js +0 -91
- package/dist/components/common/input/CInputSearch.vue.d.ts +0 -14
- package/dist/components/common/input/CInputSearch.vue.js +0 -62
- package/dist/components/common/modal/ModalBase.vue.d.ts +0 -35
- package/dist/components/common/modal/ModalBase.vue.js +0 -164
- package/dist/components/common/popover/PopoverBase.vue.d.ts +0 -3
- package/dist/components/common/popover/PopoverBase.vue.js +0 -36
- package/dist/components/common/slider/BaseSlider.vue.d.ts +0 -11
- package/dist/components/common/slider/BaseSlider.vue.js +0 -70
- package/dist/components/common/spin/CSpin.vue.d.ts +0 -9
- package/dist/components/common/spin/CSpin.vue.js +0 -41
- package/dist/components/common/tooltip/TooltipBase.vue.d.ts +0 -2
- package/dist/components/common/tooltip/TooltipBase.vue.js +0 -8
- package/dist/components/layout/Blank.vue.d.ts +0 -9
- package/dist/components/layout/Blank.vue.js +0 -19
- package/dist/components/layout/Default.vue.d.ts +0 -9
- package/dist/components/layout/Default.vue.js +0 -21
- package/dist/components/modal/Confirm.vue.d.ts +0 -2
- package/dist/components/modal/Confirm.vue.js +0 -164
- package/dist/components/ui/button/CButton.vue.d.ts +0 -19
- package/dist/components/ui/button/CButton.vue.js +0 -49
- package/dist/components/ui/button/c-button.d.ts +0 -7
- package/dist/components/ui/button/c-button.js +0 -26
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +0 -18
- package/dist/components/ui/checkbox/Checkbox.vue.js +0 -79
- package/dist/components/ui/checkbox/index.d.ts +0 -1
- package/dist/components/ui/checkbox/index.js +0 -1
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +0 -16
- package/dist/components/ui/collapsible/Collapsible.vue.js +0 -47
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleContent.vue.js +0 -41
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +0 -35
- package/dist/components/ui/collapsible/index.d.ts +0 -3
- package/dist/components/ui/collapsible/index.js +0 -3
- package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -14
- package/dist/components/ui/dialog/Dialog.vue.js +0 -42
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogClose.vue.js +0 -35
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -29
- package/dist/components/ui/dialog/DialogContent.vue.js +0 -84
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogDescription.vue.js +0 -43
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogFooter.vue.js +0 -26
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogHeader.vue.js +0 -26
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -30
- package/dist/components/ui/dialog/DialogScrollContent.vue.js +0 -99
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogTitle.vue.js +0 -43
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogTrigger.vue.js +0 -35
- package/dist/components/ui/dialog/index.d.ts +0 -9
- package/dist/components/ui/dialog/index.js +0 -9
- package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -26
- package/dist/components/ui/drawer/Drawer.vue.js +0 -48
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -33
- package/dist/components/ui/drawer/DrawerContent.vue.js +0 -81
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerDescription.vue.js +0 -42
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerFooter.vue.js +0 -26
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerHeader.vue.js +0 -26
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
- package/dist/components/ui/drawer/DrawerOverlay.vue.js +0 -37
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerTitle.vue.js +0 -42
- package/dist/components/ui/drawer/index.d.ts +0 -8
- package/dist/components/ui/drawer/index.js +0 -8
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -20
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +0 -79
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -28
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +0 -61
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +0 -35
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +0 -43
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +0 -43
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -18
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +0 -80
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +0 -37
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +0 -26
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -30
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +0 -46
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +0 -58
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/index.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/index.js +0 -15
- package/dist/components/ui/popover/Popover.vue.d.ts +0 -14
- package/dist/components/ui/popover/Popover.vue.js +0 -41
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -28
- package/dist/components/ui/popover/PopoverContent.vue.js +0 -60
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -10
- package/dist/components/ui/popover/PopoverTrigger.vue.js +0 -35
- package/dist/components/ui/popover/index.d.ts +0 -3
- package/dist/components/ui/popover/index.js +0 -3
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +0 -18
- package/dist/components/ui/radio-group/RadioGroup.vue.js +0 -46
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -7
- package/dist/components/ui/radio-group/RadioGroupItem.vue.js +0 -71
- package/dist/components/ui/radio-group/index.d.ts +0 -2
- package/dist/components/ui/radio-group/index.js +0 -2
- package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
- package/dist/components/ui/slider/Slider.vue.js +0 -155
- package/dist/components/ui/slider/index.d.ts +0 -1
- package/dist/components/ui/slider/index.js +0 -1
- package/dist/components/ui/switch/Switch.vue.d.ts +0 -18
- package/dist/components/ui/switch/Switch.vue.js +0 -61
- package/dist/components/ui/switch/index.d.ts +0 -1
- package/dist/components/ui/switch/index.js +0 -1
- package/dist/composable/useCallHelper.d.ts +0 -23
- package/dist/composable/useCallHelper.js +0 -170
- package/dist/composable/useInitData.d.ts +0 -11
- package/dist/composable/useInitData.js +0 -84
- package/dist/composable/useModalConfirm.d.ts +0 -5
- package/dist/composable/useModalConfirm.js +0 -39
- package/dist/constant/color.d.ts +0 -22
- package/dist/constant/color.js +0 -43
- package/dist/constant/datetime.d.ts +0 -5
- package/dist/constant/datetime.js +0 -5
- package/dist/constant/general.d.ts +0 -8
- package/dist/constant/general.js +0 -9
- package/dist/constant/message.d.ts +0 -8
- package/dist/constant/message.js +0 -8
- package/dist/constant/mqtt.d.ts +0 -4
- package/dist/constant/mqtt.js +0 -11
- package/dist/constant/user.d.ts +0 -8
- package/dist/constant/user.js +0 -9
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.js +0 -5
- package/dist/plugins/axios-gci.d.ts +0 -3
- package/dist/plugins/axios-gci.js +0 -25
- package/dist/plugins/axios.d.ts +0 -3
- package/dist/plugins/axios.js +0 -85
- package/dist/plugins/mqtt.d.ts +0 -10
- package/dist/plugins/mqtt.js +0 -128
- package/dist/plugins/sdk.d.ts +0 -19
- package/dist/plugins/sdk.js +0 -83
- package/dist/plugins/websocket.d.ts +0 -4
- package/dist/plugins/websocket.js +0 -65
- package/dist/types/chat/user.d.ts +0 -88
- package/dist/types/chat/user.js +0 -1
- package/dist/types/conversation.d.ts +0 -18
- package/dist/types/conversation.js +0 -1
- package/dist/utils/chat/auth.d.ts +0 -45
- package/dist/utils/chat/auth.js +0 -51
- package/dist/utils/chat/call.d.ts +0 -5
- package/dist/utils/chat/call.js +0 -61
- package/dist/utils/chat/chat-router.d.ts +0 -3
- package/dist/utils/chat/chat-router.js +0 -9
- package/dist/utils/chat/conversation.d.ts +0 -3
- package/dist/utils/chat/conversation.js +0 -7
- package/dist/utils/chat/message.d.ts +0 -17
- package/dist/utils/chat/message.js +0 -42
- package/dist/utils/chat/user.d.ts +0 -193
- package/dist/utils/chat/user.js +0 -33
- package/dist/utils/debounce.d.ts +0 -1
- package/dist/utils/debounce.js +0 -9
- package/dist/utils/json.d.ts +0 -2
- package/dist/utils/json.js +0 -18
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/logger.js +0 -5
- package/dist/utils/string-helper.d.ts +0 -1
- package/dist/utils/string-helper.js +0 -27
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { ref } from 'vue';
|
|
3
|
-
const props = withDefaults(defineProps(), {
|
|
4
|
-
placement: 'bottom',
|
|
5
|
-
trigger: 'click'
|
|
6
|
-
});
|
|
7
|
-
const open = ref(false);
|
|
8
|
-
const hide = () => {
|
|
9
|
-
open.value = false;
|
|
10
|
-
};
|
|
11
|
-
const handleClickChange = (visible) => {
|
|
12
|
-
open.value = visible;
|
|
13
|
-
};
|
|
14
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
15
|
-
const __VLS_defaults = {
|
|
16
|
-
placement: 'bottom',
|
|
17
|
-
trigger: 'click'
|
|
18
|
-
};
|
|
19
|
-
const __VLS_ctx = {
|
|
20
|
-
...{},
|
|
21
|
-
...{},
|
|
22
|
-
...{},
|
|
23
|
-
...{},
|
|
24
|
-
};
|
|
25
|
-
let __VLS_elements;
|
|
26
|
-
let __VLS_components;
|
|
27
|
-
let __VLS_directives;
|
|
28
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
29
|
-
...{ class: "relative" },
|
|
30
|
-
});
|
|
31
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
32
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
33
|
-
__typeProps: {},
|
|
34
|
-
props: {},
|
|
35
|
-
});
|
|
36
|
-
export default {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
modelValue: number;
|
|
3
|
-
}
|
|
4
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
-
"update:modelValue": (val: number) => any;
|
|
6
|
-
afterChange: (val: number) => any;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
8
|
-
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
9
|
-
onAfterChange?: ((val: number) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
export default _default;
|
|
@@ -1,70 +0,0 @@
|
|
|
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 { CSlider } from "../../../components/ui/slider";
|
|
4
|
-
const props = withDefaults(defineProps(), {});
|
|
5
|
-
const emits = defineEmits();
|
|
6
|
-
const value = computed({
|
|
7
|
-
get: () => [props.modelValue],
|
|
8
|
-
set: (val) => {
|
|
9
|
-
emits('update:modelValue', val[0]);
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
const onAfterChange = (value) => {
|
|
13
|
-
emits('afterChange', value);
|
|
14
|
-
};
|
|
15
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
16
|
-
const __VLS_defaults = {};
|
|
17
|
-
const __VLS_ctx = {
|
|
18
|
-
...{},
|
|
19
|
-
...{},
|
|
20
|
-
...{},
|
|
21
|
-
...{},
|
|
22
|
-
...{},
|
|
23
|
-
};
|
|
24
|
-
let __VLS_elements;
|
|
25
|
-
let __VLS_components;
|
|
26
|
-
let __VLS_directives;
|
|
27
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
28
|
-
...{ class: "relative" },
|
|
29
|
-
});
|
|
30
|
-
const __VLS_0 = {}.CSlider;
|
|
31
|
-
/** @type {[typeof __VLS_components.CSlider, typeof __VLS_components.cSlider, ]} */ ;
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
CSlider;
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
36
|
-
...{ 'onValueCommit': {} },
|
|
37
|
-
modelValue: (__VLS_ctx.value),
|
|
38
|
-
min: (0),
|
|
39
|
-
max: (0),
|
|
40
|
-
step: (0),
|
|
41
|
-
}));
|
|
42
|
-
const __VLS_2 = __VLS_1({
|
|
43
|
-
...{ 'onValueCommit': {} },
|
|
44
|
-
modelValue: (__VLS_ctx.value),
|
|
45
|
-
min: (0),
|
|
46
|
-
max: (0),
|
|
47
|
-
step: (0),
|
|
48
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
49
|
-
let __VLS_4;
|
|
50
|
-
let __VLS_5;
|
|
51
|
-
const __VLS_6 = ({ valueCommit: {} },
|
|
52
|
-
{ onValueCommit: ((e) => __VLS_ctx.onAfterChange(e[0])) });
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
[value, onAfterChange,];
|
|
55
|
-
var __VLS_3;
|
|
56
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
57
|
-
...{ class: "justify-between flex absolute w-full text-sm" },
|
|
58
|
-
});
|
|
59
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
60
|
-
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
61
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
62
|
-
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
63
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
64
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
65
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
66
|
-
__typeEmits: {},
|
|
67
|
-
__typeProps: {},
|
|
68
|
-
props: {},
|
|
69
|
-
});
|
|
70
|
-
export default {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
size?: number;
|
|
3
|
-
border?: number;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
6
|
-
size: number;
|
|
7
|
-
border: number;
|
|
8
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { onMounted, computed } from 'vue';
|
|
3
|
-
const props = withDefaults(defineProps(), {
|
|
4
|
-
size: 48,
|
|
5
|
-
border: 5,
|
|
6
|
-
});
|
|
7
|
-
const style = computed(() => {
|
|
8
|
-
let result = {};
|
|
9
|
-
result.width = props.size + 'px';
|
|
10
|
-
result.height = props.size + 'px';
|
|
11
|
-
result.borderWidth = props.border + 'px';
|
|
12
|
-
return result;
|
|
13
|
-
});
|
|
14
|
-
onMounted(() => {
|
|
15
|
-
});
|
|
16
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
17
|
-
const __VLS_defaults = {
|
|
18
|
-
size: 48,
|
|
19
|
-
border: 5,
|
|
20
|
-
};
|
|
21
|
-
const __VLS_ctx = {
|
|
22
|
-
...{},
|
|
23
|
-
...{},
|
|
24
|
-
...{},
|
|
25
|
-
...{},
|
|
26
|
-
};
|
|
27
|
-
let __VLS_elements;
|
|
28
|
-
let __VLS_components;
|
|
29
|
-
let __VLS_directives;
|
|
30
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
31
|
-
...{ class: "loader" },
|
|
32
|
-
...{ style: (__VLS_ctx.style) },
|
|
33
|
-
});
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
[style,];
|
|
36
|
-
/** @type {__VLS_StyleScopedClasses['loader']} */ ;
|
|
37
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
38
|
-
__typeProps: {},
|
|
39
|
-
props: {},
|
|
40
|
-
});
|
|
41
|
-
export default {};
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/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
|
-
const __VLS_export = (await import('vue')).defineComponent({});
|
|
8
|
-
export default {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
2
|
-
default?: ((props: {}) => any) | undefined;
|
|
3
|
-
}>;
|
|
4
|
-
export default _default;
|
|
5
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
6
|
-
new (): {
|
|
7
|
-
$slots: S;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
3
|
-
const __VLS_ctx = {
|
|
4
|
-
...{},
|
|
5
|
-
...{},
|
|
6
|
-
};
|
|
7
|
-
let __VLS_elements;
|
|
8
|
-
let __VLS_components;
|
|
9
|
-
let __VLS_directives;
|
|
10
|
-
__VLS_asFunctionalElement(__VLS_elements.main, __VLS_elements.main)({
|
|
11
|
-
...{ class: "main" },
|
|
12
|
-
});
|
|
13
|
-
var __VLS_0 = {};
|
|
14
|
-
/** @type {__VLS_StyleScopedClasses['main']} */ ;
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
var __VLS_1 = __VLS_0;
|
|
17
|
-
const __VLS_base = (await import('vue')).defineComponent({});
|
|
18
|
-
const __VLS_export = {};
|
|
19
|
-
export default {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
2
|
-
default?: ((props: {}) => any) | undefined;
|
|
3
|
-
}>;
|
|
4
|
-
export default _default;
|
|
5
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
6
|
-
new (): {
|
|
7
|
-
$slots: S;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
// COMPONENT
|
|
3
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
4
|
-
const __VLS_ctx = {};
|
|
5
|
-
let __VLS_elements;
|
|
6
|
-
let __VLS_components;
|
|
7
|
-
let __VLS_directives;
|
|
8
|
-
__VLS_asFunctionalElement(__VLS_elements.main, __VLS_elements.main)({
|
|
9
|
-
...{ class: "main" },
|
|
10
|
-
});
|
|
11
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
12
|
-
...{ class: "container" },
|
|
13
|
-
});
|
|
14
|
-
var __VLS_0 = {};
|
|
15
|
-
/** @type {__VLS_StyleScopedClasses['main']} */ ;
|
|
16
|
-
/** @type {__VLS_StyleScopedClasses['container']} */ ;
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
var __VLS_1 = __VLS_0;
|
|
19
|
-
const __VLS_base = (await import('vue')).defineComponent({});
|
|
20
|
-
const __VLS_export = {};
|
|
21
|
-
export default {};
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1,164 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PrimitiveProps } from "reka-ui";
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import type { ButtonVariants } from "./c-button";
|
|
4
|
-
interface Props extends PrimitiveProps {
|
|
5
|
-
variant?: ButtonVariants["variant"];
|
|
6
|
-
size?: ButtonVariants["size"];
|
|
7
|
-
class?: HTMLAttributes["class"];
|
|
8
|
-
}
|
|
9
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
11
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
12
|
-
default?: ((props: {}) => any) | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
export { default as CButton } from './CButton.vue';
|
|
3
|
-
export declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "link" | "danger-outline" | "primary-outline" | "primary" | "success" | "danger" | "ghost" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
|
|
7
|
-
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CheckboxRootProps } from "reka-ui";
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
type __VLS_Props = CheckboxRootProps & {
|
|
4
|
-
class?: HTMLAttributes["class"];
|
|
5
|
-
};
|
|
6
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (value: boolean | "indeterminate") => any;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
11
|
-
default?: ((props: {}) => any) | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
-
new (): {
|
|
16
|
-
$slots: S;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Checkbox } from "./Checkbox.vue";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Checkbox } from "./Checkbox.vue";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CollapsibleRootProps } from "reka-ui";
|
|
2
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
-
"update:open": (value: boolean) => any;
|
|
4
|
-
}, string, import("vue").PublicProps, Readonly<CollapsibleRootProps> & Readonly<{
|
|
5
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
6
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
7
|
-
default?: ((props: {
|
|
8
|
-
open: boolean;
|
|
9
|
-
}) => any) | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|