@apform-ui/core 1.1.0 → 1.4.0

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 (122) hide show
  1. package/README.md +5 -0
  2. package/dist/__tests__/components.spec.d.ts +1 -0
  3. package/dist/apform-ui.css +1 -1
  4. package/dist/apform-ui.js +4141 -2635
  5. package/dist/apform-ui.umd.cjs +61 -57
  6. package/dist/components/AppDialog/AppDialog.vue.d.ts +48 -0
  7. package/dist/components/AppDialog/index.d.ts +1 -0
  8. package/dist/components/AppIcon/AppIcon.vue.d.ts +11 -0
  9. package/dist/components/AppIcon/index.d.ts +1 -0
  10. package/dist/components/AppPagination/AppPagination.vue.d.ts +26 -0
  11. package/dist/components/AppPagination/index.d.ts +1 -0
  12. package/dist/components/CardGridSkeleton/CardGridSkeleton.vue.d.ts +34 -0
  13. package/dist/components/CardGridSkeleton/index.d.ts +1 -0
  14. package/dist/components/CardTable/CardTable.vue.d.ts +28 -0
  15. package/dist/components/CardTable/index.d.ts +1 -0
  16. package/dist/components/Chat/ApprovalCard/ApprovalCard.vue.d.ts +12 -0
  17. package/dist/components/Chat/ApprovalCard/index.d.ts +1 -0
  18. package/dist/components/Chat/AssistantPicker/AssistantPicker.vue.d.ts +23 -0
  19. package/dist/components/Chat/AssistantPicker/index.d.ts +2 -0
  20. package/dist/components/Chat/AssistantPicker/types.d.ts +9 -0
  21. package/dist/components/Chat/Composer/Composer.vue.d.ts +32 -0
  22. package/dist/components/Chat/Composer/index.d.ts +1 -0
  23. package/dist/components/Chat/ConversationHeader/ConversationHeader.vue.d.ts +21 -0
  24. package/dist/components/Chat/ConversationHeader/index.d.ts +1 -0
  25. package/dist/components/Chat/MessageBubble/MessageBubble.vue.d.ts +23 -0
  26. package/dist/components/Chat/MessageBubble/index.d.ts +1 -0
  27. package/dist/components/Chat/MessageList/MessageList.vue.d.ts +24 -0
  28. package/dist/components/Chat/MessageList/index.d.ts +1 -0
  29. package/dist/components/Chat/ModelPicker/ModelPicker.vue.d.ts +16 -0
  30. package/dist/components/Chat/ModelPicker/index.d.ts +2 -0
  31. package/dist/components/Chat/ModelPicker/types.d.ts +6 -0
  32. package/dist/components/Chat/ProcessingDrawer/ProcessingDrawer.vue.d.ts +32 -0
  33. package/dist/components/Chat/ProcessingDrawer/index.d.ts +1 -0
  34. package/dist/components/Chat/RunStatusBar/RunStatusBar.vue.d.ts +12 -0
  35. package/dist/components/Chat/RunStatusBar/index.d.ts +1 -0
  36. package/dist/components/Chat/SessionSidebar/SessionSidebar.vue.d.ts +18 -0
  37. package/dist/components/Chat/SessionSidebar/index.d.ts +1 -0
  38. package/dist/components/Chat/message/AttachmentPreviewModal.vue.d.ts +18 -0
  39. package/dist/components/Chat/message/DocumentSummaryList.vue.d.ts +12 -0
  40. package/dist/components/Chat/message/MessageAttachmentList.vue.d.ts +11 -0
  41. package/dist/components/Chat/message/MessageParts.vue.d.ts +6 -0
  42. package/dist/components/Chat/message/index.d.ts +4 -0
  43. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +26 -0
  44. package/dist/components/ConfirmDialog/index.d.ts +1 -0
  45. package/dist/components/ContentPanel/ContentPanel.vue.d.ts +31 -0
  46. package/dist/components/ContentPanel/index.d.ts +1 -0
  47. package/dist/components/DocumentPreview/DocumentPreviewDrawer.vue.d.ts +61 -0
  48. package/dist/components/DocumentPreview/DocumentPreviewPanel.vue.d.ts +53 -0
  49. package/dist/components/DocumentPreview/index.d.ts +3 -0
  50. package/dist/components/DocumentPreview/types.d.ts +33 -0
  51. package/dist/components/EmptyState/EmptyState.vue.d.ts +33 -0
  52. package/dist/components/EmptyState/index.d.ts +1 -0
  53. package/dist/components/ErrorBoundary/ErrorBoundary.vue.d.ts +39 -0
  54. package/dist/components/ErrorBoundary/index.d.ts +1 -0
  55. package/dist/components/FieldRow/FieldRow.vue.d.ts +23 -0
  56. package/dist/components/FieldRow/index.d.ts +1 -0
  57. package/dist/components/FilterBar/FilterBar.vue.d.ts +30 -0
  58. package/dist/components/FilterBar/index.d.ts +1 -0
  59. package/dist/components/FilterTabs/FilterTabs.vue.d.ts +21 -0
  60. package/dist/components/FilterTabs/index.d.ts +1 -0
  61. package/dist/components/FormDialog/FormDialog.vue.d.ts +44 -0
  62. package/dist/components/FormDialog/index.d.ts +1 -0
  63. package/dist/components/HintText/HintText.vue.d.ts +19 -0
  64. package/dist/components/HintText/index.d.ts +1 -0
  65. package/dist/components/JsonCard/JsonCard.vue.d.ts +20 -0
  66. package/dist/components/JsonCard/index.d.ts +1 -0
  67. package/dist/components/JsonDetailDialog/JsonDetailDialog.vue.d.ts +13 -0
  68. package/dist/components/JsonDetailDialog/index.d.ts +1 -0
  69. package/dist/components/LoadingDots/LoadingDots.vue.d.ts +10 -0
  70. package/dist/components/LoadingDots/index.d.ts +1 -0
  71. package/dist/components/PageHeader/PageHeader.vue.d.ts +28 -0
  72. package/dist/components/PageHeader/index.d.ts +1 -0
  73. package/dist/components/PageShell/PageShell.vue.d.ts +25 -0
  74. package/dist/components/PageShell/index.d.ts +1 -0
  75. package/dist/components/SchemaLitePreview/SchemaLitePreview.vue.d.ts +30 -0
  76. package/dist/components/SchemaLitePreview/index.d.ts +2 -0
  77. package/dist/components/SearchForm/SearchForm.vue.d.ts +39 -0
  78. package/dist/components/SearchForm/index.d.ts +2 -0
  79. package/dist/components/SectionToggle/SectionToggle.vue.d.ts +20 -0
  80. package/dist/components/SectionToggle/index.d.ts +1 -0
  81. package/dist/components/Skeleton/Skeleton.vue.d.ts +29 -0
  82. package/dist/components/Skeleton/index.d.ts +1 -0
  83. package/dist/components/StatusTag/StatusTag.vue.d.ts +21 -0
  84. package/dist/components/StatusTag/index.d.ts +2 -0
  85. package/dist/components/TableRowActions/TableRowActions.vue.d.ts +23 -0
  86. package/dist/components/TableRowActions/index.d.ts +2 -0
  87. package/dist/components/Toast/Toast.vue.d.ts +12 -0
  88. package/dist/components/Toast/index.d.ts +2 -0
  89. package/dist/components/TruncatedTooltipText/TruncatedTooltipText.vue.d.ts +22 -0
  90. package/dist/components/TruncatedTooltipText/index.d.ts +1 -0
  91. package/dist/components/UserAvatar/UserAvatar.vue.d.ts +26 -0
  92. package/dist/components/UserAvatar/index.d.ts +1 -0
  93. package/dist/composables/index.d.ts +9 -0
  94. package/dist/composables/useClientPagination.d.ts +15 -0
  95. package/dist/composables/useConfirm.d.ts +15 -0
  96. package/dist/composables/useDataLoading.d.ts +30 -0
  97. package/dist/composables/useDebounceFn.d.ts +1 -0
  98. package/dist/composables/useMessage.d.ts +8 -0
  99. package/dist/composables/useToast.d.ts +17 -0
  100. package/dist/index.d.ts +77 -0
  101. package/dist/stories/AppDialog.stories.d.ts +9 -0
  102. package/dist/stories/AppIcon.stories.d.ts +9 -0
  103. package/dist/stories/ApprovalCard.stories.d.ts +8 -0
  104. package/dist/stories/Composer.stories.d.ts +9 -0
  105. package/dist/stories/MessageBubble.stories.d.ts +10 -0
  106. package/dist/stories/RunStatusBar.stories.d.ts +8 -0
  107. package/dist/stories/StatusTag.stories.d.ts +8 -0
  108. package/dist/stories/useConfirm.stories.d.ts +5 -0
  109. package/dist/stories/useMessage.stories.d.ts +5 -0
  110. package/dist/tokens/index.d.ts +139 -0
  111. package/dist/types/chat.d.ts +121 -0
  112. package/dist/types/index.d.ts +1 -0
  113. package/dist/utils/attachmentKind.d.ts +7 -0
  114. package/dist/utils/iconRegistry.d.ts +7 -0
  115. package/dist/utils/index.d.ts +6 -0
  116. package/dist/utils/pagination.d.ts +8 -0
  117. package/dist/utils/resolveApiErrorMessage.d.ts +22 -0
  118. package/dist/utils/textParser.d.ts +20 -0
  119. package/package.json +3 -1
  120. package/src/tokens/index.ts +78 -0
  121. package/src/tokens/tokens.css +74 -5
  122. package/styles/element-override.css +155 -0
