@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.
Files changed (108) hide show
  1. package/README.md +64 -0
  2. package/dist/accordion.d.ts +68 -0
  3. package/dist/accordion.js +68 -0
  4. package/dist/activity-group.d.ts +56 -0
  5. package/dist/activity-group.js +50 -0
  6. package/dist/alert.d.ts +94 -0
  7. package/dist/alert.js +76 -0
  8. package/dist/autocomplete.d.ts +161 -0
  9. package/dist/autocomplete.js +132 -0
  10. package/dist/avatar.d.ts +50 -0
  11. package/dist/avatar.js +47 -0
  12. package/dist/backdrop.d.ts +25 -0
  13. package/dist/backdrop.js +35 -0
  14. package/dist/badge.d.ts +74 -0
  15. package/dist/badge.js +59 -0
  16. package/dist/breadcrumb.d.ts +49 -0
  17. package/dist/breadcrumb.js +53 -0
  18. package/dist/button.d.ts +92 -0
  19. package/dist/button.js +68 -0
  20. package/dist/card.d.ts +60 -0
  21. package/dist/card.js +58 -0
  22. package/dist/carousel.d.ts +97 -0
  23. package/dist/carousel.js +77 -0
  24. package/dist/chat-input.d.ts +99 -0
  25. package/dist/chat-input.js +79 -0
  26. package/dist/checkbox.d.ts +93 -0
  27. package/dist/checkbox.js +75 -0
  28. package/dist/code-block.d.ts +77 -0
  29. package/dist/code-block.js +59 -0
  30. package/dist/collapsible.d.ts +73 -0
  31. package/dist/collapsible.js +62 -0
  32. package/dist/date-picker.d.ts +145 -0
  33. package/dist/date-picker.js +111 -0
  34. package/dist/dialog.d.ts +61 -0
  35. package/dist/dialog.js +63 -0
  36. package/dist/drawer.d.ts +61 -0
  37. package/dist/drawer.js +63 -0
  38. package/dist/fab.d.ts +81 -0
  39. package/dist/fab.js +62 -0
  40. package/dist/file-upload.d.ts +104 -0
  41. package/dist/file-upload.js +74 -0
  42. package/dist/index.d.ts +54 -0
  43. package/dist/index.js +54 -0
  44. package/dist/label.d.ts +66 -0
  45. package/dist/label.js +48 -0
  46. package/dist/listbox.d.ts +65 -0
  47. package/dist/listbox.js +77 -0
  48. package/dist/menu.d.ts +83 -0
  49. package/dist/menu.js +78 -0
  50. package/dist/message-bubble.d.ts +74 -0
  51. package/dist/message-bubble.js +67 -0
  52. package/dist/message-group.d.ts +51 -0
  53. package/dist/message-group.js +59 -0
  54. package/dist/message-part.d.ts +3 -0
  55. package/dist/message-part.js +25 -0
  56. package/dist/pagination.d.ts +81 -0
  57. package/dist/pagination.js +59 -0
  58. package/dist/popover.d.ts +104 -0
  59. package/dist/popover.js +92 -0
  60. package/dist/profile-menu.d.ts +77 -0
  61. package/dist/profile-menu.js +72 -0
  62. package/dist/progress.d.ts +50 -0
  63. package/dist/progress.js +48 -0
  64. package/dist/radio-group.d.ts +92 -0
  65. package/dist/radio-group.js +84 -0
  66. package/dist/scrollbar.d.ts +48 -0
  67. package/dist/scrollbar.js +55 -0
  68. package/dist/search-bar.d.ts +127 -0
  69. package/dist/search-bar.js +105 -0
  70. package/dist/select.d.ts +124 -0
  71. package/dist/select.js +114 -0
  72. package/dist/separator.d.ts +51 -0
  73. package/dist/separator.js +42 -0
  74. package/dist/sidebar.d.ts +69 -0
  75. package/dist/sidebar.js +68 -0
  76. package/dist/skeleton.d.ts +42 -0
  77. package/dist/skeleton.js +44 -0
  78. package/dist/slider.d.ts +133 -0
  79. package/dist/slider.js +98 -0
  80. package/dist/speed-dial.d.ts +103 -0
  81. package/dist/speed-dial.js +79 -0
  82. package/dist/spinner.d.ts +30 -0
  83. package/dist/spinner.js +38 -0
  84. package/dist/split-button.d.ts +101 -0
  85. package/dist/split-button.js +77 -0
  86. package/dist/stepper.d.ts +67 -0
  87. package/dist/stepper.js +62 -0
  88. package/dist/switch.d.ts +100 -0
  89. package/dist/switch.js +75 -0
  90. package/dist/table.d.ts +135 -0
  91. package/dist/table.js +147 -0
  92. package/dist/tabs.d.ts +65 -0
  93. package/dist/tabs.js +67 -0
  94. package/dist/text-input.d.ts +193 -0
  95. package/dist/text-input.js +134 -0
  96. package/dist/text.d.ts +99 -0
  97. package/dist/text.js +88 -0
  98. package/dist/thinking.d.ts +42 -0
  99. package/dist/thinking.js +44 -0
  100. package/dist/toast.d.ts +86 -0
  101. package/dist/toast.js +72 -0
  102. package/dist/toggle-group.d.ts +83 -0
  103. package/dist/toggle-group.js +77 -0
  104. package/dist/tooltip.d.ts +52 -0
  105. package/dist/tooltip.js +50 -0
  106. package/dist/types.d.ts +256 -0
  107. package/dist/types.js +4 -0
  108. package/package.json +44 -0
