@next-bricks/presentational-bricks 1.337.0 → 1.337.2

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 (211) hide show
  1. package/deploy/contract.yaml +108 -108
  2. package/dist/bricks.json +22 -22
  3. package/dist/index.afcbac66.js +2 -0
  4. package/dist/index.afcbac66.js.map +1 -0
  5. package/package.json +3 -3
  6. package/dist/index.81d05616.js +0 -2
  7. package/dist/index.81d05616.js.map +0 -1
  8. package/dist/types/agent-status/AgentStatus.d.ts +0 -7
  9. package/dist/types/agent-status/index.d.ts +0 -59
  10. package/dist/types/avatar-upload/AvatarUpload.d.ts +0 -10
  11. package/dist/types/avatar-upload/index.d.ts +0 -51
  12. package/dist/types/banner-display-card-list/BannerDisplayCardList.d.ts +0 -15
  13. package/dist/types/banner-display-card-list/index.d.ts +0 -25
  14. package/dist/types/basic-icon/BasicIcon.d.ts +0 -17
  15. package/dist/types/basic-icon/index.d.ts +0 -96
  16. package/dist/types/basic-progress/BasicProgress.d.ts +0 -36
  17. package/dist/types/basic-progress/index.d.ts +0 -122
  18. package/dist/types/brick-alert/BrickAlert.d.ts +0 -21
  19. package/dist/types/brick-alert/index.d.ts +0 -204
  20. package/dist/types/brick-alert-level/BrickAlertLevel.d.ts +0 -7
  21. package/dist/types/brick-alert-level/index.d.ts +0 -48
  22. package/dist/types/brick-alert-number/BrickAlertNumber.d.ts +0 -6
  23. package/dist/types/brick-alert-number/index.d.ts +0 -27
  24. package/dist/types/brick-alert-status/BrickAlertStatus.d.ts +0 -8
  25. package/dist/types/brick-alert-status/index.d.ts +0 -68
  26. package/dist/types/brick-alert-value/BrickAlertValue.d.ts +0 -7
  27. package/dist/types/brick-alert-value/index.d.ts +0 -28
  28. package/dist/types/brick-button/BrickButton.d.ts +0 -11
  29. package/dist/types/brick-button/index.d.ts +0 -2
  30. package/dist/types/brick-calendar/index.d.ts +0 -141
  31. package/dist/types/brick-cluster-type/BrickClusterType.d.ts +0 -8
  32. package/dist/types/brick-cluster-type/index.d.ts +0 -63
  33. package/dist/types/brick-code-display/BrickCodeDisplay.d.ts +0 -13
  34. package/dist/types/brick-code-display/index.d.ts +0 -2
  35. package/dist/types/brick-collapse-card/BrickCollapseCard.d.ts +0 -25
  36. package/dist/types/brick-collapse-card/index.d.ts +0 -175
  37. package/dist/types/brick-collection-instance-execution/BrickCollectionInstanceExecution.d.ts +0 -7
  38. package/dist/types/brick-collection-instance-execution/index.d.ts +0 -2
  39. package/dist/types/brick-conditional-display/BrickConditionalDisplay.d.ts +0 -19
  40. package/dist/types/brick-conditional-display/index.d.ts +0 -99
  41. package/dist/types/brick-delete-confirm/BrickDeleteConfirm.d.ts +0 -21
  42. package/dist/types/brick-delete-confirm/index.d.ts +0 -2
  43. package/dist/types/brick-descriptions/BrickDescriptions.d.ts +0 -22
  44. package/dist/types/brick-descriptions/index.d.ts +0 -192
  45. package/dist/types/brick-display-structs/BrickDisplayStructs.d.ts +0 -9
  46. package/dist/types/brick-display-structs/index.d.ts +0 -66
  47. package/dist/types/brick-divider/BrickDivider.d.ts +0 -12
  48. package/dist/types/brick-divider/index.d.ts +0 -76
  49. package/dist/types/brick-form/BrickForm.d.ts +0 -73
  50. package/dist/types/brick-form/components/brick-checkbox/BrickCheckbox.d.ts +0 -11
  51. package/dist/types/brick-form/components/brick-date-picker/BrickDatePicker.d.ts +0 -9
  52. package/dist/types/brick-form/components/brick-input/BrickInput.d.ts +0 -15
  53. package/dist/types/brick-form/components/brick-input-number/BrickInputNumber.d.ts +0 -9
  54. package/dist/types/brick-form/components/brick-instance-selector/BrickInstanceSelector.d.ts +0 -13
  55. package/dist/types/brick-form/components/brick-radio/BrickRadio.d.ts +0 -12
  56. package/dist/types/brick-form/components/brick-select/BrickSelect.d.ts +0 -18
  57. package/dist/types/brick-form/components/brick-switch/BrickSwitch.d.ts +0 -14
  58. package/dist/types/brick-form/components/brick-time-picker/BrickTimePicker.d.ts +0 -8
  59. package/dist/types/brick-form/components/wrapper-form-item/WrapperFormItem.d.ts +0 -10
  60. package/dist/types/brick-form/index.d.ts +0 -12
  61. package/dist/types/brick-form/interfaces/brick-component.d.ts +0 -5
  62. package/dist/types/brick-form/interfaces/index.d.ts +0 -1
  63. package/dist/types/brick-form/processor/handleChange.d.ts +0 -1
  64. package/dist/types/brick-form/processor/index.d.ts +0 -1
  65. package/dist/types/brick-general-search/BrickGeneralSearch.d.ts +0 -28
  66. package/dist/types/brick-general-search/index.d.ts +0 -233
  67. package/dist/types/brick-humanize-time/BrickHumanizeTime.d.ts +0 -16
  68. package/dist/types/brick-humanize-time/index.d.ts +0 -101
  69. package/dist/types/brick-illustration/BrickIllustration.d.ts +0 -14
  70. package/dist/types/brick-illustration/index.d.ts +0 -87
  71. package/dist/types/brick-input/BrickInput.d.ts +0 -11
  72. package/dist/types/brick-input/index.d.ts +0 -73
  73. package/dist/types/brick-link/BrickLink.d.ts +0 -21
  74. package/dist/types/brick-link/index.d.ts +0 -208
  75. package/dist/types/brick-list/BrickList.d.ts +0 -20
  76. package/dist/types/brick-list/index.d.ts +0 -6
  77. package/dist/types/brick-placeholder/BrickPlaceholder.d.ts +0 -6
  78. package/dist/types/brick-placeholder/index.d.ts +0 -59
  79. package/dist/types/brick-quick-entries/BrickQuickEntries.d.ts +0 -16
  80. package/dist/types/brick-quick-entries/index.d.ts +0 -153
  81. package/dist/types/brick-rate/BrickRate.d.ts +0 -11
  82. package/dist/types/brick-rate/index.d.ts +0 -99
  83. package/dist/types/brick-result/BrickResult.d.ts +0 -21
  84. package/dist/types/brick-result/components/IllustrationWrapper.d.ts +0 -16
  85. package/dist/types/brick-result/index.d.ts +0 -77
  86. package/dist/types/brick-table/BrickTable.d.ts +0 -57
  87. package/dist/types/brick-table/brickTableHelper.d.ts +0 -6
  88. package/dist/types/brick-table/index.d.ts +0 -828
  89. package/dist/types/brick-tag/BrickTag.d.ts +0 -35
  90. package/dist/types/brick-tag/index.d.ts +0 -194
  91. package/dist/types/brick-timeline/BrickTimeline.d.ts +0 -16
  92. package/dist/types/brick-timeline/TimelineCard.d.ts +0 -15
  93. package/dist/types/brick-timeline/index.d.ts +0 -119
  94. package/dist/types/brick-timeline/processor.d.ts +0 -5
  95. package/dist/types/brick-tree/BrickTree.d.ts +0 -67
  96. package/dist/types/brick-tree/index.d.ts +0 -325
  97. package/dist/types/brick-user/BrickUser.d.ts +0 -15
  98. package/dist/types/brick-user/index.d.ts +0 -130
  99. package/dist/types/brick-user-group/BrickUserGroup.d.ts +0 -12
  100. package/dist/types/brick-user-group/index.d.ts +0 -61
  101. package/dist/types/brick-utils/index.d.ts +0 -44
  102. package/dist/types/brick-value-mapping/BrickValueMapping.d.ts +0 -24
  103. package/dist/types/brick-value-mapping/index.d.ts +0 -132
  104. package/dist/types/button-wrapper/ButtonWrapper.d.ts +0 -7
  105. package/dist/types/button-wrapper/index.d.ts +0 -4
  106. package/dist/types/card-item/CardItem.d.ts +0 -52
  107. package/dist/types/card-item/index.d.ts +0 -392
  108. package/dist/types/code-editor/CodeEditor.d.ts +0 -19
  109. package/dist/types/code-editor/brace/mode.d.ts +0 -4
  110. package/dist/types/code-editor/brace/theme.d.ts +0 -3
  111. package/dist/types/code-editor/index.d.ts +0 -118
  112. package/dist/types/collapse-info-list/CollapseInfoList.d.ts +0 -19
  113. package/dist/types/collapse-info-list/index.d.ts +0 -53
  114. package/dist/types/collapsible-card-item/CollapsibleCardItem.d.ts +0 -19
  115. package/dist/types/collapsible-card-item/index.d.ts +0 -165
  116. package/dist/types/copyable-text/CopyableText.d.ts +0 -12
  117. package/dist/types/copyable-text/index.d.ts +0 -73
  118. package/dist/types/cost-time/CostTime.d.ts +0 -9
  119. package/dist/types/cost-time/i18n/constants.d.ts +0 -20
  120. package/dist/types/cost-time/index.d.ts +0 -73
  121. package/dist/types/crontab-display/CrontabDisplay.d.ts +0 -5
  122. package/dist/types/crontab-display/index.d.ts +0 -47
  123. package/dist/types/datetime-selector/DatetimeSelector.d.ts +0 -19
  124. package/dist/types/datetime-selector/index.d.ts +0 -167
  125. package/dist/types/datetime-selector/processor.d.ts +0 -16
  126. package/dist/types/digital-number/DigitalNumber.d.ts +0 -21
  127. package/dist/types/digital-number/index.d.ts +0 -101
  128. package/dist/types/dropdown-button/DropdownButton.d.ts +0 -17
  129. package/dist/types/dropdown-button/index.d.ts +0 -106
  130. package/dist/types/dropdown-select/DropdownSelect.d.ts +0 -37
  131. package/dist/types/dropdown-select/index.d.ts +0 -231
  132. package/dist/types/dynamic-content/index.d.ts +0 -35
  133. package/dist/types/dynamic-grid-container/DynamicGridContainer.d.ts +0 -9
  134. package/dist/types/dynamic-grid-container/index.d.ts +0 -47
  135. package/dist/types/entry-card-item/EntryCardItem.d.ts +0 -20
  136. package/dist/types/entry-card-item/index.d.ts +0 -146
  137. package/dist/types/general-badge/index.d.ts +0 -95
  138. package/dist/types/general-carousel/GeneralCarousel.d.ts +0 -28
  139. package/dist/types/general-carousel/index.d.ts +0 -197
  140. package/dist/types/general-iframe/index.d.ts +0 -62
  141. package/dist/types/general-image/GeneralImage.d.ts +0 -14
  142. package/dist/types/general-image/index.d.ts +0 -124
  143. package/dist/types/general-label/GeneralLabel.d.ts +0 -12
  144. package/dist/types/general-label/index.d.ts +0 -79
  145. package/dist/types/general-list/GeneralList.d.ts +0 -8
  146. package/dist/types/general-list/index.d.ts +0 -59
  147. package/dist/types/general-pagination/GeneralPagination.d.ts +0 -12
  148. package/dist/types/general-pagination/index.d.ts +0 -108
  149. package/dist/types/general-preview-image/GeneralPreviewImage.d.ts +0 -9
  150. package/dist/types/general-preview-image/components/Image.d.ts +0 -35
  151. package/dist/types/general-preview-image/components/Operations.d.ts +0 -20
  152. package/dist/types/general-preview-image/components/Preview.d.ts +0 -24
  153. package/dist/types/general-preview-image/components/PreviewGroup.d.ts +0 -40
  154. package/dist/types/general-preview-image/components/getFixScaleEleTransPosition.d.ts +0 -16
  155. package/dist/types/general-preview-image/components/hooks/useImageTransform.d.ts +0 -23
  156. package/dist/types/general-preview-image/components/previewConfig.d.ts +0 -8
  157. package/dist/types/general-preview-image/index.d.ts +0 -75
  158. package/dist/types/general-slider/GeneralSlider.d.ts +0 -18
  159. package/dist/types/general-slider/index.d.ts +0 -118
  160. package/dist/types/general-tooltip/GeneralTooltip.d.ts +0 -19
  161. package/dist/types/general-tooltip/index.d.ts +0 -117
  162. package/dist/types/general-transfer/GeneralTransfer.d.ts +0 -19
  163. package/dist/types/general-transfer/index.d.ts +0 -160
  164. package/dist/types/general-video/GeneralVideo.d.ts +0 -11
  165. package/dist/types/general-video/index.d.ts +0 -51
  166. package/dist/types/i18n/constants.d.ts +0 -51
  167. package/dist/types/info-display-card-list/InfoDisplayCardList.d.ts +0 -27
  168. package/dist/types/info-display-card-list/index.d.ts +0 -148
  169. package/dist/types/interfaces/brick-collapse-card.d.ts +0 -4
  170. package/dist/types/interfaces/brick-result.d.ts +0 -27
  171. package/dist/types/interfaces/brick-tag.d.ts +0 -35
  172. package/dist/types/interfaces/brick-tree.d.ts +0 -5
  173. package/dist/types/interfaces/common.d.ts +0 -15
  174. package/dist/types/interfaces/dropdown-select.d.ts +0 -7
  175. package/dist/types/interfaces/index.d.ts +0 -2
  176. package/dist/types/jsx.d.ts +0 -315
  177. package/dist/types/log-display/LogDisplay.d.ts +0 -8
  178. package/dist/types/log-display/index.d.ts +0 -54
  179. package/dist/types/markdown-display/MarkdownDisplay.d.ts +0 -17
  180. package/dist/types/markdown-display/SyntaxHighlighter.d.ts +0 -13
  181. package/dist/types/markdown-display/index.d.ts +0 -88
  182. package/dist/types/markdown-editor/MarkdownEditor.d.ts +0 -23
  183. package/dist/types/markdown-editor/index.d.ts +0 -154
  184. package/dist/types/modal-confirm/ModalConfirm.d.ts +0 -30
  185. package/dist/types/modal-confirm/index.d.ts +0 -231
  186. package/dist/types/qrcode-download/index.d.ts +0 -77
  187. package/dist/types/qrcode-download/utils.d.ts +0 -6
  188. package/dist/types/rank-table/RankTable.d.ts +0 -21
  189. package/dist/types/rank-table/RankTableHelper.d.ts +0 -14
  190. package/dist/types/rank-table/index.d.ts +0 -215
  191. package/dist/types/single-field-edit/SingleFieldEdit.d.ts +0 -22
  192. package/dist/types/single-field-edit/index.d.ts +0 -148
  193. package/dist/types/statistic-card/StatisticCard.d.ts +0 -15
  194. package/dist/types/statistic-card/index.d.ts +0 -130
  195. package/dist/types/table-transfer/TableTransfer.d.ts +0 -32
  196. package/dist/types/table-transfer/TableTransferHelper.d.ts +0 -14
  197. package/dist/types/table-transfer/index.d.ts +0 -123
  198. package/dist/types/template-breadcrumb/index.d.ts +0 -67
  199. package/dist/types/text-collapse/TextCollapse.d.ts +0 -7
  200. package/dist/types/text-collapse/index.d.ts +0 -33
  201. package/dist/types/tree-transfer/TreeTransfer.d.ts +0 -18
  202. package/dist/types/tree-transfer/index.d.ts +0 -96
  203. package/dist/types/tree-transfer/treeShuttleBox/TreeShuttleBox.d.ts +0 -19
  204. package/dist/types/tree-transfer/treeShuttleBox/TreeShuttleBoxLeft.d.ts +0 -10
  205. package/dist/types/tree-transfer/treeShuttleBox/TreeShuttleBoxRight.d.ts +0 -9
  206. package/dist/types/tree-transfer/treeShuttleBox/TreeShuttleButton.d.ts +0 -7
  207. package/dist/types/tree-transfer/treeShuttleBox/index.d.ts +0 -3
  208. package/dist/types/tree-transfer/treeShuttleBox/interfaceType.d.ts +0 -14
  209. package/dist/types/tree-transfer/treeShuttleBox/tool.d.ts +0 -67
  210. package/dist/types/tree-transfer/treeShuttleBox/useTreeContext.d.ts +0 -35
  211. package/dist/types/tree-transfer/treeShuttleBox/useTreeShuttle.d.ts +0 -31
