@emoo-ai/ui-vue 0.0.0-stage → 0.1.0

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 (65) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +23 -2
  3. package/dist/components/EmooActionPill.vue.d.ts +13 -0
  4. package/dist/components/EmooActionSheet.vue.d.ts +36 -0
  5. package/dist/components/EmooAgentSelect.vue.d.ts +22 -0
  6. package/dist/components/EmooButton.vue.d.ts +32 -0
  7. package/dist/components/EmooCard.vue.d.ts +22 -0
  8. package/dist/components/EmooChips.vue.d.ts +27 -0
  9. package/dist/components/EmooChoice.vue.d.ts +51 -0
  10. package/dist/components/EmooColumnMenu.vue.d.ts +53 -0
  11. package/dist/components/EmooDrawer.vue.d.ts +41 -0
  12. package/dist/components/EmooEmpty.vue.d.ts +26 -0
  13. package/dist/components/EmooField.vue.d.ts +37 -0
  14. package/dist/components/EmooFieldGrid.vue.d.ts +19 -0
  15. package/dist/components/EmooGhostButton.vue.d.ts +17 -0
  16. package/dist/components/EmooGroupLabel.vue.d.ts +9 -0
  17. package/dist/components/EmooHistoryList.vue.d.ts +71 -0
  18. package/dist/components/EmooMemberRoleSelect.vue.d.ts +21 -0
  19. package/dist/components/EmooMemberSelect.vue.d.ts +22 -0
  20. package/dist/components/EmooMemberTag.vue.d.ts +22 -0
  21. package/dist/components/EmooMessage.vue.d.ts +33 -0
  22. package/dist/components/EmooNavMenu.vue.d.ts +35 -0
  23. package/dist/components/EmooNavSegmented.vue.d.ts +15 -0
  24. package/dist/components/EmooOptionRows.vue.d.ts +32 -0
  25. package/dist/components/EmooPagination.vue.d.ts +25 -0
  26. package/dist/components/EmooPopover.vue.d.ts +22 -0
  27. package/dist/components/EmooProgress.vue.d.ts +14 -0
  28. package/dist/components/EmooRoleSelect.vue.d.ts +24 -0
  29. package/dist/components/EmooSearchBox.vue.d.ts +35 -0
  30. package/dist/components/EmooSegmented.vue.d.ts +35 -0
  31. package/dist/components/EmooSidebarShell.vue.d.ts +30 -0
  32. package/dist/components/EmooSkeleton.vue.d.ts +22 -0
  33. package/dist/components/EmooSpinner.vue.d.ts +10 -0
  34. package/dist/components/EmooStatusTag.vue.d.ts +17 -0
  35. package/dist/components/EmooSwitcherPanel.vue.d.ts +23 -0
  36. package/dist/components/EmooTable.vue.d.ts +147 -0
  37. package/dist/components/EmooTagsInput.vue.d.ts +18 -0
  38. package/dist/components/EmooTooltip.vue.d.ts +25 -0
  39. package/dist/components/EmooUpload.vue.d.ts +40 -0
  40. package/dist/components/EmooValueDiff.vue.d.ts +7 -0
  41. package/dist/components/IconChatCirclePlus.vue.d.ts +3 -0
  42. package/dist/components/history-contract.d.ts +13 -0
  43. package/dist/components/select-contract.d.ts +29 -0
  44. package/dist/components/useRemoteOptions.d.ts +16 -0
  45. package/dist/components/useSelectedOptions.d.ts +8 -0
  46. package/dist/composables/useColumnPrefs.d.ts +84 -0
  47. package/dist/composables/useMessageScroll.d.ts +15 -0
  48. package/dist/composables/useSheetHeightDrag.d.ts +7 -0
  49. package/dist/constants.d.ts +4 -0
  50. package/dist/eslint.d.ts +18 -0
  51. package/dist/eslint.js +43 -0
  52. package/dist/global/SheetDragHandle.vue.d.ts +11 -0
  53. package/dist/icons.d.ts +414 -0
  54. package/dist/icons.js +153 -0
  55. package/dist/index.d.ts +59 -0
  56. package/dist/index.js +3710 -0
  57. package/dist/locales/cn.d.ts +73 -0
  58. package/dist/locales/en.d.ts +73 -0
  59. package/dist/locales/index.d.ts +4 -0
  60. package/dist/locales.js +151 -0
  61. package/dist/styles.css +1 -0
  62. package/dist/theme.d.ts +6 -0
  63. package/dist/utils/avatar-tint.d.ts +1 -0
  64. package/dist/utils/drawer-size.d.ts +2 -0
  65. package/package.json +46 -4
