@farris/x-ui 0.5.7 → 0.5.9

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 (119) hide show
  1. package/assets/css/icons.css +1 -0
  2. package/assets/css/variables.css +1 -0
  3. package/assets/icon/active-agent.svg +16 -0
  4. package/assets/icon/agent-data-ops.png +0 -0
  5. package/assets/icon/agent-finance.png +0 -0
  6. package/assets/icon/agent-hr.png +0 -0
  7. package/assets/icon/agent-procurement.png +0 -0
  8. package/assets/icon/agent-production.png +0 -0
  9. package/assets/icon/agent-project.png +0 -0
  10. package/assets/icon/agent-sales.png +0 -0
  11. package/assets/icon/agent-supply-chain.png +0 -0
  12. package/assets/icon/attach.svg +14 -0
  13. package/assets/icon/copy.svg +22 -0
  14. package/assets/icon/daily-brief.svg +16 -0
  15. package/assets/icon/deep-seek-logo.svg +13 -0
  16. package/assets/icon/down-vote.svg +17 -0
  17. package/assets/icon/haiyue-logo.svg +76 -0
  18. package/assets/icon/markdown-icon.png +0 -0
  19. package/assets/icon/question-and-answer.svg +28 -0
  20. package/assets/icon/qwen-logo.svg +18 -0
  21. package/assets/icon/react.png +0 -0
  22. package/assets/icon/refresh.svg +20 -0
  23. package/assets/icon/robot-avatar-mini.png +0 -0
  24. package/assets/icon/robot-avatar.png +0 -0
  25. package/assets/icon/send.svg +24 -0
  26. package/assets/icon/speech.svg +16 -0
  27. package/assets/icon/supervision-task.svg +14 -0
  28. package/assets/icon/translate.svg +20 -0
  29. package/assets/icon/up-vote.svg +17 -0
  30. package/assets/icon/voice.svg +18 -0
  31. package/assets/icon-preview.html +634 -0
  32. package/assets/imgs/ai-logo.svg +76 -0
  33. package/assets/imgs/attachment-type-any.png +0 -0
  34. package/assets/imgs/attachment-type-board.png +0 -0
  35. package/assets/imgs/attachment-type-doc.png +0 -0
  36. package/assets/imgs/attachment-type-form.png +0 -0
  37. package/assets/imgs/attachment-type-html.png +0 -0
  38. package/assets/imgs/attachment-type-json.png +0 -0
  39. package/assets/imgs/attachment-type-md.png +0 -0
  40. package/assets/imgs/attachment-type-pdf.png +0 -0
  41. package/assets/imgs/attachment-type-ppt.png +0 -0
  42. package/assets/imgs/attachment-type-report.png +0 -0
  43. package/assets/imgs/attachment-type-txt.png +0 -0
  44. package/assets/imgs/attachment-type-xls.png +0 -0
  45. package/assets/imgs/drag-file.png +0 -0
  46. package/assets/imgs/empty-state-default.svg +180 -0
  47. package/assets/imgs/empty-state-done.svg +147 -0
  48. package/assets/imgs/empty-state-initiated.svg +155 -0
  49. package/assets/imgs/empty-state-report.svg +110 -0
  50. package/assets/imgs/empty-state-schedule.svg +139 -0
  51. package/assets/imgs/empty-state-supervision.svg +269 -0
  52. package/assets/imgs/empty-state-todo.svg +14 -0
  53. package/assets/imgs/f-drag-icon-default.svg +14 -0
  54. package/assets/imgs/f-drag-icon-hover.svg +20 -0
  55. package/assets/imgs/f-icon-checkbox-checked.svg +16 -0
  56. package/assets/imgs/f-icon-checkbox-indeterminate.svg +16 -0
  57. package/assets/imgs/f-icon-radio-checked.svg +13 -0
  58. package/assets/imgs/f-tabs-border-bg.svg +13 -0
  59. package/assets/imgs/feature-card-bg.png +0 -0
  60. package/assets/imgs/like-button-entry-item-bg.png +0 -0
  61. package/assets/imgs/primary-feature-card-bg.png +0 -0
  62. package/assets/imgs/table-norecords.svg +62 -0
  63. package/bubble/index.d.ts +11 -1
  64. package/bubble/src/bubble.component.d.ts +0 -45
  65. package/bubble/src/bubble.props.d.ts +1 -6
  66. package/bubble/src/components/text-content/utils/block-renderer.d.ts +1 -1
  67. package/bubble/src/composition/types.d.ts +0 -12
  68. package/chat-preview/index.d.ts +1 -0
  69. package/chat-preview/src/chat-preview.component.d.ts +2 -2
  70. package/chat-preview/src/chat-preview.props.d.ts +1 -1
  71. package/chat-preview/src/preview-chrome-sdk.d.ts +1 -1
  72. package/{app-preview → chat-preview}/src/types.d.ts +2 -17
  73. package/components.d.ts +3 -16
  74. package/empty-state/index.d.ts +7 -0
  75. package/empty-state/src/composition/use-empty-state.d.ts +16 -0
  76. package/empty-state/src/empty-state.component.d.ts +17 -0
  77. package/empty-state/src/empty-state.props.d.ts +48 -0
  78. package/farris.x-ui.esm.js +23618 -17017
  79. package/farris.x-ui.umd.cjs +166 -164
  80. package/image-preview/src/image-preview.component.d.ts +1 -1
  81. package/index.css +1 -1
  82. package/list-view/src/components/list-view-item.component.d.ts +20 -9
  83. package/markdown/src/composition/code-block-renderer.d.ts +4 -0
  84. package/markdown/src/composition/code-highlight.d.ts +2 -0
  85. package/markdown/src/composition/markdown-block-toolbar.d.ts +4 -0
  86. package/markdown/src/composition/table-card-renderer.d.ts +1 -1
  87. package/markdown/src/composition/transform-markdown-prose.d.ts +2 -0
  88. package/markdown/src/composition/use-markdown-copy.d.ts +7 -0
  89. package/markdown/test/markdown-code-block.spec.d.ts +1 -0
  90. package/nav/src/composition/types.d.ts +6 -0
  91. package/nav/src/composition/use-nav-right-slot.d.ts +5 -0
  92. package/nav/test/nav.spec.d.ts +1 -0
  93. package/package.json +13 -2
  94. package/popover/src/popover.component.d.ts +6 -0
  95. package/popover/src/popover.props.d.ts +10 -0
  96. package/app-preview/index.d.ts +0 -8
  97. package/app-preview/src/app-preview.component.d.ts +0 -22
  98. package/app-preview/src/app-preview.props.d.ts +0 -14
  99. package/error-reminder/index.d.ts +0 -7
  100. package/error-reminder/src/error-reminder.component.d.ts +0 -15
  101. package/error-reminder/src/types.d.ts +0 -7
  102. package/link-card/index.d.ts +0 -7
  103. package/link-card/src/link-card.component.d.ts +0 -15
  104. package/link-card/src/types.d.ts +0 -14
  105. package/prompts/index.d.ts +0 -9
  106. package/prompts/src/components/prompt.component.d.ts +0 -131
  107. package/prompts/src/components/prompt.props.d.ts +0 -79
  108. package/prompts/src/composition/type.d.ts +0 -34
  109. package/prompts/src/prompts.component.d.ts +0 -46
  110. package/prompts/src/prompts.props.d.ts +0 -61
  111. package/reference-sources/index.d.ts +0 -7
  112. package/reference-sources/src/reference-sources.component.d.ts +0 -15
  113. package/reference-sources/src/types.d.ts +0 -9
  114. package/welcome/index.d.ts +0 -7
  115. package/welcome/src/composition/type.d.ts +0 -1
  116. package/welcome/src/welcome.component.d.ts +0 -35
  117. package/welcome/src/welcome.props.d.ts +0 -30
  118. /package/{attachment.css → assets/css/attachment.css} +0 -0
  119. /package/{welcome/test/welcome.spec.d.ts → empty-state/src/test/empty-state.spec.d.ts} +0 -0
