im-ui-mobile 0.0.43 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/components/im-arrow-bar/im-arrow-bar.vue +59 -0
  2. package/components/im-bar-group/im-bar-group.vue +17 -0
  3. package/components/im-btn-bar/im-btn-bar.vue +60 -0
  4. package/components/im-chat-at-box/im-chat-at-box.vue +189 -0
  5. package/components/im-chat-group-readed/im-chat-group-readed.vue +172 -0
  6. package/components/im-chat-item/im-chat-item.vue +215 -0
  7. package/components/im-chat-message-item/im-chat-message-item.vue +559 -0
  8. package/components/im-chat-record/im-chat-record.vue +303 -0
  9. package/components/im-file-upload/im-file-upload.vue +300 -0
  10. package/components/im-friend-item/im-friend-item.vue +74 -0
  11. package/components/im-group-item/im-group-item.vue +60 -0
  12. package/components/im-group-member-selector/im-group-member-selector.vue +199 -0
  13. package/components/im-group-rtc-join/im-group-rtc-join.vue +112 -0
  14. package/components/im-head-image/im-head-image.vue +122 -0
  15. package/components/im-image-upload/im-image-upload.vue +90 -0
  16. package/components/im-loading/im-loading.vue +63 -0
  17. package/components/im-long-press-menu/im-long-press-menu.vue +137 -0
  18. package/components/im-nav-bar/im-nav-bar.vue +99 -0
  19. package/components/im-switch-bar/im-switch-bar.vue +60 -0
  20. package/components/im-virtual-scroller/im-virtual-scroller.vue +52 -0
  21. package/index.js +13 -3
  22. package/package.json +8 -2
  23. package/plugins/pinia.js +19 -0
  24. package/types/components/arrow-bar.d.ts +14 -0
  25. package/types/components/bar-group.d.ts +14 -0
  26. package/types/components/btn-bar.d.ts +16 -0
  27. package/types/components/chat-at-box.d.ts +22 -0
  28. package/types/components/chat-group-readed.d.ts +30 -0
  29. package/types/components/chat-item.d.ts +21 -0
  30. package/types/components/chat-message-item.d.ts +28 -0
  31. package/types/components/chat-record.d.ts +14 -0
  32. package/types/components/chat-upload.d.ts +58 -0
  33. package/types/components/friend-item.d.ts +19 -0
  34. package/types/components/group-item.d.ts +18 -0
  35. package/types/components/group-member-selector.d.ts +31 -0
  36. package/types/components/group-rtc-join.d.ts +31 -0
  37. package/types/components/head-image.d.ts +18 -0
  38. package/types/components/im-loading.d.ts +20 -0
  39. package/types/components/long-press-menu.d.ts +23 -0
  40. package/types/components/sample.d.ts +1 -3
  41. package/types/components/switch-bar.d.ts +19 -0
  42. package/types/components/virtual-scroller.d.ts +20 -0