@@ -0,0 +1,35 @@
1
+ import type { Component } from 'vue';
2
+ export interface EmooNavItem {
3
+ key: string;
4
+ title: string;
5
+ icon?: Component;
6
+ path?: string;
7
+ children?: EmooNavItem[];
8
+ action?: () => void;
9
+ hidden?: boolean;
10
+ separatorBefore?: boolean;
11
+ active?: boolean;
12
+ badge?: number | string;
13
+ trailing?: Component;
14
+ testid?: string;
15
+ }
16
+ type __VLS_Props = {
17
+ items: EmooNavItem[];
18
+ activePath?: string;
19
+ canShow?: (item: EmooNavItem) => boolean;
20
+ navigate?: (path: string) => void;
21
+ touch?: boolean;
22
+ };
23
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ select: (item: EmooNavItem) => any;
25
+ "group-select": (item: EmooNavItem, expanding: boolean) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ onSelect?: ((item: EmooNavItem) => any) | undefined;
28
+ "onGroup-select"?: ((item: EmooNavItem, expanding: boolean) => any) | undefined;
29
+ }>, {
30
+ touch: boolean;
31
+ activePath: string;
32
+ canShow: (item: EmooNavItem) => boolean;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import type { EmooNavItem } from './EmooNavMenu.vue';
2
+ type __VLS_Props = {
3
+ items: EmooNavItem[];
4
+ activeKey?: string;
5
+ navigate?: (path: string) => void;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ select: (item: EmooNavItem) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onSelect?: ((item: EmooNavItem) => any) | undefined;
11
+ }>, {
12
+ activeKey: string;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,32 @@
1
+ type __VLS_Props = {
2
+ options: Array<{
3
+ value: string | number;
4
+ label: string;
5
+ }>;
6
+ modelValue: string | number | (string | number)[] | null;
7
+ multiple?: boolean;
8
+ inline?: boolean;
9
+ disabled?: boolean;
10
+ testid?: string;
11
+ };
12
+ declare var __VLS_38: {};
13
+ type __VLS_Slots = {} & {
14
+ append?: (props: typeof __VLS_38) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (value: string | number | (string | number)[] | null) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string | number | (string | number)[] | null) => any) | undefined;
20
+ }>, {
21
+ disabled: boolean;
22
+ multiple: boolean;
23
+ inline: boolean;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ total: number;
3
+ page?: number;
4
+ pageSize?: number;
5
+ pageSizes?: number[];
6
+ density?: 'default' | 'compact';
7
+ densityBase?: 'standard' | 'comfort';
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ "update:page": (page: number) => any;
11
+ "update:pageSize": (size: number) => any;
12
+ "update:density": (density: "default" | "compact") => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onUpdate:page"?: ((page: number) => any) | undefined;
15
+ "onUpdate:pageSize"?: ((size: number) => any) | undefined;
16
+ "onUpdate:density"?: ((density: "default" | "compact") => any) | undefined;
17
+ }>, {
18
+ page: number;
19
+ pageSize: number;
20
+ pageSizes: number[];
21
+ density: "default" | "compact";
22
+ densityBase: "standard" | "comfort";
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ popperClass?: string;
3
+ showArrow?: boolean;
4
+ };
5
+ declare var __VLS_8: {}, __VLS_11: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_8) => any;
8
+ } & {
9
+ reference?: (props: typeof __VLS_11) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ popperClass: string;
13
+ showArrow: boolean;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ value?: number | null;
3
+ status?: 'run' | 'done' | 'failed' | 'queued';
4
+ size?: 'mini' | 'md';
5
+ label?: string;
6
+ ariaLabel?: string;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ size: "mini" | "md";
10
+ value: number | null;
11
+ status: "run" | "done" | "failed" | "queued";
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import type { RoleOption, RemoteSource, SelectValue } from './select-contract';
2
+ type __VLS_Props = {
3
+ modelValue: SelectValue;
4
+ options?: RoleOption[];
5
+ source?: RemoteSource<RoleOption>;
6
+ selected?: RoleOption[];
7
+ multiple?: boolean;
8
+ placeholder?: string;
9
+ clearable?: boolean;
10
+ collapse?: number;
11
+ };
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (value: SelectValue) => any;
14
+ "update:selected": (value: RoleOption[]) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
17
+ "onUpdate:selected"?: ((value: RoleOption[]) => any) | undefined;
18
+ }>, {
19
+ multiple: boolean;
20
+ clearable: boolean;
21
+ collapse: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ variant?: 'composer' | 'hero';
3
+ grip?: boolean;
4
+ resizing?: boolean;
5
+ gripTip?: string;
6
+ };
7
+ declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
8
+ type __VLS_Slots = {} & {
9
+ top?: (props: typeof __VLS_7) => any;
10
+ } & {
11
+ extras?: (props: typeof __VLS_9) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_11) => any;
14
+ } & {
15
+ bar?: (props: typeof __VLS_13) => any;
16
+ } & {
17
+ trailing?: (props: typeof __VLS_15) => any;
18
+ };
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
+ "grip-mousedown": (ev: MouseEvent) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ "onGrip-mousedown"?: ((ev: MouseEvent) => any) | undefined;
23
+ }>, {
24
+ variant: "composer" | "hero";
25
+ grip: boolean;
26
+ resizing: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,35 @@
1
+ import type { Component } from 'vue';
2
+ declare const __VLS_export: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
+ options: {
5
+ label?: string;
6
+ value: T;
7
+ disabled?: boolean;
8
+ count?: string | number;
9
+ icon?: Component;
10
+ ariaLabel?: string;
11
+ }[];
12
+ modelValue: T;
13
+ size?: "small" | "default" | "large";
14
+ disabled?: boolean;
15
+ ariaLabel?: string;
16
+ } & {
17
+ onChange?: ((value: T) => any) | undefined;
18
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
19
+ }> & (typeof globalThis extends {
20
+ __VLS_PROPS_FALLBACK: infer P;
21
+ } ? P : {});
22
+ expose: (exposed: {}) => void;
23
+ attrs: any;
24
+ slots: {};
25
+ emit: ((evt: "change", value: T) => void) & ((evt: "update:modelValue", value: T) => void);
26
+ }>) => import("vue").VNode & {
27
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
28
+ };
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
32
+ [K in keyof T]: T[K];
33
+ } : {
34
+ [K in keyof T as K]: T[K];
35
+ }) & {};
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ collapsed?: boolean;
3
+ overlay?: boolean;
4
+ resizing?: boolean;
5
+ instant?: boolean;
6
+ width?: string | number;
7
+ };
8
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
9
+ type __VLS_Slots = {} & {
10
+ header?: (props: typeof __VLS_1) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_3) => any;
13
+ } & {
14
+ footer?: (props: typeof __VLS_5) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ width: string | number;
18
+ resizing: boolean;
19
+ collapsed: boolean;
20
+ overlay: boolean;
21
+ instant: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ variant?: 'lines' | 'list' | 'table' | 'detail' | 'tiles' | 'chart' | 'pills' | 'grid';
3
+ lines?: number;
4
+ rows?: number;
5
+ tiles?: number;
6
+ height?: number;
7
+ pills?: number;
8
+ cols?: number;
9
+ cells?: number;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ variant: "lines" | "list" | "table" | "detail" | "tiles" | "chart" | "pills" | "grid";
13
+ lines: number;
14
+ tiles: number;
15
+ pills: number;
16
+ rows: number;
17
+ height: number;
18
+ cols: number;
19
+ cells: number;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ size?: number;
3
+ label?: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ size: number;
7
+ label: string;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ tone: 'success' | 'info' | 'warning' | 'danger' | 'neutral';
3
+ pulse?: boolean;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,23 @@
1
+ import type { Component } from 'vue';
2
+ export interface EmooSwitcherItem {
3
+ key: string | number;
4
+ title: string;
5
+ icon?: Component;
6
+ image?: string;
7
+ active?: boolean;
8
+ action?: () => void;
9
+ hidden?: boolean;
10
+ testid?: string;
11
+ }
12
+ type __VLS_Props = {
13
+ title?: string;
14
+ items: EmooSwitcherItem[];
15
+ scrollable?: boolean;
16
+ };
17
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ select: (item: EmooSwitcherItem) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onSelect?: ((item: EmooSwitcherItem) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
@@ -0,0 +1,147 @@
1
+ import type { TableColumnCtx } from 'element-plus';
2
+ import { type ColPref } from '../composables/useColumnPrefs';
3
+ export interface EmooTableColumn {
4
+ key: string;
5
+ label: string;
6
+ width?: number;
7
+ minWidth?: number;
8
+ sortable?: boolean | 'custom';
9
+ ellipsis?: boolean;
10
+ resizable?: boolean;
11
+ sortBy?: (row: Record<string, unknown>) => string | number;
12
+ align?: 'left' | 'center' | 'right';
13
+ }
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
17
+ data: Record<string, unknown>[];
18
+ columns: EmooTableColumn[];
19
+ storageKey?: string;
20
+ selectable?: boolean;
21
+ reorderable?: boolean;
22
+ expandable?: boolean;
23
+ expandRowKeys?: string[];
24
+ actionsWidth?: number;
25
+ rowKey?: string | ((row: Record<string, unknown>) => string | number);
26
+ rowClassName?: (payload: {
27
+ row: Record<string, unknown>;
28
+ rowIndex: number;
29
+ }) => string;
30
+ total?: number;
31
+ page?: number;
32
+ defaultPageSize?: number;
33
+ pageSizes?: number[];
34
+ loading?: boolean;
35
+ defaultSort?: {
36
+ key: string;
37
+ order: "ascending" | "descending";
38
+ };
39
+ height?: number;
40
+ maxHeight?: number;
41
+ defaultDensity?: "standard" | "comfort";
42
+ }, {
43
+ colState: import("vue").Ref<{
44
+ key: string;
45
+ visible: boolean;
46
+ fixed: "" | "left" | "right";
47
+ width?: number | undefined;
48
+ }[], ColPref[] | {
49
+ key: string;
50
+ visible: boolean;
51
+ fixed: "" | "left" | "right";
52
+ width?: number | undefined;
53
+ }[]>;
54
+ pageSize: import("vue").Ref<number, number>;
55
+ density: import("vue").Ref<"default" | "compact", "default" | "compact">;
56
+ resetColumns: () => void;
57
+ resetTablePrefs: () => void;
58
+ normalizeColumns: () => void;
59
+ togglePinSide: (col: ColPref, side: "left" | "right") => void;
60
+ togglePinSmart: (col: ColPref) => void;
61
+ clearSelection: () => void | undefined;
62
+ toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void | undefined;
63
+ toggleRowExpansion: (row: Record<string, unknown>, expanded?: boolean) => void | undefined;
64
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
65
+ "update:page": (page: number) => any;
66
+ "sort-change": (payload: {
67
+ key: string;
68
+ order: "ascending" | "descending" | null;
69
+ }) => any;
70
+ "selection-change": (rows: Record<string, unknown>[]) => any;
71
+ "size-change": (size: number) => any;
72
+ "row-move": (payload: {
73
+ from: number;
74
+ to: number;
75
+ }) => any;
76
+ "row-click": (row: Record<string, unknown>, column: unknown, event: MouseEvent) => any;
77
+ }, string, import("vue").PublicProps, Readonly<{
78
+ data: Record<string, unknown>[];
79
+ columns: EmooTableColumn[];
80
+ storageKey?: string;
81
+ selectable?: boolean;
82
+ reorderable?: boolean;
83
+ expandable?: boolean;
84
+ expandRowKeys?: string[];
85
+ actionsWidth?: number;
86
+ rowKey?: string | ((row: Record<string, unknown>) => string | number);
87
+ rowClassName?: (payload: {
88
+ row: Record<string, unknown>;
89
+ rowIndex: number;
90
+ }) => string;
91
+ total?: number;
92
+ page?: number;
93
+ defaultPageSize?: number;
94
+ pageSizes?: number[];
95
+ loading?: boolean;
96
+ defaultSort?: {
97
+ key: string;
98
+ order: "ascending" | "descending";
99
+ };
100
+ height?: number;
101
+ maxHeight?: number;
102
+ defaultDensity?: "standard" | "comfort";
103
+ }> & Readonly<{
104
+ "onUpdate:page"?: ((page: number) => any) | undefined;
105
+ "onSort-change"?: ((payload: {
106
+ key: string;
107
+ order: "ascending" | "descending" | null;
108
+ }) => any) | undefined;
109
+ "onSelection-change"?: ((rows: Record<string, unknown>[]) => any) | undefined;
110
+ "onSize-change"?: ((size: number) => any) | undefined;
111
+ "onRow-move"?: ((payload: {
112
+ from: number;
113
+ to: number;
114
+ }) => any) | undefined;
115
+ "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: MouseEvent) => any) | undefined;
116
+ }>, {
117
+ selectable: boolean;
118
+ pageSizes: number[];
119
+ actionsWidth: number;
120
+ defaultPageSize: number;
121
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
122
+ [name: `${string}-header`]: (props: {
123
+ col: EmooTableColumn | undefined;
124
+ }) => any;
125
+ } & {
126
+ [name: string]: (props: {
127
+ row: any;
128
+ index: number;
129
+ }) => any;
130
+ } & {
131
+ expand?: (props: {
132
+ row: any;
133
+ column: TableColumnCtx<any>;
134
+ $index: number;
135
+ }) => any;
136
+ actions?: (props: {
137
+ row: any;
138
+ column: TableColumnCtx<any>;
139
+ $index: number;
140
+ }) => any;
141
+ empty?: () => any;
142
+ }>;
143
+ type __VLS_WithSlots<T, S> = T & {
144
+ new (): {
145
+ $slots: S;
146
+ };
147
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ modelValue: string[];
3
+ placeholder?: string;
4
+ readonly?: boolean;
5
+ disabled?: boolean;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: string[]) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
11
+ }>, {
12
+ modelValue: string[];
13
+ disabled: boolean;
14
+ placeholder: string;
15
+ readonly: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { type ElTooltipProps } from 'element-plus';
2
+ type __VLS_Props = {
3
+ showAfter?: number;
4
+ placement?: ElTooltipProps['placement'];
5
+ popperClass?: string;
6
+ };
7
+ declare var __VLS_8: {}, __VLS_11: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_8) => any;
10
+ } & {
11
+ content?: (props: typeof __VLS_11) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ placement: import("element-plus").Placement;
15
+ popperClass: string;
16
+ showAfter: number;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,40 @@
1
+ export interface EmooUploadFile {
2
+ name: string;
3
+ size?: number;
4
+ status?: 'ready' | 'uploading' | 'done' | 'failed';
5
+ progress?: number;
6
+ error?: string;
7
+ }
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ declare const __VLS_export: import("vue").DefineComponent<{
11
+ files: EmooUploadFile[];
12
+ accept?: string;
13
+ multiple?: boolean;
14
+ disabled?: boolean;
15
+ readonly?: boolean;
16
+ hint?: string;
17
+ listTestId?: string;
18
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ select: (files: File[]) => any;
20
+ remove: (file: EmooUploadFile) => any;
21
+ retry: (file: EmooUploadFile) => any;
22
+ preview: (file: EmooUploadFile) => any;
23
+ }, string, import("vue").PublicProps, Readonly<{
24
+ files: EmooUploadFile[];
25
+ accept?: string;
26
+ multiple?: boolean;
27
+ disabled?: boolean;
28
+ readonly?: boolean;
29
+ hint?: string;
30
+ listTestId?: string;
31
+ }> & Readonly<{
32
+ onSelect?: ((files: File[]) => any) | undefined;
33
+ onRemove?: ((file: EmooUploadFile) => any) | undefined;
34
+ onRetry?: ((file: EmooUploadFile) => any) | undefined;
35
+ onPreview?: ((file: EmooUploadFile) => any) | undefined;
36
+ }>, {
37
+ disabled: boolean;
38
+ multiple: boolean;
39
+ readonly: boolean;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ old?: string | null;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,13 @@
1
+ export type HistoryItemStatus = 'generating' | 'unread';
2
+ export interface HistoryItem {
3
+ id: number | string;
4
+ title: string;
5
+ status?: HistoryItemStatus;
6
+ tooltip?: string;
7
+ }
8
+ export interface HistoryGroup {
9
+ key: string;
10
+ label: string;
11
+ dim?: boolean;
12
+ items: HistoryItem[];
13
+ }
@@ -0,0 +1,29 @@
1
+ export type SelectValue = number | string | Array<number | string> | null;
2
+ export type RemoteSource<T> = (keyword: string, page: number) => Promise<{
3
+ items: T[];
4
+ hasMore: boolean;
5
+ }>;
6
+ export interface MemberOption {
7
+ id: number | string;
8
+ name: string;
9
+ dept?: string;
10
+ color?: string;
11
+ avatar?: string;
12
+ }
13
+ export interface RoleOption {
14
+ id: number | string;
15
+ name: string;
16
+ desc?: string;
17
+ color?: string;
18
+ avatar?: string;
19
+ }
20
+ export interface AgentOption {
21
+ id: number | string;
22
+ name: string;
23
+ sub?: string;
24
+ avatar?: string;
25
+ }
26
+ export interface MemberRoleValue {
27
+ memberIds: Array<number | string>;
28
+ roleIds: Array<number | string>;
29
+ }
@@ -0,0 +1,16 @@
1
+ import { type Ref } from 'vue';
2
+ import type { RemoteSource } from './select-contract';
3
+ export declare function useRemoteOptions<T extends {
4
+ id: number | string;
5
+ }>(getSource: () => RemoteSource<T> | undefined, baseClass: string): {
6
+ items: Ref<T[], T[]>;
7
+ loading: Ref<boolean, boolean>;
8
+ hasMore: Ref<boolean, boolean>;
9
+ error: Ref<unknown, unknown>;
10
+ search: (keyword: string) => void;
11
+ retry: () => void;
12
+ ensureFirstPage: () => void;
13
+ loadMore: () => undefined;
14
+ onVisibleChange: (visible: boolean) => void;
15
+ popperClass: string;
16
+ };