@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
package/dist/dialog.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
|
|
2
|
+
// Vue 3 wrapper for <cx-dialog>
|
|
3
|
+
import { defineComponent, ref, h, onMounted, watch } from 'vue';
|
|
4
|
+
export const Dialog = defineComponent({
|
|
5
|
+
name: 'Dialog',
|
|
6
|
+
props: {
|
|
7
|
+
id: { type: String },
|
|
8
|
+
title: { type: String },
|
|
9
|
+
variant: { type: String },
|
|
10
|
+
description: { type: String },
|
|
11
|
+
size: { type: String },
|
|
12
|
+
closeButton: { type: String },
|
|
13
|
+
drawer: { type: String },
|
|
14
|
+
},
|
|
15
|
+
emits: {
|
|
16
|
+
'cx-close': (event) => true,
|
|
17
|
+
},
|
|
18
|
+
setup(props, { emit, slots, expose }) {
|
|
19
|
+
const el = ref(null);
|
|
20
|
+
const listeners = [];
|
|
21
|
+
onMounted(() => {
|
|
22
|
+
if (!el.value)
|
|
23
|
+
return;
|
|
24
|
+
watch(() => props.title, (val) => {
|
|
25
|
+
if (!el.value)
|
|
26
|
+
return;
|
|
27
|
+
if (val != null)
|
|
28
|
+
el.value.setAttribute('title', String(val));
|
|
29
|
+
else
|
|
30
|
+
el.value.removeAttribute('title');
|
|
31
|
+
}, { immediate: true });
|
|
32
|
+
// Event listeners
|
|
33
|
+
el.value.addEventListener('cx-close', (ev) => emit('cx-close', ev));
|
|
34
|
+
});
|
|
35
|
+
expose({
|
|
36
|
+
/** Opens the dialog modal with entrance animation. */
|
|
37
|
+
open() { el.value?.open(); },
|
|
38
|
+
/** Closes the dialog modal with exit animation. */
|
|
39
|
+
close() { el.value?.close(); },
|
|
40
|
+
/** The underlying Custom Element. */
|
|
41
|
+
el,
|
|
42
|
+
});
|
|
43
|
+
return () => {
|
|
44
|
+
const attrs = {};
|
|
45
|
+
if (props.id != null)
|
|
46
|
+
attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
|
|
47
|
+
if (props.variant != null)
|
|
48
|
+
attrs['variant'] = typeof props.variant === 'object' ? JSON.stringify(props.variant) : String(props.variant);
|
|
49
|
+
if (props.description != null)
|
|
50
|
+
attrs['description'] = typeof props.description === 'object' ? JSON.stringify(props.description) : String(props.description);
|
|
51
|
+
if (props.size != null)
|
|
52
|
+
attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
|
|
53
|
+
if (props.closeButton != null)
|
|
54
|
+
attrs['close-button'] = typeof props.closeButton === 'object' ? JSON.stringify(props.closeButton) : String(props.closeButton);
|
|
55
|
+
if (props.drawer != null)
|
|
56
|
+
attrs['drawer'] = typeof props.drawer === 'object' ? JSON.stringify(props.drawer) : String(props.drawer);
|
|
57
|
+
return h('cx-dialog', { ref: el, ...attrs }, [
|
|
58
|
+
slots.footer ? h('div', { slot: 'footer', style: 'display:contents' }, slots.footer()) : undefined,
|
|
59
|
+
slots.default?.()
|
|
60
|
+
]);
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
});
|
package/dist/drawer.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { CloseDetail } from './types.js';
|
|
3
|
+
export interface DrawerRef {
|
|
4
|
+
/** Opens the drawer panel with slide-in animation. */
|
|
5
|
+
open(): void;
|
|
6
|
+
/** Closes the drawer panel with slide-out animation. */
|
|
7
|
+
close(): void;
|
|
8
|
+
/** The underlying Custom Element. */
|
|
9
|
+
el: HTMLElement | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const Drawer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
id: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
title: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
18
|
+
description: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
side: {
|
|
22
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
type: PropType<"sm" | "md" | "lg" | "xl" | "full">;
|
|
26
|
+
};
|
|
27
|
+
shape: {
|
|
28
|
+
type: PropType<"sharp" | "rounded" | "pill">;
|
|
29
|
+
};
|
|
30
|
+
closeButton: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
'cx-close': (event: CustomEvent<CloseDetail>) => true;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
id: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
title: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
};
|
|
44
|
+
description: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
};
|
|
47
|
+
side: {
|
|
48
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
type: PropType<"sm" | "md" | "lg" | "xl" | "full">;
|
|
52
|
+
};
|
|
53
|
+
shape: {
|
|
54
|
+
type: PropType<"sharp" | "rounded" | "pill">;
|
|
55
|
+
};
|
|
56
|
+
closeButton: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
};
|
|
59
|
+
}>> & Readonly<{
|
|
60
|
+
"onCx-close"?: ((event: CustomEvent<CloseDetail>) => any) | undefined;
|
|
61
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/drawer.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
|
|
2
|
+
// Vue 3 wrapper for <cx-drawer>
|
|
3
|
+
import { defineComponent, ref, h, onMounted, watch } from 'vue';
|
|
4
|
+
export const Drawer = defineComponent({
|
|
5
|
+
name: 'Drawer',
|
|
6
|
+
props: {
|
|
7
|
+
id: { type: String },
|
|
8
|
+
title: { type: String },
|
|
9
|
+
description: { type: String },
|
|
10
|
+
side: { type: String },
|
|
11
|
+
size: { type: String },
|
|
12
|
+
shape: { type: String },
|
|
13
|
+
closeButton: { type: String },
|
|
14
|
+
},
|
|
15
|
+
emits: {
|
|
16
|
+
'cx-close': (event) => true,
|
|
17
|
+
},
|
|
18
|
+
setup(props, { emit, slots, expose }) {
|
|
19
|
+
const el = ref(null);
|
|
20
|
+
const listeners = [];
|
|
21
|
+
onMounted(() => {
|
|
22
|
+
if (!el.value)
|
|
23
|
+
return;
|
|
24
|
+
watch(() => props.title, (val) => {
|
|
25
|
+
if (!el.value)
|
|
26
|
+
return;
|
|
27
|
+
if (val != null)
|
|
28
|
+
el.value.setAttribute('title', String(val));
|
|
29
|
+
else
|
|
30
|
+
el.value.removeAttribute('title');
|
|
31
|
+
}, { immediate: true });
|
|
32
|
+
// Event listeners
|
|
33
|
+
el.value.addEventListener('cx-close', (ev) => emit('cx-close', ev));
|
|
34
|
+
});
|
|
35
|
+
expose({
|
|
36
|
+
/** Opens the drawer panel with slide-in animation. */
|
|
37
|
+
open() { el.value?.open(); },
|
|
38
|
+
/** Closes the drawer panel with slide-out animation. */
|
|
39
|
+
close() { el.value?.close(); },
|
|
40
|
+
/** The underlying Custom Element. */
|
|
41
|
+
el,
|
|
42
|
+
});
|
|
43
|
+
return () => {
|
|
44
|
+
const attrs = {};
|
|
45
|
+
if (props.id != null)
|
|
46
|
+
attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
|
|
47
|
+
if (props.description != null)
|
|
48
|
+
attrs['description'] = typeof props.description === 'object' ? JSON.stringify(props.description) : String(props.description);
|
|
49
|
+
if (props.side != null)
|
|
50
|
+
attrs['side'] = typeof props.side === 'object' ? JSON.stringify(props.side) : String(props.side);
|
|
51
|
+
if (props.size != null)
|
|
52
|
+
attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
|
|
53
|
+
if (props.shape != null)
|
|
54
|
+
attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
|
|
55
|
+
if (props.closeButton != null)
|
|
56
|
+
attrs['close-button'] = typeof props.closeButton === 'object' ? JSON.stringify(props.closeButton) : String(props.closeButton);
|
|
57
|
+
return h('cx-drawer', { ref: el, ...attrs }, [
|
|
58
|
+
slots.footer ? h('div', { slot: 'footer', style: 'display:contents' }, slots.footer()) : undefined,
|
|
59
|
+
slots.default?.()
|
|
60
|
+
]);
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
});
|
package/dist/fab.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { ClickDetail } from './types.js';
|
|
3
|
+
export declare const Fab: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
icon: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
};
|
|
7
|
+
label: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
ariaLabel: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
variant: {
|
|
14
|
+
type: PropType<"filled" | "outline" | "ghost">;
|
|
15
|
+
};
|
|
16
|
+
intent: {
|
|
17
|
+
type: PropType<"neutral" | "primary" | "info" | "success" | "warning" | "danger">;
|
|
18
|
+
};
|
|
19
|
+
shape: {
|
|
20
|
+
type: PropType<"rounded" | "pill">;
|
|
21
|
+
};
|
|
22
|
+
size: {
|
|
23
|
+
type: PropType<"sm" | "md" | "lg">;
|
|
24
|
+
};
|
|
25
|
+
disabled: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
};
|
|
28
|
+
hasPopup: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
};
|
|
31
|
+
expanded: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
};
|
|
34
|
+
controls: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
+
'cx-click': (event: CustomEvent<ClickDetail>) => true;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
icon: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
label: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
};
|
|
48
|
+
ariaLabel: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
variant: {
|
|
52
|
+
type: PropType<"filled" | "outline" | "ghost">;
|
|
53
|
+
};
|
|
54
|
+
intent: {
|
|
55
|
+
type: PropType<"neutral" | "primary" | "info" | "success" | "warning" | "danger">;
|
|
56
|
+
};
|
|
57
|
+
shape: {
|
|
58
|
+
type: PropType<"rounded" | "pill">;
|
|
59
|
+
};
|
|
60
|
+
size: {
|
|
61
|
+
type: PropType<"sm" | "md" | "lg">;
|
|
62
|
+
};
|
|
63
|
+
disabled: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
};
|
|
66
|
+
hasPopup: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
};
|
|
69
|
+
expanded: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
};
|
|
72
|
+
controls: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
};
|
|
75
|
+
}>> & Readonly<{
|
|
76
|
+
"onCx-click"?: ((event: CustomEvent<ClickDetail>) => any) | undefined;
|
|
77
|
+
}>, {
|
|
78
|
+
disabled: boolean;
|
|
79
|
+
expanded: boolean;
|
|
80
|
+
hasPopup: boolean;
|
|
81
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/fab.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
|
|
2
|
+
// Vue 3 wrapper for <cx-fab>
|
|
3
|
+
import { defineComponent, ref, h, onMounted } from 'vue';
|
|
4
|
+
export const Fab = defineComponent({
|
|
5
|
+
name: 'Fab',
|
|
6
|
+
props: {
|
|
7
|
+
icon: { type: String },
|
|
8
|
+
label: { type: String },
|
|
9
|
+
ariaLabel: { type: String },
|
|
10
|
+
variant: { type: String },
|
|
11
|
+
intent: { type: String },
|
|
12
|
+
shape: { type: String },
|
|
13
|
+
size: { type: String },
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
hasPopup: { type: Boolean },
|
|
16
|
+
expanded: { type: Boolean },
|
|
17
|
+
controls: { type: String },
|
|
18
|
+
},
|
|
19
|
+
emits: {
|
|
20
|
+
'cx-click': (event) => true,
|
|
21
|
+
},
|
|
22
|
+
setup(props, { emit, slots, expose }) {
|
|
23
|
+
const el = ref(null);
|
|
24
|
+
const listeners = [];
|
|
25
|
+
onMounted(() => {
|
|
26
|
+
if (!el.value)
|
|
27
|
+
return;
|
|
28
|
+
// Event listeners
|
|
29
|
+
el.value.addEventListener('cx-click', (ev) => emit('cx-click', ev));
|
|
30
|
+
});
|
|
31
|
+
expose({
|
|
32
|
+
/** The underlying Custom Element. */
|
|
33
|
+
el,
|
|
34
|
+
});
|
|
35
|
+
return () => {
|
|
36
|
+
const attrs = {};
|
|
37
|
+
if (props.icon != null)
|
|
38
|
+
attrs['icon'] = typeof props.icon === 'object' ? JSON.stringify(props.icon) : String(props.icon);
|
|
39
|
+
if (props.label != null)
|
|
40
|
+
attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
|
|
41
|
+
if (props.ariaLabel != null)
|
|
42
|
+
attrs['aria-label'] = typeof props.ariaLabel === 'object' ? JSON.stringify(props.ariaLabel) : String(props.ariaLabel);
|
|
43
|
+
if (props.variant != null)
|
|
44
|
+
attrs['variant'] = typeof props.variant === 'object' ? JSON.stringify(props.variant) : String(props.variant);
|
|
45
|
+
if (props.intent != null)
|
|
46
|
+
attrs['intent'] = typeof props.intent === 'object' ? JSON.stringify(props.intent) : String(props.intent);
|
|
47
|
+
if (props.shape != null)
|
|
48
|
+
attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
|
|
49
|
+
if (props.size != null)
|
|
50
|
+
attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
|
|
51
|
+
if (props.disabled)
|
|
52
|
+
attrs['disabled'] = '';
|
|
53
|
+
if (props.hasPopup)
|
|
54
|
+
attrs['has-popup'] = '';
|
|
55
|
+
if (props.expanded)
|
|
56
|
+
attrs['expanded'] = '';
|
|
57
|
+
if (props.controls != null)
|
|
58
|
+
attrs['controls'] = typeof props.controls === 'object' ? JSON.stringify(props.controls) : String(props.controls);
|
|
59
|
+
return h('cx-fab', { ref: el, ...attrs });
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
export declare const FileUpload: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
id: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
mode: {
|
|
10
|
+
type: PropType<"inline" | "overlay">;
|
|
11
|
+
};
|
|
12
|
+
variant: {
|
|
13
|
+
type: PropType<"outline" | "filled" | "subtle">;
|
|
14
|
+
};
|
|
15
|
+
shape: {
|
|
16
|
+
type: PropType<"sharp" | "rounded" | "pill">;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
20
|
+
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
};
|
|
24
|
+
multiple: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
};
|
|
27
|
+
accept: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
maxSize: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
};
|
|
33
|
+
heading: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
};
|
|
36
|
+
browseText: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
hint: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
capture: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
preview: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
};
|
|
48
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
'cx-change': (event: CustomEvent) => true;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
id: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
label: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
};
|
|
59
|
+
mode: {
|
|
60
|
+
type: PropType<"inline" | "overlay">;
|
|
61
|
+
};
|
|
62
|
+
variant: {
|
|
63
|
+
type: PropType<"outline" | "filled" | "subtle">;
|
|
64
|
+
};
|
|
65
|
+
shape: {
|
|
66
|
+
type: PropType<"sharp" | "rounded" | "pill">;
|
|
67
|
+
};
|
|
68
|
+
size: {
|
|
69
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
};
|
|
74
|
+
multiple: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
};
|
|
77
|
+
accept: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
};
|
|
80
|
+
maxSize: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
};
|
|
83
|
+
heading: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
};
|
|
86
|
+
browseText: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
};
|
|
89
|
+
hint: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
};
|
|
92
|
+
capture: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
};
|
|
95
|
+
preview: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{
|
|
99
|
+
"onCx-change"?: ((event: CustomEvent<any>) => any) | undefined;
|
|
100
|
+
}>, {
|
|
101
|
+
multiple: boolean;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
preview: boolean;
|
|
104
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
|
|
2
|
+
// Vue 3 wrapper for <cx-file-upload>
|
|
3
|
+
import { defineComponent, ref, h, onMounted } from 'vue';
|
|
4
|
+
export const FileUpload = defineComponent({
|
|
5
|
+
name: 'FileUpload',
|
|
6
|
+
props: {
|
|
7
|
+
id: { type: String },
|
|
8
|
+
label: { type: String },
|
|
9
|
+
mode: { type: String },
|
|
10
|
+
variant: { type: String },
|
|
11
|
+
shape: { type: String },
|
|
12
|
+
size: { type: String },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
multiple: { type: Boolean },
|
|
15
|
+
accept: { type: String },
|
|
16
|
+
maxSize: { type: Number },
|
|
17
|
+
heading: { type: String },
|
|
18
|
+
browseText: { type: String },
|
|
19
|
+
hint: { type: String },
|
|
20
|
+
capture: { type: String },
|
|
21
|
+
preview: { type: Boolean },
|
|
22
|
+
},
|
|
23
|
+
emits: {
|
|
24
|
+
'cx-change': (event) => true,
|
|
25
|
+
},
|
|
26
|
+
setup(props, { emit, slots, expose }) {
|
|
27
|
+
const el = ref(null);
|
|
28
|
+
const listeners = [];
|
|
29
|
+
onMounted(() => {
|
|
30
|
+
if (!el.value)
|
|
31
|
+
return;
|
|
32
|
+
// Event listeners
|
|
33
|
+
el.value.addEventListener('cx-change', (ev) => emit('cx-change', ev));
|
|
34
|
+
});
|
|
35
|
+
expose({
|
|
36
|
+
/** The underlying Custom Element. */
|
|
37
|
+
el,
|
|
38
|
+
});
|
|
39
|
+
return () => {
|
|
40
|
+
const attrs = {};
|
|
41
|
+
if (props.id != null)
|
|
42
|
+
attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
|
|
43
|
+
if (props.label != null)
|
|
44
|
+
attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
|
|
45
|
+
if (props.mode != null)
|
|
46
|
+
attrs['mode'] = typeof props.mode === 'object' ? JSON.stringify(props.mode) : String(props.mode);
|
|
47
|
+
if (props.variant != null)
|
|
48
|
+
attrs['variant'] = typeof props.variant === 'object' ? JSON.stringify(props.variant) : String(props.variant);
|
|
49
|
+
if (props.shape != null)
|
|
50
|
+
attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
|
|
51
|
+
if (props.size != null)
|
|
52
|
+
attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
|
|
53
|
+
if (props.disabled)
|
|
54
|
+
attrs['disabled'] = '';
|
|
55
|
+
if (props.multiple)
|
|
56
|
+
attrs['multiple'] = '';
|
|
57
|
+
if (props.accept != null)
|
|
58
|
+
attrs['accept'] = typeof props.accept === 'object' ? JSON.stringify(props.accept) : String(props.accept);
|
|
59
|
+
if (props.maxSize != null)
|
|
60
|
+
attrs['max-size'] = typeof props.maxSize === 'object' ? JSON.stringify(props.maxSize) : String(props.maxSize);
|
|
61
|
+
if (props.heading != null)
|
|
62
|
+
attrs['heading'] = typeof props.heading === 'object' ? JSON.stringify(props.heading) : String(props.heading);
|
|
63
|
+
if (props.browseText != null)
|
|
64
|
+
attrs['browse-text'] = typeof props.browseText === 'object' ? JSON.stringify(props.browseText) : String(props.browseText);
|
|
65
|
+
if (props.hint != null)
|
|
66
|
+
attrs['hint'] = typeof props.hint === 'object' ? JSON.stringify(props.hint) : String(props.hint);
|
|
67
|
+
if (props.capture != null)
|
|
68
|
+
attrs['capture'] = typeof props.capture === 'object' ? JSON.stringify(props.capture) : String(props.capture);
|
|
69
|
+
if (props.preview)
|
|
70
|
+
attrs['preview'] = '';
|
|
71
|
+
return h('cx-file-upload', { ref: el, ...attrs });
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import '@colletdev/core';
|
|
2
|
+
export { init, componentNames } from '@colletdev/core';
|
|
3
|
+
export type { InitOptions, ComponentName } from '@colletdev/core';
|
|
4
|
+
export type { SelectOption, OptionGroup, TabItem, TableColumn, TableCell, TableRow, SortState, PaginationConfig, FooterRow, EmptyStateConfig, AccordionItem, MenuEntry, MenuRadioItem, SidebarNavItem, SidebarGroup, BreadcrumbItem, RadioOption, ToggleItem, SplitMenuEntry, SpeedDialAction, CarouselSlide, MessageGroupPart, StepperStep, } from './types.js';
|
|
5
|
+
export type { InputDetail, SelectDetail, CheckedDetail, SliderDetail, ToggleDetail, AccordionDetail, CollapsibleDetail, MenuActionDetail, MenuChangeDetail, SortDetail, TableSelectDetail, TableExpandDetail, PageDetail, NavigateDetail, ClickDetail, CloseDetail, DismissDetail, FocusDetail, KeyboardDetail, CarouselDetail, FileChangeDetail, FileInfo, } from './types.js';
|
|
6
|
+
export { Accordion } from './accordion.js';
|
|
7
|
+
export { ActivityGroup } from './activity-group.js';
|
|
8
|
+
export { Alert } from './alert.js';
|
|
9
|
+
export { Autocomplete, type AutocompleteRef } from './autocomplete.js';
|
|
10
|
+
export { Avatar } from './avatar.js';
|
|
11
|
+
export { Backdrop } from './backdrop.js';
|
|
12
|
+
export { Badge } from './badge.js';
|
|
13
|
+
export { Breadcrumb } from './breadcrumb.js';
|
|
14
|
+
export { Button } from './button.js';
|
|
15
|
+
export { Card } from './card.js';
|
|
16
|
+
export { Carousel, type CarouselRef } from './carousel.js';
|
|
17
|
+
export { ChatInput, type ChatInputRef } from './chat-input.js';
|
|
18
|
+
export { Checkbox, type CheckboxRef } from './checkbox.js';
|
|
19
|
+
export { CodeBlock } from './code-block.js';
|
|
20
|
+
export { Collapsible, type CollapsibleRef } from './collapsible.js';
|
|
21
|
+
export { DatePicker, type DatePickerRef } from './date-picker.js';
|
|
22
|
+
export { Dialog, type DialogRef } from './dialog.js';
|
|
23
|
+
export { Drawer, type DrawerRef } from './drawer.js';
|
|
24
|
+
export { Fab } from './fab.js';
|
|
25
|
+
export { FileUpload } from './file-upload.js';
|
|
26
|
+
export { Listbox } from './listbox.js';
|
|
27
|
+
export { Menu, type MenuRef } from './menu.js';
|
|
28
|
+
export { MessageBubble } from './message-bubble.js';
|
|
29
|
+
export { MessageGroup } from './message-group.js';
|
|
30
|
+
export { MessagePart } from './message-part.js';
|
|
31
|
+
export { Pagination } from './pagination.js';
|
|
32
|
+
export { Popover, type PopoverRef } from './popover.js';
|
|
33
|
+
export { ProfileMenu, type ProfileMenuRef } from './profile-menu.js';
|
|
34
|
+
export { Progress } from './progress.js';
|
|
35
|
+
export { RadioGroup } from './radio-group.js';
|
|
36
|
+
export { Scrollbar } from './scrollbar.js';
|
|
37
|
+
export { SearchBar, type SearchBarRef } from './search-bar.js';
|
|
38
|
+
export { Select, type SelectRef } from './select.js';
|
|
39
|
+
export { Sidebar, type SidebarRef } from './sidebar.js';
|
|
40
|
+
export { Skeleton } from './skeleton.js';
|
|
41
|
+
export { Slider, type SliderRef } from './slider.js';
|
|
42
|
+
export { SpeedDial, type SpeedDialRef } from './speed-dial.js';
|
|
43
|
+
export { Spinner } from './spinner.js';
|
|
44
|
+
export { SplitButton, type SplitButtonRef } from './split-button.js';
|
|
45
|
+
export { Stepper } from './stepper.js';
|
|
46
|
+
export { Switch, type SwitchRef } from './switch.js';
|
|
47
|
+
export { Table } from './table.js';
|
|
48
|
+
export { Tabs, type TabsRef } from './tabs.js';
|
|
49
|
+
export { Text } from './text.js';
|
|
50
|
+
export { TextInput, type TextInputRef } from './text-input.js';
|
|
51
|
+
export { Thinking } from './thinking.js';
|
|
52
|
+
export { Toast, type ToastRef } from './toast.js';
|
|
53
|
+
export { ToggleGroup } from './toggle-group.js';
|
|
54
|
+
export { Tooltip } from './tooltip.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
|
|
2
|
+
// Consumers must call `init()` from @colletdev/core before using these wrappers.
|
|
3
|
+
import '@colletdev/core';
|
|
4
|
+
// Re-export init and types from core
|
|
5
|
+
export { init, componentNames } from '@colletdev/core';
|
|
6
|
+
export { Accordion } from './accordion.js';
|
|
7
|
+
export { ActivityGroup } from './activity-group.js';
|
|
8
|
+
export { Alert } from './alert.js';
|
|
9
|
+
export { Autocomplete } from './autocomplete.js';
|
|
10
|
+
export { Avatar } from './avatar.js';
|
|
11
|
+
export { Backdrop } from './backdrop.js';
|
|
12
|
+
export { Badge } from './badge.js';
|
|
13
|
+
export { Breadcrumb } from './breadcrumb.js';
|
|
14
|
+
export { Button } from './button.js';
|
|
15
|
+
export { Card } from './card.js';
|
|
16
|
+
export { Carousel } from './carousel.js';
|
|
17
|
+
export { ChatInput } from './chat-input.js';
|
|
18
|
+
export { Checkbox } from './checkbox.js';
|
|
19
|
+
export { CodeBlock } from './code-block.js';
|
|
20
|
+
export { Collapsible } from './collapsible.js';
|
|
21
|
+
export { DatePicker } from './date-picker.js';
|
|
22
|
+
export { Dialog } from './dialog.js';
|
|
23
|
+
export { Drawer } from './drawer.js';
|
|
24
|
+
export { Fab } from './fab.js';
|
|
25
|
+
export { FileUpload } from './file-upload.js';
|
|
26
|
+
export { Listbox } from './listbox.js';
|
|
27
|
+
export { Menu } from './menu.js';
|
|
28
|
+
export { MessageBubble } from './message-bubble.js';
|
|
29
|
+
export { MessageGroup } from './message-group.js';
|
|
30
|
+
export { MessagePart } from './message-part.js';
|
|
31
|
+
export { Pagination } from './pagination.js';
|
|
32
|
+
export { Popover } from './popover.js';
|
|
33
|
+
export { ProfileMenu } from './profile-menu.js';
|
|
34
|
+
export { Progress } from './progress.js';
|
|
35
|
+
export { RadioGroup } from './radio-group.js';
|
|
36
|
+
export { Scrollbar } from './scrollbar.js';
|
|
37
|
+
export { SearchBar } from './search-bar.js';
|
|
38
|
+
export { Select } from './select.js';
|
|
39
|
+
export { Sidebar } from './sidebar.js';
|
|
40
|
+
export { Skeleton } from './skeleton.js';
|
|
41
|
+
export { Slider } from './slider.js';
|
|
42
|
+
export { SpeedDial } from './speed-dial.js';
|
|
43
|
+
export { Spinner } from './spinner.js';
|
|
44
|
+
export { SplitButton } from './split-button.js';
|
|
45
|
+
export { Stepper } from './stepper.js';
|
|
46
|
+
export { Switch } from './switch.js';
|
|
47
|
+
export { Table } from './table.js';
|
|
48
|
+
export { Tabs } from './tabs.js';
|
|
49
|
+
export { Text } from './text.js';
|
|
50
|
+
export { TextInput } from './text-input.js';
|
|
51
|
+
export { Thinking } from './thinking.js';
|
|
52
|
+
export { Toast } from './toast.js';
|
|
53
|
+
export { ToggleGroup } from './toggle-group.js';
|
|
54
|
+
export { Tooltip } from './tooltip.js';
|