@ant-design/agentic-ui 2.29.11 → 2.29.13

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 (181) hide show
  1. package/dist/AILabel/style.d.ts +3 -0
  2. package/dist/AgentRunBar/style.d.ts +3 -0
  3. package/dist/AgenticLayout/style.d.ts +3 -0
  4. package/dist/AnswerAlert/style.d.ts +3 -0
  5. package/dist/BackTo/style.d.ts +3 -0
  6. package/dist/Bubble/List/style.d.ts +3 -0
  7. package/dist/Bubble/MessagesContent/VoiceButton/style.d.ts +3 -0
  8. package/dist/Bubble/MessagesContent/docInfoStyle.d.ts +3 -0
  9. package/dist/Bubble/MessagesContent/style.d.ts +3 -0
  10. package/dist/Bubble/style.d.ts +3 -0
  11. package/dist/ChatBootPage/ButtonTabGroupStyle.d.ts +3 -0
  12. package/dist/ChatBootPage/ButtonTabStyle.d.ts +6 -0
  13. package/dist/ChatBootPage/CaseReplyStyle.d.ts +3 -0
  14. package/dist/ChatBootPage/style.d.ts +3 -0
  15. package/dist/ChatLayout/style.d.ts +3 -0
  16. package/dist/Components/ActionIconBox/style.d.ts +3 -0
  17. package/dist/Components/ActionItemBox/ActionItemBox.d.ts +1 -1
  18. package/dist/Components/ActionItemBox/style.d.ts +3 -0
  19. package/dist/Components/Button/IconButton/style.d.ts +3 -0
  20. package/dist/Components/Button/SwitchButton/style.d.ts +3 -0
  21. package/dist/Components/Button/ToggleButton/style.d.ts +3 -0
  22. package/dist/Components/GradientText/index.d.ts +1 -1
  23. package/dist/Components/GradientText/style.d.ts +3 -0
  24. package/dist/Components/LayoutHeader/style.d.ts +3 -0
  25. package/dist/Components/Loading/Loading.d.ts +1 -1
  26. package/dist/Components/Loading/style.d.ts +3 -0
  27. package/dist/Components/SuggestionList/style.d.ts +3 -0
  28. package/dist/Components/TextAnimate/index.d.ts +1 -1
  29. package/dist/Components/TextAnimate/style.d.ts +3 -0
  30. package/dist/Components/TypingAnimation/index.d.ts +1 -1
  31. package/dist/Components/TypingAnimation/style.d.ts +3 -0
  32. package/dist/Components/VisualList/style.d.ts +3 -0
  33. package/dist/Components/lotties/TextLoading/style.d.ts +3 -0
  34. package/dist/Components/lotties/bubble-actions/Abstract/style.d.ts +3 -0
  35. package/dist/History/components/HistoryItem.js +3 -0
  36. package/dist/History/components/NewChatComponent.style.d.ts +3 -0
  37. package/dist/History/style.d.ts +3 -0
  38. package/dist/History/style.js +2 -2
  39. package/dist/Hooks/useLanguage.d.ts +1 -0
  40. package/dist/Hooks/useStyle/index.d.ts +3 -0
  41. package/dist/Hooks/useStyle/index.js +7 -4
  42. package/dist/I18n/locales.d.ts +1 -0
  43. package/dist/I18n/locales.js +2 -0
  44. package/dist/MarkdownEditor/editor/Editor.d.ts +1 -2
  45. package/dist/MarkdownEditor/editor/Editor.js +16 -5
  46. package/dist/MarkdownEditor/editor/components/CommentList/style.d.ts +3 -0
  47. package/dist/MarkdownEditor/editor/components/ContributorAvatar/style.d.ts +3 -0
  48. package/dist/MarkdownEditor/editor/components/LazyElement/style.d.ts +3 -0
  49. package/dist/MarkdownEditor/editor/components/fntTag/index.d.ts +1 -1
  50. package/dist/MarkdownEditor/editor/components/fntTag/style.d.ts +3 -0
  51. package/dist/MarkdownEditor/editor/elements/Blockquote/ReadonlyBlockquote.js +0 -5
  52. package/dist/MarkdownEditor/editor/elements/Blockquote/index.js +0 -10
  53. package/dist/MarkdownEditor/editor/elements/Break/ReadonlyBreak.js +0 -2
  54. package/dist/MarkdownEditor/editor/elements/Break/index.js +0 -2
  55. package/dist/MarkdownEditor/editor/elements/Card/ReadonlyCard.js +0 -6
  56. package/dist/MarkdownEditor/editor/elements/Card/index.js +0 -11
  57. package/dist/MarkdownEditor/editor/elements/Code/ReadonlyCode.js +4 -9
  58. package/dist/MarkdownEditor/editor/elements/Code/index.js +4 -9
  59. package/dist/MarkdownEditor/editor/elements/Comment/index.d.ts +0 -2
  60. package/dist/MarkdownEditor/editor/elements/Comment/index.js +1 -1
  61. package/dist/MarkdownEditor/editor/elements/CommentLeaf/index.d.ts +1 -2
  62. package/dist/MarkdownEditor/editor/elements/CommentLeaf/index.js +3 -9
  63. package/dist/MarkdownEditor/editor/elements/FncLeaf/index.d.ts +1 -2
  64. package/dist/MarkdownEditor/editor/elements/FncLeaf/index.js +2 -32
  65. package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/ReadonlyFootnoteDefinition.js +0 -7
  66. package/dist/MarkdownEditor/editor/elements/FootnoteDefinition/index.js +0 -1
  67. package/dist/MarkdownEditor/editor/elements/FootnoteReference/ReadonlyFootnoteReference.js +0 -3
  68. package/dist/MarkdownEditor/editor/elements/FootnoteReference/index.js +0 -1
  69. package/dist/MarkdownEditor/editor/elements/Head/ReadonlyHead.js +0 -4
  70. package/dist/MarkdownEditor/editor/elements/Head/index.js +0 -9
  71. package/dist/MarkdownEditor/editor/elements/Hr/ReadonlyHr.js +0 -2
  72. package/dist/MarkdownEditor/editor/elements/Hr/index.js +0 -2
  73. package/dist/MarkdownEditor/editor/elements/Image/index.js +2 -31
  74. package/dist/MarkdownEditor/editor/elements/InlineKatex/ReadonlyInlineKatex.js +0 -5
  75. package/dist/MarkdownEditor/editor/elements/LinkCard/ReadonlyLinkCard.js +11 -25
  76. package/dist/MarkdownEditor/editor/elements/LinkCard/index.js +11 -25
  77. package/dist/MarkdownEditor/editor/elements/List/List.d.ts +0 -3
  78. package/dist/MarkdownEditor/editor/elements/List/List.js +5 -36
  79. package/dist/MarkdownEditor/editor/elements/List/ListItem.js +4 -18
  80. package/dist/MarkdownEditor/editor/elements/List/ReadonlyList.js +4 -21
  81. package/dist/MarkdownEditor/editor/elements/List/ReadonlyListItem.js +3 -14
  82. package/dist/MarkdownEditor/editor/elements/Mermaid/ReadonlyMermaid.js +5 -12
  83. package/dist/MarkdownEditor/editor/elements/Mermaid/index.js +5 -12
  84. package/dist/MarkdownEditor/editor/elements/Paragraph/ReadonlyParagraph.js +0 -9
  85. package/dist/MarkdownEditor/editor/elements/Paragraph/index.js +0 -1
  86. package/dist/MarkdownEditor/editor/elements/Schema/ReadonlySchema.js +0 -13
  87. package/dist/MarkdownEditor/editor/elements/Schema/index.js +0 -3
  88. package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.d.ts +0 -1
  89. package/dist/MarkdownEditor/editor/elements/Table/ReadonlyTableComponent.js +9 -7
  90. package/dist/MarkdownEditor/editor/elements/Table/SimpleTable.js +3 -48
  91. package/dist/MarkdownEditor/editor/elements/Table/Table.d.ts +1 -2
  92. package/dist/MarkdownEditor/editor/elements/Table/Table.js +8 -7
  93. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/index.js +7 -9
  94. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/index.js +7 -9
  95. package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/index.js +3 -5
  96. package/dist/MarkdownEditor/editor/elements/Table/Td/index.js +6 -8
  97. package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +8 -10
  98. package/dist/MarkdownEditor/editor/elements/index.d.ts +1 -1
  99. package/dist/MarkdownEditor/editor/elements/index.js +83 -105
  100. package/dist/MarkdownEditor/editor/parser/parse/parseTable.d.ts +3 -2
  101. package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +14 -3
  102. package/dist/MarkdownEditor/editor/parser/parserMarkdownToSlateNode.js +16 -6
  103. package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +4 -1
  104. package/dist/MarkdownEditor/editor/plugins/useOnchange.js +9 -2
  105. package/dist/MarkdownEditor/editor/store.js +7 -4
  106. package/dist/MarkdownEditor/editor/style.d.ts +3 -0
  107. package/dist/MarkdownEditor/editor/tools/ToolBar/FloatBar.js +1 -2
  108. package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.d.ts +0 -1
  109. package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +3 -4
  110. package/dist/MarkdownEditor/editor/tools/ToolBar/floatBarStyle.d.ts +3 -0
  111. package/dist/MarkdownEditor/editor/tools/ToolBar/toolBarStyle.d.ts +3 -0
  112. package/dist/MarkdownEditor/editor/tools/insertAutocompleteStyle.d.ts +3 -0
  113. package/dist/MarkdownEditor/style.d.ts +3 -0
  114. package/dist/MarkdownEditor/style.js +575 -3
  115. package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.d.ts +3 -0
  116. package/dist/MarkdownInputField/AttachmentButton/AttachmentButtonPopover.js +47 -10
  117. package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.d.ts +3 -0
  118. package/dist/MarkdownInputField/AttachmentButton/index.d.ts +4 -0
  119. package/dist/MarkdownInputField/AttachmentButton/index.js +5 -3
  120. package/dist/MarkdownInputField/AttachmentButton/style.d.ts +3 -0
  121. package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.d.ts +1 -1
  122. package/dist/MarkdownInputField/BorderBeamAnimation.js +47 -25
  123. package/dist/MarkdownInputField/FileMapView/style.d.ts +3 -0
  124. package/dist/MarkdownInputField/RefinePromptButton/style.d.ts +3 -0
  125. package/dist/MarkdownInputField/SendButton/style.d.ts +3 -0
  126. package/dist/MarkdownInputField/SkillModeBar/style.d.ts +3 -0
  127. package/dist/MarkdownInputField/TopOperatingArea/style.d.ts +3 -0
  128. package/dist/MarkdownInputField/VoiceInput/style.d.ts +3 -0
  129. package/dist/MarkdownInputField/style.d.ts +3 -0
  130. package/dist/Plugins/chart/AreaChart/style.d.ts +3 -0
  131. package/dist/Plugins/chart/BarChart/style.d.ts +3 -0
  132. package/dist/Plugins/chart/ChartAttrToolBar/ChartAttrToolBarStyle.d.ts +3 -0
  133. package/dist/Plugins/chart/ChartStatistic/style.d.ts +3 -0
  134. package/dist/Plugins/chart/DonutChart/style.d.ts +3 -0
  135. package/dist/Plugins/chart/FunnelChart/style.d.ts +3 -0
  136. package/dist/Plugins/chart/LineChart/style.d.ts +3 -0
  137. package/dist/Plugins/chart/RadarChart/style.d.ts +3 -0
  138. package/dist/Plugins/chart/ScatterChart/style.d.ts +3 -0
  139. package/dist/Plugins/chart/components/ChartContainer/style.d.ts +3 -0
  140. package/dist/Plugins/chart/components/ChartFilter/style.d.ts +3 -0
  141. package/dist/Plugins/chart/components/ChartToolBar/style.d.ts +3 -0
  142. package/dist/Plugins/mermaid/MermaidFallback.d.ts +1 -2
  143. package/dist/Plugins/mermaid/MermaidRendererImpl.d.ts +1 -2
  144. package/dist/Plugins/mermaid/style.d.ts +3 -0
  145. package/dist/Plugins/mermaid/style.js +5 -2
  146. package/dist/Plugins/mermaid/utils.js +1 -1
  147. package/dist/Quote/style.d.ts +3 -0
  148. package/dist/Schema/SchemaEditor/style.d.ts +3 -0
  149. package/dist/TaskList/index.d.ts +1 -1
  150. package/dist/TaskList/style.d.ts +3 -0
  151. package/dist/ThoughtChainList/DotAni/index.d.ts +1 -2
  152. package/dist/ThoughtChainList/DotAni/style.d.ts +3 -0
  153. package/dist/ThoughtChainList/style.d.ts +3 -0
  154. package/dist/ToolUseBar/style.d.ts +3 -0
  155. package/dist/ToolUseBarThink/style.d.ts +3 -0
  156. package/dist/WelcomeMessage/style.d.ts +3 -0
  157. package/dist/Workspace/Browser/style.d.ts +3 -0
  158. package/dist/Workspace/File/style.d.ts +3 -0
  159. package/dist/Workspace/HtmlPreview/style.d.ts +3 -0
  160. package/dist/Workspace/RealtimeFollow/style.d.ts +3 -0
  161. package/dist/Workspace/Task/style.d.ts +3 -0
  162. package/dist/Workspace/style.d.ts +3 -0
  163. package/package.json +1 -1
  164. package/dist/MarkdownEditor/editor/elements/LinkCard/style.d.ts +0 -10
  165. package/dist/MarkdownEditor/editor/elements/LinkCard/style.js +0 -136
  166. package/dist/MarkdownEditor/editor/elements/List/style.d.ts +0 -10
  167. package/dist/MarkdownEditor/editor/elements/List/style.js +0 -139
  168. package/dist/MarkdownEditor/editor/elements/Mermaid/style.d.ts +0 -10
  169. package/dist/MarkdownEditor/editor/elements/Mermaid/style.js +0 -144
  170. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/style.d.ts +0 -10
  171. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndex/style.js +0 -131
  172. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/style.d.ts +0 -10
  173. package/dist/MarkdownEditor/editor/elements/Table/TableCellIndexSpacer/style.js +0 -125
  174. package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/style.d.ts +0 -10
  175. package/dist/MarkdownEditor/editor/elements/Table/TableRowIndex/style.js +0 -74
  176. package/dist/MarkdownEditor/editor/elements/Table/Td/style.d.ts +0 -10
  177. package/dist/MarkdownEditor/editor/elements/Table/Td/style.js +0 -93
  178. package/dist/MarkdownEditor/editor/elements/Table/style.d.ts +0 -11
  179. package/dist/MarkdownEditor/editor/elements/Table/style.js +0 -255
  180. package/dist/MarkdownEditor/editor/elements/TagPopup/style.d.ts +0 -5
  181. package/dist/MarkdownEditor/editor/elements/TagPopup/style.js +0 -111
