vlite3 1.1.4 → 1.1.6

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 (85) hide show
  1. package/README.md +5 -0
  2. package/components/CategoryManager/CategoryManager.vue.js +1 -1
  3. package/components/Chart/BarChart.vue.d.ts +48 -0
  4. package/components/Chart/CircleChart.vue.d.ts +47 -0
  5. package/components/Chart/LineChart.vue.d.ts +55 -0
  6. package/components/Chart/PieChart.vue.d.ts +49 -0
  7. package/components/Chart/index.d.ts +5 -0
  8. package/components/Chart/types.d.ts +135 -0
  9. package/components/Chart/utils.d.ts +40 -0
  10. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  11. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  12. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  13. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  14. package/components/Comment/CommentEditor.vue.d.ts +41 -0
  15. package/components/Comment/CommentEditor.vue.js +221 -0
  16. package/components/Comment/CommentEditor.vue2.js +4 -0
  17. package/components/Comment/CommentItem.vue.d.ts +70 -0
  18. package/components/Comment/CommentItem.vue.js +7 -0
  19. package/components/Comment/CommentItem.vue2.js +322 -0
  20. package/components/Comment/CommentThread.vue.d.ts +64 -0
  21. package/components/Comment/CommentThread.vue.js +185 -0
  22. package/components/Comment/CommentThread.vue2.js +4 -0
  23. package/components/Comment/index.d.ts +4 -0
  24. package/components/Comment/types.d.ts +34 -0
  25. package/components/DataTable/DataTable.vue.d.ts +2 -4
  26. package/components/DataTable/DataTable.vue.js +175 -226
  27. package/components/DataTable/DataTableHeader.vue.d.ts +2 -0
  28. package/components/DataTable/DataTableHeader.vue.js +24 -23
  29. package/components/DataTable/DataTableRow.vue.d.ts +2 -0
  30. package/components/DataTable/DataTableRow.vue.js +32 -31
  31. package/components/DataTable/types.d.ts +2 -9
  32. package/components/Dropdown/Dropdown.vue.d.ts +2 -0
  33. package/components/Dropdown/Dropdown.vue.js +60 -58
  34. package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
  35. package/components/Dropdown/DropdownTrigger.vue.js +7 -6
  36. package/components/Empty/Empty.vue.js +7 -5
  37. package/components/Empty/index.d.ts +1 -1
  38. package/components/Empty/variants/Variant12.vue.d.ts +22 -0
  39. package/components/Empty/variants/Variant12.vue.js +35 -0
  40. package/components/Empty/variants/Variant12.vue2.js +4 -0
  41. package/components/Footer/Footer.vue.d.ts +3 -0
  42. package/components/Footer/Variant1.vue.d.ts +20 -0
  43. package/components/Footer/Variant2.vue.d.ts +20 -0
  44. package/components/Footer/Variant3.vue.d.ts +12 -0
  45. package/components/Footer/index.d.ts +2 -0
  46. package/components/Footer/types.d.ts +73 -0
  47. package/components/Form/CustomFields.vue.d.ts +2 -0
  48. package/components/Form/CustomFields.vue.js +2 -2
  49. package/components/Form/CustomFields.vue2.js +134 -131
  50. package/components/Form/FormField.vue.js +1 -1
  51. package/components/MultiSelect/MultiSelect.vue.d.ts +2 -0
  52. package/components/MultiSelect/MultiSelect.vue.js +95 -94
  53. package/components/NavbarCommandPalette.vue.js +1 -1
  54. package/components/NumberInput.vue.js +1 -1
  55. package/components/NumberInput.vue2.js +39 -38
  56. package/components/RichTextEditor/RichTextLinkPopover.vue.d.ts +26 -0
  57. package/components/RichTextEditor/RichTextReader.vue.d.ts +7 -0
  58. package/components/RichTextEditor/RichTextToolbar.vue.d.ts +24 -0
  59. package/components/RichTextEditor/composables/useRichTextImageUpload.d.ts +14 -0
  60. package/components/RichTextEditor/composables/useRichTextLinks.d.ts +32 -0
  61. package/components/RichTextEditor/index.d.ts +2 -0
  62. package/components/Screen/Screen.vue.js +45 -46
  63. package/components/Screen/ScreenFilter.vue.js +1 -1
  64. package/components/Screen/components/ScreenEmptyState.vue.js +1 -1
  65. package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
  66. package/components/SidebarMenu/SidebarMenu.vue.js +192 -91
  67. package/components/SidebarMenu/SidebarMenu.vue3.js +5 -0
  68. package/components/SidebarMenu/SidebarMenuItem.vue.js +170 -157
  69. package/components/SidebarMenu/types.d.ts +12 -3
  70. package/components/{DataTable/DataTableToolbar.vue.d.ts → Splitter/Splitter.vue.d.ts} +18 -15
  71. package/components/Splitter/Splitter.vue.js +64 -0
  72. package/components/Splitter/Splitter.vue2.js +4 -0
  73. package/components/Splitter/index.d.ts +1 -0
  74. package/components/StatusChip/status-map.js +34 -2
  75. package/components/index.d.ts +4 -0
  76. package/core/config.d.ts +18 -0
  77. package/index.d.ts +2 -0
  78. package/index.js +316 -307
  79. package/package.json +1 -1
  80. package/style.css +42 -6
  81. package/types/config.type.d.ts +2 -0
  82. package/components/DataTable/DataTableToolbar.vue.js +0 -60
  83. package/components/DataTable/DataTableToolbar.vue2.js +0 -4
  84. package/components/SidebarMenu/SidebarMenu.vue2.js +0 -4
  85. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