@@ -1,3 +1,5 @@
1
+ import { PropType } from '../../../../vue';
2
+
1
3
  declare const _default: import('../../../../vue').DefineComponent<import('../../../../vue').ExtractPropTypes<{
2
4
  item: {
3
5
  type: ObjectConstructor;
@@ -15,12 +17,16 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
15
17
  type: BooleanConstructor;
16
18
  default: boolean;
17
19
  };
20
+ onClickItem: {
21
+ type: PropType<(item: any, index: number) => void>;
22
+ default: () => void;
23
+ };
18
24
  data: {
19
- type: import('../../../../vue').PropType<any[]>;
25
+ type: PropType<any[]>;
20
26
  default: () => never[];
21
27
  };
22
28
  view: {
23
- type: import('../../../../vue').PropType<import('../../../../../..').ListViewType>;
29
+ type: PropType<import('../../../../../..').ListViewType>;
24
30
  default: string;
25
31
  };
26
32
  customClass: {
@@ -28,7 +34,7 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
28
34
  default: string;
29
35
  };
30
36
  itemClass: {
31
- type: import('../../../../vue').PropType<string | ((item: any, index: number) => string)>;
37
+ type: PropType<string | ((item: any, index: number) => string)>;
32
38
  default: string;
33
39
  };
34
40
  idField: {
@@ -48,10 +54,10 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
48
54
  default: string;
49
55
  };
50
56
  group: {
51
- type: import('../../../../vue').PropType<import('../../../../../..').ListViewGroupConfig>;
57
+ type: PropType<import('../../../../../..').ListViewGroupConfig>;
52
58
  default: undefined;
53
59
  };
54
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../vue').ComponentOptionsMixin, import('../../../../vue').ComponentOptionsMixin, {}, "clickItem", import('../../../../vue').PublicProps, Readonly<import('../../../../vue').ExtractPropTypes<{
60
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../vue').ComponentOptionsMixin, import('../../../../vue').ComponentOptionsMixin, {}, string, import('../../../../vue').PublicProps, Readonly<import('../../../../vue').ExtractPropTypes<{
55
61
  item: {
56
62
  type: ObjectConstructor;
57
63
  default: () => {};
@@ -68,12 +74,16 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
68
74
  type: BooleanConstructor;
69
75
  default: boolean;
70
76
  };
77
+ onClickItem: {
78
+ type: PropType<(item: any, index: number) => void>;
79
+ default: () => void;
80
+ };
71
81
  data: {
72
- type: import('../../../../vue').PropType<any[]>;
82
+ type: PropType<any[]>;
73
83
  default: () => never[];
74
84
  };
75
85
  view: {
76
- type: import('../../../../vue').PropType<import('../../../../../..').ListViewType>;
86
+ type: PropType<import('../../../../../..').ListViewType>;
77
87
  default: string;
78
88
  };
79
89
  customClass: {
@@ -81,7 +91,7 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
81
91
  default: string;
82
92
  };
83
93
  itemClass: {
84
- type: import('../../../../vue').PropType<string | ((item: any, index: number) => string)>;
94
+ type: PropType<string | ((item: any, index: number) => string)>;
85
95
  default: string;
86
96
  };
87
97
  idField: {
@@ -101,7 +111,7 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
101
111
  default: string;
102
112
  };
103
113
  group: {
104
- type: import('../../../../vue').PropType<import('../../../../../..').ListViewGroupConfig>;
114
+ type: PropType<import('../../../../../..').ListViewGroupConfig>;
105
115
  default: undefined;
106
116
  };
107
117
  }>> & Readonly<{}>, {
@@ -118,5 +128,6 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
118
128
  group: import('../../../../../..').ListViewGroupConfig;
119
129
  isActive: boolean;
120
130
  isSelected: boolean;
131
+ onClickItem: (item: any, index: number) => void;
121
132
  }, {}, {}, {}, string, import('../../../../vue').ComponentProvideOptions, true, {}, any>;