@@ -0,0 +1,18 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface GroupItemProps {
4
+ group?: any
5
+ }
6
+
7
+ declare interface GroupItemEmits {
8
+ (e: 'click', targetId: number): void
9
+ }
10
+
11
+ declare interface _GroupItem {
12
+ new(): {
13
+ $props: AllowedComponentProps & VNodeProps & GroupItemProps
14
+ $emit: GroupItemEmits
15
+ }
16
+ }
17
+
18
+ export declare const GroupItem: _GroupItem
@@ -0,0 +1,31 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface Member {
4
+ userId: number
5
+ checked?: boolean
6
+ locked?: boolean
7
+ hide?: boolean
8
+ quit?: boolean
9
+ showNickName: string
10
+ }
11
+
12
+ declare interface GroupMemberSelectorProps {
13
+ group?: any
14
+ members?: any[]
15
+ maxSize?: number
16
+ }
17
+
18
+ declare interface GroupMemberSelectorEmits {
19
+ (e: 'complete', userIds: number[]): void
20
+ }
21
+
22
+ declare interface _GroupMemberSelector {
23
+ new(): {
24
+ $props: AllowedComponentProps & VNodeProps & GroupMemberSelectorProps
25
+ $emit: GroupMemberSelectorEmits
26
+ }
27
+ init: (checkedIds: number[], lockedIds: number[], hideIds: number[]) => void
28
+ open: () => void
29
+ }
30
+
31
+ export declare const GroupMemberSelector: _GroupMemberSelector
@@ -0,0 +1,31 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+ import { UserInfo } from '../../libs'
3
+
4
+ declare interface RtcInfo {
5
+ userInfos: Array<{
6
+ id: number
7
+ nickName: string
8
+ headImage: string
9
+ isCamera?: boolean
10
+ isMicroPhone?: boolean
11
+ }>
12
+ host: any
13
+ }
14
+
15
+ declare interface GroupRtcJoinProps {
16
+ groupId?: number
17
+ }
18
+
19
+ declare interface GroupRtcJoinEmits {
20
+ (e: 'ok', groupId: number, inviterId: number, userInfos: string): void
21
+ }
22
+
23
+ declare interface _GroupRtcJoin {
24
+ new(): {
25
+ $props: AllowedComponentProps & VNodeProps & GroupRtcJoinProps
26
+ $emit: GroupRtcJoinEmits
27
+ }
28
+ open: (userInfo: UserInfo, rtcInfo: RtcInfo) => void
29
+ }
30
+
31
+ export declare const GroupRtcJoin: _GroupRtcJoin
@@ -0,0 +1,18 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface HeadImageProps {
4
+ id?: number
5
+ size?: number | string
6
+ url?: string
7
+ name?: string
8
+ radius?: string
9
+ online?: boolean
10
+ }
11
+
12
+ declare interface _HeadImage {
13
+ new(): {
14
+ $props: AllowedComponentProps & VNodeProps & HeadImageProps
15
+ }
16
+ }
17
+
18
+ export declare const HeadImage: _HeadImage
@@ -0,0 +1,20 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface ImLoadingProps {
4
+ size?: number
5
+ iconColor?: string
6
+ mask?: boolean
7
+ }
8
+
9
+ declare interface ImLoadingSlots {
10
+ default?: () => any
11
+ }
12
+
13
+ declare interface _ImLoading {
14
+ new(): {
15
+ $props: AllowedComponentProps & VNodeProps & ImLoadingProps
16
+ $slots: ImLoadingSlots
17
+ }
18
+ }
19
+
20
+ export declare const ImLoading: _ImLoading
@@ -0,0 +1,23 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface LongPressMenuProps {
4
+ items?: any[]
5
+ }
6
+
7
+ declare interface LongPressMenuEmits {
8
+ (e: 'select', item: any): void
9
+ }
10
+
11
+ declare interface LongPressMenuSlots {
12
+ default?: () => any
13
+ }
14
+
15
+ declare interface _LongPressMenu {
16
+ new(): {
17
+ $props: AllowedComponentProps & VNodeProps & LongPressMenuProps
18
+ $emit: LongPressMenuEmits
19
+ $slots: LongPressMenuSlots
20
+ }
21
+ }
22
+
23
+ export declare const LongPressMenu: _LongPressMenu
@@ -11,9 +11,7 @@ declare interface SampleProps {
11
11
 
12
12
  declare interface _Sample {
13
13
  new(): {
14
- $props: AllowedComponentProps &
15
- VNodeProps &
16
- SampleProps
14
+ $props: AllowedComponentProps & VNodeProps & SampleProps
17
15
  }
18
16
  }
19
17
 
@@ -0,0 +1,19 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface SwitchBarProps {
4
+ title: string
5
+ checked?: boolean
6
+ }
7
+
8
+ declare interface SwitchBarEmits {
9
+ (e: 'change', value: boolean): void
10
+ }
11
+
12
+ declare interface _SwitchBar {
13
+ new(): {
14
+ $props: AllowedComponentProps & VNodeProps & SwitchBarProps
15
+ $emit: SwitchBarEmits
16
+ }
17
+ }
18
+
19
+ export declare const SwitchBar: _SwitchBar
@@ -0,0 +1,20 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface VirtualScrollerProps {
4
+ height?: string
5
+ items?: any[]
6
+ size?: number
7
+ }
8
+
9
+ declare interface VirtualScrollerSlots {
10
+ default?: (params: { item: any }) => any
11
+ }
12
+
13
+ declare interface _VirtualScroller {
14
+ new(): {
15
+ $props: AllowedComponentProps & VNodeProps & VirtualScrollerProps
16
+ $slots: VirtualScrollerSlots
17
+ }
18
+ }
19
+
20
+ export declare const VirtualScroller: _VirtualScroller