package/README.md CHANGED
@@ -406,6 +406,7 @@ Follow these rules strictly to ensure visual consistency and predictable styling
406
406
  - [x] **ThemeToggle**
407
407
  - [x] **Screen**
408
408
  - [x] **ChatInterface**
409
+ - [x] **CommentThread**
409
410
 
410
411
  ### Inputs & Forms
411
412
 
@@ -430,6 +431,7 @@ Follow these rules strictly to ensure visual consistency and predictable styling
430
431
  - [x] **CustomFields**
431
432
  - [x] **GoogleLogin**
432
433
  - [x] **PermissionEditor**
434
+ - [x] **RichTextEditor**
433
435
 
434
436
  ### Data Display
435
437
 
@@ -451,6 +453,8 @@ Follow these rules strictly to ensure visual consistency and predictable styling
451
453
  - [x] **Price**
452
454
  - [x] **Date**
453
455
  - [x] **Invoice**
456
+ - [x] **Footer**
457
+ - [x] **Charts**
454
458
 
455
459
  ### Feedback & Overlays
456
460
 
@@ -465,6 +469,7 @@ Follow these rules strictly to ensure visual consistency and predictable styling
465
469
  - [x] **Spinner**
466
470
  - [x] **CommandPalette**
467
471
  - [x] **SidePanel**
472
+ - [x] **Splitter**
468
473
 
469
474
  ### Utilities & Tools
470
475
 
@@ -16,7 +16,7 @@ import "v-datepicker-lite";
16
16
  import "v-datepicker-lite/style.css";
17
17
  import "@jaames/iro";
18
18
  import "@vueuse/core";
19
- /* empty css */
19
+ /* empty css */
20
20
  import me from "../IconPicker.vue.js";
21
21
  /* empty css */
22
22
  /* empty css */