122
133
  export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as MarkdownIt } from '../../../../markdown-it';
2
+
3
+ /** 使用 markdown-it 的块 token,支持长围栏、波浪线、缩进及未闭合流式代码。 */
4
+ export declare function applyCodeBlockRenderer(markdown: MarkdownIt): void;
@@ -0,0 +1,2 @@
1
+ /** 未知语言与超长内容保留安全纯文本,避免自动猜语言及流式重绘成本。 */
2
+ export declare function highlightCode(source: string, language: string, escapeHtml: (value: string) => string): string;
@@ -0,0 +1,4 @@
1
+ /** 代码与表格复用的顶部条;使用现有 FarrisXIcons 字体图标。 */
2
+ export declare const MARKDOWN_COPY_FEEDBACK_MS = 6000;
3
+ export declare function renderMarkdownCopyButton(extraAttributes?: string, extraClass?: string): string;
4
+ export declare function renderMarkdownBlockHeader(title: string, extraClass?: string): string;
@@ -15,7 +15,7 @@ export declare const TABLE_CARD_CLOSE_ACTION = "close";
15
15
  /** 复制成功反馈态属性 */
16
16
  export declare const TABLE_CARD_COPIED_ATTRIBUTE = "data-copied";
17
17
  /** 复制成功反馈持续时长(毫秒) */
