my-admin-framework 0.0.5 → 0.0.7

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.
@@ -1,4 +1,12 @@
1
1
  type RequestHeaders = Record<string, string>;
2
+ type ModelOption = {
3
+ label: string;
4
+ value: string;
5
+ };
6
+ interface ModelsConfig {
7
+ endpoint?: string;
8
+ headers?: RequestHeaders;
9
+ }
2
10
  type __VLS_Props = {
3
11
  endpoint?: string;
4
12
  model?: string;
@@ -7,9 +15,60 @@ type __VLS_Props = {
7
15
  maxTokens?: number;
8
16
  headers?: RequestHeaders;
9
17
  fillContainer?: boolean;
18
+ models?: ModelOption[];
19
+ modelsConfig?: ModelsConfig;
20
+ emptyTitle?: string;
21
+ emptySubtitle?: string;
22
+ userLabel?: string;
23
+ assistantLabel?: string;
24
+ placeholder?: string;
25
+ suggestions?: string[];
26
+ showSidebar?: boolean;
27
+ showAttachButton?: boolean;
10
28
  };
11
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ declare function __VLS_template(): {
30
+ attrs: Partial<{}>;
31
+ slots: {
32
+ 'sidebar-header'?(_: {}): any;
33
+ header?(_: {}): any;
34
+ 'header-actions'?(_: {}): any;
35
+ empty?(_: {}): any;
36
+ suggestions?(_: {}): any;
37
+ };
38
+ refs: {
39
+ messagesContainer: HTMLDivElement;
40
+ messageInput: HTMLTextAreaElement;
41
+ };
42
+ rootEl: HTMLDivElement;
43
+ };
44
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
45
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
46
+ error: (error: Error) => any;
47
+ send: (message: string) => any;
48
+ receive: (response: string) => any;
49
+ "session-change": (sessionId: string) => any;
50
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
51
+ onError?: ((error: Error) => any) | undefined;
52
+ onSend?: ((message: string) => any) | undefined;
53
+ onReceive?: ((response: string) => any) | undefined;
54
+ "onSession-change"?: ((sessionId: string) => any) | undefined;
55
+ }>, {
56
+ placeholder: string;
57
+ emptyTitle: string;
58
+ emptySubtitle: string;
59
+ userLabel: string;
60
+ assistantLabel: string;
61
+ suggestions: string[];
62
+ showSidebar: boolean;
63
+ showAttachButton: boolean;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
65
  messagesContainer: HTMLDivElement;
13
66
  messageInput: HTMLTextAreaElement;
14
67
  }, HTMLDivElement>;
68
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
69
  export default _default;
70
+ type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };
@@ -1,3 +1,15 @@
1
+ type __VLS_Props = {
2
+ /** Timeline direction: vertical or horizontal */
3
+ direction?: 'vertical' | 'horizontal';
4
+ /** Item alignment: alternate (left/right), left, right, or center */
5
+ alignment?: 'alternate' | 'left' | 'right' | 'center';
6
+ /** Show pending indicator on last item */
7
+ pending?: boolean;
8
+ /** Line color */
9
+ lineColor?: string;
10
+ /** Line width in pixels */
11
+ lineWidth?: number;
12
+ };
1
13
  declare function __VLS_template(): {
2
14
  attrs: Partial<{}>;
3
15
  slots: {
@@ -7,7 +19,12 @@ declare function __VLS_template(): {
7
19
  rootEl: HTMLDivElement;
8
20
  };
9
21
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ direction: "vertical" | "horizontal";
24
+ alignment: "alternate" | "left" | "right" | "center";
25
+ pending: boolean;
26
+ lineWidth: number;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
29
  export default _default;
13
30
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,19 +1,66 @@
1
+ import { Component } from 'vue';
1
2
  type __VLS_Props = {
3
+ /** Timestamp or date string */
2
4
  timestamp?: string;
5
+ /** Item title */
6
+ title?: string;
7
+ /** Item description/content */
8
+ description?: string;
9
+ /** Label shown next to the dot (e.g., year) */
10
+ label?: string;
11
+ /** Dot/marker color */
3
12
  color?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'gray';
13
+ /** Icon in the dot - can be string or component */
14
+ icon?: string | Component;
15
+ /** Use card-style with arrow */
16
+ cardStyle?: boolean;
17
+ /** Override position: left or right (for alternate mode) */
18
+ position?: 'left' | 'right' | 'auto';
19
+ /** Make item clickable */
20
+ clickable?: boolean;
21
+ /** Photo/image URL for detail view */
22
+ photo?: string;
23
+ /** Full body text for detail view */
24
+ body?: string;
25
+ /** Footer/citations for detail view */
26
+ footer?: string;
4
27
  };
5
28
  declare function __VLS_template(): {
6
29
  attrs: Partial<{}>;
7
30
  slots: {
8
31
  dot?(_: {}): any;
32
+ timestamp?(_: {}): any;
33
+ title?(_: {}): any;
9
34
  default?(_: {}): any;
35
+ footer?(_: {}): any;
10
36
  };
11
37
  refs: {};
12
38
  rootEl: HTMLDivElement;
13
39
  };
14
40
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
41
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
42
+ click: (data: {
43
+ timestamp?: string;
44
+ title?: string;
45
+ description?: string;
46
+ photo?: string;
47
+ body?: string;
48
+ footer?: string;
49
+ }) => any;
50
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
51
+ onClick?: ((data: {
52
+ timestamp?: string;
53
+ title?: string;
54
+ description?: string;
55
+ photo?: string;
56
+ body?: string;
57
+ footer?: string;
58
+ }) => any) | undefined;
59
+ }>, {
16
60
  color: "primary" | "success" | "warning" | "danger" | "info" | "gray";
61
+ position: "left" | "right" | "auto";
62
+ cardStyle: boolean;
63
+ clickable: boolean;
17
64
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
65
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
66
  export default _default;