@matechat/core 1.10.0 → 1.11.0-alpha.1

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 (115) hide show
  1. package/Attachment/Attachment.vue.d.ts +121 -0
  2. package/Attachment/attachment-types.d.ts +103 -0
  3. package/Attachment/drop-area.vue.d.ts +13 -0
  4. package/Attachment/index.css +1 -1
  5. package/Attachment/index.d.ts +2 -0
  6. package/Attachment/index.js +211 -311
  7. package/Attachment/uploader.d.ts +11 -0
  8. package/Attachment/use-upload.d.ts +8 -0
  9. package/Bubble/Bubble.vue.d.ts +75 -0
  10. package/Bubble/BubbleLoading.vue.d.ts +3 -0
  11. package/Bubble/bubble-constants.d.ts +4 -0
  12. package/Bubble/bubble-types.d.ts +38 -0
  13. package/Bubble/components/Avatar.vue.d.ts +57 -0
  14. package/Bubble/components/AvatarBodyIcon.vue.d.ts +24 -0
  15. package/Bubble/components/AvatarNoBodyIcon.vue.d.ts +24 -0
  16. package/Bubble/components/avatar-types.d.ts +25 -0
  17. package/Bubble/index.css +1 -1
  18. package/Bubble/index.d.ts +2 -0
  19. package/Bubble/index.js +11 -11
  20. package/FileList/FileIcon/CodeFile.vue.d.ts +10 -0
  21. package/FileList/FileIcon/CompressedFile.vue.d.ts +10 -0
  22. package/FileList/FileIcon/DefaultFileIcon.vue.d.ts +10 -0
  23. package/FileList/FileIcon/Document.vue.d.ts +10 -0
  24. package/FileList/FileIcon/DrawingBoard.vue.d.ts +10 -0
  25. package/FileList/FileIcon/EmailFile.vue.d.ts +10 -0
  26. package/FileList/FileIcon/Excel.vue.d.ts +10 -0
  27. package/FileList/FileIcon/FlowChart.vue.d.ts +10 -0
  28. package/FileList/FileIcon/FolderClosed.vue.d.ts +10 -0
  29. package/FileList/FileIcon/FolderOpen.vue.d.ts +10 -0
  30. package/FileList/FileIcon/Image.vue.d.ts +10 -0
  31. package/FileList/FileIcon/Markdown.vue.d.ts +10 -0
  32. package/FileList/FileIcon/Mind.vue.d.ts +10 -0
  33. package/FileList/FileIcon/Mp4.vue.d.ts +10 -0
  34. package/FileList/FileIcon/MultidimentionalTable.vue.d.ts +10 -0
  35. package/FileList/FileIcon/Page.vue.d.ts +10 -0
  36. package/FileList/FileIcon/Pdf.vue.d.ts +10 -0
  37. package/FileList/FileIcon/Ppt.vue.d.ts +10 -0
  38. package/FileList/FileIcon/Unknown.vue.d.ts +10 -0
  39. package/FileList/FileIcon/Wrong.vue.d.ts +10 -0
  40. package/FileList/FileList.vue.d.ts +36 -0
  41. package/FileList/fileList-types.d.ts +21 -0
  42. package/FileList/index.d.ts +2 -0
  43. package/FileList/index.js +220 -228
  44. package/Header/Header.vue.d.ts +47 -0
  45. package/Header/header-types.d.ts +14 -0
  46. package/Header/index.d.ts +2 -0
  47. package/Input/Input.vue.d.ts +165 -0
  48. package/Input/components/EditableBlock.vue.d.ts +101 -0
  49. package/Input/components/InputTag.vue.d.ts +30 -0
  50. package/Input/components/LoadingIcon.vue.d.ts +3 -0
  51. package/Input/components/SendIcon.vue.d.ts +3 -0
  52. package/Input/components/button.vue.d.ts +3 -0
  53. package/Input/components/textarea-utils.d.ts +17 -0
  54. package/Input/components/textarea.vue.d.ts +3 -0
  55. package/Input/components/use-textarea-autosize.d.ts +12 -0
  56. package/Input/components/util.d.ts +3 -0
  57. package/Input/index.css +1 -1
  58. package/Input/index.d.ts +2 -0
  59. package/Input/index.js +593 -165
  60. package/Input/input-types.d.ts +118 -0
  61. package/Introduction/Introduction.vue.d.ts +88 -0
  62. package/Introduction/index.css +1 -1
  63. package/Introduction/index.d.ts +2 -0
  64. package/Introduction/index.js +41 -32
  65. package/Introduction/introduction-types.d.ts +37 -0
  66. package/Layout/Aside.vue.d.ts +13 -0
  67. package/Layout/Content.vue.d.ts +13 -0
  68. package/Layout/Header.vue.d.ts +13 -0
  69. package/Layout/Layout.vue.d.ts +13 -0
  70. package/Layout/Sender.vue.d.ts +13 -0
  71. package/Layout/index.d.ts +6 -0
  72. package/List/List.vue.d.ts +98 -0
  73. package/List/const.d.ts +5 -0
  74. package/List/index.d.ts +3 -0
  75. package/List/list-types.d.ts +52 -0
  76. package/List/use-list.d.ts +13 -0
  77. package/Locale/i18n.d.ts +21 -0
  78. package/Locale/index.d.ts +7 -0
  79. package/Locale/index.js +33 -51
  80. package/Locale/lang/en-us.d.ts +34 -0
  81. package/Locale/lang/zh-cn.d.ts +34 -0
  82. package/MarkdownCard/CodeBlock.vue.d.ts +76 -0
  83. package/MarkdownCard/MDCardParser.d.ts +12 -0
  84. package/MarkdownCard/MDCardService.d.ts +14 -0
  85. package/MarkdownCard/MermaidService.d.ts +22 -0
  86. package/MarkdownCard/index.css +1 -1
  87. package/MarkdownCard/index.d.ts +2 -0
  88. package/MarkdownCard/index.js +159 -159
  89. package/MarkdownCard/mdCard.types.d.ts +88 -0
  90. package/MarkdownCard/mdCard.vue.d.ts +29 -0
  91. package/Mention/Mention.vue.d.ts +51 -0
  92. package/Mention/const.d.ts +4 -0
  93. package/Mention/index.d.ts +2 -0
  94. package/Mention/mention-types.d.ts +24 -0
  95. package/Mention/use-mention.d.ts +10 -0
  96. package/Prompt/Prompt.vue.d.ts +38 -0
  97. package/Prompt/PromptItem.vue.d.ts +11 -0
  98. package/Prompt/components/Icon.vue.d.ts +42 -0
  99. package/Prompt/components/icon-types.d.ts +18 -0
  100. package/Prompt/index.d.ts +2 -0
  101. package/Prompt/prompt-types.d.ts +33 -0
  102. package/Toolbar/Toolbar.vue.d.ts +68 -0
  103. package/Toolbar/icon/CopyIcon.vue.d.ts +42 -0
  104. package/Toolbar/icon/DeleteIcon.vue.d.ts +42 -0
  105. package/Toolbar/icon/DislikeIcon.vue.d.ts +46 -0
  106. package/Toolbar/icon/LikeIcon.vue.d.ts +46 -0
  107. package/Toolbar/icon/RefreshIcon.vue.d.ts +42 -0
  108. package/Toolbar/icon/ShareIcon.vue.d.ts +42 -0
  109. package/Toolbar/index.css +1 -0
  110. package/Toolbar/index.d.ts +9 -0
  111. package/Toolbar/index.js +520 -0
  112. package/Toolbar/toolbar.types.d.ts +60 -0
  113. package/index.d.ts +18 -6
  114. package/mate-chat.js +11 -2
  115. package/package.json +1 -1