@@ -1,208 +0,0 @@
1
- import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
2
- import { MenuIcon } from "@next-core/brick-types";
3
- export interface BrickLinkElementProps {
4
- label?: string;
5
- url?: string;
6
- href?: string;
7
- target?: string;
8
- tooltip?: string;
9
- tooltipProps?: Record<string, any>;
10
- dataSource?: Record<string, any>;
11
- labelColor?: string;
12
- underLine?: boolean;
13
- icon?: MenuIcon;
14
- disabled?: boolean;
15
- hideExternalIcon?: boolean;
16
- notToJumpWhenEmpty?: boolean;
17
- type?: "link" | "text";
18
- iconAlign?: "left" | "right";
19
- native?: boolean;
20
- labelField?: string;
21
- detail?: any;
22
- urlTemplate?: string;
23
- }
24
- /**
25
- * @id presentational-bricks.brick-link
26
- * @name presentational-bricks.brick-link
27
- * @docKind brick
28
- * @description 将值渲染成跳转链接,支持url模板配置
29
- * @author lynette
30
- * @slots
31
- * @history
32
- * 1.169.0:新增属性`type`
33
- * 1.89.11:使用 `dataSource` 代替之前 `detail`
34
- * 1.78.0:新增属性`detail`
35
- * 1.73.0:新增属性`disabled`,`tooltip`,`notToJumpWhenEmpty`,新增事件`link.click`
36
- * @groupI8N
37
- * {
38
- * "basic": {"en": "Basic", "zh": "常用"},
39
- * "ui": {"en": "UI", "zh": "外观"}
40
- * }
41
- * @memo
42
- * @noInheritDoc
43
- */
44
- export declare class BrickLinkElement extends UpdatingElement implements BrickLinkElementProps {
45
- /**
46
- * @kind string
47
- * @required false
48
- * @default -
49
- * @description 链接的文字
50
- * @group basic
51
- */
52
- label: string;
53
- /**
54
- * @kind string
55
- * @required false
56
- * @default -
57
- * @description 链接的 URL
58
- * @group basic
59
- */
60
- url: string;
61
- /**
62
- * @kind string
63
- * @required false
64
- * @default -
65
- * @description 是否使用原生 <a> 标签,通常用于外链的跳转
66
- * @group basic
67
- */
68
- href: string;
69
- /**
70
- * @kind string
71
- * @required false
72
- * @default -
73
- * @description 当将其配置成 `_blank` 时,默认在 label 后添加 external-link-alt icon
74
- * @group basic
75
- */
76
- target: string;
77
- /**
78
- * @kind string
79
- * @required false
80
- * @default -
81
- * @description 提示
82
- * @group basic
83
- */
84
- tooltip: string;
85
- /**
86
- * @kind Record<string, any>
87
- * @required false
88
- * @default -
89
- * @description 提示
90
- * @group basic
91
- */
92
- tooltipProps: Record<string, any>;
93
- /**
94
- * @kind Record<string, any>
95
- * @required false
96
- * @default -
97
- * @description `link.click` 事件传出的数据, 替代之前的 `detail`
98
- * @group basic
99
- */
100
- dataSource: Record<string, any>;
101
- /**
102
- * @kind string
103
- * @required false
104
- * @default -
105
- * @description label颜色
106
- * @group ui
107
- */
108
- labelColor: string;
109
- /**
110
- * @kind boolean
111
- * @required false
112
- * @default -
113
- * @description 鼠标进入label时显示下划线
114
- * @group ui
115
- */
116
- underLine: boolean;
117
- /**
118
- * @kind MenuIcon
119
- * @required false
120
- * @default -
121
- * @description 图标 [MenuIcon](http://docs.developers.easyops.cn/docs/brick-next/icon)
122
- * @group ui
123
- */
124
- icon: MenuIcon;
125
- /**
126
- * @kind boolean
127
- * @required false
128
- * @default false
129
- * @description 是否禁用
130
- * @group basic
131
- */
132
- disabled: boolean;
133
- /**
134
- * @kind boolean
135
- * @required false
136
- * @default false
137
- * @description 是否隐藏target为_blank时label后的icon
138
- * @group ui
139
- */
140
- hideExternalIcon: boolean;
141
- /**
142
- * @kind boolean
143
- * @required false
144
- * @default false
145
- * @description url 为空时不跳转,但是会发出`link.click`点击事件
146
- * @group basic
147
- */
148
- notToJumpWhenEmpty: boolean;
149
- /**
150
- * @default link
151
- * @required false
152
- * @description 链接类型:默认链接 - link 和 文本链接 - text
153
- * @group ui
154
- */
155
- type: "link" | "text";
156
- /**
157
- * @default left
158
- * @required false
159
- * @description 链接图标位置:左边 - left 右边 - right
160
- * @group ui
161
- */
162
- iconAlign: "left" | "right";
163
- /**
164
- * @kind boolean
165
- * @required false
166
- * @default false
167
- * @description [已废弃]是否使用原生 <a> 标签, 为了跟平台规范一致准备废弃该属性,统一采用 href 属性表示原生标签跳转。
168
- * @deprecated
169
- * @group basic
170
- */
171
- native: boolean;
172
- /**
173
- * @kind string
174
- * @required false
175
- * @default -
176
- * @description [已废弃]链接的文字在数据源上的字段
177
- * @deprecated
178
- * @group basic
179
- */
180
- labelField: string;
181
- /**
182
- * @kind any
183
- * @required false
184
- * @default false
185
- * @description [已废弃]`link.click`事件的详情
186
- * @deprecated
187
- * @group basic
188
- */
189
- detail: any;
190
- /**
191
- * @kind string
192
- * @required false
193
- * @default -
194
- * @description [已废弃]链接的 URL 的模板,可使用 #{a.b} 的标记使用数据源里的属性值
195
- * @deprecated
196
- * @group basic
197
- */
198
- urlTemplate: string;
199
- /**
200
- * @detail Record<string, any>
201
- * @description 点击 link 触发的事件,事件 detail 为传入的 dataSource
202
- */
203
- linkClick: EventEmitter<any>;
204
- connectedCallback(): void;
205
- disconnectedCallback(): void;
206
- private _handleClick;
207
- protected _render(): void;
208
- }
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import { ListProps, ListItemProps, ListItemMetaProps } from "antd/lib/List";
3
- import { ItemBrick } from "./index";
4
- export interface MetaProps extends ListItemMetaProps {
5
- src: string;
6
- title: string;
7
- description: string;
8
- }
9
- export interface ItemProps extends ListItemProps {
10
- meta: MetaProps;
11
- content: string;
12
- }
13
- export interface BrickListProps {
14
- configProps?: ListProps<any>;
15
- itemList: ItemProps[];
16
- itemBrick?: ItemBrick;
17
- itemStyle?: any;
18
- isCardList?: boolean;
19
- }
20
- export declare function BrickList(props: BrickListProps): React.ReactElement;
@@ -1,6 +0,0 @@
1
- export interface BrickListElementProps {
2
- }
3
- export interface ItemBrick {
4
- brick: string | any;
5
- properties?: Record<string, any>;
6
- }
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- interface BrickPlaceholderProps {
3
- text?: string;
4
- }
5
- export declare function BrickPlaceholder(props: BrickPlaceholderProps): React.ReactElement;
6
- export {};
@@ -1,59 +0,0 @@
1
- import { UpdatingElement } from "@next-core/brick-kit";
2
- export interface BrickPlaceholderElementProps {
3
- showCard?: boolean;
4
- bordered?: boolean;
5
- gridRow?: string;
6
- gridColumn?: string;
7
- text?: string;
8
- }
9
- /**
10
- * @id presentational-bricks.brick-placeholder
11
- * @name presentational-bricks.brick-placeholder
12
- * @docKind brick
13
- * @description 在编排时,可在 Grid 布局中临时占位
14
- * @author cyril
15
- * @slots
16
- * @history
17
- * @memo
18
- * @noInheritDoc
19
- */
20
- export declare class BrickPlaceholderElement extends UpdatingElement implements BrickPlaceholderElementProps {
21
- /**
22
- * @kind boolean
23
- * @required false
24
- * @default true
25
- * @description 是否展示卡片背景
26
- */
27
- showCard: boolean;
28
- /**
29
- * @kind boolean
30
- * @required false
31
- * @default false
32
- * @description 是否展示卡片边框
33
- */
34
- bordered: boolean;
35
- /**
36
- * @kind string
37
- * @required true
38
- * @default -
39
- * @description 在 Grid 布局容器中的所占的行列数
40
- */
41
- gridRow: string;
42
- /**
43
- * @kind string
44
- * @required true
45
- * @default -
46
- * @description 在 Grid 布局容器中的所占的列列数
47
- */
48
- gridColumn: string;
49
- /**
50
- * @kind string
51
- * @required false
52
- * @default -
53
- * @description 提示内容
54
- */
55
- text?: string;
56
- connectedCallback(): void;
57
- disconnectedCallback(): void;
58
- protected _render(): void;
59
- }
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { UseBrickConf } from "@next-core/brick-types";
3
- import { LinkProps, TitleConfig } from "./index";
4
- export interface BrickQuickEntriesProps {
5
- row: number;
6
- column: number;
7
- links?: LinkProps[];
8
- useBricks?: UseBrickConf;
9
- data?: any[];
10
- containerStyle?: React.CSSProperties;
11
- mode?: "multiCardGeneral" | "multiCardNoLine" | "default";
12
- titleList?: TitleConfig[];
13
- titleIconClick?: (r: any) => void;
14
- divider?: boolean;
15
- }
16
- export declare function BrickQuickEntries(props: BrickQuickEntriesProps): React.ReactElement;
@@ -1,153 +0,0 @@
1
- import React from "react";
2
- import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
3
- import { MenuIcon, UseBrickConf } from "@next-core/brick-types";
4
- export interface BrickQuickEntriesElementProps {
5
- links?: LinkProps[];
6
- useBrick?: UseBrickConf;
7
- data?: any[];
8
- titleList?: TitleConfig[];
9
- containerStyle?: React.CSSProperties;
10
- mode?: "multiCardGeneral" | "multiCardNoLine" | "default";
11
- useBricks?: UseBrickConf;
12
- }
13
- export interface LinkProps {
14
- icon: MenuIcon;
15
- target: string;
16
- text: string;
17
- }
18
- export interface TitleConfig {
19
- icon?: MenuIcon;
20
- title?: string;
21
- value?: string;
22
- tooltip?: string;
23
- }
24
- /**
25
- * @id presentational-bricks.brick-quick-entries
26
- * @name presentational-bricks.brick-quick-entries
27
- * @docKind brick
28
- * @description 展示多个快捷入口
29
- * @author cyril
30
- * @slots
31
- * @history
32
- * 1.145.4:删除 `mode` 属性
33
- * 1.142.0:新增 `mode` 属性
34
- * 1.122.0:新增 `useBrick` 和 `containerStyle` 属性
35
- * 1.87.0:新增 `showCard` 属性
36
- * 1.84.0:新增 `useBricks` 属性
37
- * @memo
38
- *
39
- * ```typescript
40
- * declare type MenuIcon = AntdIcon | FaIcon | EasyopsIcon;
41
- *
42
- * interface AntdIcon {
43
- * lib: "antd";
44
- * type: string;
45
- * theme?: ThemeType;
46
- * }
47
- *
48
- * interface FaIcon {
49
- * lib: "fa";
50
- * icon: IconName;
51
- * prefix?: IconPrefix;
52
- * }
53
- *
54
- * interface EasyopsIcon {
55
- * lib: "easyops";
56
- * icon: string;
57
- * category?: string;
58
- * }
59
- * ```
60
- *
61
- * @noInheritDoc
62
- */
63
- export declare class BrickQuickEntriesElement extends UpdatingElement implements BrickQuickEntriesElementProps {
64
- /**
65
- * @kind number
66
- * @required false
67
- * @default 1
68
- * @description 列数
69
- */
70
- column: number;
71
- /**
72
- * @kind number
73
- * @required false
74
- * @default 1
75
- * @description 行数
76
- */
77
- row: number;
78
- /**
79
- * @kind LinkProps[]
80
- * @required false
81
- * @default []
82
- * @description 快捷入口设置
83
- */
84
- links: LinkProps[];
85
- /**
86
- * @kind [UseBrickConf](http://docs.developers.easyops.cn/docs/api-reference/brick-types.usebrickconf)
87
- * @required false
88
- * @default -
89
- * @description 使用的子构件配置
90
- */
91
- useBrick: UseBrickConf;
92
- /**
93
- * @kind any[]
94
- * @required false
95
- * @default -
96
- * @description 传递给子构件的数据,应与 `useBrick` 一一对应
97
- */
98
- data: any[];
99
- /**
100
- * @kind TitleConfig[]
101
- * @required false
102
- * @default -
103
- * @description 为每个入口配置标题
104
- */
105
- titleList: TitleConfig[];
106
- /**
107
- * @kind boolean
108
- * @required false
109
- * @default true
110
- * @description 是否显示卡片
111
- */
112
- showCard: boolean;
113
- /**
114
- * @kind boolean
115
- * @required false
116
- * @default true
117
- * @description 是否显示分隔线
118
- */
119
- divider: boolean;
120
- /**
121
- * @required false
122
- * @default -
123
- * @description 子项的容器的样式
124
- * @group advanced
125
- */
126
- containerStyle: React.CSSProperties;
127
- /**
128
- * @required false
129
- * @default "default"
130
- * @description (已废弃)值为 `multiCardGeneral`或 `multiCardNoLine`时为多卡片模式,`multiCardGeneral` 含分隔线,`multiCardNoLine` 无分隔线,样例见构件统计卡片 `general-charts.statistic-card`
131
- * @deprecated
132
- * @group advanced
133
- */
134
- mode: "multiCardGeneral" | "multiCardNoLine" | "default";
135
- /**
136
- * @kind [UseBrickConf](http://docs.developers.easyops.cn/docs/api-reference/brick-types.usebrickconf)
137
- * @required false
138
- * @default -
139
- * @description 使用的子构件配置(已废弃,请使用 useBrick 替代)
140
- * @deprecated
141
- * @group advanced
142
- */
143
- useBricks: UseBrickConf;
144
- /**
145
- * @detail any
146
- * @description 节点弹窗内容项点击事件
147
- */
148
- titleIconClick: EventEmitter<any>;
149
- private _titleIconClick;
150
- connectedCallback(): void;
151
- disconnectedCallback(): void;
152
- protected _render(): void;
153
- }
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { RateProps } from "antd/lib/rate";
3
- import { MenuIcon } from "@next-core/brick-types";
4
- export interface BrickRateProps extends RateProps {
5
- onChange?: (value: number) => void;
6
- type?: string;
7
- rateStyle?: any;
8
- rateIcon?: MenuIcon;
9
- colors?: any[];
10
- }
11
- export declare function BrickRate(props: BrickRateProps): React.ReactElement;
@@ -1,99 +0,0 @@
1
- import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
2
- export interface BrickRateElementProps {
3
- value?: number;
4
- allowHalf?: boolean;
5
- colors?: any[];
6
- type?: string;
7
- rateStyle?: Record<string, any>;
8
- rateIcon?: any;
9
- tooltips?: string[];
10
- }
11
- /**
12
- * @id presentational-bricks.brick-rate
13
- * @author astrid
14
- * @history
15
- * 1.130.0: 新增构件 `presentational-bricks.brick-rate`
16
- * 1.130.1: 构件功能优化
17
- * 1.189.2: 可通过value属性,渲染构件值
18
- * 1.196.0: 增加`tooltips`属性
19
- * @docKind brick
20
- * @noInheritDoc
21
- */
22
- export declare class BrickRateElement extends UpdatingElement implements BrickRateElementProps {
23
- /**
24
- * @kind number
25
- * @required false
26
- * @default 3
27
- * @description 等级级数
28
- */
29
- count: number;
30
- /**
31
- * @kind number
32
- * @required false
33
- * @default 0
34
- * @description 默认等级
35
- */
36
- defaultValue: number;
37
- /**
38
- * @kind number
39
- * @required false
40
- * @default -
41
- * @description 当前等级值
42
- */
43
- value: number;
44
- /**
45
- * @kind boolean
46
- * @required false
47
- * @default true
48
- * @description 是否禁用
49
- */
50
- disabled: boolean;
51
- /**
52
- * @kind boolean
53
- * @required false
54
- *
55
- * @default -
56
- * @description 是否允许半选
57
- */
58
- allowHalf: boolean;
59
- /**
60
- * @kind `any[]`
61
- * @required false
62
- * @default -
63
- * @description 等级颜色分类,每一级别对应的颜色
64
- */
65
- colors: any[];
66
- /**
67
- * @kind "string"
68
- * @required false
69
- * @default -
70
- * @description 可选任意字符(非图标类)比如字母、数字、中文,表示等级图标
71
- */
72
- type: string;
73
- /**
74
- * @kind Record<string,any>
75
- * @required false
76
- * @default
77
- * @description 设置样式
78
- */
79
- rateStyle: Record<string, any>;
80
- /**
81
- * @kind MenuIcon
82
- * @required false
83
- * @default -
84
- * @description 等级icon,优先级高于type,支持[icon 图标库](developers/icon),可直接复制图标图标的配置(antd、fa 及 easyops 三种库都支持),也可只取 icon 字段的值(仅支持 antd 库)。配置{ "lib": "antd", "icon": "edit" }与 "edit"等价
85
- */
86
- rateIcon: any;
87
- /**
88
- * @kind string[]
89
- * @required false
90
- * @default -
91
- * @description 自定义每项的提示信息
92
- */
93
- tooltips: string[];
94
- changEvent: EventEmitter<Record<number, any>>;
95
- private _handleChange;
96
- connectedCallback(): void;
97
- disconnectedCallback(): void;
98
- protected _render(): void;
99
- }
@@ -1,21 +0,0 @@
1
- import React, { CSSProperties } from "react";
2
- import { EmptyResultStatus } from "@next-libs/basic-components/EmptyResultStatus";
3
- import { BrickResultStatus, IllustrationsStatus } from "../interfaces/brick-result";
4
- import { IconSize } from "./components/IllustrationWrapper";
5
- export interface IllustrationsConfig {
6
- imageStyle?: CSSProperties;
7
- name?: string;
8
- category?: string;
9
- size?: IconSize;
10
- }
11
- interface BrickResultProps {
12
- status: BrickResultStatus | EmptyResultStatus | IllustrationsStatus;
13
- title?: string;
14
- subTitle?: string;
15
- icon?: string;
16
- illustrationsConfig?: IllustrationsConfig;
17
- useNewIllustration?: boolean;
18
- emptyResultSize?: IconSize;
19
- }
20
- export declare function BrickResult(props: BrickResultProps): React.ReactElement;
21
- export {};
@@ -1,16 +0,0 @@
1
- import React, { CSSProperties } from "react";
2
- export declare enum IconSize {
3
- Small = "small",
4
- Middle = "middle",
5
- Large = "large",
6
- XLarge = "xlarge",
7
- Unset = "unset"
8
- }
9
- export interface IllustrationWrapperProps {
10
- imageStyle?: CSSProperties;
11
- name?: string;
12
- category?: string;
13
- size?: IconSize;
14
- useNewIllustration?: boolean;
15
- }
16
- export declare function IllustrationWrapper(props: IllustrationWrapperProps): React.ReactElement;
@@ -1,77 +0,0 @@
1
- import { UpdatingElement } from "@next-core/brick-kit";
2
- import { BrickResultStatus, EmptyResultStatus, IllustrationsStatus, IllustrationsConfig } from "../interfaces/brick-result";
3
- import { IconSize } from "./components/IllustrationWrapper";
4
- export interface BrickResultElementProps {
5
- status?: BrickResultStatus | EmptyResultStatus | IllustrationsStatus;
6
- customTitle?: string;
7
- subTitle?: string;
8
- icon?: string;
9
- illustrationsConfig?: IllustrationsConfig;
10
- emptyResultSize?: IconSize;
11
- }
12
- /**
13
- * @id presentational-bricks.brick-result
14
- * @name presentational-bricks.brick-result
15
- * @docKind brick
16
- * @description 结果页面,可配置其状态,标题,次要标题和自定义图标
17
- * @author ice
18
- * @slots
19
- * content: 提供 content 插槽
20
- * @history
21
- * 1.54.0:新增状态,`EmptyResultStatus`, 与规范对齐
22
- * @memo
23
- * @noInheritDoc
24
- */
25
- export declare class BrickResultElement extends UpdatingElement implements BrickResultElementProps {
26
- private _mountPoint;
27
- /**
28
- * @required true
29
- * @default -
30
- * @description 结果的状态, 决定图标和颜色;设置的值必须符合类型要求,否则返回空元素
31
- * @group basic
32
- */
33
- status: BrickResultStatus | EmptyResultStatus | IllustrationsStatus;
34
- /**
35
- * @required false
36
- * @description 主标题文字
37
- * @group basic
38
- */
39
- customTitle: string;
40
- /**
41
- * @required false
42
- * @description 次标题文字
43
- * @group basic
44
- */
45
- subTitle: string;
46
- /**
47
- * @required false
48
- * @default -
49
- * @description [自定义图标](https://ant.design/components/icon-cn/), 仅当 status 为 `BrickResultStatus` 时有效
50
- * @group ui
51
- */
52
- icon: string;
53
- /**
54
- * @required false
55
- * @default {}
56
- * @description 自定义插画配置,size默认为middle,推荐使用size控制插画尺寸,可通过imageStyle覆盖size实现自定义大小(不推荐)
57
- * @group other
58
- */
59
- illustrationsConfig: IllustrationsConfig;
60
- /**
61
- * @default true
62
- * @required false
63
- * @description 在插画库的default分类下,使用新版本的图标替换default分类下图标
64
- * @group other
65
- */
66
- useNewIllustration: boolean;
67
- /**
68
- * @required false
69
- * @description status为EmptyResultStatus时,设置插画的尺寸
70
- * @group other
71
- */
72
- emptyResultSize: IconSize;
73
- constructor();
74
- connectedCallback(): void;
75
- disconnectedCallback(): void;
76
- protected _render(): void;
77
- }