@colletdev/vue 0.1.3
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/README.md +64 -0
- package/dist/accordion.d.ts +68 -0
- package/dist/accordion.js +68 -0
- package/dist/activity-group.d.ts +56 -0
- package/dist/activity-group.js +50 -0
- package/dist/alert.d.ts +94 -0
- package/dist/alert.js +76 -0
- package/dist/autocomplete.d.ts +161 -0
- package/dist/autocomplete.js +132 -0
- package/dist/avatar.d.ts +50 -0
- package/dist/avatar.js +47 -0
- package/dist/backdrop.d.ts +25 -0
- package/dist/backdrop.js +35 -0
- package/dist/badge.d.ts +74 -0
- package/dist/badge.js +59 -0
- package/dist/breadcrumb.d.ts +49 -0
- package/dist/breadcrumb.js +53 -0
- package/dist/button.d.ts +92 -0
- package/dist/button.js +68 -0
- package/dist/card.d.ts +60 -0
- package/dist/card.js +58 -0
- package/dist/carousel.d.ts +97 -0
- package/dist/carousel.js +77 -0
- package/dist/chat-input.d.ts +99 -0
- package/dist/chat-input.js +79 -0
- package/dist/checkbox.d.ts +93 -0
- package/dist/checkbox.js +75 -0
- package/dist/code-block.d.ts +77 -0
- package/dist/code-block.js +59 -0
- package/dist/collapsible.d.ts +73 -0
- package/dist/collapsible.js +62 -0
- package/dist/date-picker.d.ts +145 -0
- package/dist/date-picker.js +111 -0
- package/dist/dialog.d.ts +61 -0
- package/dist/dialog.js +63 -0
- package/dist/drawer.d.ts +61 -0
- package/dist/drawer.js +63 -0
- package/dist/fab.d.ts +81 -0
- package/dist/fab.js +62 -0
- package/dist/file-upload.d.ts +104 -0
- package/dist/file-upload.js +74 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +54 -0
- package/dist/label.d.ts +66 -0
- package/dist/label.js +48 -0
- package/dist/listbox.d.ts +65 -0
- package/dist/listbox.js +77 -0
- package/dist/menu.d.ts +83 -0
- package/dist/menu.js +78 -0
- package/dist/message-bubble.d.ts +74 -0
- package/dist/message-bubble.js +67 -0
- package/dist/message-group.d.ts +51 -0
- package/dist/message-group.js +59 -0
- package/dist/message-part.d.ts +3 -0
- package/dist/message-part.js +25 -0
- package/dist/pagination.d.ts +81 -0
- package/dist/pagination.js +59 -0
- package/dist/popover.d.ts +104 -0
- package/dist/popover.js +92 -0
- package/dist/profile-menu.d.ts +77 -0
- package/dist/profile-menu.js +72 -0
- package/dist/progress.d.ts +50 -0
- package/dist/progress.js +48 -0
- package/dist/radio-group.d.ts +92 -0
- package/dist/radio-group.js +84 -0
- package/dist/scrollbar.d.ts +48 -0
- package/dist/scrollbar.js +55 -0
- package/dist/search-bar.d.ts +127 -0
- package/dist/search-bar.js +105 -0
- package/dist/select.d.ts +124 -0
- package/dist/select.js +114 -0
- package/dist/separator.d.ts +51 -0
- package/dist/separator.js +42 -0
- package/dist/sidebar.d.ts +69 -0
- package/dist/sidebar.js +68 -0
- package/dist/skeleton.d.ts +42 -0
- package/dist/skeleton.js +44 -0
- package/dist/slider.d.ts +133 -0
- package/dist/slider.js +98 -0
- package/dist/speed-dial.d.ts +103 -0
- package/dist/speed-dial.js +79 -0
- package/dist/spinner.d.ts +30 -0
- package/dist/spinner.js +38 -0
- package/dist/split-button.d.ts +101 -0
- package/dist/split-button.js +77 -0
- package/dist/stepper.d.ts +67 -0
- package/dist/stepper.js +62 -0
- package/dist/switch.d.ts +100 -0
- package/dist/switch.js +75 -0
- package/dist/table.d.ts +135 -0
- package/dist/table.js +147 -0
- package/dist/tabs.d.ts +65 -0
- package/dist/tabs.js +67 -0
- package/dist/text-input.d.ts +193 -0
- package/dist/text-input.js +134 -0
- package/dist/text.d.ts +99 -0
- package/dist/text.js +88 -0
- package/dist/thinking.d.ts +42 -0
- package/dist/thinking.js +44 -0
- package/dist/toast.d.ts +86 -0
- package/dist/toast.js +72 -0
- package/dist/toggle-group.d.ts +83 -0
- package/dist/toggle-group.js +77 -0
- package/dist/tooltip.d.ts +52 -0
- package/dist/tooltip.js +50 -0
- package/dist/types.d.ts +256 -0
- package/dist/types.js +4 -0
- package/package.json +44 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
|
|
2
|
+
// Vue 3 wrapper for <cx-toggle-group>
|
|
3
|
+
import { defineComponent, ref, h, onMounted, watch } from 'vue';
|
|
4
|
+
export const ToggleGroup = defineComponent({
|
|
5
|
+
name: 'ToggleGroup',
|
|
6
|
+
props: {
|
|
7
|
+
id: { type: String },
|
|
8
|
+
label: { type: String },
|
|
9
|
+
items: { type: [Array, Object, String] },
|
|
10
|
+
variant: { type: String },
|
|
11
|
+
shape: { type: String },
|
|
12
|
+
mode: { type: String },
|
|
13
|
+
orientation: { type: String },
|
|
14
|
+
intent: { type: String },
|
|
15
|
+
size: { type: String },
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
/** Controlled pressed item IDs. Pass a single ID or an array. */
|
|
18
|
+
value: { type: [Boolean, String, Array] },
|
|
19
|
+
},
|
|
20
|
+
emits: {
|
|
21
|
+
'cx-input': (event) => true,
|
|
22
|
+
'cx-change': (event) => true,
|
|
23
|
+
},
|
|
24
|
+
setup(props, { emit, slots, expose }) {
|
|
25
|
+
const el = ref(null);
|
|
26
|
+
const listeners = [];
|
|
27
|
+
onMounted(() => {
|
|
28
|
+
if (!el.value)
|
|
29
|
+
return;
|
|
30
|
+
watch(() => props.value, (val) => {
|
|
31
|
+
if (!el.value)
|
|
32
|
+
return;
|
|
33
|
+
if (val != null)
|
|
34
|
+
el.value.setAttribute('value', String(val));
|
|
35
|
+
else
|
|
36
|
+
el.value.removeAttribute('value');
|
|
37
|
+
}, { immediate: true });
|
|
38
|
+
watch(() => props.items, (val) => {
|
|
39
|
+
if (!el.value)
|
|
40
|
+
return;
|
|
41
|
+
if (val != null)
|
|
42
|
+
el.value.setAttribute('items', typeof val === 'object' ? JSON.stringify(val) : String(val));
|
|
43
|
+
else
|
|
44
|
+
el.value.removeAttribute('items');
|
|
45
|
+
}, { immediate: true });
|
|
46
|
+
// Event listeners
|
|
47
|
+
el.value.addEventListener('cx-input', (ev) => emit('cx-input', ev));
|
|
48
|
+
el.value.addEventListener('cx-change', (ev) => emit('cx-change', ev));
|
|
49
|
+
});
|
|
50
|
+
expose({
|
|
51
|
+
/** The underlying Custom Element. */
|
|
52
|
+
el,
|
|
53
|
+
});
|
|
54
|
+
return () => {
|
|
55
|
+
const attrs = {};
|
|
56
|
+
if (props.id != null)
|
|
57
|
+
attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
|
|
58
|
+
if (props.label != null)
|
|
59
|
+
attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
|
|
60
|
+
if (props.variant != null)
|
|
61
|
+
attrs['variant'] = typeof props.variant === 'object' ? JSON.stringify(props.variant) : String(props.variant);
|
|
62
|
+
if (props.shape != null)
|
|
63
|
+
attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
|
|
64
|
+
if (props.mode != null)
|
|
65
|
+
attrs['mode'] = typeof props.mode === 'object' ? JSON.stringify(props.mode) : String(props.mode);
|
|
66
|
+
if (props.orientation != null)
|
|
67
|
+
attrs['orientation'] = typeof props.orientation === 'object' ? JSON.stringify(props.orientation) : String(props.orientation);
|
|
68
|
+
if (props.intent != null)
|
|
69
|
+
attrs['intent'] = typeof props.intent === 'object' ? JSON.stringify(props.intent) : String(props.intent);
|
|
70
|
+
if (props.size != null)
|
|
71
|
+
attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
|
|
72
|
+
if (props.disabled)
|
|
73
|
+
attrs['disabled'] = '';
|
|
74
|
+
return h('cx-toggle-group', { ref: el, ...attrs });
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
export declare const Tooltip: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
id: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
};
|
|
6
|
+
/** Tooltip text shown on hover/focus. Also serves as the accessible name. */
|
|
7
|
+
content: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
triggerHtml: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
position: {
|
|
14
|
+
type: PropType<"top" | "bottom" | "left" | "right">;
|
|
15
|
+
};
|
|
16
|
+
arrow: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
};
|
|
19
|
+
openDelay: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
};
|
|
22
|
+
closeDelay: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
};
|
|
25
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
id: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
/** Tooltip text shown on hover/focus. Also serves as the accessible name. */
|
|
32
|
+
content: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
triggerHtml: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
position: {
|
|
39
|
+
type: PropType<"top" | "bottom" | "left" | "right">;
|
|
40
|
+
};
|
|
41
|
+
arrow: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
};
|
|
44
|
+
openDelay: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
};
|
|
47
|
+
closeDelay: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{}>, {
|
|
51
|
+
arrow: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/tooltip.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
|
|
2
|
+
// Vue 3 wrapper for <cx-tooltip>
|
|
3
|
+
import { defineComponent, ref, h, onMounted } from 'vue';
|
|
4
|
+
export const Tooltip = defineComponent({
|
|
5
|
+
name: 'Tooltip',
|
|
6
|
+
props: {
|
|
7
|
+
id: { type: String },
|
|
8
|
+
/** Tooltip text shown on hover/focus. Also serves as the accessible name. */
|
|
9
|
+
content: { type: String },
|
|
10
|
+
triggerHtml: { type: String },
|
|
11
|
+
position: { type: String },
|
|
12
|
+
arrow: { type: Boolean },
|
|
13
|
+
openDelay: { type: Number },
|
|
14
|
+
closeDelay: { type: Number },
|
|
15
|
+
},
|
|
16
|
+
emits: {},
|
|
17
|
+
setup(props, { emit, slots, expose }) {
|
|
18
|
+
const el = ref(null);
|
|
19
|
+
const listeners = [];
|
|
20
|
+
onMounted(() => {
|
|
21
|
+
if (!el.value)
|
|
22
|
+
return;
|
|
23
|
+
// Event listeners
|
|
24
|
+
});
|
|
25
|
+
expose({
|
|
26
|
+
/** The underlying Custom Element. */
|
|
27
|
+
el,
|
|
28
|
+
});
|
|
29
|
+
return () => {
|
|
30
|
+
const attrs = {};
|
|
31
|
+
if (props.id != null)
|
|
32
|
+
attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
|
|
33
|
+
if (props.content != null)
|
|
34
|
+
attrs['content'] = typeof props.content === 'object' ? JSON.stringify(props.content) : String(props.content);
|
|
35
|
+
if (props.triggerHtml != null)
|
|
36
|
+
attrs['trigger-html'] = typeof props.triggerHtml === 'object' ? JSON.stringify(props.triggerHtml) : String(props.triggerHtml);
|
|
37
|
+
if (props.position != null)
|
|
38
|
+
attrs['position'] = typeof props.position === 'object' ? JSON.stringify(props.position) : String(props.position);
|
|
39
|
+
if (props.arrow)
|
|
40
|
+
attrs['arrow'] = '';
|
|
41
|
+
if (props.openDelay != null)
|
|
42
|
+
attrs['open-delay'] = typeof props.openDelay === 'object' ? JSON.stringify(props.openDelay) : String(props.openDelay);
|
|
43
|
+
if (props.closeDelay != null)
|
|
44
|
+
attrs['close-delay'] = typeof props.closeDelay === 'object' ? JSON.stringify(props.closeDelay) : String(props.closeDelay);
|
|
45
|
+
return h('cx-tooltip', { ref: el, ...attrs }, [
|
|
46
|
+
(slots.trigger || slots.default) ? h('div', { slot: 'trigger', style: 'display:contents' }, slots.trigger ? slots.trigger() : slots.default?.()) : undefined
|
|
47
|
+
]);
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
});
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
export interface SelectOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface OptionGroup {
|
|
9
|
+
label: string;
|
|
10
|
+
options: SelectOption[];
|
|
11
|
+
}
|
|
12
|
+
export interface TabItem {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
content?: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface TableColumn {
|
|
20
|
+
id: string;
|
|
21
|
+
header: string;
|
|
22
|
+
sortable?: boolean;
|
|
23
|
+
width?: string;
|
|
24
|
+
align?: 'left' | 'center' | 'right';
|
|
25
|
+
visible?: boolean;
|
|
26
|
+
pinned?: 'left' | 'right';
|
|
27
|
+
resizable?: boolean;
|
|
28
|
+
sr_only?: boolean;
|
|
29
|
+
min_width?: string;
|
|
30
|
+
max_width?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface TableCell {
|
|
33
|
+
text?: string;
|
|
34
|
+
html?: string;
|
|
35
|
+
number?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface TableRow {
|
|
38
|
+
id: string;
|
|
39
|
+
cells: TableCell[] | Record<string, string | TableCell>;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
detail?: string;
|
|
42
|
+
expanded?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface SortState {
|
|
45
|
+
column_id: string;
|
|
46
|
+
direction: 'asc' | 'desc' | 'ascending' | 'descending';
|
|
47
|
+
}
|
|
48
|
+
export interface PaginationConfig {
|
|
49
|
+
current_page: number;
|
|
50
|
+
page_size: number;
|
|
51
|
+
total_items: number;
|
|
52
|
+
page_size_options?: number[];
|
|
53
|
+
}
|
|
54
|
+
export interface FooterRow {
|
|
55
|
+
cells: Record<string, string | TableCell>;
|
|
56
|
+
}
|
|
57
|
+
export interface EmptyStateConfig {
|
|
58
|
+
title?: string;
|
|
59
|
+
icon?: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface AccordionItem {
|
|
63
|
+
id: string;
|
|
64
|
+
trigger_label: string;
|
|
65
|
+
panel_content: string;
|
|
66
|
+
icon?: string;
|
|
67
|
+
description?: string;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface MenuRadioItem {
|
|
71
|
+
value: string;
|
|
72
|
+
label: string;
|
|
73
|
+
icon?: string;
|
|
74
|
+
disabled?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface MenuEntry {
|
|
77
|
+
type: 'item' | 'checkbox' | 'radio-group' | 'separator' | 'label';
|
|
78
|
+
id?: string;
|
|
79
|
+
label?: string;
|
|
80
|
+
icon?: string;
|
|
81
|
+
shortcut?: string;
|
|
82
|
+
disabled?: boolean;
|
|
83
|
+
danger?: boolean;
|
|
84
|
+
intent?: string;
|
|
85
|
+
checked?: boolean;
|
|
86
|
+
value?: string;
|
|
87
|
+
items?: MenuRadioItem[];
|
|
88
|
+
}
|
|
89
|
+
export interface SidebarNavItem {
|
|
90
|
+
id: string;
|
|
91
|
+
label: string;
|
|
92
|
+
href?: string;
|
|
93
|
+
icon?: string;
|
|
94
|
+
badge?: string;
|
|
95
|
+
active?: boolean;
|
|
96
|
+
disabled?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface SidebarGroup {
|
|
99
|
+
label?: string;
|
|
100
|
+
icon?: string;
|
|
101
|
+
items: SidebarNavItem[];
|
|
102
|
+
collapsible?: boolean;
|
|
103
|
+
expanded?: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface BreadcrumbItem {
|
|
106
|
+
label: string;
|
|
107
|
+
href?: string;
|
|
108
|
+
icon?: string;
|
|
109
|
+
current?: boolean;
|
|
110
|
+
ellipsis?: boolean;
|
|
111
|
+
}
|
|
112
|
+
export interface RadioOption {
|
|
113
|
+
value: string;
|
|
114
|
+
label: string;
|
|
115
|
+
description?: string;
|
|
116
|
+
disabled?: boolean;
|
|
117
|
+
icon?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface ToggleItem {
|
|
120
|
+
id: string;
|
|
121
|
+
label: string;
|
|
122
|
+
icon?: string;
|
|
123
|
+
icon_only?: boolean;
|
|
124
|
+
pressed?: boolean;
|
|
125
|
+
disabled?: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface SplitMenuEntry {
|
|
128
|
+
type: 'item' | 'separator';
|
|
129
|
+
id?: string;
|
|
130
|
+
label?: string;
|
|
131
|
+
icon?: string;
|
|
132
|
+
shortcut?: string;
|
|
133
|
+
intent?: string;
|
|
134
|
+
disabled?: boolean;
|
|
135
|
+
}
|
|
136
|
+
export interface CarouselSlide {
|
|
137
|
+
image_url?: string;
|
|
138
|
+
title: string;
|
|
139
|
+
badge?: string;
|
|
140
|
+
badge_color?: string;
|
|
141
|
+
subtitle?: string;
|
|
142
|
+
href?: string;
|
|
143
|
+
}
|
|
144
|
+
export interface CarouselDetail {
|
|
145
|
+
index: number;
|
|
146
|
+
total: number;
|
|
147
|
+
}
|
|
148
|
+
export interface SpeedDialAction {
|
|
149
|
+
id: string;
|
|
150
|
+
icon: string;
|
|
151
|
+
label: string;
|
|
152
|
+
intent?: string;
|
|
153
|
+
disabled?: boolean;
|
|
154
|
+
handler?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface MessageGroupPart {
|
|
157
|
+
id?: string;
|
|
158
|
+
kind: 'text' | 'tool-call' | 'tool-result' | 'thinking' | 'code-block' | 'error';
|
|
159
|
+
connection?: 'standalone' | 'first' | 'middle' | 'last';
|
|
160
|
+
content?: string;
|
|
161
|
+
html_content?: string;
|
|
162
|
+
tool_name?: string;
|
|
163
|
+
tool_arguments?: string;
|
|
164
|
+
tool_status?: 'pending' | 'success' | 'error';
|
|
165
|
+
collapsible?: boolean;
|
|
166
|
+
thinking_label?: string;
|
|
167
|
+
language?: string;
|
|
168
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
169
|
+
}
|
|
170
|
+
export interface StepperStep {
|
|
171
|
+
id: string;
|
|
172
|
+
label: string;
|
|
173
|
+
description?: string;
|
|
174
|
+
status?: 'pending' | 'active' | 'completed' | 'error' | 'loading';
|
|
175
|
+
disabled?: boolean;
|
|
176
|
+
optional?: boolean;
|
|
177
|
+
}
|
|
178
|
+
export interface InputDetail {
|
|
179
|
+
value: string;
|
|
180
|
+
}
|
|
181
|
+
export interface SelectDetail {
|
|
182
|
+
value: string;
|
|
183
|
+
}
|
|
184
|
+
export interface CheckedDetail {
|
|
185
|
+
checked: boolean;
|
|
186
|
+
}
|
|
187
|
+
export interface SliderDetail {
|
|
188
|
+
value: number;
|
|
189
|
+
}
|
|
190
|
+
export interface ToggleDetail {
|
|
191
|
+
pressed: string[];
|
|
192
|
+
}
|
|
193
|
+
export interface AccordionDetail {
|
|
194
|
+
expanded: string[];
|
|
195
|
+
}
|
|
196
|
+
export interface CollapsibleDetail {
|
|
197
|
+
open: boolean;
|
|
198
|
+
}
|
|
199
|
+
export interface MenuActionDetail {
|
|
200
|
+
id: string;
|
|
201
|
+
label?: string;
|
|
202
|
+
}
|
|
203
|
+
export interface MenuChangeDetail {
|
|
204
|
+
id: string;
|
|
205
|
+
checked?: boolean;
|
|
206
|
+
value?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface SortDetail {
|
|
209
|
+
column_id: string;
|
|
210
|
+
direction: 'asc' | 'desc' | 'none';
|
|
211
|
+
}
|
|
212
|
+
export interface TableSelectDetail {
|
|
213
|
+
selected: string[];
|
|
214
|
+
row_id?: string;
|
|
215
|
+
}
|
|
216
|
+
export interface TableExpandDetail {
|
|
217
|
+
row_id: string;
|
|
218
|
+
expanded: boolean;
|
|
219
|
+
}
|
|
220
|
+
export interface PageDetail {
|
|
221
|
+
page: number;
|
|
222
|
+
page_size?: number;
|
|
223
|
+
}
|
|
224
|
+
export interface NavigateDetail {
|
|
225
|
+
href: string;
|
|
226
|
+
label: string;
|
|
227
|
+
}
|
|
228
|
+
export interface ClickDetail {
|
|
229
|
+
x?: number;
|
|
230
|
+
y?: number;
|
|
231
|
+
}
|
|
232
|
+
export interface FileChangeDetail {
|
|
233
|
+
files: FileInfo[];
|
|
234
|
+
}
|
|
235
|
+
export interface FileInfo {
|
|
236
|
+
name: string;
|
|
237
|
+
size: number;
|
|
238
|
+
type: string;
|
|
239
|
+
}
|
|
240
|
+
export interface CloseDetail {
|
|
241
|
+
reason?: 'escape' | 'backdrop' | 'close-button';
|
|
242
|
+
}
|
|
243
|
+
export interface DismissDetail {
|
|
244
|
+
reason?: 'user' | 'timeout';
|
|
245
|
+
}
|
|
246
|
+
export interface FocusDetail {
|
|
247
|
+
relatedTarget: EventTarget | null;
|
|
248
|
+
}
|
|
249
|
+
export interface KeyboardDetail {
|
|
250
|
+
key: string;
|
|
251
|
+
code: string;
|
|
252
|
+
shiftKey: boolean;
|
|
253
|
+
ctrlKey: boolean;
|
|
254
|
+
altKey: boolean;
|
|
255
|
+
metaKey: boolean;
|
|
256
|
+
}
|
package/dist/types.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@colletdev/vue",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Vue 3 wrappers for Collet Rust/WASM UI components",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./global": {
|
|
15
|
+
"types": "./dist/global.d.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/"
|
|
20
|
+
],
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@colletdev/core": ">=0.1.0",
|
|
23
|
+
"vue": ">=3.3.0"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"vue",
|
|
27
|
+
"web-components",
|
|
28
|
+
"rust",
|
|
29
|
+
"wasm",
|
|
30
|
+
"ui"
|
|
31
|
+
],
|
|
32
|
+
"author": "Dan",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"sideEffects": false,
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/Danrozen87/collet",
|
|
38
|
+
"directory": "packages/vue"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"typescript": "^5.9.3",
|
|
42
|
+
"vue": "^3.5.30"
|
|
43
|
+
}
|
|
44
|
+
}
|