18
- export declare const TABLE_CARD_COPY_FEEDBACK_MS = 1500;
18
+ export declare const TABLE_CARD_COPY_FEEDBACK_MS = 6000;
19
19
  /**
20
20
  * 最大化预览右上角的浮层按钮:复制在左、关闭最大化在右。
21
21
  *
@@ -0,0 +1,2 @@
1
+ /** 仅转换普通正文;以解析器的行范围保护闭合/未闭合围栏、嵌套与缩进代码。 */
2
+ export declare function transformMarkdownProse(source: string, transform: (prose: string) => string): string;
@@ -0,0 +1,7 @@
1
+ import { Ref } from '../../../../vue';
2
+
3
+ /** innerHTML 重绘后恢复逐块反馈;计时器不互相覆盖,卸载后不再更新节点。 */
4
+ export declare function useMarkdownCopy(contentRoot: Ref<HTMLElement | undefined>): {
5
+ copyBlock: (button: Element) => Promise<void>;
6
+ handleTooltip: (event: Event) => void;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,15 @@
1
+ import { ComputedRef } from '../../../../vue';
2
+
1
3
  export interface NavItem {
2
4
  id: string;
3
5
  text: string;
4
6
  num?: number;
5
7
  disable?: boolean;
6
8
  }
9
+ export interface UseNavRightSlot {
10
+ /** 是否渲染右侧扩展区:仅横向模式且调用方传入 right slot 时为 true(纵向模式静默忽略) */
11
+ shouldShowRightSlot: ComputedRef<boolean>;
12
+ }
7
13
  export type ShouldContinueResult = {
8
14
  canContinue: boolean;
9
15
  message?: string;
@@ -0,0 +1,5 @@
1
+ import { SetupContext } from '../../../../vue';
2
+ import { NavProps } from '../../../../../nav.props';
3
+ import { UseNavRightSlot } from '../../../../types';
4
+
5
+ export declare function useNavRightSlot(props: NavProps, context: SetupContext): UseNavRightSlot;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,12 +1,22 @@
1
1
  {
2
2
  "name": "@farris/x-ui",
3
- "version": "0.5.7",
4
3
  "description": "可复用的 AI 对话组件",
5
4
  "type": "module",
6
5
  "main": "./farris.x-ui.umd.cjs",
7
6
  "module": "./farris.x-ui.esm.js",
8
7
  "types": "./components/index.d.ts",
9
8
  "style": "./index.css",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./farris.x-ui.esm.js",
12
+ "require": "./farris.x-ui.umd.cjs"
13
+ },
14
+ "./index.css": "./index.css",
15
+ "./variables.css": "./assets/css/variables.css",
16
+ "./icons.css": "./assets/css/icons.css",
17
+ "./attachment.css": "./assets/css/attachment.css",
18
+ "./style.css": "./index.css"
19
+ },
10
20
  "dependencies": {
11
21
  "@monaco-editor/loader": "^1.4.0",
12
22
  "json5": "2.2.3",
@@ -17,5 +27,6 @@
17
27
  },
18
28
  "peerDependencies": {
19
29
  "vue": "^3.2.0"
20
- }
30
+ },
31
+ "version": "0.5.9"
21
32
  }