@@ -1,255 +0,0 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function ownKeys(object, enumerableOnly) {
30
- var keys = Object.keys(object);
31
- if (Object.getOwnPropertySymbols) {
32
- var symbols = Object.getOwnPropertySymbols(object);
33
- if (enumerableOnly) {
34
- symbols = symbols.filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
- });
37
- }
38
- keys.push.apply(keys, symbols);
39
- }
40
- return keys;
41
- }
42
- function _object_spread_props(target, source) {
43
- source = source != null ? source : {};
44
- if (Object.getOwnPropertyDescriptors) {
45
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
- } else {
47
- ownKeys(Object(source)).forEach(function(key) {
48
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
- });
50
- }
51
- return target;
52
- }
53
- import { MOBILE_BREAKPOINT, MOBILE_PADDING } from "../../../../Constants/mobile";
54
- import { resetComponent, useEditorStyleRegister } from "../../../../Hooks/useStyle";
55
- var genStyle = function(token) {
56
- var _obj;
57
- return _define_property({}, token.componentCls, {
58
- width: '100%',
59
- overflow: 'auto',
60
- flex: 1,
61
- minWidth: 0,
62
- position: 'relative',
63
- '--table-border-radius': '8px',
64
- '--table-border-color': '#E7E9E8',
65
- '--table-header-bg': '#f7f7f9',
66
- '--table-odd-row-bg': 'rgba(35,35,38,.04)',
67
- '--table-hover-bg': 'rgba(0, 0, 0, 0.04)',
68
- '--table-cell-min-width': '120px',
69
- '&-container': _define_property({
70
- display: 'flex',
71
- gap: 1,
72
- maxWidth: '100%',
73
- minWidth: 0,
74
- outline: 'none',
75
- position: 'relative',
76
- marginBottom: 12
77
- }, "&:hover ".concat(token.componentCls, "-readonly-table-actions"), {
78
- opacity: 1,
79
- transform: 'translateX(50%)',
80
- top: -24
81
- }),
82
- '&-editor-table': {
83
- marginTop: '1em'
84
- },
85
- '&-readonly-table-actions': {
86
- opacity: 0,
87
- position: 'absolute',
88
- top: 20,
89
- display: 'flex',
90
- gap: 8,
91
- right: '50%',
92
- zIndex: 1000,
93
- backgroundColor: 'var(--color-gray-bg-page-light)',
94
- borderRadius: 'var(--radius-control-base)',
95
- padding: '4px 8px',
96
- boxShadow: 'var(--shadow-control-base)',
97
- border: 'none',
98
- transform: 'translateX(50%)',
99
- transition: 'all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)'
100
- },
101
- table: (_obj = {
102
- borderCollapse: 'separate',
103
- borderSpacing: 0,
104
- width: '100%',
105
- tableLayout: 'fixed',
106
- margin: '16px 0',
107
- position: 'relative',
108
- fontVariant: 'tabular-nums',
109
- borderRadius: 'var(--table-border-radius)',
110
- border: '1px solid var(--table-border-color)'
111
- }, _define_property(_obj, "&".concat(token.componentCls, "-readonly-pure"), {
112
- border: 'none',
113
- borderRadius: 'none',
114
- 'tr:not(.config-tr) td:not(.config-td)': {
115
- borderLeft: 'none'
116
- },
117
- 'tr:not(.config-tr):last-child td:not(.config-td)': {
118
- borderBottom: '1px solid var(--table-border-color)'
119
- },
120
- 'tr:not(.config-tr):first-child th:first-child:not(.config-td):not([colspan]):not([rowspan]), tr:not(.config-tr):first-child td:first-child:not(.config-td):not([colspan]):not([rowspan])': {
121
- borderTopLeftRadius: 'unset'
122
- },
123
- 'tr:not(.config-tr):first-child th:last-child:not(.config-td):not([colspan]):not([rowspan]), tr:not(.config-tr):first-child td:last-child:not(.config-td):not([colspan]):not([rowspan])': {
124
- borderTopRightRadius: 'unset'
125
- },
126
- 'tr:not(.config-tr):last-child td:first-child:not(.config-td):not([colspan]):not([rowspan]), tr:not(.config-tr):last-child th:first-child:not(.config-td):not([colspan]):not([rowspan])': {
127
- borderBottomLeftRadius: 'unset'
128
- },
129
- 'tr:not(.config-tr):last-child td:last-child:not(.config-td):not([colspan]):not([rowspan]), tr:not(.config-tr):last-child th:last-child:not(.config-td):not([colspan]):not([rowspan])': {
130
- borderBottomRightRadius: 'unset'
131
- }
132
- }), _define_property(_obj, 'th.config-th,td.config-td', {
133
- borderBottom: '1px solid var(--table-border-color)',
134
- borderLeft: '1px solid var(--table-border-color)'
135
- }), _define_property(_obj, 'tr td.config-td:first-child', {
136
- borderLeft: 'none'
137
- }), _define_property(_obj, 'th:not(.config-td)', {
138
- backgroundColor: 'var(--table-header-bg)',
139
- borderBottom: '1px solid var(--table-border-color)',
140
- textWrap: 'nowrap',
141
- verticalAlign: 'top',
142
- padding: '16px 12px',
143
- textAlign: 'left',
144
- lineHeight: '24px',
145
- fontSize: '1em',
146
- fontWeight: 600,
147
- borderTop: 'none',
148
- minWidth: 'var(--table-cell-min-width)',
149
- width: 'var(--table-cell-min-width)',
150
- whiteSpace: 'nowrap',
151
- overflow: 'hidden',
152
- textOverflow: 'ellipsis',
153
- zIndex: 1,
154
- background: 'inherit'
155
- }), _define_property(_obj, 'td:not(.config-td)', {
156
- verticalAlign: 'top',
157
- padding: '16px 12px',
158
- textAlign: 'left',
159
- position: 'relative',
160
- lineHeight: '24px',
161
- fontSize: '1em',
162
- minWidth: 'var(--table-cell-min-width)',
163
- width: 'var(--table-cell-min-width)',
164
- whiteSpace: 'nowrap',
165
- overflow: 'hidden',
166
- textOverflow: 'ellipsis',
167
- zIndex: 1,
168
- background: 'inherit',
169
- 'div[data-be="paragraph"]': {
170
- margin: 0,
171
- textWrap: 'auto'
172
- }
173
- }), _define_property(_obj, 'tr:not(.config-tr)', {
174
- background: 'inherit',
175
- '&:first-child td:not(.config-td)': {
176
- borderTop: 'none'
177
- },
178
- 'td:not(.config-td)': {
179
- borderBottom: '1px solid var(--table-border-color)',
180
- borderLeft: '1px solid var(--table-border-color)',
181
- '&:first-child': {
182
- fontSize: '1em',
183
- lineHeight: '24px',
184
- fontWeight: 600
185
- }
186
- },
187
- 'td:first-child:not(.config-td)': {
188
- borderLeft: 'none'
189
- },
190
- '&:last-child td:not(.config-td)': {
191
- borderBottom: 'none'
192
- }
193
- }), _define_property(_obj, 'tbody tr:not(.config-tr):hover', {
194
- background: 'linear-gradient(var(--table-hover-bg), var(--table-hover-bg)), linear-gradient(white, white)'
195
- }), // 表格圆角处理 - 重新设计逻辑
196
- // 1. 先为所有单元格重置圆角
197
- _define_property(_obj, 'th:not(.config-td), td:not(.config-td)', {
198
- borderRadius: '0'
199
- }), // 2. 为表格四个角的单元格设置圆角(仅当它们不是合并单元格时)
200
- _define_property(_obj, 'tr:not(.config-tr):first-child th:first-child:not(.config-td):not([colspan]):not([rowspan]), tr:not(.config-tr):first-child td:first-child:not(.config-td):not([colspan]):not([rowspan])', {
201
- borderTopLeftRadius: 'var(--table-border-radius)'
202
- }), _define_property(_obj, 'tr:not(.config-tr):first-child th:last-child:not(.config-td):not([colspan]):not([rowspan]), tr:not(.config-tr):first-child td:last-child:not(.config-td):not([colspan]):not([rowspan])', {
203
- borderTopRightRadius: 'var(--table-border-radius)'
204
- }), _define_property(_obj, 'tr:not(.config-tr):last-child td:first-child:not(.config-td):not([colspan]):not([rowspan]), tr:not(.config-tr):last-child th:first-child:not(.config-td):not([colspan]):not([rowspan])', {
205
- borderBottomLeftRadius: 'var(--table-border-radius)'
206
- }), _define_property(_obj, 'tr:not(.config-tr):last-child td:last-child:not(.config-td):not([colspan]):not([rowspan]), tr:not(.config-tr):last-child th:last-child:not(.config-td):not([colspan]):not([rowspan])', {
207
- borderBottomRightRadius: 'var(--table-border-radius)'
208
- }), // 3. 处理合并单元格的圆角
209
- // 左上角 - 第一行第一列的合并单元格
210
- _define_property(_obj, 'tr:not(.config-tr):first-child th:not(.config-td)[colspan]:first-child, tr:not(.config-tr):first-child td:not(.config-td)[colspan]:first-child,tr:not(.config-tr):first-child th:not(.config-td)[rowspan]:first-child, tr:not(.config-tr):first-child td:not(.config-td)[rowspan]:first-child', {
211
- borderTopLeftRadius: 'var(--table-border-radius)'
212
- }), // 右上角 - 第一行最后一列的合并单元格
213
- _define_property(_obj, 'tr:not(.config-tr):first-child th:not(.config-td)[colspan]:last-child, tr:not(.config-tr):first-child td:not(.config-td)[colspan]:last-child,tr:not(.config-tr):first-child th:not(.config-td)[rowspan]:last-child, tr:not(.config-tr):first-child td:not(.config-td)[rowspan]:last-child', {
214
- borderTopRightRadius: 'var(--table-border-radius)'
215
- }), // 左下角 - 最后一行第一列的合并单元格
216
- _define_property(_obj, 'tr:not(.config-tr):last-child td:not(.config-td)[colspan]:first-child, tr:not(.config-tr):last-child th:not(.config-td)[colspan]:first-child,tr:not(.config-tr):last-child td:not(.config-td)[rowspan]:first-child, tr:not(.config-tr):last-child th:not(.config-td)[rowspan]:first-child', {
217
- borderBottomLeftRadius: 'var(--table-border-radius)'
218
- }), // 右下角 - 最后一行最后一列的合并单元格
219
- _define_property(_obj, 'tr:not(.config-tr):last-child td:not(.config-td)[colspan]:last-child, tr:not(.config-tr):last-child th:not(.config-td)[colspan]:last-child,tr:not(.config-tr):last-child td:not(.config-td)[rowspan]:last-child, tr:not(.config-tr):last-child th:not(.config-td)[rowspan]:last-child', {
220
- borderBottomRightRadius: 'var(--table-border-radius)'
221
- }), // 4. 特殊处理:如果合并单元格跨越整个表格宽度
222
- _define_property(_obj, 'tr:not(.config-tr):first-child:last-child th:not(.config-td)[colspan]:first-child:last-child, tr:not(.config-tr):first-child:last-child td:not(.config-td)[colspan]:first-child:last-child', {
223
- borderRadius: 'var(--table-border-radius)'
224
- }), // 5. 特殊处理:如果合并单元格跨越整个表格高度
225
- _define_property(_obj, 'th:not(.config-td)[rowspan]:first-child:last-child, td:not(.config-td)[rowspan]:first-child:last-child', {
226
- borderTopLeftRadius: 'var(--table-border-radius)',
227
- borderBottomLeftRadius: 'var(--table-border-radius)'
228
- }), _define_property(_obj, "@media (max-width: ".concat(MOBILE_BREAKPOINT, ")"), {
229
- 'th:not(.config-td), td:not(.config-td)': {
230
- padding: "".concat(MOBILE_PADDING)
231
- }
232
- }), _obj),
233
- 'table.htCore': {
234
- boxSizing: 'content-box',
235
- '*': {
236
- boxSizing: 'content-box'
237
- }
238
- }
239
- });
240
- };
241
- /**
242
- * BubbleChat
243
- * @param prefixCls
244
- * @returns
245
- */ export function useTableStyle(prefixCls, propsToken) {
246
- return useEditorStyleRegister('md-editor-table', function(token) {
247
- var editorToken = _object_spread_props(_object_spread({}, token, propsToken), {
248
- componentCls: ".".concat(prefixCls)
249
- });
250
- return [
251
- resetComponent(editorToken),
252
- genStyle(editorToken)
253
- ];
254
- });
255
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function useStyle(prefixCls?: string): {
3
- wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
4
- hashId: string;
5
- };
@@ -1,111 +0,0 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function ownKeys(object, enumerableOnly) {
30
- var keys = Object.keys(object);
31
- if (Object.getOwnPropertySymbols) {
32
- var symbols = Object.getOwnPropertySymbols(object);
33
- if (enumerableOnly) {
34
- symbols = symbols.filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
- });
37
- }
38
- keys.push.apply(keys, symbols);
39
- }
40
- return keys;
41
- }
42
- function _object_spread_props(target, source) {
43
- source = source != null ? source : {};
44
- if (Object.getOwnPropertyDescriptors) {
45
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
- } else {
47
- ownKeys(Object(source)).forEach(function(key) {
48
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
- });
50
- }
51
- return target;
52
- }
53
- import { useEditorStyleRegister } from "../../../../Hooks/useStyle";
54
- var genStyle = function(token) {
55
- return _define_property({}, token.componentCls, {
56
- position: 'relative',
57
- cursor: 'pointer',
58
- padding: '0px 4px',
59
- margin: '0 2px',
60
- display: 'inline-flex',
61
- font: 'var(--font-text-body-base)',
62
- color: 'var(--color-primary-text-secondary)',
63
- borderRadius: 'var(--radius-control-sm)',
64
- background: 'var(--color-primary-bg-tip)',
65
- '[data-tag-popup-input]': {
66
- '&:not([data-composition]).empty::before': {
67
- color: 'var(--color-primary-text-disabled)',
68
- content: 'attr(title)',
69
- userSelect: 'none',
70
- position: 'absolute',
71
- left: '4px',
72
- top: 0
73
- },
74
- '&:hover::before': {
75
- opacity: 0.6
76
- },
77
- '&.empty::after': {
78
- content: 'attr(title)',
79
- opacity: 0,
80
- overflow: 'hidden',
81
- userSelect: 'none'
82
- }
83
- },
84
- '&-arrow': {
85
- position: 'absolute',
86
- right: '4px',
87
- top: '50%',
88
- transform: 'translateY(-50%)',
89
- color: 'var(--color-primary-text-disabled)',
90
- transition: 'transform 0.2s ease',
91
- '&.open': {
92
- transform: 'translateY(-50%) rotate(180deg)'
93
- }
94
- },
95
- '&-has-arrow': {
96
- paddingRight: '12px'
97
- },
98
- '&-loading': {
99
- }
100
- });
101
- };
102
- export function useStyle(prefixCls) {
103
- return useEditorStyleRegister('editor-content-tag-popup', function(token) {
104
- var editorToken = _object_spread_props(_object_spread({}, token), {
105
- componentCls: ".".concat(prefixCls)
106
- });
107
- return [
108
- genStyle(editorToken)
109
- ];
110
- });
111
- }