@wpic/ui 0.3.5
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/components/CollapseToggle.vue.d.ts +10 -0
- package/dist/components/ConfirmModal.vue.d.ts +16 -0
- package/dist/components/Modal.vue.d.ts +27 -0
- package/dist/components/SearchSelect.vue.d.ts +19 -0
- package/dist/components/ToastContainer.vue.d.ts +2 -0
- package/dist/components/TreeSelect.vue.d.ts +32 -0
- package/dist/components/WActionMenu.vue.d.ts +12 -0
- package/dist/components/WActionMenuItem.vue.d.ts +20 -0
- package/dist/components/WActionPanel.vue.d.ts +22 -0
- package/dist/components/WAlert.vue.d.ts +24 -0
- package/dist/components/WAvatar.vue.d.ts +7 -0
- package/dist/components/WBadge.vue.d.ts +21 -0
- package/dist/components/WBanner.vue.d.ts +17 -0
- package/dist/components/WBatchActionBar.vue.d.ts +22 -0
- package/dist/components/WButton.vue.d.ts +25 -0
- package/dist/components/WButtonGroup.vue.d.ts +12 -0
- package/dist/components/WCard.vue.d.ts +44 -0
- package/dist/components/WChatPanel.vue.d.ts +278 -0
- package/dist/components/WCheckbox.vue.d.ts +22 -0
- package/dist/components/WDatePicker.vue.d.ts +31 -0
- package/dist/components/WDateRangePicker.vue.d.ts +26 -0
- package/dist/components/WEmptyState.vue.d.ts +27 -0
- package/dist/components/WEmptyValue.vue.d.ts +17 -0
- package/dist/components/WFileList.vue.d.ts +36 -0
- package/dist/components/WFilter.vue.d.ts +21 -0
- package/dist/components/WFilterBar.vue.d.ts +69 -0
- package/dist/components/WFormActions.vue.d.ts +14 -0
- package/dist/components/WFormLabel.vue.d.ts +15 -0
- package/dist/components/WImageTile.vue.d.ts +11 -0
- package/dist/components/WInput.vue.d.ts +35 -0
- package/dist/components/WLoader.vue.d.ts +12 -0
- package/dist/components/WModal.vue.d.ts +28 -0
- package/dist/components/WMonthPicker.vue.d.ts +23 -0
- package/dist/components/WOptionPopover.vue.d.ts +19 -0
- package/dist/components/WPagination.vue.d.ts +16 -0
- package/dist/components/WPillGroup.vue.d.ts +35 -0
- package/dist/components/WPopover.vue.d.ts +44 -0
- package/dist/components/WProgress.vue.d.ts +10 -0
- package/dist/components/WSearchSelect.vue.d.ts +25 -0
- package/dist/components/WSegmentedControl.vue.d.ts +22 -0
- package/dist/components/WSelect.vue.d.ts +67 -0
- package/dist/components/WSelectOption.vue.d.ts +22 -0
- package/dist/components/WSidePanel.vue.d.ts +29 -0
- package/dist/components/WSkeleton.vue.d.ts +7 -0
- package/dist/components/WSlidePanel.vue.d.ts +25 -0
- package/dist/components/WSlider.vue.d.ts +22 -0
- package/dist/components/WSpinner.vue.d.ts +15 -0
- package/dist/components/WSpreadsheet.vue.d.ts +99 -0
- package/dist/components/WStatCard.vue.d.ts +21 -0
- package/dist/components/WTable.vue.d.ts +87 -0
- package/dist/components/WTabs.vue.d.ts +28 -0
- package/dist/components/WTag.vue.d.ts +27 -0
- package/dist/components/WTagInput.vue.d.ts +71 -0
- package/dist/components/WTailwindColorPicker.vue.d.ts +21 -0
- package/dist/components/WTextarea.vue.d.ts +15 -0
- package/dist/components/WToggle.vue.d.ts +22 -0
- package/dist/components/WTooltip.vue.d.ts +19 -0
- package/dist/components/WTwoColumnFormSection.vue.d.ts +19 -0
- package/dist/components/WWorkflowNav.vue.d.ts +20 -0
- package/dist/components/form/FormDate.vue.d.ts +23 -0
- package/dist/components/form/FormInput.vue.d.ts +15 -0
- package/dist/components/form/FormLabel.vue.d.ts +12 -0
- package/dist/components/form/FormSelect.vue.d.ts +18 -0
- package/dist/components/form/FormTextarea.vue.d.ts +14 -0
- package/dist/components/icons/MarketplaceIcon.vue.d.ts +9 -0
- package/dist/components/icons/ProviderLogo.vue.d.ts +11 -0
- package/dist/components/table/Table.vue.d.ts +12 -0
- package/dist/components/table/TableBody.vue.d.ts +12 -0
- package/dist/components/table/TableCell.vue.d.ts +17 -0
- package/dist/components/table/TableHead.vue.d.ts +12 -0
- package/dist/components/table/TableRow.vue.d.ts +15 -0
- package/dist/composables/useRecentItems.d.ts +9 -0
- package/dist/index.d.ts +82 -0
- package/dist/stores/toast.d.ts +148 -0
- package/dist/wpic-ui.cjs +9318 -0
- package/dist/wpic-ui.css +284 -0
- package/dist/wpic-ui.js +17570 -0
- package/package.json +51 -0
- package/src/components/chat/DB_SCHEMA.md +440 -0
- package/src/components/chat/LLM_STREAMING.md +390 -0
- package/src/components/chat/UI_INTEGRATION.md +273 -0
- package/src/style.css +282 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
collapsed?: boolean;
|
|
3
|
+
size?: number;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
toggle: () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onToggle?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
message?: string;
|
|
4
|
+
confirmText?: string;
|
|
5
|
+
cancelText?: string;
|
|
6
|
+
danger?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
cancel: () => any;
|
|
11
|
+
confirm: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onCancel?: (() => any) | undefined;
|
|
14
|
+
onConfirm?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
4
|
+
zIndex?: string;
|
|
5
|
+
hideClose?: boolean;
|
|
6
|
+
noPadding?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_5: {}, __VLS_11: {}, __VLS_13: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
header?: (props: typeof __VLS_5) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_11) => any;
|
|
13
|
+
} & {
|
|
14
|
+
footer?: (props: typeof __VLS_13) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
close: () => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onClose?: (() => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type Option = {
|
|
2
|
+
id: string | number;
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
modelValue?: string | number | (string | number)[];
|
|
7
|
+
options?: Option[];
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
size?: 'sm' | 'md';
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
maxLabels?: number;
|
|
12
|
+
pinnedOptions?: Option[];
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (v: any) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((v: any) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
type Item = {
|
|
3
|
+
id: string | number;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
items?: Item[];
|
|
8
|
+
subItems?: Record<string | number, Item[]>;
|
|
9
|
+
modelValue?: string | number;
|
|
10
|
+
subValue?: string | number;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
size?: 'sm' | 'md';
|
|
13
|
+
subLabel?: string;
|
|
14
|
+
icon?: Component | null;
|
|
15
|
+
subIcon?: Component | null;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (v: string | number) => any;
|
|
19
|
+
"update:subValue": (v: string | number) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((v: string | number) => any) | undefined;
|
|
22
|
+
"onUpdate:subValue"?: ((v: string | number) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
size: "sm" | "md";
|
|
25
|
+
icon: Component | null;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
items: Item[];
|
|
28
|
+
subItems: Record<string | number, Item[]>;
|
|
29
|
+
subLabel: string;
|
|
30
|
+
subIcon: Component | null;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
danger?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
click: (event: MouseEvent) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
actionPosition?: 'top-right' | 'bottom-right' | 'below';
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
} & {
|
|
9
|
+
actions?: (props: typeof __VLS_3) => any;
|
|
10
|
+
} & {
|
|
11
|
+
actions?: (props: typeof __VLS_5) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
actionPosition: "top-right" | "bottom-right" | "below";
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
title?: string;
|
|
4
|
+
dismissible?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_5: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_5) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
close: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClose?: (() => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
variant: "info" | "success" | "warning" | "error";
|
|
16
|
+
dismissible: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name: string;
|
|
3
|
+
src?: string;
|
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
};
|
|
6
|
+
declare const _default: 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>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
variant?: 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
4
|
+
size?: 'sm' | 'md';
|
|
5
|
+
dot?: boolean;
|
|
6
|
+
icon?: Component;
|
|
7
|
+
/** Show a border. Default: false (no border). */
|
|
8
|
+
bordered?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_5: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_5) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: 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>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
variant?: 'info' | 'warning' | 'error' | 'success';
|
|
4
|
+
icon?: Component;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_5: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_5) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: 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>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
count?: number;
|
|
4
|
+
countLabel?: string;
|
|
5
|
+
emptyLabel?: string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_5: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_5) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
close: () => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onClose?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'outline';
|
|
3
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
icon?: object | Function;
|
|
8
|
+
href?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_18: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_18) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
click: (e: MouseEvent) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WCard — content card.
|
|
3
|
+
*
|
|
4
|
+
* Slots:
|
|
5
|
+
* - icon : optional icon in the header (left of title)
|
|
6
|
+
* - title : card header title (or use `title` prop)
|
|
7
|
+
* - actions : optional header right slot (buttons, badges…)
|
|
8
|
+
* - default : card body / rows
|
|
9
|
+
* - footer : optional footer
|
|
10
|
+
* - empty : shown when `empty` prop is true
|
|
11
|
+
*
|
|
12
|
+
* Props:
|
|
13
|
+
* - title : string shorthand for header title
|
|
14
|
+
* - empty : boolean — show empty slot instead of default
|
|
15
|
+
*/
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
title?: string;
|
|
18
|
+
empty?: boolean;
|
|
19
|
+
noPadding?: boolean;
|
|
20
|
+
bodyClass?: string;
|
|
21
|
+
borderless?: boolean;
|
|
22
|
+
};
|
|
23
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
26
|
+
} & {
|
|
27
|
+
title?: (props: typeof __VLS_3) => any;
|
|
28
|
+
} & {
|
|
29
|
+
actions?: (props: typeof __VLS_5) => any;
|
|
30
|
+
} & {
|
|
31
|
+
default?: (props: typeof __VLS_7) => any;
|
|
32
|
+
} & {
|
|
33
|
+
empty?: (props: typeof __VLS_9) => any;
|
|
34
|
+
} & {
|
|
35
|
+
footer?: (props: typeof __VLS_11) => any;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_component: 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>;
|
|
38
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
export interface WChatMessage {
|
|
2
|
+
id?: string;
|
|
3
|
+
role: 'user' | 'assistant' | 'system' | 'tool';
|
|
4
|
+
content: string;
|
|
5
|
+
authorLabel?: string;
|
|
6
|
+
createdAt?: string;
|
|
7
|
+
streaming?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
metadata?: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
export interface WChatMessageMedia {
|
|
12
|
+
type?: string | null;
|
|
13
|
+
url: string;
|
|
14
|
+
posterUrl?: string | null;
|
|
15
|
+
width?: number | null;
|
|
16
|
+
height?: number | null;
|
|
17
|
+
generationId?: string | null;
|
|
18
|
+
href?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface WChatAttachment {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
mimeType?: string | null;
|
|
24
|
+
bytes?: number | null;
|
|
25
|
+
status?: 'ready' | 'loading' | 'error';
|
|
26
|
+
error?: string;
|
|
27
|
+
displayUrl?: string | null;
|
|
28
|
+
publicUrl?: string | null;
|
|
29
|
+
assetId?: string | null;
|
|
30
|
+
mediaItemId?: string | null;
|
|
31
|
+
metadata?: Record<string, unknown>;
|
|
32
|
+
}
|
|
33
|
+
export interface WChatActionProposal {
|
|
34
|
+
prompt?: string;
|
|
35
|
+
taskType?: 'image' | 'video' | 'text' | 'audio';
|
|
36
|
+
settings?: {
|
|
37
|
+
model?: string;
|
|
38
|
+
aspect?: string;
|
|
39
|
+
resolution?: string;
|
|
40
|
+
format?: string;
|
|
41
|
+
duration?: number;
|
|
42
|
+
fps?: number;
|
|
43
|
+
count?: number;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface WChatInlineAction {
|
|
47
|
+
id: string;
|
|
48
|
+
type: 'apply_prompt' | 'apply_setting' | 'apply_all';
|
|
49
|
+
label: string;
|
|
50
|
+
exactText?: string;
|
|
51
|
+
proposal: WChatActionProposal;
|
|
52
|
+
}
|
|
53
|
+
export interface WChatProject {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
color?: string;
|
|
57
|
+
subtitle?: string;
|
|
58
|
+
count?: number;
|
|
59
|
+
archived?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface WChatSession {
|
|
62
|
+
id: string;
|
|
63
|
+
title: string;
|
|
64
|
+
projectId?: string | null;
|
|
65
|
+
subtitle?: string;
|
|
66
|
+
updatedAt?: string;
|
|
67
|
+
unread?: boolean;
|
|
68
|
+
archived?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface WChatMentionItem {
|
|
71
|
+
id: string;
|
|
72
|
+
label: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
}
|
|
75
|
+
type __VLS_Props = {
|
|
76
|
+
open: boolean;
|
|
77
|
+
messages: WChatMessage[];
|
|
78
|
+
mentionItems?: WChatMentionItem[];
|
|
79
|
+
projects?: WChatProject[];
|
|
80
|
+
sessions?: WChatSession[];
|
|
81
|
+
modelValue?: string;
|
|
82
|
+
title?: string;
|
|
83
|
+
subtitle?: string;
|
|
84
|
+
selectedProjectId?: string | null;
|
|
85
|
+
selectedSessionId?: string | null;
|
|
86
|
+
placeholder?: string;
|
|
87
|
+
emptyTitle?: string;
|
|
88
|
+
emptyDescription?: string;
|
|
89
|
+
noProjectsLabel?: string;
|
|
90
|
+
noConversationsLabel?: string;
|
|
91
|
+
allLabel?: string;
|
|
92
|
+
recentLabel?: string;
|
|
93
|
+
projectsLabel?: string;
|
|
94
|
+
conversationsLabel?: string;
|
|
95
|
+
sendLabel?: string;
|
|
96
|
+
newLabel?: string;
|
|
97
|
+
newProjectLabel?: string;
|
|
98
|
+
newConversationLabel?: string;
|
|
99
|
+
renameProjectLabel?: string;
|
|
100
|
+
renameConversationLabel?: string;
|
|
101
|
+
deleteProjectLabel?: string;
|
|
102
|
+
deleteConversationLabel?: string;
|
|
103
|
+
clearLabel?: string;
|
|
104
|
+
copyLabel?: string;
|
|
105
|
+
copiedLabel?: string;
|
|
106
|
+
newChatFromMessageLabel?: string;
|
|
107
|
+
attachFilesLabel?: string;
|
|
108
|
+
removeAttachmentLabel?: string;
|
|
109
|
+
stopLabel?: string;
|
|
110
|
+
applyPromptLabel?: string;
|
|
111
|
+
applyAllLabel?: string;
|
|
112
|
+
applySettingLabel?: string;
|
|
113
|
+
thinkingLabel?: string;
|
|
114
|
+
dockLabel?: string;
|
|
115
|
+
undockLabel?: string;
|
|
116
|
+
closeLabel?: string;
|
|
117
|
+
helpfulLabel?: string;
|
|
118
|
+
notHelpfulLabel?: string;
|
|
119
|
+
attachments?: WChatAttachment[];
|
|
120
|
+
accept?: string;
|
|
121
|
+
customAttachmentPicker?: boolean;
|
|
122
|
+
showNavigator?: boolean;
|
|
123
|
+
hideNewConversation?: boolean;
|
|
124
|
+
hideClear?: boolean;
|
|
125
|
+
loading?: boolean;
|
|
126
|
+
cancellable?: boolean;
|
|
127
|
+
docked?: boolean;
|
|
128
|
+
maximized?: boolean;
|
|
129
|
+
maximizedMargin?: number;
|
|
130
|
+
width?: number;
|
|
131
|
+
height?: number;
|
|
132
|
+
x?: number;
|
|
133
|
+
y?: number;
|
|
134
|
+
topOffset?: number;
|
|
135
|
+
minWidth?: number;
|
|
136
|
+
minHeight?: number;
|
|
137
|
+
zIndex?: number;
|
|
138
|
+
variant?: 'default' | 'glass';
|
|
139
|
+
};
|
|
140
|
+
type __VLS_Slots = {
|
|
141
|
+
composer?: (props: {
|
|
142
|
+
modelValue: string;
|
|
143
|
+
placeholder: string;
|
|
144
|
+
disabled: boolean;
|
|
145
|
+
update: (value: string) => void;
|
|
146
|
+
submit: () => void;
|
|
147
|
+
}) => any;
|
|
148
|
+
};
|
|
149
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
150
|
+
"update:modelValue": (value: string) => any;
|
|
151
|
+
clear: () => any;
|
|
152
|
+
cancel: () => any;
|
|
153
|
+
close: () => any;
|
|
154
|
+
send: (value: string) => any;
|
|
155
|
+
new: () => any;
|
|
156
|
+
"new-project": () => any;
|
|
157
|
+
"new-conversation": (projectId: string | null) => any;
|
|
158
|
+
"select-project": (projectId: string | null) => any;
|
|
159
|
+
"select-session": (sessionId: string) => any;
|
|
160
|
+
"rename-project": (project: WChatProject) => any;
|
|
161
|
+
"rename-session": (session: WChatSession) => any;
|
|
162
|
+
"delete-project": (project: WChatProject) => any;
|
|
163
|
+
"delete-session": (session: WChatSession) => any;
|
|
164
|
+
"move-session": (session: WChatSession, projectId: string | null) => any;
|
|
165
|
+
"edit-message": (message: WChatMessage) => any;
|
|
166
|
+
"new-chat-from-message": (message: WChatMessage) => any;
|
|
167
|
+
"message-feedback": (message: WChatMessage, rating: 1 | -1) => any;
|
|
168
|
+
"apply-message-proposal": (message: WChatMessage, proposal: WChatActionProposal) => any;
|
|
169
|
+
navigate: (href: string) => any;
|
|
170
|
+
attach: () => any;
|
|
171
|
+
"files-selected": (files: File[]) => any;
|
|
172
|
+
"remove-attachment": (attachment: WChatAttachment) => any;
|
|
173
|
+
"update:docked": (value: boolean) => any;
|
|
174
|
+
"update:maximized": (value: boolean) => any;
|
|
175
|
+
"update:width": (value: number) => any;
|
|
176
|
+
"update:height": (value: number) => any;
|
|
177
|
+
"update:x": (value: number) => any;
|
|
178
|
+
"update:y": (value: number) => any;
|
|
179
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
180
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
181
|
+
onClear?: (() => any) | undefined;
|
|
182
|
+
onCancel?: (() => any) | undefined;
|
|
183
|
+
onClose?: (() => any) | undefined;
|
|
184
|
+
onSend?: ((value: string) => any) | undefined;
|
|
185
|
+
onNew?: (() => any) | undefined;
|
|
186
|
+
"onNew-project"?: (() => any) | undefined;
|
|
187
|
+
"onNew-conversation"?: ((projectId: string | null) => any) | undefined;
|
|
188
|
+
"onSelect-project"?: ((projectId: string | null) => any) | undefined;
|
|
189
|
+
"onSelect-session"?: ((sessionId: string) => any) | undefined;
|
|
190
|
+
"onRename-project"?: ((project: WChatProject) => any) | undefined;
|
|
191
|
+
"onRename-session"?: ((session: WChatSession) => any) | undefined;
|
|
192
|
+
"onDelete-project"?: ((project: WChatProject) => any) | undefined;
|
|
193
|
+
"onDelete-session"?: ((session: WChatSession) => any) | undefined;
|
|
194
|
+
"onMove-session"?: ((session: WChatSession, projectId: string | null) => any) | undefined;
|
|
195
|
+
"onEdit-message"?: ((message: WChatMessage) => any) | undefined;
|
|
196
|
+
"onNew-chat-from-message"?: ((message: WChatMessage) => any) | undefined;
|
|
197
|
+
"onMessage-feedback"?: ((message: WChatMessage, rating: 1 | -1) => any) | undefined;
|
|
198
|
+
"onApply-message-proposal"?: ((message: WChatMessage, proposal: WChatActionProposal) => any) | undefined;
|
|
199
|
+
onNavigate?: ((href: string) => any) | undefined;
|
|
200
|
+
onAttach?: (() => any) | undefined;
|
|
201
|
+
"onFiles-selected"?: ((files: File[]) => any) | undefined;
|
|
202
|
+
"onRemove-attachment"?: ((attachment: WChatAttachment) => any) | undefined;
|
|
203
|
+
"onUpdate:docked"?: ((value: boolean) => any) | undefined;
|
|
204
|
+
"onUpdate:maximized"?: ((value: boolean) => any) | undefined;
|
|
205
|
+
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
206
|
+
"onUpdate:height"?: ((value: number) => any) | undefined;
|
|
207
|
+
"onUpdate:x"?: ((value: number) => any) | undefined;
|
|
208
|
+
"onUpdate:y"?: ((value: number) => any) | undefined;
|
|
209
|
+
}>, {
|
|
210
|
+
variant: "default" | "glass";
|
|
211
|
+
loading: boolean;
|
|
212
|
+
height: number;
|
|
213
|
+
width: number;
|
|
214
|
+
x: number;
|
|
215
|
+
y: number;
|
|
216
|
+
title: string;
|
|
217
|
+
modelValue: string;
|
|
218
|
+
placeholder: string;
|
|
219
|
+
minWidth: number;
|
|
220
|
+
zIndex: number;
|
|
221
|
+
minHeight: number;
|
|
222
|
+
mentionItems: WChatMentionItem[];
|
|
223
|
+
projects: WChatProject[];
|
|
224
|
+
sessions: WChatSession[];
|
|
225
|
+
subtitle: string;
|
|
226
|
+
selectedProjectId: string | null;
|
|
227
|
+
selectedSessionId: string | null;
|
|
228
|
+
emptyTitle: string;
|
|
229
|
+
emptyDescription: string;
|
|
230
|
+
noProjectsLabel: string;
|
|
231
|
+
noConversationsLabel: string;
|
|
232
|
+
allLabel: string;
|
|
233
|
+
recentLabel: string;
|
|
234
|
+
projectsLabel: string;
|
|
235
|
+
conversationsLabel: string;
|
|
236
|
+
sendLabel: string;
|
|
237
|
+
newLabel: string;
|
|
238
|
+
newProjectLabel: string;
|
|
239
|
+
newConversationLabel: string;
|
|
240
|
+
renameProjectLabel: string;
|
|
241
|
+
renameConversationLabel: string;
|
|
242
|
+
deleteProjectLabel: string;
|
|
243
|
+
deleteConversationLabel: string;
|
|
244
|
+
clearLabel: string;
|
|
245
|
+
copyLabel: string;
|
|
246
|
+
copiedLabel: string;
|
|
247
|
+
newChatFromMessageLabel: string;
|
|
248
|
+
attachFilesLabel: string;
|
|
249
|
+
removeAttachmentLabel: string;
|
|
250
|
+
stopLabel: string;
|
|
251
|
+
applyPromptLabel: string;
|
|
252
|
+
applyAllLabel: string;
|
|
253
|
+
applySettingLabel: string;
|
|
254
|
+
thinkingLabel: string;
|
|
255
|
+
dockLabel: string;
|
|
256
|
+
undockLabel: string;
|
|
257
|
+
closeLabel: string;
|
|
258
|
+
helpfulLabel: string;
|
|
259
|
+
notHelpfulLabel: string;
|
|
260
|
+
attachments: WChatAttachment[];
|
|
261
|
+
accept: string;
|
|
262
|
+
customAttachmentPicker: boolean;
|
|
263
|
+
showNavigator: boolean;
|
|
264
|
+
hideNewConversation: boolean;
|
|
265
|
+
hideClear: boolean;
|
|
266
|
+
cancellable: boolean;
|
|
267
|
+
docked: boolean;
|
|
268
|
+
maximized: boolean;
|
|
269
|
+
maximizedMargin: number;
|
|
270
|
+
topOffset: number;
|
|
271
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
272
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
273
|
+
export default _default;
|
|
274
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
275
|
+
new (): {
|
|
276
|
+
$slots: S;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_5: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_5) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|