@@ -19,6 +19,8 @@ declare const _default: import('../../../vue').DefineComponent<{
19
19
  renderWhenShown: boolean;
20
20
  hideOnResize: boolean;
21
21
  autoFlip: boolean;
22
+ onShown: () => void;
23
+ onHidden: () => void;
22
24
  title?: string | undefined;
23
25
  id?: string | undefined;
24
26
  host?: any;
@@ -47,6 +49,8 @@ declare const _default: import('../../../vue').DefineComponent<{
47
49
  renderWhenShown: boolean;
48
50
  hideOnResize: boolean;
49
51
  autoFlip: boolean;
52
+ onShown: () => void;
53
+ onHidden: () => void;
50
54
  title?: string | undefined;
51
55
  id?: string | undefined;
52
56
  host?: any;
@@ -75,5 +79,7 @@ declare const _default: import('../../../vue').DefineComponent<{
75
79
  renderWhenShown: boolean;
76
80
  hideOnResize: boolean;
77
81
  autoFlip: boolean;
82
+ onShown: () => void;
83
+ onHidden: () => void;
78
84
  }, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
79
85
  export default _default;
@@ -143,5 +143,15 @@ export declare const popoverProps: {
143
143
  type: BooleanConstructor;
144
144
  default: boolean;
145
145
  };
146
+ /** 显示完成后的回调 */
147
+ onShown: {
148
+ type: PropType<() => void>;
149
+ default: null;
150
+ };
151
+ /** 隐藏后的回调 */
152
+ onHidden: {
153
+ type: PropType<() => void>;
154
+ default: null;
155
+ };
146
156
  };
147
157
  export type PopoverProps = ExtractPropTypes<typeof popoverProps>;
@@ -1,8 +0,0 @@
1
- import { Plugin } from '../../vue';
2
- import { default as FXAppPreview } from '../../src/app-preview.component';
3
-
4
- export * from '../../src/app-preview.props';
5
- export * from '../../src/types';
6
- export { FXAppPreview };
7
- declare const _default: typeof FXAppPreview & Plugin;
8
- export default _default;
@@ -1,22 +0,0 @@
1
- declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
2
- content: {
3
- type: import('../../../vue').PropType<import('../../../types').MessageContentAppPreview>;
4
- required: boolean;
5
- };
6
- onOpen: {
7
- type: import('../../../vue').PropType<(config: import('../../../types').PreviewConfig) => void>;
8
- default: undefined;
9
- };
10
- }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
11
- content: {
12
- type: import('../../../vue').PropType<import('../../../types').MessageContentAppPreview>;
13
- required: boolean;
14
- };
15
- onOpen: {
16
- type: import('../../../vue').PropType<(config: import('../../../types').PreviewConfig) => void>;
17
- default: undefined;
18
- };
19
- }>> & Readonly<{}>, {
20
- onOpen: (config: import('../../../types').PreviewConfig) => void;
21
- }, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
22
- export default _default;
@@ -1,14 +0,0 @@
1
- import { ExtractPropTypes, PropType } from '../../../vue';
2
- import { MessageContentAppPreview, PreviewConfig } from '../../../types';
3
-
4
- export declare const appPreviewMessageProps: {
5
- content: {
6
- type: PropType<MessageContentAppPreview>;
7
- required: boolean;
8
- };
9
- onOpen: {
10
- type: PropType<(config: PreviewConfig) => void>;
11
- default: undefined;
12
- };
13
- };
14
- export type AppPreviewMessageProps = ExtractPropTypes<typeof appPreviewMessageProps>;
@@ -1,7 +0,0 @@
1
- import { Plugin } from '../../vue';
2
- import { default as FXErrorReminder } from '../../src/error-reminder.component';
3
-
4
- export * from '../../src/types';
5
- export { FXErrorReminder };
6
- declare const _default: typeof FXErrorReminder & Plugin;
7
- export default _default;
@@ -1,15 +0,0 @@
1
- import { PropType } from '../../../vue';
2
- import { MessageContentErrorReminder } from '../../../types';
3
-
4
- declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
5
- content: {
6
- type: PropType<MessageContentErrorReminder>;
7
- required: true;
8
- };
9
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
10
- content: {
11
- type: PropType<MessageContentErrorReminder>;
12
- required: true;
13
- };
14
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
15
- export default _default;
@@ -1,7 +0,0 @@
1
- export interface MessageContentErrorReminder {
2
- type: 'ErrorReminder';
3
- standardType?: 'agent/error' | string;
4
- errorLevel: 0 | 1 | 2;
5
- errorText: string;
6
- errorLink?: string;
7
- }
@@ -1,7 +0,0 @@
1
- import { Plugin } from '../../vue';
2
- import { default as FXLinkCard } from '../../src/link-card.component';
3
-
4
- export * from '../../src/types';
5
- export { FXLinkCard };
6
- declare const _default: typeof FXLinkCard & Plugin;
7
- export default _default;
@@ -1,15 +0,0 @@
1
- import { PropType } from '../../../vue';
2
- import { MessageContentLinkCard } from '../../../types';
3
-
4
- declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
5
- content: {
6
- type: PropType<MessageContentLinkCard>;
7
- required: true;
8
- };
9
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
10
- content: {
11
- type: PropType<MessageContentLinkCard>;
12
- required: true;
13
- };
14
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
15
- export default _default;
@@ -1,14 +0,0 @@
1
- export interface LinkRelatedItem {
2
- title: string;
3
- url: string;
4
- poster?: string;
5
- }
6
- export interface MessageContentLinkCard {
7
- type: 'LinkCard';
8
- standardType?: 'card/url' | string;
9
- poster?: string;
10
- title: string;
11
- subtitle?: string;
12
- url: string;
13
- relatedLinks?: LinkRelatedItem[];
14
- }
@@ -1,9 +0,0 @@
1
- import { Plugin } from '../../vue';
2
- import { default as FXPrompts } from '../../src/prompts.component';
3
- import { default as FXPrompt } from '../../src/components/prompt.component';
4
-
5
- export * from '../../src/prompts.props';
6
- export * from '../../src/components/prompt.props';
7
- export { FXPrompts, FXPrompt };
8
- declare const _default: typeof FXPrompts & Plugin;
9
- export default _default;
@@ -1,131 +0,0 @@
1
- import { VNode, CSSProperties } from '../../../../vue';
2
-
3
- declare const _default: import('../../../../vue').DefineComponent<import('../../../../vue').ExtractPropTypes<{
4
- id: {
5
- type: (StringConstructor | NumberConstructor)[];
6
- default: string;
7
- };
8
- icon: {
9
- type: import('../../../../vue').PropType<string | VNode>;
10
- default: string;
11
- };
12
- label: {
13
- type: import('../../../../vue').PropType<string | VNode>;
14
- default: string;
15
- };
16
- description: {
17
- type: import('../../../../vue').PropType<string | VNode>;
18
- default: string;
19
- };
20
- badge: {
21
- type: import('../../../../vue').PropType<string | VNode>;
22
- default: string;
23
- };
24
- disabled: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- children: {
29
- type: import('../../../../vue').PropType<import('../../../../../composition/type').BasePromptItemType[]>;
30
- default: () => never[];
31
- };
32
- styles: {
33
- type: import('../../../../vue').PropType<Record<import('../../../../../composition/type').AppearanceType, CSSProperties | string>>;
34
- };
35
- classNames: {
36
- type: import('../../../../vue').PropType<Record<import('../../../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>>;
37
- };
38
- customClass: {
39
- type: import('../../../../vue').PropType<string | string[] | Record<string, boolean>>;
40
- default: string;
41
- };
42
- customStyle: {
43
- type: import('../../../../vue').PropType<CSSProperties | string>;
44
- default: string;
45
- };
46
- showType: {
47
- type: import('../../../../vue').PropType<import('../../../../../composition/type').PromptShowType>;
48
- default: import('../../../../../composition/type').PromptShowType;
49
- };
50
- gap: {
51
- type: (StringConstructor | NumberConstructor)[];
52
- };
53
- onClick: {
54
- type: import('../../../../vue').PropType<(ev: MouseEvent) => void>;
55
- required: boolean;
56
- };
57
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../vue').ComponentOptionsMixin, import('../../../../vue').ComponentOptionsMixin, {}, string, import('../../../../vue').PublicProps, Readonly<import('../../../../vue').ExtractPropTypes<{
58
- id: {
59
- type: (StringConstructor | NumberConstructor)[];
60
- default: string;
61
- };
62
- icon: {
63
- type: import('../../../../vue').PropType<string | VNode>;
64
- default: string;
65
- };
66
- label: {
67
- type: import('../../../../vue').PropType<string | VNode>;
68
- default: string;
69
- };
70
- description: {
71
- type: import('../../../../vue').PropType<string | VNode>;
72
- default: string;
73
- };
74
- badge: {
75
- type: import('../../../../vue').PropType<string | VNode>;
76
- default: string;
77
- };
78
- disabled: {
79
- type: BooleanConstructor;
80
- default: boolean;
81
- };
82
- children: {
83
- type: import('../../../../vue').PropType<import('../../../../../composition/type').BasePromptItemType[]>;
84
- default: () => never[];
85
- };
86
- styles: {
87
- type: import('../../../../vue').PropType<Record<import('../../../../../composition/type').AppearanceType, CSSProperties | string>>;
88
- };
89
- classNames: {
90
- type: import('../../../../vue').PropType<Record<import('../../../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>>;
91
- };
92
- customClass: {
93
- type: import('../../../../vue').PropType<string | string[] | Record<string, boolean>>;
94
- default: string;
95
- };
96
- customStyle: {
97
- type: import('../../../../vue').PropType<CSSProperties | string>;
98
- default: string;
99
- };
100
- showType: {
101
- type: import('../../../../vue').PropType<import('../../../../../composition/type').PromptShowType>;
102
- default: import('../../../../../composition/type').PromptShowType;
103
- };
104
- gap: {
105
- type: (StringConstructor | NumberConstructor)[];
106
- };
107
- onClick: {
108
- type: import('../../../../vue').PropType<(ev: MouseEvent) => void>;
109
- required: boolean;
110
- };
111
- }>> & Readonly<{}>, {
112
- label: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
113
- [key: string]: any;
114
- }>;
115
- customClass: string | string[] | Record<string, boolean>;
116
- icon: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
117
- [key: string]: any;
118
- }>;
119
- id: string | number;
120
- customStyle: string | CSSProperties;
121
- disabled: boolean;
122
- description: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
123
- [key: string]: any;
124
- }>;
125
- showType: import('../../../../../composition/type').PromptShowType;
126
- badge: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
127
- [key: string]: any;
128
- }>;
129
- children: import('../../../../../composition/type').BasePromptItemType[];
130
- }, {}, {}, {}, string, import('../../../../vue').ComponentProvideOptions, true, {}, any>;
131
- export default _default;
@@ -1,79 +0,0 @@
1
- import { ExtractPropTypes, PropType, VNode, CSSProperties } from '../../../../vue';
2
- import { AppearanceType, BasePromptItemType, PromptShowType } from '../../../../../composition/type';
3
-
4
- export declare const promptProps: {
5
- /** 唯一标识 */
6
- id: {
7
- type: (StringConstructor | NumberConstructor)[];
8
- default: string;
9
- };
10
- /** 提示图标
11
- * 支持:图标字符、图片 URL、VNode
12
- */
13
- icon: {
14
- type: PropType<string | VNode>;
15
- default: string;
16
- };
17
- /** 提示标签 */
18
- label: {
19
- type: PropType<string | VNode>;
20
- default: string;
21
- };
22
- /** 提示描述 */
23
- description: {
24
- type: PropType<string | VNode>;
25
- default: string;
26
- };
27
- badge: {
28
- type: PropType<string | VNode>;
29
- default: string;
30
- };
31
- /** 是否禁用 */
32
- disabled: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- /** 子项(嵌套) */
37
- children: {
38
- type: PropType<BasePromptItemType[]>;
39
- default: () => never[];
40
- };
41
- /** 自定义样式 key: value */
42
- styles: {
43
- type: PropType<Record<AppearanceType, CSSProperties | string>>;
44
- };
45
- /** 自定义样式类名 key: value*/
46
- classNames: {
47
- type: PropType<Record<AppearanceType, string | string[] | Record<string, boolean>>>;
48
- };
49
- /** 组件自定义样式类名 */
50
- customClass: {
51
- type: PropType<string | string[] | Record<string, boolean>>;
52
- default: string;
53
- };
54
- /** 组件自定义样式 */
55
- customStyle: {
56
- type: PropType<CSSProperties | string>;
57
- default: string;
58
- };
59
- /**
60
- * standard-feature-card :标准规格功能卡片
61
- * primary-feature-card:核心主功能卡尺寸大
62
- * compact-feature-card:紧凑型功能卡片
63
- * standard-question-item:标准规格问题项
64
- * default-text-item:标准规格文本项
65
- */
66
- showType: {
67
- type: PropType<PromptShowType>;
68
- default: PromptShowType;
69
- };
70
- gap: {
71
- type: (StringConstructor | NumberConstructor)[];
72
- };
73
- /** 点击整项回调(演示/列表场景) */
74
- onClick: {
75
- type: PropType<(ev: MouseEvent) => void>;
76
- required: boolean;
77
- };
78
- };
79
- export type PromptProps = ExtractPropTypes<typeof promptProps>;
@@ -1,34 +0,0 @@
1
- import { VNode } from '../../../../vue';
2
-
3
- export declare enum PromptShowType {
4
- standardFeatureCard = "standard-feature-card",
5
- primaryFeatureCard = "primary-feature-card",
6
- compactFeatureCard = "compact-feature-card",
7
- standardQuestionItem = "standard-question-item",
8
- functionEntryItem = "function-entry-item",
9
- defaultTextItem = "default-text-item",
10
- hasNestEntryItem = "has-nest-entry-item",
11
- likeButtonEntryItem = "like-button-entry-item",
12
- none = ""
13
- }
14
- export interface BasePromptItemType {
15
- /** 唯一标识用于区分每个提示项 */
16
- id?: string | number;
17
- /** 提示图标显示在提示项的左侧 */
18
- icon?: string | VNode;
19
- /** 提示标签显示提示的主要内容 */
20
- label?: string | VNode;
21
- /** 提示描述提供额外的信息 */
22
- description?: string | VNode;
23
- /** 设置为 true 时禁用点击事件 */
24
- disabled?: boolean;
25
- showType?: PromptShowType;
26
- customClass?: Partial<string | string[] | Record<string, boolean>>;
27
- customStyle?: string;
28
- badge?: string | VNode;
29
- [key: string]: any;
30
- }
31
- export interface PromptItemType extends BasePromptItemType {
32
- children?: BasePromptItemType[];
33
- }
34
- export type AppearanceType = "root" | "items" | "item" | "itemContent" | "title" | "subItems" | "subItem" | "icon" | "label" | "badge" | "description";