@@ -0,0 +1,118 @@
1
+ import type { ExtractPropTypes, PropType, Ref } from "vue";
2
+ export declare enum DisplayType {
3
+ Simple = "simple",
4
+ Full = "full"
5
+ }
6
+ export declare enum InputVariant {
7
+ Bordered = "bordered",
8
+ BorderLess = "borderless"
9
+ }
10
+ export declare enum SendBtnVariant {
11
+ Simple = "simple",
12
+ Full = "full"
13
+ }
14
+ export declare enum SubmitShortKey {
15
+ Enter = "enter",
16
+ ShiftEnter = "shiftEnter"
17
+ }
18
+ export interface ThemeTagItem {
19
+ type: 'themeTag';
20
+ themeTagKey?: string;
21
+ themeTagText: string;
22
+ clearInput?: boolean;
23
+ popoverContent: string;
24
+ }
25
+ export interface TipTagOption {
26
+ tipTagKey?: string;
27
+ tipTagText: string;
28
+ clearInput?: boolean;
29
+ popoverContent: string;
30
+ }
31
+ export interface FormatTextItem {
32
+ type: 'text';
33
+ key: string;
34
+ content: string;
35
+ }
36
+ export interface FormatInputItem {
37
+ type: 'input';
38
+ key: string;
39
+ placeholder?: string;
40
+ content?: string;
41
+ }
42
+ export type FormatContentItem = FormatTextItem | FormatInputItem | ThemeTagItem;
43
+ export interface FormatContentOptions {
44
+ formatContent: FormatContentItem[];
45
+ }
46
+ export type TextareaAutoSize = {
47
+ minRows?: number;
48
+ maxRows?: number;
49
+ } | boolean;
50
+ export declare const DEFAULT_AUTOSIZE: {
51
+ minRows: number;
52
+ maxRows: number;
53
+ };
54
+ export declare const inputProps: {
55
+ value: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ formatContentOptions: {
60
+ type: PropType<FormatContentOptions>;
61
+ default: () => void;
62
+ };
63
+ placeholder: {
64
+ type: StringConstructor;
65
+ };
66
+ disabled: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ displayType: {
71
+ type: PropType<DisplayType>;
72
+ default: DisplayType;
73
+ };
74
+ variant: {
75
+ type: PropType<InputVariant>;
76
+ default: InputVariant;
77
+ };
78
+ sendBtnVariant: {
79
+ type: PropType<SendBtnVariant>;
80
+ default: SendBtnVariant;
81
+ };
82
+ loading: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ showCount: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ maxLength: {
91
+ type: NumberConstructor;
92
+ };
93
+ submitShortKey: {
94
+ type: PropType<SubmitShortKey | null>;
95
+ default: SubmitShortKey;
96
+ };
97
+ autofocus: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ autosize: {
102
+ type: PropType<TextareaAutoSize>;
103
+ default: boolean;
104
+ };
105
+ autoClear: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ };
110
+ export type InputProps = ExtractPropTypes<typeof inputProps>;
111
+ export interface InputContext {
112
+ inputValue: Ref<string>;
113
+ rootProps: InputProps;
114
+ rootEmits: (event: string, ...args: any[]) => void;
115
+ clearInputAfterSubmit: () => void;
116
+ }
117
+ export declare const inputEmits: string[];
118
+ export declare const inputInjectionKey = "mc-input";
@@ -0,0 +1,88 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ logoImg: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ logoWidth: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: string;
13
+ };
14
+ logoHeight: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: string;
17
+ };
18
+ title: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ subTitle: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ description: {
27
+ type: import("vue").PropType<string[]>;
28
+ default: () => never[];
29
+ };
30
+ background: {
31
+ type: import("vue").PropType<import("./introduction-types").IntroductionBackground>;
32
+ default: string;
33
+ };
34
+ align: {
35
+ type: import("vue").PropType<import("./introduction-types").IntroductionAlign>;
36
+ default: string;
37
+ };
38
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
39
+ logoImg: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ logoWidth: {
44
+ type: (StringConstructor | NumberConstructor)[];
45
+ default: string;
46
+ };
47
+ logoHeight: {
48
+ type: (StringConstructor | NumberConstructor)[];
49
+ default: string;
50
+ };
51
+ title: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ subTitle: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ description: {
60
+ type: import("vue").PropType<string[]>;
61
+ default: () => never[];
62
+ };
63
+ background: {
64
+ type: import("vue").PropType<import("./introduction-types").IntroductionBackground>;
65
+ default: string;
66
+ };
67
+ align: {
68
+ type: import("vue").PropType<import("./introduction-types").IntroductionAlign>;
69
+ default: string;
70
+ };
71
+ }>> & Readonly<{}>, {
72
+ background: import("./introduction-types").IntroductionBackground;
73
+ title: string;
74
+ description: string[];
75
+ align: import("./introduction-types").IntroductionAlign;
76
+ logoImg: string;
77
+ logoWidth: string | number;
78
+ logoHeight: string | number;
79
+ subTitle: string;
80
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
82
+ declare const _default: typeof __VLS_export;
83
+ export default _default;
84
+ type __VLS_WithSlots<T, S> = T & {
85
+ new (): {
86
+ $slots: S;
87
+ };
88
+ };
@@ -1 +1 @@
1
- .mc-introduction[data-v-0c128c90]{display:flex;gap:12px;flex-direction:column;color:var(--devui-text, #252b3a)}.mc-introduction .mc-introduction-logo-container[data-v-0c128c90]{display:flex;align-items:center;gap:8px}.mc-introduction .mc-introduction-logo-container .mc-introduction-title[data-v-0c128c90]{font-weight:700;font-size:32px;letter-spacing:1px}.mc-introduction .mc-introduction-sub-title[data-v-0c128c90]{font-weight:500;font-size:18px}.mc-introduction .mc-introduction-description[data-v-0c128c90]{font-size:var(--devui-font-size, 12px)}.mc-introduction .mc-introduction-description>div[data-v-0c128c90]{line-height:1.5}.mc-introduction.filled[data-v-0c128c90]{background-color:var(--devui-global-bg, #f6f6f8);border-radius:8px;padding:8px 12px}.mc-introduction.center[data-v-0c128c90]{align-items:center}.mc-introduction.center .mc-introduction-description[data-v-0c128c90]{text-align:center}.mc-introduction.left[data-v-0c128c90]{align-items:flex-start}.mc-introduction.left .mc-introduction-description[data-v-0c128c90]{text-align:left}.mc-introduction.right[data-v-0c128c90]{align-items:flex-end}.mc-introduction.right .mc-introduction-description[data-v-0c128c90]{text-align:right}
1
+ .mc-introduction[data-v-31ff847b]{display:flex;gap:12px;flex-direction:column;color:var(--devui-text, #252b3a)}.mc-introduction .mc-introduction-logo-container[data-v-31ff847b]{display:flex;align-items:center;gap:8px}.mc-introduction .mc-introduction-logo-container .mc-introduction-title[data-v-31ff847b]{font-weight:700;font-size:32px;letter-spacing:1px}.mc-introduction .mc-introduction-sub-title[data-v-31ff847b]{font-weight:500;font-size:18px}.mc-introduction .mc-introduction-description[data-v-31ff847b]{font-size:var(--devui-font-size, 12px)}.mc-introduction .mc-introduction-description>div[data-v-31ff847b]{line-height:1.5}.mc-introduction.filled[data-v-31ff847b]{background-color:var(--devui-global-bg, #f6f6f8);border-radius:8px;padding:8px 12px}.mc-introduction.center[data-v-31ff847b]{align-items:center}.mc-introduction.center .mc-introduction-description[data-v-31ff847b]{text-align:center}.mc-introduction.left[data-v-31ff847b]{align-items:flex-start}.mc-introduction.left .mc-introduction-description[data-v-31ff847b]{text-align:left}.mc-introduction.right[data-v-31ff847b]{align-items:flex-end}.mc-introduction.right .mc-introduction-description[data-v-31ff847b]{text-align:right}
@@ -0,0 +1,2 @@
1
+ import McIntroduction from './Introduction.vue.ts';
2
+ export { McIntroduction };
@@ -1,10 +1,18 @@
1
1
  import "./index.css";
2
- import { defineComponent as u, createElementBlock as e, openBlock as o, normalizeClass as p, createElementVNode as d, createCommentVNode as c, renderSlot as g, toDisplayString as l, Fragment as m, renderList as f } from "vue";
3
- const v = {
2
+ import { defineComponent as c, createElementBlock as e, openBlock as o, normalizeClass as g, createElementVNode as a, createCommentVNode as s, renderSlot as p, normalizeStyle as m, toDisplayString as d, Fragment as f, renderList as y } from "vue";
3
+ const h = {
4
4
  logoImg: {
5
5
  type: String,
6
6
  default: ""
7
7
  },
8
+ logoWidth: {
9
+ type: [String, Number],
10
+ default: ""
11
+ },
12
+ logoHeight: {
13
+ type: [String, Number],
14
+ default: ""
15
+ },
8
16
  title: {
9
17
  type: String,
10
18
  default: ""
@@ -25,73 +33,74 @@ const v = {
25
33
  type: String,
26
34
  default: "center"
27
35
  }
28
- }, y = { class: "mc-introduction-logo-container" }, _ = ["src", "alt"], k = { class: "mc-introduction-title" }, h = {
36
+ }, v = { class: "mc-introduction-logo-container" }, b = ["src", "alt"], S = { class: "mc-introduction-title" }, k = {
29
37
  key: 0,
30
38
  class: "mc-introduction-sub-title"
31
39
  }, I = {
32
40
  key: 1,
33
41
  class: "mc-introduction-description"
34
- }, S = /* @__PURE__ */ u({
42
+ }, _ = /* @__PURE__ */ c({
35
43
  __name: "Introduction",
36
- props: v,
37
- setup(n) {
38
- return (t, i) => (o(), e(
44
+ props: h,
45
+ setup(i) {
46
+ return (t, n) => (o(), e(
39
47
  "div",
40
48
  {
41
- class: p(["mc-introduction", [t.align, t.background]])
49
+ class: g(["mc-introduction", [t.align, t.background]])
42
50
  },
43
51
  [
44
- d("div", y, [
52
+ a("div", v, [
45
53
  t.logoImg ? (o(), e("img", {
46
54
  key: 0,
47
55
  src: t.logoImg,
48
- alt: t.title
49
- }, null, 8, _)) : c("v-if", !0),
50
- d(
56
+ alt: t.title,
57
+ style: m({ width: typeof t.logoWidth == "number" ? `${t.logoWidth}px` : t.logoWidth, height: typeof t.logoHeight == "number" ? `${t.logoHeight}px` : t.logoHeight })
58
+ }, null, 12, b)) : s("v-if", !0),
59
+ a(
51
60
  "div",
52
- k,
53
- l(t.title),
61
+ S,
62
+ d(t.title),
54
63
  1
55
64
  /* TEXT */
56
65
  )
57
66
  ]),
58
67
  t.subTitle ? (o(), e(
59
68
  "div",
60
- h,
61
- l(t.subTitle),
69
+ k,
70
+ d(t.subTitle),
62
71
  1
63
72
  /* TEXT */
64
- )) : c("v-if", !0),
73
+ )) : s("v-if", !0),
65
74
  t.description.length ? (o(), e("div", I, [
66
75
  (o(!0), e(
67
- m,
76
+ f,
68
77
  null,
69
- f(t.description, (r, s) => (o(), e(
78
+ y(t.description, (r, l) => (o(), e(
70
79
  "div",
71
- { key: s },
72
- l(r),
80
+ { key: l },
81
+ d(r),
73
82
  1
74
83
  /* TEXT */
75
84
  ))),
76
85
  128
77
86
  /* KEYED_FRAGMENT */
78
87
  ))
79
- ])) : c("v-if", !0),
80
- g(t.$slots, "default", {}, void 0, !0)
88
+ ])) : s("v-if", !0),
89
+ p(t.$slots, "default", {}, void 0, !0)
81
90
  ],
82
91
  2
83
92
  /* CLASS */
84
93
  ));
85
94
  }
86
- }), b = (n, t) => {
87
- const i = n.__vccOpts || n;
88
- for (const [r, s] of t)
89
- i[r] = s;
90
- return i;
91
- }, a = /* @__PURE__ */ b(S, [["__scopeId", "data-v-0c128c90"]]);
92
- a.install = (n) => {
93
- n.component("McIntroduction", a);
95
+ }), H = (i, t) => {
96
+ const n = i.__vccOpts || i;
97
+ for (const [r, l] of t)
98
+ n[r] = l;
99
+ return n;
100
+ }, u = /* @__PURE__ */ H(_, [["__scopeId", "data-v-31ff847b"]]);
101
+ u.install = (i) => {
102
+ i.component("McIntroduction", u);
94
103
  };
95
104
  export {
96
- a as McIntroduction
105
+ u as McIntroduction
97
106
  };
@@ -0,0 +1,37 @@
1
+ import type { PropType } from 'vue';
2
+ export type IntroductionBackground = 'filled' | 'transparent';
3
+ export type IntroductionAlign = 'left' | 'center' | 'right';
4
+ export declare const props: {
5
+ logoImg: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ logoWidth: {
10
+ type: (StringConstructor | NumberConstructor)[];
11
+ default: string;
12
+ };
13
+ logoHeight: {
14
+ type: (StringConstructor | NumberConstructor)[];
15
+ default: string;
16
+ };
17
+ title: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ subTitle: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ description: {
26
+ type: PropType<string[]>;
27
+ default: () => never[];
28
+ };
29
+ background: {
30
+ type: PropType<IntroductionBackground>;
31
+ default: string;
32
+ };
33
+ align: {
34
+ type: PropType<IntroductionAlign>;
35
+ default: string;
36
+ };
37
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,6 @@
1
+ import McLayoutAside from './Aside.vue.ts';
2
+ import McLayoutContent from './Content.vue.ts';
3
+ import McLayoutHeader from './Header.vue.ts';
4
+ import McLayout from './Layout.vue.ts';
5
+ import McLayoutSender from './Sender.vue.ts';
6
+ export { McLayoutAside, McLayoutContent, McLayoutHeader, McLayout, McLayoutSender };
@@ -0,0 +1,98 @@
1
+ import { ListVariant } from './list-types';
2
+ declare var __VLS_1: {
3
+ item: import("./list-types").ListItemData;
4
+ }, __VLS_3: {
5
+ item: import("./list-types").ListItemData;
6
+ };
7
+ type __VLS_Slots = {} & {
8
+ item?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ item?: (props: typeof __VLS_3) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
+ direction: {
14
+ type: import("vue").PropType<import("./list-types").ListDirection>;
15
+ default: import("./list-types").ListDirection;
16
+ };
17
+ autoWrap: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ variant: {
22
+ type: import("vue").PropType<ListVariant>;
23
+ default: ListVariant;
24
+ };
25
+ enableLazyLoad: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ data: {
30
+ type: import("vue").PropType<import("./list-types").ListItemData[]>;
31
+ default: () => never[];
32
+ };
33
+ enableShortKey: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ inputEl: {
38
+ type: import("vue").PropType<HTMLElement>;
39
+ };
40
+ selectable: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
+ select: (...args: any[]) => void;
46
+ loadMore: (...args: any[]) => void;
47
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
48
+ direction: {
49
+ type: import("vue").PropType<import("./list-types").ListDirection>;
50
+ default: import("./list-types").ListDirection;
51
+ };
52
+ autoWrap: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ variant: {
57
+ type: import("vue").PropType<ListVariant>;
58
+ default: ListVariant;
59
+ };
60
+ enableLazyLoad: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ data: {
65
+ type: import("vue").PropType<import("./list-types").ListItemData[]>;
66
+ default: () => never[];
67
+ };
68
+ enableShortKey: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ inputEl: {
73
+ type: import("vue").PropType<HTMLElement>;
74
+ };
75
+ selectable: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ }>> & Readonly<{
80
+ onSelect?: ((...args: any[]) => any) | undefined;
81
+ onLoadMore?: ((...args: any[]) => any) | undefined;
82
+ }>, {
83
+ variant: ListVariant;
84
+ data: import("./list-types").ListItemData[];
85
+ direction: import("./list-types").ListDirection;
86
+ autoWrap: boolean;
87
+ enableLazyLoad: boolean;
88
+ enableShortKey: boolean;
89
+ selectable: boolean;
90
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
91
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
92
+ declare const _default: typeof __VLS_export;
93
+ export default _default;
94
+ type __VLS_WithSlots<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
@@ -0,0 +1,5 @@
1
+ export declare const LazyLoadThreshold = 50;
2
+ export declare const InputTagNames: string[];
3
+ export declare const ArrowUp = "ArrowUp";
4
+ export declare const ArrowDown = "ArrowDown";
5
+ export declare const Enter = "Enter";
@@ -0,0 +1,3 @@
1
+ import McList from './List.vue.ts';
2
+ export * from './list-types';
3
+ export { McList };
@@ -0,0 +1,52 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ export declare enum ListDirection {
3
+ Horizontal = "horizontal",
4
+ Vertical = "vertical"
5
+ }
6
+ export declare enum ListVariant {
7
+ Transparent = "transparent",
8
+ Filled = "filled",
9
+ Bordered = "bordered",
10
+ None = "none"
11
+ }
12
+ export interface ListItemData {
13
+ label: string;
14
+ value: string | number;
15
+ disabled?: boolean;
16
+ active?: boolean;
17
+ [key: string]: any;
18
+ }
19
+ export declare const listProps: {
20
+ direction: {
21
+ type: PropType<ListDirection>;
22
+ default: ListDirection;
23
+ };
24
+ autoWrap: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ variant: {
29
+ type: PropType<ListVariant>;
30
+ default: ListVariant;
31
+ };
32
+ enableLazyLoad: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ data: {
37
+ type: PropType<ListItemData[]>;
38
+ default: () => never[];
39
+ };
40
+ enableShortKey: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ inputEl: {
45
+ type: PropType<HTMLElement>;
46
+ };
47
+ selectable: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ };
52
+ export type ListProps = ExtractPropTypes<typeof listProps>;
@@ -0,0 +1,13 @@
1
+ import type { ListProps, ListItemData } from './list-types';
2
+ export declare function useList(props: ListProps, emits: (event: 'select' | 'loadMore', ...args: any[]) => void): {
3
+ preSelectIndex: import("vue").Ref<number, number>;
4
+ onItemClick: (item: ListItemData) => void;
5
+ onListScroll: (e: Event) => void;
6
+ };
7
+ export declare function useListRender(props: ListProps): {
8
+ listClasses: import("vue").ComputedRef<{
9
+ 'mc-list': boolean;
10
+ 'mc-list-horizontal': boolean;
11
+ 'mc-list-nowrap': boolean;
12
+ }>;
13
+ };
@@ -0,0 +1,21 @@
1
+ export type LocaleMessages = Record<string, any>;
2
+ export interface McI18nOptions {
3
+ locale: string;
4
+ messages: LocaleMessages;
5
+ }
6
+ export declare function createMcI18n(options: McI18nOptions): McI18n;
7
+ export declare class McI18n {
8
+ locale: import("vue").Ref<string, string>;
9
+ messages: LocaleMessages;
10
+ constructor(options: McI18nOptions);
11
+ /** 切换语言 */
12
+ use: (locale: string) => void;
13
+ /** 翻译函数 */
14
+ t: (path: string, params?: {}) => any;
15
+ /** 覆盖、合并国际化翻译 */
16
+ mergeLocaleMessages: (locale: string, messages: LocaleMessages) => LocaleMessages;
17
+ }
18
+ export declare function get(path: string, params: any, messages: LocaleMessages): any;
19
+ export declare function deepMerge(target: LocaleMessages, source: LocaleMessages): {
20
+ [x: string]: any;
21
+ };
@@ -0,0 +1,7 @@
1
+ import type { App } from 'vue';
2
+ declare const McI18n: import("./i18n").McI18n;
3
+ export declare function useMcI18n(): import("./i18n").McI18n;
4
+ export declare const McLocale: {
5
+ install: (app: App) => void;
6
+ };
7
+ export default McI18n;