@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.
- package/LICENSE +21 -0
- package/README.md +23 -2
- package/dist/components/EmooActionPill.vue.d.ts +13 -0
- package/dist/components/EmooActionSheet.vue.d.ts +36 -0
- package/dist/components/EmooAgentSelect.vue.d.ts +22 -0
- package/dist/components/EmooButton.vue.d.ts +32 -0
- package/dist/components/EmooCard.vue.d.ts +22 -0
- package/dist/components/EmooChips.vue.d.ts +27 -0
- package/dist/components/EmooChoice.vue.d.ts +51 -0
- package/dist/components/EmooColumnMenu.vue.d.ts +53 -0
- package/dist/components/EmooDrawer.vue.d.ts +41 -0
- package/dist/components/EmooEmpty.vue.d.ts +26 -0
- package/dist/components/EmooField.vue.d.ts +37 -0
- package/dist/components/EmooFieldGrid.vue.d.ts +19 -0
- package/dist/components/EmooGhostButton.vue.d.ts +17 -0
- package/dist/components/EmooGroupLabel.vue.d.ts +9 -0
- package/dist/components/EmooHistoryList.vue.d.ts +71 -0
- package/dist/components/EmooMemberRoleSelect.vue.d.ts +21 -0
- package/dist/components/EmooMemberSelect.vue.d.ts +22 -0
- package/dist/components/EmooMemberTag.vue.d.ts +22 -0
- package/dist/components/EmooMessage.vue.d.ts +33 -0
- package/dist/components/EmooNavMenu.vue.d.ts +35 -0
- package/dist/components/EmooNavSegmented.vue.d.ts +15 -0
- package/dist/components/EmooOptionRows.vue.d.ts +32 -0
- package/dist/components/EmooPagination.vue.d.ts +25 -0
- package/dist/components/EmooPopover.vue.d.ts +22 -0
- package/dist/components/EmooProgress.vue.d.ts +14 -0
- package/dist/components/EmooRoleSelect.vue.d.ts +24 -0
- package/dist/components/EmooSearchBox.vue.d.ts +35 -0
- package/dist/components/EmooSegmented.vue.d.ts +35 -0
- package/dist/components/EmooSidebarShell.vue.d.ts +30 -0
- package/dist/components/EmooSkeleton.vue.d.ts +22 -0
- package/dist/components/EmooSpinner.vue.d.ts +10 -0
- package/dist/components/EmooStatusTag.vue.d.ts +17 -0
- package/dist/components/EmooSwitcherPanel.vue.d.ts +23 -0
- package/dist/components/EmooTable.vue.d.ts +147 -0
- package/dist/components/EmooTagsInput.vue.d.ts +18 -0
- package/dist/components/EmooTooltip.vue.d.ts +25 -0
- package/dist/components/EmooUpload.vue.d.ts +40 -0
- package/dist/components/EmooValueDiff.vue.d.ts +7 -0
- package/dist/components/IconChatCirclePlus.vue.d.ts +3 -0
- package/dist/components/history-contract.d.ts +13 -0
- package/dist/components/select-contract.d.ts +29 -0
- package/dist/components/useRemoteOptions.d.ts +16 -0
- package/dist/components/useSelectedOptions.d.ts +8 -0
- package/dist/composables/useColumnPrefs.d.ts +84 -0
- package/dist/composables/useMessageScroll.d.ts +15 -0
- package/dist/composables/useSheetHeightDrag.d.ts +7 -0
- package/dist/constants.d.ts +4 -0
- package/dist/eslint.d.ts +18 -0
- package/dist/eslint.js +43 -0
- package/dist/global/SheetDragHandle.vue.d.ts +11 -0
- package/dist/icons.d.ts +414 -0
- package/dist/icons.js +153 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.js +3710 -0
- package/dist/locales/cn.d.ts +73 -0
- package/dist/locales/en.d.ts +73 -0
- package/dist/locales/index.d.ts +4 -0
- package/dist/locales.js +151 -0
- package/dist/styles.css +1 -0
- package/dist/theme.d.ts +6 -0
- package/dist/utils/avatar-tint.d.ts +1 -0
- package/dist/utils/drawer-size.d.ts +2 -0
- package/package.json +46 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 emoo-ai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @emoo-ai/ui-vue
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Vue 3 标准件的编译交付包:Element Plus 皮肤 + Emoo 组件标准件,预编译样式与类型。
|
|
4
|
+
|
|
5
|
+
## 公共入口
|
|
6
|
+
|
|
7
|
+
- `@emoo-ai/ui-vue`:组件、契约类型、composables 与工具。包括 `EmooTableColumn` / `EmooUploadFile` / `ActionSheetItem`,不再从 `.vue` 深路径取类型。
|
|
8
|
+
- `@emoo-ai/ui-vue/icons`:Vue 图标;不是跨框架 brand 工具。
|
|
9
|
+
- `@emoo-ai/ui-vue/locales`:`emoouiMessages` / `emoouiCn` / `emoouiEn`。
|
|
10
|
+
- `@emoo-ai/ui-vue/styles.css`:EP 适配与完整 SFC CSS(包括 teleport 全局样式),不含 EP 基础 CSS 或宿主应用样式。
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import '@emoo-ai/brand/tokens.css'
|
|
14
|
+
import 'element-plus/dist/index.css'
|
|
15
|
+
import '@emoo-ai/ui-vue/styles.css'
|
|
16
|
+
import { EmooButton, type EmooTableColumn } from '@emoo-ai/ui-vue'
|
|
17
|
+
import { emoouiMessages } from '@emoo-ai/ui-vue/locales'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
品牌 → EP 基础 → Emoo 组件/适配 → 应用覆盖。dark 适配已包含,不另加载 EP dark 覆盖它。无需 Sass、源码 alias、自动注册插件或全局 `.use(ElementPlus)`;组件在库内导入使用的 EP 原语。
|
|
21
|
+
|
|
22
|
+
Vue / Element Plus / vue-i18n 是宿主 peers,Phosphor Vue 是已声明依赖。需要翻译的组件必须使用宿主安装的兼容 i18n 实例,按 locale 合并 `emoouiMessages`;库不创建隐藏单例。宿主原有 `common.cancel/change` 等通用词条仍由宿主提供。
|
|
23
|
+
|
|
24
|
+
本包以编译产物方式发布,源码不随包。
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
icon?: Component;
|
|
4
|
+
label: string;
|
|
5
|
+
kbd?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
click: (event: MouseEvent) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
export interface ActionSheetItem {
|
|
3
|
+
key: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: Component;
|
|
6
|
+
danger?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
testid?: string;
|
|
9
|
+
}
|
|
10
|
+
type __VLS_Props = {
|
|
11
|
+
modelValue: boolean;
|
|
12
|
+
items?: ActionSheetItem[];
|
|
13
|
+
title?: string;
|
|
14
|
+
cancelText?: string;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_13: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_13) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
select: (item: ActionSheetItem, index: number) => any;
|
|
22
|
+
cancel: () => any;
|
|
23
|
+
"update:modelValue": (value: boolean) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
onSelect?: ((item: ActionSheetItem, index: number) => any) | undefined;
|
|
26
|
+
onCancel?: (() => any) | undefined;
|
|
27
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AgentOption, RemoteSource, SelectValue } from './select-contract';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: SelectValue;
|
|
4
|
+
options?: AgentOption[];
|
|
5
|
+
source?: RemoteSource<AgentOption>;
|
|
6
|
+
selected?: AgentOption[];
|
|
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
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
clearable: boolean;
|
|
19
|
+
collapse: number;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'danger-text' | 'text' | 'send';
|
|
3
|
+
size?: 'default' | 'small' | 'large';
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
iconOnly?: boolean;
|
|
8
|
+
circle?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_6: {}, __VLS_8: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
icon?: (props: typeof __VLS_6) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_8) => 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
|
+
size: "default" | "small" | "large";
|
|
18
|
+
type: "button" | "submit" | "reset";
|
|
19
|
+
circle: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
loading: boolean;
|
|
22
|
+
variant: "primary" | "secondary" | "danger" | "danger-text" | "text" | "send";
|
|
23
|
+
iconOnly: 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,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
flush?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
header?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: typeof __VLS_3) => any;
|
|
9
|
+
} & {
|
|
10
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
flush: 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,27 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: <T>(__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<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
items: T[];
|
|
6
|
+
labelOf: (item: T) => string;
|
|
7
|
+
gap?: number;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {
|
|
14
|
+
default?: (props: {
|
|
15
|
+
item: T;
|
|
16
|
+
index: number;
|
|
17
|
+
}) => any;
|
|
18
|
+
};
|
|
19
|
+
emit: {};
|
|
20
|
+
}>) => import("vue").VNode & {
|
|
21
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} : {
|
|
26
|
+
[K in keyof T as K]: T[K];
|
|
27
|
+
}) & {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const __VLS_export: <V extends string | number | boolean | (string | number | boolean)[] | null | undefined, O extends {
|
|
2
|
+
value: string | number | boolean;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}>(__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<{
|
|
6
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
7
|
+
options: O[];
|
|
8
|
+
modelValue: V;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
clearable?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
testid?: string;
|
|
15
|
+
} & {
|
|
16
|
+
"onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
17
|
+
}> & (typeof globalThis extends {
|
|
18
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
19
|
+
} ? P : {});
|
|
20
|
+
expose: (exposed: {}) => void;
|
|
21
|
+
attrs: any;
|
|
22
|
+
slots: {
|
|
23
|
+
label?: (props: any) => any;
|
|
24
|
+
} & {
|
|
25
|
+
prefix?: (props: {}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
tag?: (props: any) => any;
|
|
28
|
+
} & {
|
|
29
|
+
option?: (props: {
|
|
30
|
+
option: O;
|
|
31
|
+
}) => any;
|
|
32
|
+
} & {
|
|
33
|
+
option?: (props: {
|
|
34
|
+
option: O;
|
|
35
|
+
}) => any;
|
|
36
|
+
} & {
|
|
37
|
+
option?: (props: {
|
|
38
|
+
option: O;
|
|
39
|
+
}) => any;
|
|
40
|
+
};
|
|
41
|
+
emit: (evt: "update:modelValue", value: V) => void;
|
|
42
|
+
}>) => import("vue").VNode & {
|
|
43
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
44
|
+
};
|
|
45
|
+
declare const _default: typeof __VLS_export;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} : {
|
|
50
|
+
[K in keyof T as K]: T[K];
|
|
51
|
+
}) & {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
colKey: string;
|
|
3
|
+
sortable?: boolean | 'custom';
|
|
4
|
+
sorted?: 'ascending' | 'descending' | null;
|
|
5
|
+
pinsEnabled?: boolean;
|
|
6
|
+
fixed?: '' | 'left' | 'right';
|
|
7
|
+
canHide?: boolean;
|
|
8
|
+
hidden?: {
|
|
9
|
+
key: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
resettable?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_8: {}, __VLS_36: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_8) => any;
|
|
17
|
+
} & {
|
|
18
|
+
extra?: (props: typeof __VLS_36) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
|
+
sort: (order: "ascending" | "descending") => any;
|
|
22
|
+
reset: () => any;
|
|
23
|
+
hide: () => any;
|
|
24
|
+
unpin: () => any;
|
|
25
|
+
pin: (side: "right" | "left") => any;
|
|
26
|
+
restore: (key: string) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onSort?: ((order: "ascending" | "descending") => any) | undefined;
|
|
29
|
+
onReset?: (() => any) | undefined;
|
|
30
|
+
onHide?: (() => any) | undefined;
|
|
31
|
+
onUnpin?: (() => any) | undefined;
|
|
32
|
+
onPin?: ((side: "right" | "left") => any) | undefined;
|
|
33
|
+
onRestore?: ((key: string) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
fixed: "" | "left" | "right";
|
|
36
|
+
sortable: boolean | "custom";
|
|
37
|
+
sorted: "ascending" | "descending" | null;
|
|
38
|
+
pinsEnabled: boolean;
|
|
39
|
+
canHide: boolean;
|
|
40
|
+
hidden: {
|
|
41
|
+
key: string;
|
|
42
|
+
label: string;
|
|
43
|
+
}[];
|
|
44
|
+
resettable: boolean;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
|
+
declare const _default: typeof __VLS_export;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
scene?: string;
|
|
4
|
+
size?: string | number;
|
|
5
|
+
isMobile?: boolean;
|
|
6
|
+
direction?: 'rtl' | 'ltr' | 'ttb' | 'btt';
|
|
7
|
+
mobileRatio?: number;
|
|
8
|
+
mobileFull?: boolean;
|
|
9
|
+
flush?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_11: {}, __VLS_20: {}, __VLS_22: {}, __VLS_25: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
header?: (props: typeof __VLS_11) => any;
|
|
14
|
+
} & {
|
|
15
|
+
default?: (props: typeof __VLS_20) => any;
|
|
16
|
+
} & {
|
|
17
|
+
default?: (props: typeof __VLS_22) => any;
|
|
18
|
+
} & {
|
|
19
|
+
footer?: (props: typeof __VLS_25) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
"resize-end": (ev: MouseEvent, width: number) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
26
|
+
"onResize-end"?: ((ev: MouseEvent, width: number) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
size: string | number;
|
|
29
|
+
flush: boolean;
|
|
30
|
+
isMobile: boolean;
|
|
31
|
+
mobileRatio: number;
|
|
32
|
+
mobileFull: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
variant?: 'stage' | 'mini';
|
|
4
|
+
icon?: Component;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
tone?: 'invite' | 'neutral';
|
|
8
|
+
size?: 'md' | 'sm';
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_6: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
actions?: (props: typeof __VLS_6) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
size: "md" | "sm";
|
|
16
|
+
variant: "stage" | "mini";
|
|
17
|
+
tone: "invite" | "neutral";
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
labelTone?: 'default' | 'danger';
|
|
6
|
+
help?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
text?: string;
|
|
9
|
+
mode?: 'view' | 'edit' | 'hidden';
|
|
10
|
+
span?: number | 'full';
|
|
11
|
+
testid?: string;
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
14
|
+
id: string | undefined;
|
|
15
|
+
describedBy: string | undefined;
|
|
16
|
+
invalid: boolean;
|
|
17
|
+
testid: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
view?: (props: typeof __VLS_1) => any;
|
|
21
|
+
} & {
|
|
22
|
+
default?: (props: typeof __VLS_3) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
|
+
mode: "view" | "edit" | "hidden";
|
|
26
|
+
span: number | "full";
|
|
27
|
+
required: boolean;
|
|
28
|
+
labelTone: "default" | "danger";
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
ariaLabel?: string;
|
|
3
|
+
inset?: 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<{}>, {
|
|
10
|
+
inset: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
pill?: boolean;
|
|
3
|
+
touch?: 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,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
first?: boolean;
|
|
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
|
+
first: boolean;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { HistoryGroup, HistoryItem } from './history-contract';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
groups: HistoryGroup[];
|
|
4
|
+
activeId?: number | string | null;
|
|
5
|
+
keyword?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
anyRecord?: boolean;
|
|
8
|
+
selectable?: boolean;
|
|
9
|
+
selectedIds?: Array<number | string>;
|
|
10
|
+
batchBusy?: boolean;
|
|
11
|
+
searchPlaceholder?: string;
|
|
12
|
+
selectLabel?: string;
|
|
13
|
+
emptyTitle?: string;
|
|
14
|
+
noMatchTitle?: string;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_57: {
|
|
17
|
+
selectedIds: (string | number)[];
|
|
18
|
+
}, __VLS_122: {
|
|
19
|
+
item: HistoryItem;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_Slots = {} & {
|
|
22
|
+
'batch-actions'?: (props: typeof __VLS_57) => any;
|
|
23
|
+
} & {
|
|
24
|
+
'row-action'?: (props: typeof __VLS_122) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
27
|
+
startRename: (item: Pick<HistoryItem, "id" | "title">) => void;
|
|
28
|
+
cancelRename: () => void;
|
|
29
|
+
exitSelectMode: () => void;
|
|
30
|
+
focusSearch: () => Promise<void>;
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
delete: (item: HistoryItem) => any;
|
|
33
|
+
select: (item: HistoryItem) => any;
|
|
34
|
+
"update:keyword": (keyword: string) => any;
|
|
35
|
+
"update:selectedIds": (ids: (string | number)[]) => any;
|
|
36
|
+
"load-more": () => any;
|
|
37
|
+
rename: (payload: {
|
|
38
|
+
id: number | string;
|
|
39
|
+
title: string;
|
|
40
|
+
}) => any;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
42
|
+
onDelete?: ((item: HistoryItem) => any) | undefined;
|
|
43
|
+
onSelect?: ((item: HistoryItem) => any) | undefined;
|
|
44
|
+
"onUpdate:keyword"?: ((keyword: string) => any) | undefined;
|
|
45
|
+
"onUpdate:selectedIds"?: ((ids: (string | number)[]) => any) | undefined;
|
|
46
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
47
|
+
onRename?: ((payload: {
|
|
48
|
+
id: number | string;
|
|
49
|
+
title: string;
|
|
50
|
+
}) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
keyword: string;
|
|
53
|
+
loading: boolean;
|
|
54
|
+
activeId: number | string | null;
|
|
55
|
+
anyRecord: boolean;
|
|
56
|
+
selectable: boolean;
|
|
57
|
+
selectedIds: Array<number | string>;
|
|
58
|
+
batchBusy: boolean;
|
|
59
|
+
searchPlaceholder: string;
|
|
60
|
+
selectLabel: string;
|
|
61
|
+
emptyTitle: string;
|
|
62
|
+
noMatchTitle: string;
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
65
|
+
declare const _default: typeof __VLS_export;
|
|
66
|
+
export default _default;
|
|
67
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { MemberOption, MemberRoleValue, RemoteSource, RoleOption } from './select-contract';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: MemberRoleValue;
|
|
4
|
+
members?: MemberOption[];
|
|
5
|
+
roles?: RoleOption[];
|
|
6
|
+
memberSource?: RemoteSource<MemberOption>;
|
|
7
|
+
roleSource?: RemoteSource<RoleOption>;
|
|
8
|
+
selectedMembers?: MemberOption[];
|
|
9
|
+
selectedRoles?: RoleOption[];
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
collapse?: number;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: MemberRoleValue) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: MemberRoleValue) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
collapse: number;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MemberOption, RemoteSource, SelectValue } from './select-contract';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: SelectValue;
|
|
4
|
+
options?: MemberOption[];
|
|
5
|
+
source?: RemoteSource<MemberOption>;
|
|
6
|
+
selected?: MemberOption[];
|
|
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
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
clearable: boolean;
|
|
19
|
+
collapse: number;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
items: {
|
|
3
|
+
name: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
avatar?: string;
|
|
6
|
+
square?: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
max?: number;
|
|
9
|
+
removable?: boolean;
|
|
10
|
+
square?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
remove: (index: number) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onRemove?: ((index: number) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
max: number;
|
|
18
|
+
removable: boolean;
|
|
19
|
+
square: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
role: 'user' | 'assistant' | 'system';
|
|
3
|
+
status?: 'loading' | 'done' | 'stopped' | 'error';
|
|
4
|
+
text?: string;
|
|
5
|
+
avatar?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
time?: string;
|
|
8
|
+
testid?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
avatar?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_3) => any;
|
|
15
|
+
} & {
|
|
16
|
+
attachments?: (props: typeof __VLS_5) => any;
|
|
17
|
+
} & {
|
|
18
|
+
actions?: (props: typeof __VLS_7) => any;
|
|
19
|
+
} & {
|
|
20
|
+
avatar?: (props: typeof __VLS_9) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
+
text: string;
|
|
24
|
+
status: "loading" | "done" | "stopped" | "error";
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|