@@ -0,0 +1,25 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-message-part>
3
+ import { defineComponent, ref, h, onMounted } from 'vue';
4
+ export const MessagePart = defineComponent({
5
+ name: 'MessagePart',
6
+ props: {},
7
+ emits: {},
8
+ setup(props, { emit, slots, expose }) {
9
+ const el = ref(null);
10
+ const listeners = [];
11
+ onMounted(() => {
12
+ if (!el.value)
13
+ return;
14
+ // Event listeners
15
+ });
16
+ expose({
17
+ /** The underlying Custom Element. */
18
+ el,
19
+ });
20
+ return () => {
21
+ const attrs = {};
22
+ return h('cx-message-part', { ref: el, ...attrs });
23
+ };
24
+ },
25
+ });
@@ -0,0 +1,81 @@
1
+ import { type PropType } from 'vue';
2
+ export declare const Pagination: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ id: {
4
+ type: StringConstructor;
5
+ };
6
+ currentPage: {
7
+ type: NumberConstructor;
8
+ required: true;
9
+ };
10
+ pageSize: {
11
+ type: NumberConstructor;
12
+ required: true;
13
+ };
14
+ totalItems: {
15
+ type: NumberConstructor;
16
+ required: true;
17
+ };
18
+ label: {
19
+ type: StringConstructor;
20
+ };
21
+ size: {
22
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
23
+ };
24
+ showInfo: {
25
+ type: BooleanConstructor;
26
+ };
27
+ showPrevNext: {
28
+ type: BooleanConstructor;
29
+ };
30
+ prevLabel: {
31
+ type: StringConstructor;
32
+ };
33
+ nextLabel: {
34
+ type: StringConstructor;
35
+ };
36
+ pageSizeOptions: {
37
+ type: StringConstructor;
38
+ };
39
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
+ [key: string]: any;
41
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ id: {
43
+ type: StringConstructor;
44
+ };
45
+ currentPage: {
46
+ type: NumberConstructor;
47
+ required: true;
48
+ };
49
+ pageSize: {
50
+ type: NumberConstructor;
51
+ required: true;
52
+ };
53
+ totalItems: {
54
+ type: NumberConstructor;
55
+ required: true;
56
+ };
57
+ label: {
58
+ type: StringConstructor;
59
+ };
60
+ size: {
61
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
62
+ };
63
+ showInfo: {
64
+ type: BooleanConstructor;
65
+ };
66
+ showPrevNext: {
67
+ type: BooleanConstructor;
68
+ };
69
+ prevLabel: {
70
+ type: StringConstructor;
71
+ };
72
+ nextLabel: {
73
+ type: StringConstructor;
74
+ };
75
+ pageSizeOptions: {
76
+ type: StringConstructor;
77
+ };
78
+ }>> & Readonly<{}>, {
79
+ showInfo: boolean;
80
+ showPrevNext: boolean;
81
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,59 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-pagination>
3
+ import { defineComponent, ref, h, onMounted } from 'vue';
4
+ export const Pagination = defineComponent({
5
+ name: 'Pagination',
6
+ props: {
7
+ id: { type: String },
8
+ currentPage: { type: Number, required: true },
9
+ pageSize: { type: Number, required: true },
10
+ totalItems: { type: Number, required: true },
11
+ label: { type: String },
12
+ size: { type: String },
13
+ showInfo: { type: Boolean },
14
+ showPrevNext: { type: Boolean },
15
+ prevLabel: { type: String },
16
+ nextLabel: { type: String },
17
+ pageSizeOptions: { type: String },
18
+ },
19
+ emits: {},
20
+ setup(props, { emit, slots, expose }) {
21
+ const el = ref(null);
22
+ const listeners = [];
23
+ onMounted(() => {
24
+ if (!el.value)
25
+ return;
26
+ // Event listeners
27
+ });
28
+ expose({
29
+ /** The underlying Custom Element. */
30
+ el,
31
+ });
32
+ return () => {
33
+ const attrs = {};
34
+ if (props.id != null)
35
+ attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
36
+ if (props.currentPage != null)
37
+ attrs['current-page'] = typeof props.currentPage === 'object' ? JSON.stringify(props.currentPage) : String(props.currentPage);
38
+ if (props.pageSize != null)
39
+ attrs['page-size'] = typeof props.pageSize === 'object' ? JSON.stringify(props.pageSize) : String(props.pageSize);
40
+ if (props.totalItems != null)
41
+ attrs['total-items'] = typeof props.totalItems === 'object' ? JSON.stringify(props.totalItems) : String(props.totalItems);
42
+ if (props.label != null)
43
+ attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
44
+ if (props.size != null)
45
+ attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
46
+ if (props.showInfo)
47
+ attrs['show-info'] = '';
48
+ if (props.showPrevNext)
49
+ attrs['show-prev-next'] = '';
50
+ if (props.prevLabel != null)
51
+ attrs['prev-label'] = typeof props.prevLabel === 'object' ? JSON.stringify(props.prevLabel) : String(props.prevLabel);
52
+ if (props.nextLabel != null)
53
+ attrs['next-label'] = typeof props.nextLabel === 'object' ? JSON.stringify(props.nextLabel) : String(props.nextLabel);
54
+ if (props.pageSizeOptions != null)
55
+ attrs['page-size-options'] = typeof props.pageSizeOptions === 'object' ? JSON.stringify(props.pageSizeOptions) : String(props.pageSizeOptions);
56
+ return h('cx-pagination', { ref: el, ...attrs });
57
+ };
58
+ },
59
+ });
@@ -0,0 +1,104 @@
1
+ import { type PropType } from 'vue';
2
+ export interface PopoverRef {
3
+ /** Opens the popover panel. */
4
+ open(): void;
5
+ /** Closes the popover panel. */
6
+ close(): void;
7
+ /** The underlying Custom Element. */
8
+ el: HTMLElement | null;
9
+ }
10
+ export declare const Popover: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
+ id: {
12
+ type: StringConstructor;
13
+ };
14
+ triggerLabel: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ title: {
19
+ type: StringConstructor;
20
+ };
21
+ description: {
22
+ type: StringConstructor;
23
+ };
24
+ width: {
25
+ type: PropType<"sm" | "md" | "lg" | "xl" | "auto">;
26
+ };
27
+ placement: {
28
+ type: PropType<"top" | "bottom">;
29
+ };
30
+ align: {
31
+ type: PropType<"start" | "center" | "end">;
32
+ };
33
+ arrow: {
34
+ type: BooleanConstructor;
35
+ };
36
+ closeButton: {
37
+ type: BooleanConstructor;
38
+ };
39
+ variant: {
40
+ type: PropType<"outline" | "filled" | "ghost">;
41
+ };
42
+ shape: {
43
+ type: PropType<"sharp" | "rounded" | "pill">;
44
+ };
45
+ size: {
46
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
47
+ };
48
+ icon: {
49
+ type: StringConstructor;
50
+ };
51
+ disabled: {
52
+ type: BooleanConstructor;
53
+ };
54
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
57
+ id: {
58
+ type: StringConstructor;
59
+ };
60
+ triggerLabel: {
61
+ type: StringConstructor;
62
+ required: true;
63
+ };
64
+ title: {
65
+ type: StringConstructor;
66
+ };
67
+ description: {
68
+ type: StringConstructor;
69
+ };
70
+ width: {
71
+ type: PropType<"sm" | "md" | "lg" | "xl" | "auto">;
72
+ };
73
+ placement: {
74
+ type: PropType<"top" | "bottom">;
75
+ };
76
+ align: {
77
+ type: PropType<"start" | "center" | "end">;
78
+ };
79
+ arrow: {
80
+ type: BooleanConstructor;
81
+ };
82
+ closeButton: {
83
+ type: BooleanConstructor;
84
+ };
85
+ variant: {
86
+ type: PropType<"outline" | "filled" | "ghost">;
87
+ };
88
+ shape: {
89
+ type: PropType<"sharp" | "rounded" | "pill">;
90
+ };
91
+ size: {
92
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
93
+ };
94
+ icon: {
95
+ type: StringConstructor;
96
+ };
97
+ disabled: {
98
+ type: BooleanConstructor;
99
+ };
100
+ }>> & Readonly<{}>, {
101
+ disabled: boolean;
102
+ closeButton: boolean;
103
+ arrow: boolean;
104
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,92 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-popover>
3
+ import { defineComponent, ref, h, onMounted, watch } from 'vue';
4
+ export const Popover = defineComponent({
5
+ name: 'Popover',
6
+ props: {
7
+ id: { type: String },
8
+ triggerLabel: { type: String, required: true },
9
+ title: { type: String },
10
+ description: { type: String },
11
+ width: { type: String },
12
+ placement: { type: String },
13
+ align: { type: String },
14
+ arrow: { type: Boolean },
15
+ closeButton: { type: Boolean },
16
+ variant: { type: String },
17
+ shape: { type: String },
18
+ size: { type: String },
19
+ icon: { type: String },
20
+ disabled: { type: Boolean },
21
+ },
22
+ emits: {},
23
+ setup(props, { emit, slots, expose }) {
24
+ const el = ref(null);
25
+ const listeners = [];
26
+ onMounted(() => {
27
+ if (!el.value)
28
+ return;
29
+ watch(() => props.title, (val) => {
30
+ if (!el.value)
31
+ return;
32
+ if (val != null)
33
+ el.value.setAttribute('title', String(val));
34
+ else
35
+ el.value.removeAttribute('title');
36
+ }, { immediate: true });
37
+ watch(() => props.width, (val) => {
38
+ if (!el.value)
39
+ return;
40
+ if (val != null)
41
+ el.value.setAttribute('width', String(val));
42
+ else
43
+ el.value.removeAttribute('width');
44
+ }, { immediate: true });
45
+ watch(() => props.align, (val) => {
46
+ if (!el.value)
47
+ return;
48
+ if (val != null)
49
+ el.value.setAttribute('align', String(val));
50
+ else
51
+ el.value.removeAttribute('align');
52
+ }, { immediate: true });
53
+ // Event listeners
54
+ });
55
+ expose({
56
+ /** Opens the popover panel. */
57
+ open() { el.value?.open(); },
58
+ /** Closes the popover panel. */
59
+ close() { el.value?.close(); },
60
+ /** The underlying Custom Element. */
61
+ el,
62
+ });
63
+ return () => {
64
+ const attrs = {};
65
+ if (props.id != null)
66
+ attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
67
+ if (props.triggerLabel != null)
68
+ attrs['trigger-label'] = typeof props.triggerLabel === 'object' ? JSON.stringify(props.triggerLabel) : String(props.triggerLabel);
69
+ if (props.description != null)
70
+ attrs['description'] = typeof props.description === 'object' ? JSON.stringify(props.description) : String(props.description);
71
+ if (props.placement != null)
72
+ attrs['placement'] = typeof props.placement === 'object' ? JSON.stringify(props.placement) : String(props.placement);
73
+ if (props.arrow)
74
+ attrs['arrow'] = '';
75
+ if (props.closeButton)
76
+ attrs['close-button'] = '';
77
+ if (props.variant != null)
78
+ attrs['variant'] = typeof props.variant === 'object' ? JSON.stringify(props.variant) : String(props.variant);
79
+ if (props.shape != null)
80
+ attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
81
+ if (props.size != null)
82
+ attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
83
+ if (props.icon != null)
84
+ attrs['icon'] = typeof props.icon === 'object' ? JSON.stringify(props.icon) : String(props.icon);
85
+ if (props.disabled)
86
+ attrs['disabled'] = '';
87
+ return h('cx-popover', { ref: el, ...attrs }, [
88
+ slots.default?.()
89
+ ]);
90
+ };
91
+ },
92
+ });
@@ -0,0 +1,77 @@
1
+ import { type PropType } from 'vue';
2
+ import type { MenuActionDetail, MenuEntry } from './types.js';
3
+ export interface ProfileMenuRef {
4
+ /** Opens the profile menu dropdown. */
5
+ open(): void;
6
+ /** Closes the profile menu dropdown. */
7
+ close(): void;
8
+ /** The underlying Custom Element. */
9
+ el: HTMLElement | null;
10
+ }
11
+ export declare const ProfileMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ id: {
13
+ type: StringConstructor;
14
+ };
15
+ label: {
16
+ type: StringConstructor;
17
+ required: true;
18
+ };
19
+ image: {
20
+ type: StringConstructor;
21
+ };
22
+ initials: {
23
+ type: StringConstructor;
24
+ };
25
+ shape: {
26
+ type: PropType<"circle" | "rounded">;
27
+ };
28
+ size: {
29
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
30
+ };
31
+ width: {
32
+ type: PropType<"auto" | "sm" | "md" | "lg">;
33
+ };
34
+ entries: {
35
+ type: PropType<MenuEntry[] | string>;
36
+ };
37
+ disabled: {
38
+ type: BooleanConstructor;
39
+ };
40
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ 'cx-action': (event: CustomEvent<MenuActionDetail>) => true;
44
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ id: {
46
+ type: StringConstructor;
47
+ };
48
+ label: {
49
+ type: StringConstructor;
50
+ required: true;
51
+ };
52
+ image: {
53
+ type: StringConstructor;
54
+ };
55
+ initials: {
56
+ type: StringConstructor;
57
+ };
58
+ shape: {
59
+ type: PropType<"circle" | "rounded">;
60
+ };
61
+ size: {
62
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
63
+ };
64
+ width: {
65
+ type: PropType<"auto" | "sm" | "md" | "lg">;
66
+ };
67
+ entries: {
68
+ type: PropType<MenuEntry[] | string>;
69
+ };
70
+ disabled: {
71
+ type: BooleanConstructor;
72
+ };
73
+ }>> & Readonly<{
74
+ "onCx-action"?: ((event: CustomEvent<MenuActionDetail>) => any) | undefined;
75
+ }>, {
76
+ disabled: boolean;
77
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,72 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-profile-menu>
3
+ import { defineComponent, ref, h, onMounted, watch } from 'vue';
4
+ export const ProfileMenu = defineComponent({
5
+ name: 'ProfileMenu',
6
+ props: {
7
+ id: { type: String },
8
+ label: { type: String, required: true },
9
+ image: { type: String },
10
+ initials: { type: String },
11
+ shape: { type: String },
12
+ size: { type: String },
13
+ width: { type: String },
14
+ entries: { type: [Array, Object, String] },
15
+ disabled: { type: Boolean },
16
+ },
17
+ emits: {
18
+ 'cx-action': (event) => true,
19
+ },
20
+ setup(props, { emit, slots, expose }) {
21
+ const el = ref(null);
22
+ const listeners = [];
23
+ onMounted(() => {
24
+ if (!el.value)
25
+ return;
26
+ watch(() => props.width, (val) => {
27
+ if (!el.value)
28
+ return;
29
+ if (val != null)
30
+ el.value.setAttribute('width', String(val));
31
+ else
32
+ el.value.removeAttribute('width');
33
+ }, { immediate: true });
34
+ watch(() => props.entries, (val) => {
35
+ if (!el.value)
36
+ return;
37
+ if (val != null)
38
+ el.value.setAttribute('entries', typeof val === 'object' ? JSON.stringify(val) : String(val));
39
+ else
40
+ el.value.removeAttribute('entries');
41
+ }, { immediate: true });
42
+ // Event listeners
43
+ el.value.addEventListener('cx-action', (ev) => emit('cx-action', ev));
44
+ });
45
+ expose({
46
+ /** Opens the profile menu dropdown. */
47
+ open() { el.value?.open(); },
48
+ /** Closes the profile menu dropdown. */
49
+ close() { el.value?.close(); },
50
+ /** The underlying Custom Element. */
51
+ el,
52
+ });
53
+ return () => {
54
+ const attrs = {};
55
+ if (props.id != null)
56
+ attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
57
+ if (props.label != null)
58
+ attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
59
+ if (props.image != null)
60
+ attrs['image'] = typeof props.image === 'object' ? JSON.stringify(props.image) : String(props.image);
61
+ if (props.initials != null)
62
+ attrs['initials'] = typeof props.initials === 'object' ? JSON.stringify(props.initials) : String(props.initials);
63
+ if (props.shape != null)
64
+ attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
65
+ if (props.size != null)
66
+ attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
67
+ if (props.disabled)
68
+ attrs['disabled'] = '';
69
+ return h('cx-profile-menu', { ref: el, ...attrs });
70
+ };
71
+ },
72
+ });
@@ -0,0 +1,50 @@
1
+ import { type PropType } from 'vue';
2
+ export declare const Progress: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ id: {
4
+ type: StringConstructor;
5
+ };
6
+ label: {
7
+ type: StringConstructor;
8
+ };
9
+ /** Percentage 0–100. No max prop — the component assumes max=100. */
10
+ value: {
11
+ type: NumberConstructor;
12
+ };
13
+ valueText: {
14
+ type: StringConstructor;
15
+ };
16
+ intent: {
17
+ type: PropType<"neutral" | "primary" | "info" | "success" | "warning" | "danger">;
18
+ };
19
+ shape: {
20
+ type: PropType<"rounded" | "sharp" | "pill">;
21
+ };
22
+ size: {
23
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
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
+ label: {
32
+ type: StringConstructor;
33
+ };
34
+ /** Percentage 0–100. No max prop — the component assumes max=100. */
35
+ value: {
36
+ type: NumberConstructor;
37
+ };
38
+ valueText: {
39
+ type: StringConstructor;
40
+ };
41
+ intent: {
42
+ type: PropType<"neutral" | "primary" | "info" | "success" | "warning" | "danger">;
43
+ };
44
+ shape: {
45
+ type: PropType<"rounded" | "sharp" | "pill">;
46
+ };
47
+ size: {
48
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
49
+ };
50
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,48 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-progress>
3
+ import { defineComponent, ref, h, onMounted } from 'vue';
4
+ export const Progress = defineComponent({
5
+ name: 'Progress',
6
+ props: {
7
+ id: { type: String },
8
+ label: { type: String },
9
+ /** Percentage 0–100. No max prop — the component assumes max=100. */
10
+ value: { type: Number },
11
+ valueText: { type: String },
12
+ intent: { type: String },
13
+ shape: { type: String },
14
+ size: { type: String },
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.label != null)
34
+ attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
35
+ if (props.value != null)
36
+ attrs['value'] = typeof props.value === 'object' ? JSON.stringify(props.value) : String(props.value);
37
+ if (props.valueText != null)
38
+ attrs['value-text'] = typeof props.valueText === 'object' ? JSON.stringify(props.valueText) : String(props.valueText);
39
+ if (props.intent != null)
40
+ attrs['intent'] = typeof props.intent === 'object' ? JSON.stringify(props.intent) : String(props.intent);
41
+ if (props.shape != null)
42
+ attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
43
+ if (props.size != null)
44
+ attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
45
+ return h('cx-progress', { ref: el, ...attrs });
46
+ };
47
+ },
48
+ });