@@ -0,0 +1,53 @@
1
+ import { DocumentPreviewChunk } from './types';
2
+ type __VLS_Props = {
3
+ /** 文件名 */
4
+ filename: string;
5
+ /** MIME 类型 */
6
+ mimetype?: string;
7
+ /** 文件大小(字节) */
8
+ size?: number;
9
+ /** 文本分块 */
10
+ chunks?: DocumentPreviewChunk[];
11
+ /** 抽取方法 */
12
+ extractionMethod?: string;
13
+ /** 是否有原文件可下载 */
14
+ hasOriginalFile?: boolean;
15
+ /** PDF 预览 URL */
16
+ pdfUrl?: string;
17
+ /** Excel 预览 URL */
18
+ excelUrl?: string;
19
+ /** 加载中 */
20
+ loading?: boolean;
21
+ /** 错误信息 */
22
+ error?: string | null;
23
+ };
24
+ declare var __VLS_9: {
25
+ url: string | undefined;
26
+ }, __VLS_11: {
27
+ url: string | undefined;
28
+ };
29
+ type __VLS_Slots = {} & {
30
+ pdf?: (props: typeof __VLS_9) => any;
31
+ } & {
32
+ excel?: (props: typeof __VLS_11) => any;
33
+ };
34
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ close: () => any;
36
+ download: () => any;
37
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
38
+ onClose?: (() => any) | undefined;
39
+ onDownload?: (() => any) | undefined;
40
+ }>, {
41
+ error: string | null;
42
+ loading: boolean;
43
+ chunks: DocumentPreviewChunk[];
44
+ hasOriginalFile: boolean;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;
49
+ type __VLS_WithSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,3 @@
1
+ export { default as DocumentPreviewPanel } from './DocumentPreviewPanel.vue';
2
+ export { default as DocumentPreviewDrawer } from './DocumentPreviewDrawer.vue';
3
+ export type { DocumentPreviewChunk, DocumentPreviewPanelProps } from './types';
@@ -0,0 +1,33 @@
1
+ /**
2
+ * DocumentPreview 相关类型
3
+ */
4
+ /** 文档分块 */
5
+ export interface DocumentPreviewChunk {
6
+ /** 块序号(可选) */
7
+ index?: number;
8
+ /** 块文本 */
9
+ text: string;
10
+ }
11
+ /** DocumentPreviewPanel 展示 props */
12
+ export interface DocumentPreviewPanelProps {
13
+ /** 文件名 */
14
+ filename: string;
15
+ /** MIME 类型 */
16
+ mimetype?: string;
17
+ /** 文件大小(字节) */
18
+ size?: number;
19
+ /** 文本分块 */
20
+ chunks?: DocumentPreviewChunk[];
21
+ /** 抽取方法 */
22
+ extractionMethod?: string;
23
+ /** 是否有原文件可下载 */
24
+ hasOriginalFile?: boolean;
25
+ /** PDF 预览 URL(提供时用 iframe/embed) */
26
+ pdfUrl?: string;
27
+ /** Excel 预览 URL(提供时用 iframe) */
28
+ excelUrl?: string;
29
+ /** 加载中 */
30
+ loading?: boolean;
31
+ /** 错误信息 */
32
+ error?: string | null;
33
+ }
@@ -0,0 +1,33 @@
1
+ type __VLS_Props = {
2
+ /** 图标名称(AppIcon 已注册的 kebab-case name) */
3
+ icon?: string;
4
+ /** 图标尺寸 */
5
+ iconSize?: number;
6
+ /** 标题文案 */
7
+ title?: string;
8
+ /** 描述文案 */
9
+ description?: string;
10
+ /** 紧凑空态,减少留白 */
11
+ compact?: boolean;
12
+ /** 操作按钮文案(无 default slot 时显示) */
13
+ actionText?: string;
14
+ };
15
+ declare var __VLS_6: {};
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_6) => any;
18
+ };
19
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ action: () => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onAction?: (() => any) | undefined;
23
+ }>, {
24
+ compact: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1 @@
1
+ export { default as EmptyState } from './EmptyState.vue';
@@ -0,0 +1,39 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ /** 自定义上下文信息,用于错误日志 */
5
+ context: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ /** 错误回调 */
10
+ onError: {
11
+ type: () => ((info: {
12
+ context?: string;
13
+ error: Error;
14
+ }) => void) | undefined;
15
+ default: undefined;
16
+ };
17
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
18
+ [key: string]: any;
19
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
20
+ /** 自定义上下文信息,用于错误日志 */
21
+ context: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ /** 错误回调 */
26
+ onError: {
27
+ type: () => ((info: {
28
+ context?: string;
29
+ error: Error;
30
+ }) => void) | undefined;
31
+ default: undefined;
32
+ };
33
+ }>> & Readonly<{}>, {
34
+ onError: ((info: {
35
+ context?: string;
36
+ error: Error;
37
+ }) => void) | undefined;
38
+ context: string;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export { default as ErrorBoundary } from './ErrorBoundary.vue';
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ /** 字段标签 */
3
+ label: string;
4
+ /** 多行控件时拉高对齐 */
5
+ textarea?: boolean;
6
+ /** 提示文案(拼进 label tooltip) */
7
+ hint?: string;
8
+ /** 必填标记 */
9
+ required?: boolean;
10
+ };
11
+ declare var __VLS_7: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_7) => any;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1 @@
1
+ export { default as FieldRow } from './FieldRow.vue';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * FilterBar — 列表页筛选条
3
+ *
4
+ * fields slot + 查询/重置;对应会议系统 MsFilterBar。
5
+ */
6
+ type __VLS_Props = {
7
+ /** 可选区块标题 */
8
+ title?: string;
9
+ };
10
+ declare var __VLS_1: {}, __VLS_3: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_1) => any;
13
+ } & {
14
+ actions?: (props: typeof __VLS_3) => any;
15
+ };
16
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ search: () => any;
18
+ reset: () => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onSearch?: (() => any) | undefined;
21
+ onReset?: (() => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1 @@
1
+ export { default as FilterBar } from './FilterBar.vue';
@@ -0,0 +1,21 @@
1
+ /**
2
+ * FilterTabs — 通用筛选标签栏
3
+ *
4
+ * 按钮组样式的筛选 tabs,用于列表页筛选。
5
+ */
6
+ type __VLS_Props = {
7
+ /** 选项;可选 count 显示计数 */
8
+ options: {
9
+ label: string;
10
+ value: string;
11
+ count?: number;
12
+ }[];
13
+ modelValue: string;
14
+ };
15
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (value: string) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as FilterTabs } from './FilterTabs.vue';
@@ -0,0 +1,44 @@
1
+ import { FormRules } from 'element-plus';
2
+ type __VLS_Props = {
3
+ modelValue: boolean;
4
+ title: string;
5
+ width?: string;
6
+ loading?: boolean;
7
+ labelWidth?: string;
8
+ formData: Record<string, unknown>;
9
+ rules?: FormRules;
10
+ showFullscreenBtn?: boolean;
11
+ cancelText?: string;
12
+ confirmText?: string;
13
+ };
14
+ declare var __VLS_20: {
15
+ form: Record<string, unknown>;
16
+ };
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_20) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ "update:modelValue": (value: boolean) => any;
22
+ cancel: () => any;
23
+ submit: (data: Record<string, unknown>) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
+ onCancel?: (() => any) | undefined;
27
+ onSubmit?: ((data: Record<string, unknown>) => any) | undefined;
28
+ }>, {
29
+ width: string;
30
+ loading: boolean;
31
+ showFullscreenBtn: boolean;
32
+ cancelText: string;
33
+ confirmText: string;
34
+ labelWidth: string;
35
+ rules: FormRules;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
40
+ type __VLS_WithSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1 @@
1
+ export { default as FormDialog } from './FormDialog.vue';
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ /** popover 宽度 */
3
+ width?: number | string;
4
+ };
5
+ declare var __VLS_14: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_14) => any;
8
+ };
9
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ width: number | string;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1 @@
1
+ export { default as HintText } from './HintText.vue';
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ /** 卡片标题 */
3
+ title: string;
4
+ /** JSON 字符串或已解析对象 */
5
+ data?: unknown;
6
+ /** 兼容旧 API:JSON 字符串 */
7
+ content?: string;
8
+ type?: 'json' | 'schema' | 'flow';
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ click: () => any;
12
+ openDetail: () => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onClick?: (() => any) | undefined;
15
+ onOpenDetail?: (() => any) | undefined;
16
+ }>, {
17
+ type: "json" | "schema" | "flow";
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as JsonCard } from './JsonCard.vue';
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ modelValue: boolean;
3
+ title?: string;
4
+ data?: unknown;
5
+ content?: string;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": (args_0: boolean) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as JsonDetailDialog } from './JsonDetailDialog.vue';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * LoadingDots — 三点跳动加载指示
3
+ */
4
+ type __VLS_Props = {
5
+ /** 圆点尺寸(px) */
6
+ size?: number;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as LoadingDots } from './LoadingDots.vue';
@@ -0,0 +1,28 @@
1
+ /**
2
+ * PageHeader — 统一页面标题栏
3
+ *
4
+ * 标题 + 副标题 + 右侧操作区(slot: actions;兼容 slot: extra)。
5
+ */
6
+ type __VLS_Props = {
7
+ /** 页面标题 */
8
+ title: string;
9
+ /** 副标题 */
10
+ subtitle?: string;
11
+ };
12
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_1) => any;
15
+ } & {
16
+ actions?: (props: typeof __VLS_3) => any;
17
+ } & {
18
+ extra?: (props: typeof __VLS_5) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1 @@
1
+ export { default as PageHeader } from './PageHeader.vue';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * PageShell — 路由页统一外沿容器
3
+ *
4
+ * 为列表 / 设置页提供内边距、滚动与页面背景。
5
+ * 全幅页(对话、设计器)不要使用本组件。
6
+ */
7
+ type __VLS_Props = {
8
+ /** 一屏填满:overflow hidden,末子 flex:1 可内滚 */
9
+ fill?: boolean;
10
+ };
11
+ declare var __VLS_1: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_1) => any;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ fill: boolean;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1 @@
1
+ export { default as PageShell } from './PageShell.vue';
@@ -0,0 +1,30 @@
1
+ /** 轻量字段定义 */
2
+ export type SchemaLiteField = {
3
+ key: string;
4
+ label: string;
5
+ type: 'input' | 'textarea' | 'number' | 'select' | 'switch' | 'date';
6
+ placeholder?: string;
7
+ options?: Array<{
8
+ label: string;
9
+ value: string | number;
10
+ }>;
11
+ disabled?: boolean;
12
+ };
13
+ type __VLS_Props = {
14
+ /** 字段列表 */
15
+ fields: SchemaLiteField[];
16
+ /** 受控表单值 */
17
+ modelValue?: Record<string, unknown>;
18
+ /** 标签宽度 */
19
+ labelWidth?: string;
20
+ };
21
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ "update:modelValue": (args_0: Record<string, unknown>) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ "onUpdate:modelValue"?: ((args_0: Record<string, unknown>) => any) | undefined;
25
+ }>, {
26
+ modelValue: Record<string, unknown>;
27
+ labelWidth: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as SchemaLitePreview } from './SchemaLitePreview.vue';
2
+ export type { SchemaLiteField } from './SchemaLitePreview.vue';
@@ -0,0 +1,39 @@
1
+ /** 搜索字段配置 */
2
+ export type SearchFieldConfig = {
3
+ key: string;
4
+ label: string;
5
+ type: 'input' | 'select' | 'date' | 'daterange';
6
+ options?: Array<{
7
+ label: string;
8
+ value: string | number;
9
+ }>;
10
+ placeholder?: string;
11
+ };
12
+ type __VLS_Props = {
13
+ fields: SearchFieldConfig[];
14
+ modelValue?: Record<string, unknown>;
15
+ collapsible?: boolean;
16
+ defaultCollapsed?: boolean;
17
+ defaultVisibleCount?: number;
18
+ };
19
+ declare function snapshot(): Record<string, unknown>;
20
+ declare function handleReset(): void;
21
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
22
+ getValues: typeof snapshot;
23
+ reset: typeof handleReset;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ "update:modelValue": (args_0: Record<string, unknown>) => any;
26
+ search: (args_0: Record<string, unknown>) => any;
27
+ reset: () => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ "onUpdate:modelValue"?: ((args_0: Record<string, unknown>) => any) | undefined;
30
+ onSearch?: ((args_0: Record<string, unknown>) => any) | undefined;
31
+ onReset?: (() => any) | undefined;
32
+ }>, {
33
+ modelValue: Record<string, unknown>;
34
+ collapsible: boolean;
35
+ defaultCollapsed: boolean;
36
+ defaultVisibleCount: number;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as SearchForm } from './SearchForm.vue';
2
+ export type { SearchFieldConfig } from './SearchForm.vue';
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ count?: number;
4
+ defaultOpen?: boolean;
5
+ };
6
+ declare var __VLS_6: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_6) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ defaultOpen: boolean;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1 @@
1
+ export { default as SectionToggle } from './SectionToggle.vue';
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Skeleton — 骨架屏
3
+ *
4
+ * 用于列表/卡片加载时的占位展示。
5
+ * 支持 card(卡片)、list(列表)、table(表格)三种预设。
6
+ *
7
+ * 用法:
8
+ * <Skeleton variant="card" :count="3" />
9
+ * <Skeleton variant="list" :rows="5" />
10
+ * <Skeleton variant="table" :rows="8" />
11
+ */
12
+ type __VLS_Props = {
13
+ /** 骨架类型 */
14
+ variant?: 'card' | 'list' | 'table';
15
+ /** 数量(card/list 模式下的卡片/列表项数量) */
16
+ count?: number;
17
+ /** 行数(table 模式下的行数) */
18
+ rows?: number;
19
+ /** 是否开启动画(默认 true) */
20
+ animated?: boolean;
21
+ };
22
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ count: number;
24
+ variant: "card" | "list" | "table";
25
+ rows: number;
26
+ animated: boolean;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Skeleton } from './Skeleton.vue';
@@ -0,0 +1,21 @@
1
+ export interface StatusConfig {
2
+ label: string;
3
+ type: 'success' | 'warning' | 'danger' | 'info' | 'primary' | '';
4
+ effect?: 'dark' | 'light' | 'plain';
5
+ }
6
+ type __VLS_Props = {
7
+ /** 状态值 */
8
+ status: string;
9
+ /** 自定义状态映射(合并到默认映射) */
10
+ statusMap?: Record<string, StatusConfig>;
11
+ /** 是否使用圆角样式(默认 true) */
12
+ round?: boolean;
13
+ /** 尺寸 */
14
+ size?: 'large' | 'default' | 'small';
15
+ };
16
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ size: "large" | "default" | "small";
18
+ round: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as StatusTag } from './StatusTag.vue';
2
+ export type { StatusConfig } from './StatusTag.vue';
@@ -0,0 +1,23 @@
1
+ /** 行操作项 */
2
+ export interface TableRowAction {
3
+ key: string;
4
+ label: string;
5
+ /** AppIcon name(仅下拉菜单项) */
6
+ icon?: string;
7
+ type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
8
+ loading?: boolean;
9
+ onClick: () => void;
10
+ }
11
+ type __VLS_Props = {
12
+ actions: TableRowAction[];
13
+ /** 达到该数量时折叠 */
14
+ collapseAt?: number;
15
+ /** 折叠时直接展示的按钮数 */
16
+ visibleCount?: number;
17
+ };
18
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ collapseAt: number;
20
+ visibleCount: number;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as TableRowActions } from './TableRowActions.vue';
2
+ export type { TableRowAction } from './TableRowActions.vue';