@apform-ui/core 1.0.2 → 1.3.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.
- package/README.md +85 -0
- package/dist/__tests__/components.spec.d.ts +1 -0
- package/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +5865 -1481
- package/dist/apform-ui.umd.cjs +68 -1
- package/dist/components/AppDialog/AppDialog.vue.d.ts +48 -0
- package/dist/components/AppDialog/index.d.ts +1 -0
- package/dist/components/AppIcon/AppIcon.vue.d.ts +11 -0
- package/dist/components/AppIcon/index.d.ts +1 -0
- package/dist/components/AppPagination/AppPagination.vue.d.ts +26 -0
- package/dist/components/AppPagination/index.d.ts +1 -0
- package/dist/components/CardGridSkeleton/CardGridSkeleton.vue.d.ts +34 -0
- package/dist/components/CardGridSkeleton/index.d.ts +1 -0
- package/dist/components/CardTable/CardTable.vue.d.ts +28 -0
- package/dist/components/CardTable/index.d.ts +1 -0
- package/dist/components/Chat/ApprovalCard/ApprovalCard.vue.d.ts +12 -0
- package/dist/components/Chat/ApprovalCard/index.d.ts +1 -0
- package/dist/components/Chat/Composer/Composer.vue.d.ts +32 -0
- package/dist/components/Chat/Composer/index.d.ts +1 -0
- package/dist/components/Chat/ConversationHeader/ConversationHeader.vue.d.ts +21 -0
- package/dist/components/Chat/ConversationHeader/index.d.ts +1 -0
- package/dist/components/Chat/MessageBubble/MessageBubble.vue.d.ts +23 -0
- package/dist/components/Chat/MessageBubble/index.d.ts +1 -0
- package/dist/components/Chat/MessageList/MessageList.vue.d.ts +24 -0
- package/dist/components/Chat/MessageList/index.d.ts +1 -0
- package/dist/components/Chat/ProcessingDrawer/ProcessingDrawer.vue.d.ts +32 -0
- package/dist/components/Chat/ProcessingDrawer/index.d.ts +1 -0
- package/dist/components/Chat/RunStatusBar/RunStatusBar.vue.d.ts +12 -0
- package/dist/components/Chat/RunStatusBar/index.d.ts +1 -0
- package/dist/components/Chat/SessionSidebar/SessionSidebar.vue.d.ts +18 -0
- package/dist/components/Chat/SessionSidebar/index.d.ts +1 -0
- package/dist/components/Chat/message/AttachmentPreviewModal.vue.d.ts +18 -0
- package/dist/components/Chat/message/DocumentSummaryList.vue.d.ts +12 -0
- package/dist/components/Chat/message/MessageAttachmentList.vue.d.ts +11 -0
- package/dist/components/Chat/message/MessageParts.vue.d.ts +6 -0
- package/dist/components/Chat/message/index.d.ts +4 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +26 -0
- package/dist/components/ConfirmDialog/index.d.ts +1 -0
- package/dist/components/ContentPanel/ContentPanel.vue.d.ts +31 -0
- package/dist/components/ContentPanel/index.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.vue.d.ts +23 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.vue.d.ts +39 -0
- package/dist/components/ErrorBoundary/index.d.ts +1 -0
- package/dist/components/FieldRow/FieldRow.vue.d.ts +23 -0
- package/dist/components/FieldRow/index.d.ts +1 -0
- package/dist/components/FilterBar/FilterBar.vue.d.ts +30 -0
- package/dist/components/FilterBar/index.d.ts +1 -0
- package/dist/components/FilterTabs/FilterTabs.vue.d.ts +21 -0
- package/dist/components/FilterTabs/index.d.ts +1 -0
- package/dist/components/FormDialog/FormDialog.vue.d.ts +44 -0
- package/dist/components/FormDialog/index.d.ts +1 -0
- package/dist/components/HintText/HintText.vue.d.ts +19 -0
- package/dist/components/HintText/index.d.ts +1 -0
- package/dist/components/JsonCard/JsonCard.vue.d.ts +20 -0
- package/dist/components/JsonCard/index.d.ts +1 -0
- package/dist/components/JsonDetailDialog/JsonDetailDialog.vue.d.ts +13 -0
- package/dist/components/JsonDetailDialog/index.d.ts +1 -0
- package/dist/components/LoadingDots/LoadingDots.vue.d.ts +10 -0
- package/dist/components/LoadingDots/index.d.ts +1 -0
- package/dist/components/PageHeader/PageHeader.vue.d.ts +28 -0
- package/dist/components/PageHeader/index.d.ts +1 -0
- package/dist/components/PageShell/PageShell.vue.d.ts +25 -0
- package/dist/components/PageShell/index.d.ts +1 -0
- package/dist/components/SchemaLitePreview/SchemaLitePreview.vue.d.ts +30 -0
- package/dist/components/SchemaLitePreview/index.d.ts +2 -0
- package/dist/components/SearchForm/SearchForm.vue.d.ts +39 -0
- package/dist/components/SearchForm/index.d.ts +2 -0
- package/dist/components/SectionToggle/SectionToggle.vue.d.ts +20 -0
- package/dist/components/SectionToggle/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.vue.d.ts +29 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/StatusTag/StatusTag.vue.d.ts +21 -0
- package/dist/components/StatusTag/index.d.ts +2 -0
- package/dist/components/TableRowActions/TableRowActions.vue.d.ts +23 -0
- package/dist/components/TableRowActions/index.d.ts +2 -0
- package/dist/components/Toast/Toast.vue.d.ts +12 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/TruncatedTooltipText/TruncatedTooltipText.vue.d.ts +22 -0
- package/dist/components/TruncatedTooltipText/index.d.ts +1 -0
- package/dist/components/UserAvatar/UserAvatar.vue.d.ts +26 -0
- package/dist/components/UserAvatar/index.d.ts +1 -0
- package/dist/composables/index.d.ts +7 -0
- package/dist/composables/useClientPagination.d.ts +15 -0
- package/dist/composables/useConfirm.d.ts +15 -0
- package/dist/composables/useDebounceFn.d.ts +1 -0
- package/dist/composables/useMessage.d.ts +8 -0
- package/dist/composables/useToast.d.ts +17 -0
- package/dist/index.d.ts +69 -0
- package/dist/stories/AppDialog.stories.d.ts +9 -0
- package/dist/stories/AppIcon.stories.d.ts +9 -0
- package/dist/stories/ApprovalCard.stories.d.ts +8 -0
- package/dist/stories/Composer.stories.d.ts +9 -0
- package/dist/stories/MessageBubble.stories.d.ts +10 -0
- package/dist/stories/RunStatusBar.stories.d.ts +8 -0
- package/dist/stories/StatusTag.stories.d.ts +8 -0
- package/dist/stories/useConfirm.stories.d.ts +5 -0
- package/dist/stories/useMessage.stories.d.ts +5 -0
- package/dist/tokens/index.d.ts +139 -0
- package/dist/types/chat.d.ts +121 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/attachmentKind.d.ts +7 -0
- package/dist/utils/iconRegistry.d.ts +7 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/pagination.d.ts +8 -0
- package/dist/utils/resolveApiErrorMessage.d.ts +22 -0
- package/dist/utils/textParser.d.ts +20 -0
- package/package.json +10 -6
- package/src/tokens/index.ts +78 -0
- package/src/tokens/tokens.css +74 -5
- package/styles/element-override.css +155 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Element Plus 表单 / 按钮尺寸覆盖
|
|
3
|
+
*
|
|
4
|
+
* 依赖 tokens.css 中的 --control-height-* / --button-height / --input-height。
|
|
5
|
+
* 用法:
|
|
6
|
+
* import '@apform-ui/core/design-tokens.css'
|
|
7
|
+
* import '@apform-ui/core/styles/element-override.css'
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--el-component-size: var(--control-height-md);
|
|
12
|
+
--el-component-size-small: var(--control-height-xs);
|
|
13
|
+
--el-component-size-large: var(--control-height-lg);
|
|
14
|
+
--el-font-size-base: var(--font-size-14);
|
|
15
|
+
--el-font-size-small: var(--font-size-12);
|
|
16
|
+
--el-font-size-large: var(--font-size-16);
|
|
17
|
+
--el-border-radius-base: var(--border-radius-sm);
|
|
18
|
+
--el-border-radius-small: var(--border-radius-sm);
|
|
19
|
+
--el-pagination-button-height: var(--input-height);
|
|
20
|
+
--el-pagination-button-width: var(--input-height);
|
|
21
|
+
--el-pagination-button-height-small: var(--control-height-xs);
|
|
22
|
+
--el-pagination-button-width-small: var(--control-height-xs);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* ---------- Button ---------- */
|
|
26
|
+
.el-button {
|
|
27
|
+
height: var(--button-height);
|
|
28
|
+
padding: 0 var(--spacing-md);
|
|
29
|
+
border-radius: var(--border-radius-sm);
|
|
30
|
+
font-size: var(--font-size-14);
|
|
31
|
+
font-weight: var(--font-weight-medium);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.el-button.el-button--small {
|
|
35
|
+
height: var(--control-height-xs);
|
|
36
|
+
padding: 0 var(--spacing-sm);
|
|
37
|
+
font-size: var(--font-size-12);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.el-button.el-button--large {
|
|
41
|
+
height: var(--button-height-lg);
|
|
42
|
+
padding: 0 var(--spacing-lg);
|
|
43
|
+
font-size: var(--font-size-16);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.el-button.is-circle {
|
|
47
|
+
width: var(--button-height);
|
|
48
|
+
height: var(--button-height);
|
|
49
|
+
padding: 0;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.el-button--small.is-circle {
|
|
54
|
+
width: var(--control-height-xs);
|
|
55
|
+
height: var(--control-height-xs);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.el-button--large.is-circle {
|
|
59
|
+
width: var(--control-height-lg);
|
|
60
|
+
height: var(--control-height-lg);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.el-button.is-link,
|
|
64
|
+
.el-button.is-text {
|
|
65
|
+
height: auto;
|
|
66
|
+
padding: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ---------- Input / Select / Date ---------- */
|
|
70
|
+
.el-input:not(.el-textarea),
|
|
71
|
+
.el-select,
|
|
72
|
+
.el-date-editor,
|
|
73
|
+
.el-cascader,
|
|
74
|
+
.el-input-number {
|
|
75
|
+
--el-input-height: var(--input-height);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.el-input:not(.el-input--small):not(.el-input--large):not(.el-textarea) .el-input__wrapper {
|
|
79
|
+
min-height: var(--input-height);
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.el-input:not(.el-input--small):not(.el-input--large):not(.el-textarea) .el-input__inner {
|
|
84
|
+
height: var(--input-height);
|
|
85
|
+
line-height: var(--input-height);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.el-input--small:not(.el-textarea) .el-input__wrapper,
|
|
89
|
+
.el-select--small .el-select__wrapper {
|
|
90
|
+
min-height: var(--control-height-md);
|
|
91
|
+
height: var(--control-height-md);
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.el-select:not(.el-select--small):not(.el-select--large) .el-select__wrapper {
|
|
96
|
+
min-height: var(--input-height);
|
|
97
|
+
height: var(--input-height);
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.el-input--large:not(.el-textarea) .el-input__wrapper,
|
|
102
|
+
.el-select--large .el-select__wrapper {
|
|
103
|
+
min-height: var(--control-height-lg);
|
|
104
|
+
height: var(--control-height-lg);
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.el-textarea {
|
|
109
|
+
height: auto;
|
|
110
|
+
line-height: var(--line-height-normal);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* ---------- Radio button group ---------- */
|
|
114
|
+
.el-radio-button__inner {
|
|
115
|
+
height: var(--button-height);
|
|
116
|
+
padding: 0 15px;
|
|
117
|
+
display: inline-flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
box-sizing: border-box;
|
|
120
|
+
font-size: var(--font-size-14);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.el-radio-button--large .el-radio-button__inner {
|
|
124
|
+
height: var(--button-height-lg);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* ---------- Pagination ---------- */
|
|
128
|
+
.el-pagination {
|
|
129
|
+
align-items: center;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.el-pagination .el-pagination__total,
|
|
133
|
+
.el-pagination .el-pagination__sizes,
|
|
134
|
+
.el-pagination .btn-prev,
|
|
135
|
+
.el-pagination .btn-next,
|
|
136
|
+
.el-pagination .el-pager li,
|
|
137
|
+
.el-pagination .el-pagination__jump {
|
|
138
|
+
height: var(--input-height);
|
|
139
|
+
line-height: var(--input-height);
|
|
140
|
+
min-width: var(--input-height);
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.el-pagination .el-pagination__sizes .el-select .el-select__wrapper {
|
|
145
|
+
min-height: var(--input-height);
|
|
146
|
+
height: var(--input-height);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.el-pagination.el-pagination--small .btn-prev,
|
|
150
|
+
.el-pagination.el-pagination--small .btn-next,
|
|
151
|
+
.el-pagination.el-pagination--small .el-pager li {
|
|
152
|
+
height: var(--control-height-xs);
|
|
153
|
+
line-height: var(--control-height-xs);
|
|
154
|
+
min-width: var(--control-height-xs);
|
|
155
|
+
}
|