@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,14 +0,0 @@
1
- import React from "react";
2
- import { SwitchProps } from "antd/lib/switch";
3
- export interface SwitchMap {
4
- truthy: any;
5
- falsy: any;
6
- }
7
- export interface LegacyBrickSwitchProps {
8
- configProps?: SwitchProps;
9
- onChange: Function;
10
- checked?: boolean | string;
11
- switchMap?: SwitchMap;
12
- }
13
- export declare function LegacyBrickSwitch({ configProps, onChange, checked, switchMap }: LegacyBrickSwitchProps): React.ReactElement;
14
- export declare const BrickSwitch: (props: import("../wrapper-form-item/WrapperFormItem").WrapperFormItemProps) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { TimePickerProps } from "antd/lib/time-picker";
3
- export interface LegacyBrickTimePickerProps {
4
- configProps?: TimePickerProps;
5
- onChange: Function;
6
- }
7
- export declare function LegacyBrickTimePicker({ configProps, onChange }: LegacyBrickTimePickerProps): React.ReactElement;
8
- export declare const BrickTimePicker: (props: import("../wrapper-form-item/WrapperFormItem").WrapperFormItemProps) => JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormComponentProps } from "@ant-design/compatible/lib/form";
3
- import { FieldDefinition } from "../../BrickForm";
4
- import { BrickOptionProps } from "../../interfaces";
5
- export interface WrapperFormItemProps extends FieldDefinition, FormComponentProps {
6
- allFields: FieldDefinition[];
7
- optionList: string[] & BrickOptionProps[];
8
- onFieldChange: (value: any, field: string) => void;
9
- }
10
- export declare function WrapperFormItem(WrapperComponent: any): (props: WrapperFormItemProps) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import { FormLayout } from "@ant-design/compatible/lib/form/Form";
2
- import { LegacyBrickFormProps } from "./BrickForm";
3
- export interface BrickFormElementProps {
4
- contractName?: string;
5
- fields?: LegacyBrickFormProps["fields"];
6
- cancelText?: string;
7
- confirmText?: string;
8
- tailFormBtnLayout?: LegacyBrickFormProps["tailFormBtnLayout"];
9
- layout?: FormLayout;
10
- labelCol?: LegacyBrickFormProps["labelCol"];
11
- wrapperCol?: LegacyBrickFormProps["wrapperCol"];
12
- }
@@ -1,5 +0,0 @@
1
- export interface BrickOptionProps {
2
- text: string;
3
- value?: string;
4
- id: string;
5
- }
@@ -1 +0,0 @@
1
- export * from "./brick-component";
@@ -1 +0,0 @@
1
- export declare function handleChange(e: any, callback: Function): void;
@@ -1 +0,0 @@
1
- export * from "./handleChange";
@@ -1,28 +0,0 @@
1
- import React from "react";
2
- import { Input } from "antd";
3
- import { Size, Shape } from "./index";
4
- interface TestGeneralSearchProps {
5
- onUpdate: (value: string) => void;
6
- onChange: (value: string) => void;
7
- query: string;
8
- size: Size;
9
- shape: Shape;
10
- placeholder: string;
11
- inputStyle?: any;
12
- buttonStyle?: any;
13
- disableAutofocus?: boolean;
14
- debounceTime?: number;
15
- searchTypeEnabled?: boolean;
16
- searchType?: "all" | "ip";
17
- onSearchTypeChange?: (value: string) => void;
18
- searchBoxStyleType?: "defalut" | "round";
19
- allowClear?: boolean;
20
- bordered?: boolean;
21
- onBlur?: (value: string) => void;
22
- customSearchTypeOptions?: {
23
- label: string;
24
- value: string;
25
- }[];
26
- }
27
- export declare const BrickGeneralSearch: React.ForwardRefExoticComponent<TestGeneralSearchProps & React.RefAttributes<Input>>;
28
- export {};
@@ -1,233 +0,0 @@
1
- import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
2
- import { Input } from "antd";
3
- export interface BrickGeneralSearchElementProps {
4
- placeholder?: string;
5
- defaultArgs?: {
6
- field: string;
7
- value: any;
8
- }[];
9
- shouldTrimQuery?: boolean;
10
- qField?: string;
11
- disableAutofocus?: boolean;
12
- searchType?: "all" | "ip";
13
- searchTypeEnabled?: boolean;
14
- size?: Size;
15
- shape?: Shape;
16
- inputStyle?: Record<string, any>;
17
- buttonStyle?: Record<string, any>;
18
- searchBoxStyleType?: "defalut" | "round";
19
- allowClear?: boolean;
20
- bordered?: boolean;
21
- alwaysFoucus?: boolean;
22
- customSearchTypeOptions?: {
23
- label: string;
24
- value: string;
25
- }[];
26
- }
27
- export declare type Size = "small" | "default" | "large" | "extraLarge";
28
- export declare type Shape = "round" | "default";
29
- /**
30
- * @id presentational-bricks.brick-general-search
31
- * @name presentational-bricks.brick-general-search
32
- * @editor shared-editors.general-search--editor
33
- * @docKind brick
34
- * @description 搜索框,满足大部分的搜索需求
35
- * @author lynette
36
- * @slots
37
- * @history
38
- * 1.180.0:新增事件 `query.change.v2`,新增属性 `debounceTime`
39
- * 1.68.0:新增属性 `qField`
40
- * @memo
41
- * @noInheritDoc
42
- */
43
- export declare class BrickGeneralSearchElement extends UpdatingElement implements BrickGeneralSearchElementProps {
44
- /**
45
- * @kind string
46
- * @required false
47
- * @default -
48
- * @description 提示语
49
- * @group basic
50
- */
51
- placeholder: string;
52
- /**
53
- * @kind string
54
- * @required false
55
- * @default -
56
- * @description 输入的搜索关键字,常用于回填搜索框,如\${query.q}
57
- * @group basic
58
- */
59
- q: string;
60
- /**
61
- * @kind {field: string;value: any;}[]
62
- * @required false
63
- * @default -
64
- * @description 进行搜索的时候需重置的其他默认参数,如[{"field": "page", "value": 1}]即表示搜索的时候需要把页码重置成 1
65
- * @group basic
66
- */
67
- defaultArgs: {
68
- field: string;
69
- value: any;
70
- }[];
71
- /**
72
- * @kind boolean
73
- * @required false
74
- * @default true
75
- * @description 是否更新 url 参数
76
- * @group advanced
77
- */
78
- shouldUpdateUrlParams: boolean;
79
- /**
80
- * @kind boolean
81
- * @required false
82
- * @default true
83
- * @description 是否对输入框剔除前后空格
84
- * @group advanced
85
- */
86
- shouldTrimQuery: boolean;
87
- /**
88
- * @kind string
89
- * @required false
90
- * @default "q"
91
- * @description 当 `shouldUpdateUrlParams` 为真时,将以该值为 key 更新到 url 上
92
- * @group advanced
93
- */
94
- qField: string;
95
- /**
96
- * @kind boolean
97
- * @required false
98
- * @default false
99
- * @description 是否禁用自动聚焦
100
- * @group advanced
101
- */
102
- disableAutofocus: boolean;
103
- /**
104
- * @kind "all"|"ip"
105
- * @required false
106
- * @default 'all'
107
- * @description 搜索类型
108
- * @group advanced
109
- */
110
- searchType: "all" | "ip";
111
- /**
112
- * @kind boolean
113
- * @required false
114
- * @description 是否支持ip搜索
115
- * @group basic
116
- */
117
- searchTypeEnabled: boolean;
118
- /**
119
- * @kind number
120
- * @required false
121
- * @default 0
122
- * @description 默认延迟时间
123
- * @group advanced
124
- */
125
- debounceTime: number;
126
- /**
127
- * @kind Size
128
- * @required false
129
- * @default default
130
- * @description 尺寸大小,可选`default、small、large、extraLarge`
131
- * @enums "small"|"default"|"large"|"extraLarge"
132
- * @group ui
133
- */
134
- size: Size;
135
- /**
136
- * @kind Shape
137
- * @required false
138
- * @default default
139
- * @description 形状,可选`default、round`
140
- * @enums "round"|"default";
141
- * @group ui
142
- */
143
- shape: Shape;
144
- /**
145
- * @kind Record<string,any>
146
- * @required false
147
- * @default -
148
- * @description 输入框样式
149
- * @group ui
150
- */
151
- inputStyle: Record<string, any>;
152
- /**
153
- * @kind Record<string,any>
154
- * @required false
155
- * @default -
156
- * @description 按钮样式
157
- * @group ui
158
- */
159
- buttonStyle: Record<string, any>;
160
- /**
161
- * @kind "defalut"|"round"
162
- * @required true
163
- * @default "defalut"
164
- * @description 按类型搜索框样式
165
- * @enums "defalut"|"round"
166
- * @group ui
167
- */
168
- searchBoxStyleType: "defalut" | "round";
169
- /**
170
- * @description 可以点击清除图标删除内容
171
- * @group ui
172
- */
173
- allowClear?: boolean;
174
- /**
175
- * @description 非IP搜索的情况下,是否有边框
176
- * @group ui
177
- */
178
- bordered?: boolean;
179
- /**
180
- * @description 是否总是聚焦输入框
181
- * @group ui
182
- */
183
- alwaysFoucus?: boolean;
184
- /**
185
- * @kind string
186
- * @required false
187
- * @default query
188
- * @deprecated
189
- * @description [已废弃]filter.update 中 detail 的字段名
190
- */
191
- field: string;
192
- customSearchTypeOptions?: {
193
- label: string;
194
- value: string;
195
- }[];
196
- /**
197
- * @detail Record<string,any>
198
- * @description 更新的数据,包括 defaultArgs 和输入框的组合,注意在事件中 q 的 field 为 query。点击搜索时触发
199
- */
200
- filterUpdate: EventEmitter<Record<string, any>>;
201
- /**
202
- * @detail string
203
- * @description 输入的搜索字符,输入变化时触发
204
- */
205
- queryChange: EventEmitter<string>;
206
- /**
207
- * @detail {q:string}
208
- * @description 当搜索框的值变化时发出的事件,事件内容为{q: value},其中 value 为输入的字符。可直接和 brick-table 的前端搜索方法 filterSourceData 搭配使用。
209
- */
210
- queryChangeV2: EventEmitter<{
211
- q: string;
212
- }>;
213
- /**
214
- * @detail string
215
- * @description 搜索类型变化时触发
216
- */
217
- searchTypeChange: EventEmitter<string>;
218
- /**
219
- * @detail string
220
- * @description 失焦时触发, 而且会传出当前输入框当前值
221
- */
222
- blurEvent: EventEmitter<string>;
223
- private _handleBlur;
224
- inputRef: Input;
225
- focus(): void;
226
- blur(): void;
227
- connectedCallback(): void;
228
- disconnectedCallback(): void;
229
- private _handleUpdate;
230
- private _handleOnChange;
231
- private _handleSearchTypeChange;
232
- protected _render(): void;
233
- }
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { HumanizeTimeFormat } from "@next-libs/datetime";
3
- interface BrickHumanizeTimeProps {
4
- value: number | string;
5
- isMillisecond?: boolean;
6
- formatter?: HumanizeTimeFormat;
7
- isCostTime?: boolean;
8
- inputFormat?: string;
9
- outputFormat?: string;
10
- link?: {
11
- url: string;
12
- target?: string;
13
- };
14
- }
15
- export declare function BrickHumanizeTime(props: BrickHumanizeTimeProps): React.ReactElement;
16
- export {};
@@ -1,101 +0,0 @@
1
- import { UpdatingElement } from "@next-core/brick-kit";
2
- import { HumanizeTimeFormat } from "@next-libs/datetime";
3
- export interface BrickHumanizeTimeElementProps {
4
- value?: number | string;
5
- inputFormat?: string;
6
- outputFormat?: string;
7
- isCostTime?: boolean;
8
- dataSource?: Record<string, any>;
9
- fields?: {
10
- value: string;
11
- };
12
- formatter?: HumanizeTimeFormat;
13
- isMillisecond?: boolean;
14
- isMicrosecond?: boolean;
15
- link?: LinkInfo;
16
- }
17
- export interface LinkInfo {
18
- detailUrlTemplate: string;
19
- target?: string;
20
- }
21
- /**
22
- * @id presentational-bricks.brick-humanize-time
23
- * @name presentational-bricks.brick-humanize-time
24
- * @docKind brick
25
- * @description 如:3天前、过去2小时等。也可显示消耗时间,如1小时2分钟,也可显示为链接
26
- * @author ice
27
- * @slots
28
- * @history
29
- * 1.65.0:新属性 `inputFormat` 和 `outputFormat`
30
- * @memo
31
- * @noInheritDoc
32
- */
33
- export declare class BrickHumanizeTimeElement extends UpdatingElement implements BrickHumanizeTimeElementProps {
34
- /**
35
- * @required false
36
- * @description 时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`
37
- * @group basic
38
- */
39
- value: number | string;
40
- /**
41
- * @required false
42
- * @description 字符串的时间格式,如 "YYYY-MM-DD", [时间格式参照表](https://dayjs.gitee.io/docs/zh-CN/parse/string-format)
43
- * @group basic
44
- */
45
- inputFormat: string;
46
- /**
47
- * @required false
48
- * @description 展示时间格式,如 "YYYY-MM-DD",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://dayjs.gitee.io/docs/zh-CN/parse/string-format)
49
- * @group basic
50
- */
51
- outputFormat: string;
52
- /**
53
- * @required false
54
- * @default false
55
- * @description 是否展示为耗费时间,例如:'1 个月 20 天'
56
- * @group basic
57
- */
58
- isCostTime: boolean;
59
- connectedCallback(): void;
60
- disconnectedCallback(): void;
61
- protected _render(): void;
62
- /**
63
- * @required false
64
- * @description [已废弃]数据来源
65
- * @deprecated
66
- * @group other
67
- */
68
- dataSource: Record<string, any>;
69
- /**
70
- * @required false
71
- * @description [已废弃]字段映射, 跟 dataSource 一起使用来获得运行时对应字段的值
72
- * @deprecated
73
- * @group other
74
- */
75
- fields: {
76
- value: string;
77
- };
78
- /**
79
- * @kind "full" | "default" | "relative" | "future" | "accurate" | "auto"
80
- * @required false
81
- * @description 枚举值:full, default, relative, future, accurate, auto [类型链接](https://github.com/easyops-cn/next-libs/blob/207fe7ee3ac010ab860c23cd062216c8ca612f0c/libs/datetime/src/humanizeTime.ts#L9)
82
- * @group basic
83
- */
84
- formatter: HumanizeTimeFormat;
85
- /**
86
- * @description value 值的单位是否为毫秒
87
- * @group advanced
88
- */
89
- isMillisecond: boolean;
90
- /**
91
- * @description value 值的单位是否为毫秒(此处属性 id 写错,实际表达意义为 isMillisecond)
92
- * @deprecated 请使用 `isMillisecond`
93
- */
94
- isMicrosecond: boolean;
95
- /**
96
- * @required false
97
- * @description 跳转链接,默认为空
98
- * @group advanced
99
- */
100
- link: LinkInfo;
101
- }
@@ -1,14 +0,0 @@
1
- import React, { CSSProperties } from "react";
2
- import { IllustrationProps } from "@next-core/illustrations";
3
- import { IllustrationFooter, IllustrationHeader } from "./index";
4
- import { IconSize } from "../brick-result/components/IllustrationWrapper";
5
- interface BrickIllustrationProps extends IllustrationProps {
6
- mode: "feedback" | "guide";
7
- imageStyle?: CSSProperties;
8
- header?: IllustrationHeader;
9
- footer?: IllustrationFooter;
10
- useNewIllustration?: boolean;
11
- size?: IconSize;
12
- }
13
- export declare function BrickIllustration({ name, category, mode, header, footer, imageStyle, useNewIllustration, size, }: BrickIllustrationProps): React.ReactElement;
14
- export {};
@@ -1,87 +0,0 @@
1
- import { CSSProperties } from "react";
2
- import { UpdatingElement } from "@next-core/brick-kit";
3
- import { IconSize } from "../brick-result/components/IllustrationWrapper";
4
- export interface BrickIllustrationElementProps {
5
- name?: string;
6
- size?: IconSize;
7
- category?: string;
8
- header?: IllustrationHeader;
9
- footer?: IllustrationFooter;
10
- mode?: IllustrationMode;
11
- imageStyle?: CSSProperties;
12
- }
13
- export interface IllustrationHeader {
14
- title?: string;
15
- description?: string;
16
- }
17
- export interface IllustrationFooter {
18
- text?: string;
19
- label?: string;
20
- target?: string;
21
- url?: string;
22
- }
23
- export declare type IllustrationMode = "feedback" | "guide";
24
- /**
25
- * @id presentational-bricks.brick-illustration
26
- * @author alexchen
27
- * @history
28
- * 1.148.0: 新增构件 `presentational-bricks.brick-illustration`
29
- * @memo
30
- * >更多类型插画请移至[插画库](/next/developers/illustrations)
31
- * @docKind brick
32
- * @noInheritDoc
33
- */
34
- export declare class BrickIllustrationElement extends UpdatingElement implements BrickIllustrationElementProps {
35
- /**
36
- * @required true
37
- * @description 插画名称
38
- */
39
- name: string;
40
- /**
41
- * @required false
42
- * @description 插画size,size默认为middle,推荐使用size控制插画尺寸,可通过imageStyle覆盖size实现自定义大小(不推荐)
43
- * @default "middle"
44
- */
45
- size: IconSize;
46
- /**
47
- * @default "default"
48
- * @required true
49
- * @description 插画类型
50
- * @group basic
51
- */
52
- category: string;
53
- /**
54
- * @required false
55
- * @description 插画头部内容
56
- * @group other
57
- */
58
- header: IllustrationHeader;
59
- /**
60
- * @required false
61
- * @description 插画底部内容
62
- * @group other
63
- */
64
- footer: IllustrationFooter;
65
- /**
66
- * @required false
67
- * @description 插画模式
68
- * @group other
69
- * @deprecated
70
- */
71
- mode: IllustrationMode;
72
- /**
73
- * @required false
74
- * @description 图片样式
75
- * @group ui
76
- */
77
- imageStyle: CSSProperties;
78
- /**
79
- * @default true
80
- * @required false
81
- * @description 在插画库的default分类下,使用新版本的图标替换default分类下图标
82
- */
83
- useNewIllustration: boolean;
84
- connectedCallback(): void;
85
- disconnectedCallback(): void;
86
- protected _render(): void;
87
- }
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- export interface BrickInputProps {
3
- defaultValue?: string;
4
- value?: string;
5
- handleValueEmit: any;
6
- handleValueChange: any;
7
- placeholder?: string;
8
- trigger?: "change" | "enter";
9
- debounceTime: number;
10
- }
11
- export declare function BrickInput(props: BrickInputProps): React.ReactElement;
@@ -1,73 +0,0 @@
1
- import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
2
- export interface BrickInputElementProps {
3
- placeholder?: string;
4
- trigger?: "change" | "enter";
5
- }
6
- /**
7
- * @id presentational-bricks.brick-input
8
- * @name presentational-bricks.brick-input
9
- * @editor forms.general-input--editor
10
- * @docKind brick
11
- * @description 输入框,只发起事件不更新url,注意与brick-general-search的区别
12
- * @author momo
13
- * @slots
14
- * @history
15
- * 1.58.0:新增 `debounceTime`、`value` 属性和 `input.change` 事件
16
- * @memo
17
- * @noInheritDoc
18
- */
19
- export declare class BrickInputElement extends UpdatingElement implements BrickInputElementProps {
20
- /**
21
- * @detail Record<string,any>
22
- * @description 事件内容为{q: value},其中 value 为输入的字符
23
- */
24
- inputEmit: EventEmitter<Record<string, any>>;
25
- /**
26
- * @detail Record<string,any>
27
- * @description 当搜索框的值变化时发出的事件,事件内容为{q: value},其中 value 为输入的字符
28
- */
29
- inputChange: EventEmitter<Record<string, any>>;
30
- _defaultValKey: string;
31
- _defaultValue: string;
32
- connectedCallback(): void;
33
- disconnectedCallback(): void;
34
- /**
35
- * @kind string
36
- * @required false
37
- * @default -
38
- * @description 指定 key,从 url 获取默认值
39
- */
40
- set defaultValKey(value: string);
41
- /**
42
- * @kind string
43
- * @required false
44
- * @default -
45
- * @description 输入提示语
46
- */
47
- placeholder: string;
48
- /**
49
- * @kind "change" | "enter"
50
- * @required false
51
- * @default change
52
- * @description 触发方式,可选`change、enter`
53
- */
54
- trigger: "change" | "enter";
55
- /**
56
- * @kind string
57
- * @required false
58
- * @default ""
59
- * @description 搜索框的值
60
- */
61
- value: string;
62
- /**
63
- * @kind number
64
- * @required false
65
- * @default 500
66
- * @description 默认延迟时间
67
- */
68
- debounceTime: number;
69
- handleDefaultVal: (val: string) => void;
70
- handleValueNotify: (val: string) => void;
71
- handleValueChange: (val: string) => void;
72
- protected _render(): void;
73
- }
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import { LinkProps } from "@next-libs/basic-components";
3
- import { MenuIcon } from "@next-core/brick-types";
4
- export interface BrickLinkProps extends Pick<LinkProps, "replace" | "target"> {
5
- native?: boolean;
6
- label?: string;
7
- url?: string;
8
- href?: string;
9
- disabled?: boolean;
10
- tooltip?: string;
11
- tooltipProps?: Record<string, any>;
12
- handleClick?: () => void;
13
- notToJumpWhenEmpty?: boolean;
14
- icon?: MenuIcon;
15
- type?: "link" | "text";
16
- iconAlign?: "left" | "right";
17
- hideExternalIcon?: boolean;
18
- underLine?: boolean;
19
- labelColor?: string;
20
- }
21
- export declare function BrickLink(props: BrickLinkProps): React.ReactElement;