@@ -0,0 +1,48 @@
1
+ import { ChartDataPoint, ChartDataset } from './types';
2
+ export interface BarChartProps {
3
+ data?: ChartDataPoint[];
4
+ datasets?: ChartDataset[];
5
+ labels?: string[];
6
+ height?: number;
7
+ orientation?: 'vertical' | 'horizontal';
8
+ barRadius?: number;
9
+ showGrid?: boolean;
10
+ showLegend?: boolean;
11
+ showTooltip?: boolean;
12
+ showValues?: boolean;
13
+ colors?: string[];
14
+ animate?: boolean;
15
+ formatValue?: (v: number) => string;
16
+ /** Show the bottom X-axis border line */
17
+ showXAxis?: boolean;
18
+ /** Show the left Y-axis border line */
19
+ showYAxis?: boolean;
20
+ /** Show X-axis tick labels */
21
+ showXLabels?: boolean;
22
+ /** Show Y-axis tick labels */
23
+ showYLabels?: boolean;
24
+ /** Opacity of gridlines (0–1) */
25
+ gridOpacity?: number;
26
+ /** Opacity of axis border lines (0–1) */
27
+ axisOpacity?: number;
28
+ }
29
+ declare const _default: import('vue').DefineComponent<BarChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BarChartProps> & Readonly<{}>, {
30
+ animate: boolean;
31
+ height: number;
32
+ orientation: "vertical" | "horizontal";
33
+ colors: string[];
34
+ showLegend: boolean;
35
+ showTooltip: boolean;
36
+ showGrid: boolean;
37
+ showXAxis: boolean;
38
+ showYAxis: boolean;
39
+ showXLabels: boolean;
40
+ showYLabels: boolean;
41
+ gridOpacity: number;
42
+ axisOpacity: number;
43
+ barRadius: number;
44
+ showValues: boolean;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
46
+ containerRef: HTMLDivElement;
47
+ }, HTMLDivElement>;
48
+ export default _default;
@@ -0,0 +1,47 @@
1
+ export type StrokeLineCap = 'round' | 'square' | 'butt';
2
+ export type ChartColor = string;
3
+ export interface CircleChartProps {
4
+ value: number;
5
+ max?: number;
6
+ size?: number;
7
+ strokeWidth?: number;
8
+ color?: ChartColor;
9
+ gradient?: boolean;
10
+ label?: string;
11
+ sublabel?: string;
12
+ showValue?: boolean;
13
+ formatValue?: (v: number, pct: number) => string;
14
+ animate?: boolean;
15
+ trackColor?: string;
16
+ lineCap?: StrokeLineCap;
17
+ }
18
+ declare function __VLS_template(): {
19
+ attrs: Partial<{}>;
20
+ slots: {
21
+ center?(_: {
22
+ value: number;
23
+ percentage: number;
24
+ displayValue: string;
25
+ }): any;
26
+ };
27
+ refs: {};
28
+ rootEl: HTMLDivElement;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<CircleChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleChartProps> & Readonly<{}>, {
32
+ animate: boolean;
33
+ color: ChartColor;
34
+ strokeWidth: number;
35
+ size: number;
36
+ gradient: boolean;
37
+ max: number;
38
+ showValue: boolean;
39
+ lineCap: StrokeLineCap;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,55 @@
1
+ import { ChartDataPoint, ChartDataset } from './types';
2
+ export interface LineChartProps {
3
+ data?: ChartDataPoint[];
4
+ datasets?: ChartDataset[];
5
+ labels?: string[];
6
+ height?: number;
7
+ smooth?: boolean;
8
+ fill?: boolean;
9
+ showDots?: boolean;
10
+ showGrid?: boolean;
11
+ showLegend?: boolean;
12
+ showTooltip?: boolean;
13
+ colors?: string[];
14
+ animate?: boolean;
15
+ xLabel?: string;
16
+ yLabel?: string;
17
+ formatValue?: (v: number) => string;
18
+ yMin?: number;
19
+ yMax?: number;
20
+ /** Show the bottom X-axis border line */
21
+ showXAxis?: boolean;
22
+ /** Show the left Y-axis border line */
23
+ showYAxis?: boolean;
24
+ /** Show X-axis tick labels */
25
+ showXLabels?: boolean;
26
+ /** Show Y-axis tick labels */
27
+ showYLabels?: boolean;
28
+ /** Opacity of gridlines (0–1) */
29
+ gridOpacity?: number;
30
+ /** Opacity of axis border lines (0–1) */
31
+ axisOpacity?: number;
32
+ /** Stroke width of the chart lines */
33
+ lineWidth?: number;
34
+ }
35
+ declare const _default: import('vue').DefineComponent<LineChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LineChartProps> & Readonly<{}>, {
36
+ fill: boolean;
37
+ animate: boolean;
38
+ height: number;
39
+ colors: string[];
40
+ smooth: boolean;
41
+ showLegend: boolean;
42
+ showTooltip: boolean;
43
+ showDots: boolean;
44
+ showGrid: boolean;
45
+ showXAxis: boolean;
46
+ showYAxis: boolean;
47
+ showXLabels: boolean;
48
+ showYLabels: boolean;
49
+ gridOpacity: number;
50
+ axisOpacity: number;
51
+ lineWidth: number;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
53
+ containerRef: HTMLDivElement;
54
+ }, HTMLDivElement>;
55
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { ChartDataPoint } from './types';
2
+ export type PieLabelMode = 'percent' | 'value' | 'label' | 'none';
3
+ export type LegendPosition = 'right' | 'bottom';
4
+ export interface PieChartProps {
5
+ data: ChartDataPoint[];
6
+ donut?: boolean;
7
+ innerRadius?: number;
8
+ size?: number;
9
+ startAngle?: number;
10
+ showLegend?: boolean;
11
+ legendPosition?: LegendPosition;
12
+ labelMode?: PieLabelMode;
13
+ colors?: string[];
14
+ animate?: boolean;
15
+ showTooltip?: boolean;
16
+ centerLabel?: string;
17
+ centerValue?: string;
18
+ }
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: {
22
+ center?(_: {
23
+ total: number;
24
+ data: ChartDataPoint[];
25
+ }): any;
26
+ };
27
+ refs: {};
28
+ rootEl: HTMLDivElement;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<PieChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PieChartProps> & Readonly<{}>, {
32
+ animate: boolean;
33
+ size: number;
34
+ colors: string[];
35
+ showLegend: boolean;
36
+ showTooltip: boolean;
37
+ donut: boolean;
38
+ innerRadius: number;
39
+ startAngle: number;
40
+ legendPosition: LegendPosition;
41
+ labelMode: PieLabelMode;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,5 @@
1
+ export { default as LineChart } from './LineChart.vue';
2
+ export { default as BarChart } from './BarChart.vue';
3
+ export { default as PieChart } from './PieChart.vue';
4
+ export { default as CircleChart } from './CircleChart.vue';
5
+ export type { ChartDataPoint, ChartDataset, LineChartProps, BarChartProps, PieChartProps, CircleChartProps, } from './types';
@@ -0,0 +1,135 @@
1
+ export type ChartColor = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'purple' | 'teal' | 'orange' | 'pink' | 'cyan' | string;
2
+ export interface ChartDataPoint {
3
+ label: string;
4
+ value: number;
5
+ color?: string;
6
+ [key: string]: any;
7
+ }
8
+ export interface ChartDataset {
9
+ label: string;
10
+ data: number[];
11
+ color?: string;
12
+ }
13
+ export interface LineChartProps {
14
+ /** Single-series data points */
15
+ data?: ChartDataPoint[];
16
+ /** Multi-series datasets (overrides data) */
17
+ datasets?: ChartDataset[];
18
+ /** X-axis labels when using datasets */
19
+ labels?: string[];
20
+ /** Chart height in px */
21
+ height?: number;
22
+ /** Smooth bezier vs straight lines */
23
+ smooth?: boolean;
24
+ /** Fill area under line */
25
+ fill?: boolean;
26
+ /** Show data point dots */
27
+ showDots?: boolean;
28
+ /** Show background gridlines */
29
+ showGrid?: boolean;
30
+ /** Show legend (multi-series) */
31
+ showLegend?: boolean;
32
+ /** Enable hover tooltip */
33
+ showTooltip?: boolean;
34
+ /** Custom color palette */
35
+ colors?: string[];
36
+ /** Entry animation */
37
+ animate?: boolean;
38
+ /** X-axis label */
39
+ xLabel?: string;
40
+ /** Y-axis label */
41
+ yLabel?: string;
42
+ /** Custom value formatter */
43
+ formatValue?: (v: number) => string;
44
+ /** Y-axis min override */
45
+ yMin?: number;
46
+ /** Y-axis max override */
47
+ yMax?: number;
48
+ }
49
+ export interface BarChartProps {
50
+ /** Single-series data points */
51
+ data?: ChartDataPoint[];
52
+ /** Multi-series datasets (overrides data) */
53
+ datasets?: ChartDataset[];
54
+ /** X-axis labels when using datasets */
55
+ labels?: string[];
56
+ /** Chart height in px */
57
+ height?: number;
58
+ /** Bar orientation */
59
+ orientation?: 'vertical' | 'horizontal';
60
+ /** Top-corner radius per bar */
61
+ barRadius?: number;
62
+ /** Show background gridlines */
63
+ showGrid?: boolean;
64
+ /** Show legend (multi-series) */
65
+ showLegend?: boolean;
66
+ /** Enable hover tooltip */
67
+ showTooltip?: boolean;
68
+ /** Show value label on each bar */
69
+ showValues?: boolean;
70
+ /** Custom color palette */
71
+ colors?: string[];
72
+ /** Entry animation */
73
+ animate?: boolean;
74
+ /** Custom value formatter */
75
+ formatValue?: (v: number) => string;
76
+ }
77
+ export type PieLabelMode = 'percent' | 'value' | 'label' | 'none';
78
+ export type LegendPosition = 'right' | 'bottom';
79
+ export interface PieChartProps {
80
+ /** Chart data */
81
+ data: ChartDataPoint[];
82
+ /** Render as donut (ring) */
83
+ donut?: boolean;
84
+ /** Inner cutout as % of radius (donut mode) */
85
+ innerRadius?: number;
86
+ /** Chart diameter in px */
87
+ size?: number;
88
+ /** Start angle in degrees */
89
+ startAngle?: number;
90
+ /** Show legend */
91
+ showLegend?: boolean;
92
+ /** Legend position */
93
+ legendPosition?: LegendPosition;
94
+ /** What to show on each slice */
95
+ labelMode?: PieLabelMode;
96
+ /** Custom color palette */
97
+ colors?: string[];
98
+ /** Entry animation */
99
+ animate?: boolean;
100
+ /** Enable hover tooltip */
101
+ showTooltip?: boolean;
102
+ /** Center text label (donut mode) */
103
+ centerLabel?: string;
104
+ /** Center value text (donut mode) */
105
+ centerValue?: string;
106
+ }
107
+ export type StrokeLineCap = 'round' | 'square' | 'butt';
108
+ export interface CircleChartProps {
109
+ /** Current value */
110
+ value: number;
111
+ /** Maximum value */
112
+ max?: number;
113
+ /** Diameter in px */
114
+ size?: number;
115
+ /** Ring stroke width */
116
+ strokeWidth?: number;
117
+ /** Color theme or hex */
118
+ color?: ChartColor;
119
+ /** Gradient stroke */
120
+ gradient?: boolean;
121
+ /** Label below the value */
122
+ label?: string;
123
+ /** Smaller sub-label */
124
+ sublabel?: string;
125
+ /** Show percentage in center */
126
+ showValue?: boolean;
127
+ /** Custom value display function */
128
+ formatValue?: (v: number, pct: number) => string;
129
+ /** Entry animation */
130
+ animate?: boolean;
131
+ /** Background track color (CSS color or empty) */
132
+ trackColor?: string;
133
+ /** Stroke cap style */
134
+ lineCap?: StrokeLineCap;
135
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Default chart color palette — resolves from CSS variables when possible.
3
+ * Produces vibrant, consistent colors that work in both light & dark modes.
4
+ */
5
+ export declare const CHART_COLORS: string[];
6
+ /** Fallback hex palette when CSS vars aren't available (e.g. canvas) */
7
+ export declare const CHART_COLORS_HEX: string[];
8
+ /** Resolve a semantic color name to a CSS variable */
9
+ export declare function resolveColor(color: string): string;
10
+ /** Get color by index from palette (cycles) */
11
+ export declare function getColor(colors: string[], index: number): string;
12
+ /** Format large numbers: 1200 -> 1.2k */
13
+ export declare function formatNumber(n: number): string;
14
+ /** Clamp a value between min and max */
15
+ export declare function clamp(n: number, min: number, max: number): number;
16
+ /** Linearly interpolate */
17
+ export declare function lerp(a: number, b: number, t: number): number;
18
+ /**
19
+ * Generate a smooth cubic bezier SVG path from a series of [x,y] points.
20
+ * Uses Catmull-Rom to bezier conversion for a natural curve.
21
+ */
22
+ export declare function smoothPath(points: [number, number][]): string;
23
+ /** Generate a straight-line SVG path from a series of [x,y] points */
24
+ export declare function linearPath(points: [number, number][]): string;
25
+ /**
26
+ * Build an SVG arc path for pie/donut slices.
27
+ * @param cx Center X
28
+ * @param cy Center Y
29
+ * @param r Outer radius
30
+ * @param startAngle Degrees
31
+ * @param endAngle Degrees
32
+ * @param innerR Inner radius (donut; 0 = filled pie)
33
+ */
34
+ export declare function arcPath(cx: number, cy: number, r: number, startAngle: number, endAngle: number, innerR?: number): string;
35
+ /** Nice Y-axis tick values for a given data range */
36
+ export declare function niceYTicks(min: number, max: number, count?: number): number[];
37
+ /** Ease-out cubic */
38
+ export declare function easeOutCubic(t: number): number;
39
+ /** Animate from 0→1 using rAF, calling onProgress each frame */
40
+ export declare function animateProgress(duration: number, onProgress: (t: number) => void, onDone?: () => void): () => void;
@@ -1,5 +1,5 @@
1
- import o from "./ColorIro.vue2.js";
2
- /* empty css */
1
+ import o from "./ColorIro.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -6,8 +6,8 @@ import O from "../Input.vue.js";
6
6
  import "../../core/config.js";
7
7
  /* empty css */
8
8
  import y from "../Button.vue.js";
9
- import E from "./ColorIro.vue2.js";
10
- /* empty css */
9
+ import E from "./ColorIro.vue.js";
10
+ /* empty css */
11
11
  import { useEyeDropper as P } from "@vueuse/core";
12
12
  const I = {
13
13
  key: 0,
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
4
4
  import { $t as E } from "../../utils/i18n.js";
5
5
  import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
6
6
  import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
7
- import ee from "./CommandPaletteItem.vue2.js";
7
+ import ee from "./CommandPaletteItem.vue.js";
8
8
  const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
9
9
  key: 0,
10
10
  class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
@@ -1,5 +1,5 @@
1
1
  import t from "./CommandPaletteItem.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-66b1ae06"]]);
5
5
  export {
@@ -0,0 +1,41 @@
1
+ import { ChatAttachment } from '../Chat';
2
+ import { CommentAuthor } from './types';
3
+ type __VLS_Props = {
4
+ /** Pre-fill the textarea (e.g. for editing) */
5
+ initialText?: string;
6
+ /**
7
+ * 'root' = main discussion input (with background and border)
8
+ * 'reply' = inline reply (indented, no big background, smaller avatar)
9
+ * 'edit' = inline edit (no avatar, shows editing header)
10
+ */
11
+ variant?: 'root' | 'reply' | 'edit';
12
+ placeholder?: string;
13
+ editingText?: string;
14
+ cancelEditText?: string;
15
+ cancelText?: string;
16
+ /** The currently logged in user to display their avatar */
17
+ currentUser?: CommentAuthor | null;
18
+ /** Controls visibility of the file attachment button */
19
+ allowFileUpload?: boolean;
20
+ /** Remote folder ID for uploaded files */
21
+ folderId?: string;
22
+ /** Max file size in bytes */
23
+ maxFileSize?: number;
24
+ /** Attempt to focus the input on mount */
25
+ autofocus?: boolean;
26
+ };
27
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
+ submit: (text: string, attachments?: ChatAttachment[]) => any;
29
+ cancel: () => any;
30
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
31
+ onSubmit?: (text: string, attachments?: ChatAttachment[]) => any;
32
+ onCancel?: () => any;
33
+ }>, {
34
+ variant: "root" | "reply" | "edit";
35
+ allowFileUpload: boolean;
36
+ initialText: string;
37
+ currentUser: CommentAuthor | null;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
39
+ textareaRef: HTMLTextAreaElement;
40
+ }, HTMLDivElement>;
41
+ export default _default;