@qn-pandora/pandora-component 4.4.5 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/es/components/AutoComplete/index.d.ts +3 -2
  2. package/es/components/Breadcrumb/index.d.ts +1 -1
  3. package/es/components/Button/index.d.ts +1 -1
  4. package/es/components/Card/RowExtra/index.d.ts +1 -1
  5. package/es/components/Card/SearchInput/index.d.ts +2 -2
  6. package/es/components/Card/index.d.ts +1 -1
  7. package/es/components/CheckTransformList/Item/index.d.ts +2 -2
  8. package/es/components/CheckTransformList/index.d.ts +2 -2
  9. package/es/components/Checkbox/index.d.ts +2 -2
  10. package/es/components/CheckboxList/index.d.ts +1 -1
  11. package/es/components/Collapse/Panel/index.d.ts +2 -2
  12. package/es/components/Collapse/index.d.ts +2 -2
  13. package/es/components/Collapse/index.js +10 -8
  14. package/es/components/CollapsiblePanel/PanelContent/index.d.ts +1 -1
  15. package/es/components/CollapsiblePanel/PanelContent/index.js +2 -2
  16. package/es/components/CollapsiblePanel/PanelHeader/index.d.ts +1 -1
  17. package/es/components/CollapsiblePanel/PanelHeader/index.js +1 -1
  18. package/es/components/CollapsiblePanel/index.d.ts +1 -1
  19. package/es/components/CollapsiblePanel/index.js +1 -1
  20. package/es/components/ConfigProvider/context.d.ts +1 -1
  21. package/es/components/ConfigProvider/index.d.ts +2 -2
  22. package/es/components/DateTimePicker/Base/index.d.ts +4 -4
  23. package/es/components/DateTimePicker/Base/index.js +7 -7
  24. package/es/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -1
  25. package/es/components/DateTimePicker/Base/relativeTimePicker.js +1 -1
  26. package/es/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -1
  27. package/es/components/DateTimePicker/BaseMobile/Absolute/index.js +4 -4
  28. package/es/components/DateTimePicker/BaseMobile/CustomButton/index.d.ts +2 -2
  29. package/es/components/DateTimePicker/BaseMobile/index.d.ts +2 -2
  30. package/es/components/DateTimePicker/BaseMobile/index.js +1 -1
  31. package/es/components/DateTimePicker/Collapse/Panel/index.d.ts +1 -1
  32. package/es/components/DateTimePicker/Collapse/index.d.ts +1 -1
  33. package/es/components/DateTimePicker/DisplayInput/index.d.ts +1 -1
  34. package/es/components/DateTimePicker/DisplayInput/index.js +1 -1
  35. package/es/components/DateTimePicker/index.d.ts +1 -1
  36. package/es/components/DateTimePicker/index.js +1 -1
  37. package/es/components/Drawer/index.d.ts +5 -5
  38. package/es/components/Drawer/index.js +3 -3
  39. package/es/components/FileResumable/constants.js +1 -0
  40. package/es/components/FileResumable/index.d.ts +2 -2
  41. package/es/components/Input/Password/index.d.ts +2 -2
  42. package/es/components/Input/TextArea/index.d.ts +2 -2
  43. package/es/components/Input/index.d.ts +4 -4
  44. package/es/components/InputNumberWithUnit/index.d.ts +2 -1
  45. package/es/components/InputNumberWithUnit/index.js +3 -3
  46. package/es/components/KeyValuePair/index.d.ts +2 -2
  47. package/es/components/KeyValuePair/index.js +10 -3
  48. package/es/components/Measure/index.d.ts +2 -2
  49. package/es/components/Menu/Option.d.ts +1 -1
  50. package/es/components/Menu/index.d.ts +1 -1
  51. package/es/components/Modal/index.d.ts +1 -1
  52. package/es/components/Modal/index.js +1 -1
  53. package/es/components/NameExplainTooltip/index.d.ts +2 -2
  54. package/es/components/NameLimiter/index.d.ts +1 -1
  55. package/es/components/OptionList/InlineOptionList/index.d.ts +2 -2
  56. package/es/components/OptionList/OptionItem/index.d.ts +2 -2
  57. package/es/components/OptionList/PopoverOptionList/index.d.ts +1 -1
  58. package/es/components/OptionList/index.d.ts +1 -1
  59. package/es/components/RadioGroup/index.d.ts +1 -1
  60. package/es/components/RangeInput/index.d.ts +1 -1
  61. package/es/components/ReactSortable/index.d.ts +23 -0
  62. package/es/components/ReactSortable/index.js +171 -0
  63. package/es/components/RemarkName/index.d.ts +2 -2
  64. package/es/components/Selector/SelectorWidthChildren.d.ts +1 -1
  65. package/es/components/Selector/index.d.ts +1 -1
  66. package/es/components/Selector/index.js +1 -1
  67. package/es/components/SolidRadioGroup/index.d.ts +1 -1
  68. package/es/components/Spin/LoadingSVG.d.ts +2 -2
  69. package/es/components/Spin/index.d.ts +1 -1
  70. package/es/components/Steps/ControlButton/index.d.ts +1 -1
  71. package/es/components/Steps/Step/index.d.ts +2 -2
  72. package/es/components/Steps/index.d.ts +2 -2
  73. package/es/components/Style/index.d.ts +1 -1
  74. package/es/components/Style/index.js +1 -1
  75. package/es/components/Table/ColumnSetting/index.d.ts +1 -1
  76. package/es/components/Table/ColumnSetting/index.js +1 -1
  77. package/es/components/Table/ColumnTag/ColumnTag.d.ts +2 -2
  78. package/es/components/Table/ResizableTitle/index.d.ts +2 -2
  79. package/es/components/Table/constant.d.ts +7 -1
  80. package/es/components/Table/constant.js +6 -0
  81. package/es/components/Table/index.d.ts +6 -5
  82. package/es/components/Table/index.js +38 -11
  83. package/es/components/Tabs/index.d.ts +1 -1
  84. package/es/components/TagList/Tag/index.d.ts +1 -1
  85. package/es/components/TagList/TagSwitch/index.d.ts +1 -1
  86. package/es/components/TagList/index.d.ts +1 -1
  87. package/es/components/TagList/index.js +1 -1
  88. package/es/components/Timeline/TimelineItem/index.d.ts +1 -1
  89. package/es/components/Timeline/index.d.ts +1 -1
  90. package/es/components/Transfer/List/index.d.ts +2 -2
  91. package/es/components/Transfer/ListBody/index.d.ts +2 -2
  92. package/es/components/Transfer/constants.js +1 -0
  93. package/es/components/Transfer/index.d.ts +2 -2
  94. package/es/components/TreeSelector/index.d.ts +1 -1
  95. package/es/hoc/debounce.d.ts +1 -1
  96. package/es/hoc/modalPopupContainer.d.ts +1 -1
  97. package/es/index.css +5047 -5047
  98. package/es/index.d.ts +1 -0
  99. package/es/index.js +1 -0
  100. package/es/index.less +14 -14
  101. package/es/models/index.js +1 -0
  102. package/es/style/theme.less +4 -3
  103. package/lib/components/AutoComplete/index.d.ts +3 -2
  104. package/lib/components/AutoComplete/index.js +20 -7
  105. package/lib/components/Breadcrumb/index.d.ts +1 -1
  106. package/lib/components/Breadcrumb/index.js +14 -2
  107. package/lib/components/Button/index.d.ts +1 -1
  108. package/lib/components/Button/index.js +19 -7
  109. package/lib/components/Card/RowExtra/index.d.ts +1 -1
  110. package/lib/components/Card/RowExtra/index.js +14 -2
  111. package/lib/components/Card/SearchInput/index.d.ts +2 -2
  112. package/lib/components/Card/SearchInput/index.js +19 -7
  113. package/lib/components/Card/index.d.ts +1 -1
  114. package/lib/components/Card/index.js +19 -7
  115. package/lib/components/CheckTransformList/Item/index.d.ts +2 -2
  116. package/lib/components/CheckTransformList/Item/index.js +14 -2
  117. package/lib/components/CheckTransformList/index.d.ts +2 -2
  118. package/lib/components/CheckTransformList/index.js +19 -7
  119. package/lib/components/Checkbox/index.d.ts +2 -2
  120. package/lib/components/Checkbox/index.js +19 -7
  121. package/lib/components/CheckboxList/index.d.ts +1 -1
  122. package/lib/components/CheckboxList/index.js +14 -2
  123. package/lib/components/Collapse/Panel/index.d.ts +2 -2
  124. package/lib/components/Collapse/Panel/index.js +20 -7
  125. package/lib/components/Collapse/index.d.ts +2 -2
  126. package/lib/components/Collapse/index.js +30 -15
  127. package/lib/components/CollapsiblePanel/PanelContent/index.d.ts +1 -1
  128. package/lib/components/CollapsiblePanel/PanelContent/index.js +2 -2
  129. package/lib/components/CollapsiblePanel/PanelHeader/index.d.ts +1 -1
  130. package/lib/components/CollapsiblePanel/PanelHeader/index.js +1 -1
  131. package/lib/components/CollapsiblePanel/index.d.ts +1 -1
  132. package/lib/components/CollapsiblePanel/index.js +1 -1
  133. package/lib/components/ConfigProvider/context.d.ts +1 -1
  134. package/lib/components/ConfigProvider/context.js +20 -7
  135. package/lib/components/ConfigProvider/index.d.ts +2 -2
  136. package/lib/components/DateTimePicker/Base/constants.js +1 -0
  137. package/lib/components/DateTimePicker/Base/index.d.ts +4 -4
  138. package/lib/components/DateTimePicker/Base/index.js +25 -12
  139. package/lib/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -1
  140. package/lib/components/DateTimePicker/Base/relativeTimePicker.js +15 -3
  141. package/lib/components/DateTimePicker/BaseMobile/Absolute/constants.js +1 -0
  142. package/lib/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -1
  143. package/lib/components/DateTimePicker/BaseMobile/Absolute/index.js +4 -4
  144. package/lib/components/DateTimePicker/BaseMobile/CustomButton/index.d.ts +2 -2
  145. package/lib/components/DateTimePicker/BaseMobile/constants.js +1 -0
  146. package/lib/components/DateTimePicker/BaseMobile/index.d.ts +2 -2
  147. package/lib/components/DateTimePicker/BaseMobile/index.js +3 -2
  148. package/lib/components/DateTimePicker/Collapse/Panel/index.d.ts +1 -1
  149. package/lib/components/DateTimePicker/Collapse/Panel/index.js +19 -7
  150. package/lib/components/DateTimePicker/Collapse/index.d.ts +1 -1
  151. package/lib/components/DateTimePicker/Collapse/index.js +14 -2
  152. package/lib/components/DateTimePicker/DisplayInput/index.d.ts +1 -1
  153. package/lib/components/DateTimePicker/DisplayInput/index.js +20 -8
  154. package/lib/components/DateTimePicker/constants.js +1 -0
  155. package/lib/components/DateTimePicker/index.d.ts +1 -1
  156. package/lib/components/DateTimePicker/index.js +22 -9
  157. package/lib/components/DateTimePicker/transform.js +1 -0
  158. package/lib/components/Descriptions/index.js +19 -7
  159. package/lib/components/Drawer/CloseIcon/index.js +17 -3
  160. package/lib/components/Drawer/index.d.ts +5 -5
  161. package/lib/components/Drawer/index.js +4 -3
  162. package/lib/components/FileResumable/index.d.ts +2 -2
  163. package/lib/components/FileResumable/index.js +19 -7
  164. package/lib/components/FileResumable/utils.js +3 -1
  165. package/lib/components/Input/Password/index.d.ts +2 -2
  166. package/lib/components/Input/Password/index.js +20 -7
  167. package/lib/components/Input/TextArea/index.d.ts +2 -2
  168. package/lib/components/Input/TextArea/index.js +20 -7
  169. package/lib/components/Input/index.d.ts +4 -4
  170. package/lib/components/Input/index.js +19 -7
  171. package/lib/components/InputNumberWithUnit/index.d.ts +2 -1
  172. package/lib/components/InputNumberWithUnit/index.js +22 -10
  173. package/lib/components/KeyValuePair/index.d.ts +2 -2
  174. package/lib/components/KeyValuePair/index.js +27 -8
  175. package/lib/components/Measure/index.d.ts +2 -2
  176. package/lib/components/Menu/Option.d.ts +1 -1
  177. package/lib/components/Menu/Option.js +14 -2
  178. package/lib/components/Menu/index.d.ts +1 -1
  179. package/lib/components/Menu/index.js +20 -7
  180. package/lib/components/Modal/index.d.ts +1 -1
  181. package/lib/components/Modal/index.js +20 -8
  182. package/lib/components/NameExplainTooltip/index.d.ts +2 -2
  183. package/lib/components/NameExplainTooltip/index.js +19 -7
  184. package/lib/components/NameLimiter/index.d.ts +1 -1
  185. package/lib/components/NameLimiter/index.js +19 -7
  186. package/lib/components/OptionList/InlineOptionList/index.d.ts +2 -2
  187. package/lib/components/OptionList/InlineOptionList/index.js +14 -2
  188. package/lib/components/OptionList/OptionItem/index.d.ts +2 -2
  189. package/lib/components/OptionList/OptionItem/index.js +14 -2
  190. package/lib/components/OptionList/PopoverOptionList/index.d.ts +1 -1
  191. package/lib/components/OptionList/PopoverOptionList/index.js +19 -7
  192. package/lib/components/OptionList/constants.js +1 -0
  193. package/lib/components/OptionList/index.d.ts +1 -1
  194. package/lib/components/OptionList/index.js +23 -11
  195. package/lib/components/RadioGroup/index.d.ts +1 -1
  196. package/lib/components/RadioGroup/index.js +14 -2
  197. package/lib/components/RangeInput/index.d.ts +1 -1
  198. package/lib/components/RangeInput/index.js +19 -7
  199. package/lib/components/RangeInput/utils.js +1 -0
  200. package/lib/components/ReactSortable/index.d.ts +23 -0
  201. package/lib/components/ReactSortable/index.js +195 -0
  202. package/lib/components/RemarkName/index.d.ts +2 -2
  203. package/lib/components/RemarkName/index.js +15 -2
  204. package/lib/components/Selector/SelectorWidthChildren.d.ts +1 -1
  205. package/lib/components/Selector/SelectorWidthChildren.js +19 -7
  206. package/lib/components/Selector/index.d.ts +1 -1
  207. package/lib/components/Selector/index.js +20 -8
  208. package/lib/components/SolidRadioGroup/index.d.ts +1 -1
  209. package/lib/components/SolidRadioGroup/index.js +14 -2
  210. package/lib/components/Spin/LoadingSVG.d.ts +2 -2
  211. package/lib/components/Spin/index.d.ts +1 -1
  212. package/lib/components/Spin/index.js +1 -0
  213. package/lib/components/Steps/ControlButton/index.d.ts +1 -1
  214. package/lib/components/Steps/ControlButton/index.js +14 -2
  215. package/lib/components/Steps/Step/index.d.ts +2 -2
  216. package/lib/components/Steps/Step/index.js +14 -2
  217. package/lib/components/Steps/context.js +15 -2
  218. package/lib/components/Steps/index.d.ts +2 -2
  219. package/lib/components/Steps/index.js +19 -7
  220. package/lib/components/Style/index.d.ts +1 -1
  221. package/lib/components/Style/index.js +18 -6
  222. package/lib/components/Table/ColumnSetting/index.d.ts +1 -1
  223. package/lib/components/Table/ColumnSetting/index.js +22 -9
  224. package/lib/components/Table/ColumnTag/ColumnTag.d.ts +2 -2
  225. package/lib/components/Table/ColumnTag/ColumnTag.js +15 -2
  226. package/lib/components/Table/ResizableTitle/index.d.ts +2 -2
  227. package/lib/components/Table/constant.d.ts +7 -1
  228. package/lib/components/Table/constant.js +7 -0
  229. package/lib/components/Table/index.d.ts +6 -5
  230. package/lib/components/Table/index.js +58 -18
  231. package/lib/components/Tabs/index.d.ts +1 -1
  232. package/lib/components/Tabs/index.js +1 -0
  233. package/lib/components/TagList/Tag/index.d.ts +1 -1
  234. package/lib/components/TagList/Tag/index.js +19 -7
  235. package/lib/components/TagList/TagSwitch/index.d.ts +1 -1
  236. package/lib/components/TagList/TagSwitch/index.js +14 -2
  237. package/lib/components/TagList/index.d.ts +1 -1
  238. package/lib/components/TagList/index.js +20 -8
  239. package/lib/components/Timeline/TimelineItem/index.d.ts +1 -1
  240. package/lib/components/Timeline/TimelineItem/index.js +14 -2
  241. package/lib/components/Timeline/index.d.ts +1 -1
  242. package/lib/components/Timeline/index.js +15 -2
  243. package/lib/components/Transfer/List/index.d.ts +2 -2
  244. package/lib/components/Transfer/List/index.js +19 -7
  245. package/lib/components/Transfer/ListBody/index.d.ts +2 -2
  246. package/lib/components/Transfer/index.d.ts +2 -2
  247. package/lib/components/TreeSelector/index.d.ts +1 -1
  248. package/lib/components/TreeSelector/index.js +20 -7
  249. package/lib/constants/language/check_transform_list/en.js +1 -0
  250. package/lib/constants/language/check_transform_list/type.js +1 -0
  251. package/lib/constants/language/check_transform_list/zh.js +1 -0
  252. package/lib/constants/language/datetime/en.js +1 -0
  253. package/lib/constants/language/datetime/type.js +1 -0
  254. package/lib/constants/language/datetime/zh.js +1 -0
  255. package/lib/constants/language/en.js +1 -0
  256. package/lib/constants/language/modal/en.js +1 -0
  257. package/lib/constants/language/modal/type.js +1 -0
  258. package/lib/constants/language/modal/zh.js +1 -0
  259. package/lib/constants/language/range_input/en.js +1 -0
  260. package/lib/constants/language/range_input/type.js +1 -0
  261. package/lib/constants/language/range_input/zh.js +1 -0
  262. package/lib/constants/language/steps/en.js +1 -0
  263. package/lib/constants/language/steps/type.js +1 -0
  264. package/lib/constants/language/steps/zh.js +1 -0
  265. package/lib/constants/language/table/en.js +1 -0
  266. package/lib/constants/language/table/type.js +1 -0
  267. package/lib/constants/language/table/zh.js +1 -0
  268. package/lib/constants/language/transfer/en.js +1 -0
  269. package/lib/constants/language/transfer/type.js +1 -0
  270. package/lib/constants/language/transfer/zh.js +1 -0
  271. package/lib/constants/language/type.js +1 -0
  272. package/lib/constants/language/upload/type.js +1 -0
  273. package/lib/constants/language/zh.js +1 -0
  274. package/lib/constants/locale.js +1 -0
  275. package/lib/constants/style.js +1 -0
  276. package/lib/constants/time.js +1 -0
  277. package/lib/hoc/debounce.d.ts +1 -1
  278. package/lib/hoc/debounce.js +19 -7
  279. package/lib/hoc/modalPopupContainer.d.ts +1 -1
  280. package/lib/hoc/modalPopupContainer.js +19 -7
  281. package/lib/index.css +5882 -5882
  282. package/lib/index.d.ts +1 -0
  283. package/lib/index.js +67 -54
  284. package/lib/index.less +19 -19
  285. package/lib/style/theme.less +4 -3
  286. package/lib/utils/dom.js +1 -0
  287. package/lib/utils/env.js +1 -0
  288. package/lib/utils/language.js +1 -0
  289. package/lib/utils/languageLocale.js +1 -0
  290. package/lib/utils/time.js +17 -3
  291. package/package.json +17 -15
  292. package/CHANGELOG.json +0 -689
  293. package/CHANGELOG.md +0 -242
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.TimeShiftUnitOptions = exports.TimeShiftUnit = exports.QuartersMap = exports.relativeMap = exports.relativeTimeUnitsWithoutNowStatic = exports.RELATIVE_TIME_UNITS = exports.RelativeUnitValue = exports.presetMap = exports.defaultPresets = exports.rangePresetOptions = exports.RangePreset = exports.EPresetMode = exports.TimeType = void 0;
17
18
  var moment_1 = __importDefault(require("moment"));
18
19
  var type_1 = require("../../constants/language/datetime/type");
19
20
  var TimeType;
@@ -29,6 +29,6 @@ declare class DateTimePicker extends React.Component<IDateTimePickerProps, any>
29
29
  setVisible(visible: boolean): void;
30
30
  hide(): void;
31
31
  handleChange(value: Time): void;
32
- render(): JSX.Element;
32
+ render(): React.JSX.Element;
33
33
  }
34
34
  export default DateTimePicker;
@@ -3,7 +3,7 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
@@ -23,12 +23,31 @@ var __assign = (this && this.__assign) || function () {
23
23
  };
24
24
  return __assign.apply(this, arguments);
25
25
  };
26
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
27
+ if (k2 === undefined) k2 = k;
28
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
29
+ }) : (function(o, m, k, k2) {
30
+ if (k2 === undefined) k2 = k;
31
+ o[k2] = m[k];
32
+ }));
33
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
34
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
35
+ }) : function(o, v) {
36
+ o["default"] = v;
37
+ });
26
38
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
27
39
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
28
40
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
29
41
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
42
  return c > 3 && r && Object.defineProperty(target, key, r), r;
31
43
  };
44
+ var __importStar = (this && this.__importStar) || function (mod) {
45
+ if (mod && mod.__esModule) return mod;
46
+ var result = {};
47
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
48
+ __setModuleDefault(result, mod);
49
+ return result;
50
+ };
32
51
  var __metadata = (this && this.__metadata) || function (k, v) {
33
52
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
34
53
  };
@@ -43,17 +62,11 @@ var __rest = (this && this.__rest) || function (s, e) {
43
62
  }
44
63
  return t;
45
64
  };
46
- var __importStar = (this && this.__importStar) || function (mod) {
47
- if (mod && mod.__esModule) return mod;
48
- var result = {};
49
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
50
- result["default"] = mod;
51
- return result;
52
- };
53
65
  var __importDefault = (this && this.__importDefault) || function (mod) {
54
66
  return (mod && mod.__esModule) ? mod : { "default": mod };
55
67
  };
56
68
  Object.defineProperty(exports, "__esModule", { value: true });
69
+ exports.EButtonType = exports.Time = void 0;
57
70
  var React = __importStar(require("react"));
58
71
  var mobx_1 = require("mobx");
59
72
  var mobx_react_1 = require("mobx-react");
@@ -68,7 +81,7 @@ exports.Time = time_1.default;
68
81
  var Base_1 = __importDefault(require("./Base"));
69
82
  var BaseMobile_1 = __importDefault(require("./BaseMobile"));
70
83
  var constants_1 = require("./BaseMobile/constants");
71
- exports.EButtonType = constants_1.EButtonType;
84
+ Object.defineProperty(exports, "EButtonType", { enumerable: true, get: function () { return constants_1.EButtonType; } });
72
85
  /**
73
86
  * 弹出层时间选择组件封装
74
87
  */
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.calcFullTime = exports.getRelativeTime = exports.getTimeShiftUnit = exports.transformToTimeRange = exports.transformToTime = void 0;
17
18
  var moment_1 = __importDefault(require("moment"));
18
19
  var lodash_1 = require("lodash");
19
20
  var constants_1 = require("./constants");
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
13
32
  var __rest = (this && this.__rest) || function (s, e) {
14
33
  var t = {};
15
34
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -21,13 +40,6 @@ var __rest = (this && this.__rest) || function (s, e) {
21
40
  }
22
41
  return t;
23
42
  };
24
- var __importStar = (this && this.__importStar) || function (mod) {
25
- if (mod && mod.__esModule) return mod;
26
- var result = {};
27
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
28
- result["default"] = mod;
29
- return result;
30
- };
31
43
  var __importDefault = (this && this.__importDefault) || function (mod) {
32
44
  return (mod && mod.__esModule) ? mod : { "default": mod };
33
45
  };
@@ -1,15 +1,28 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
2
14
  var __importStar = (this && this.__importStar) || function (mod) {
3
15
  if (mod && mod.__esModule) return mod;
4
16
  var result = {};
5
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
- result["default"] = mod;
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
7
19
  return result;
8
20
  };
9
21
  var __importDefault = (this && this.__importDefault) || function (mod) {
10
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
11
23
  };
12
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.CloseIcon = void 0;
13
26
  var react_1 = __importStar(require("react"));
14
27
  var classnames_1 = __importDefault(require("classnames"));
15
28
  var antd_1 = require("antd");
@@ -18,10 +31,11 @@ var pandora_component_icons_1 = require("@qn-pandora/pandora-component-icons");
18
31
  var style_1 = require("../../../constants/style");
19
32
  var language_1 = require("../../../utils/language");
20
33
  var type_1 = require("../../../constants/language/modal/type");
21
- exports.CloseIcon = function (props) {
34
+ var CloseIcon = function (props) {
22
35
  var locale = react_1.useContext(config_provider_1.ConfigContext).locale;
23
36
  var className = props.className, onClick = props.onClick, getPopupContainer = props.getPopupContainer;
24
37
  return (react_1.default.createElement(antd_1.Tooltip, { title: language_1.formatString(type_1.ModalLocale.close_tooltip, locale), getPopupContainer: getPopupContainer },
25
38
  react_1.default.createElement(pandora_component_icons_1.Close, { className: classnames_1.default(style_1.SDK_PREFIX + "-modal-close-icon", className), onClick: onClick })));
26
39
  };
40
+ exports.CloseIcon = CloseIcon;
27
41
  exports.default = exports.CloseIcon;
@@ -80,7 +80,7 @@ export declare class Drawer extends React.Component<React.PropsWithChildren<IDra
80
80
  throttleMouseMove: import("lodash").DebouncedFunc<(e: any) => void>;
81
81
  static contextType: React.Context<import("antd/es/config-provider").ConfigConsumerProps>;
82
82
  get closable(): boolean | undefined;
83
- get extra(): JSX.Element;
83
+ get extra(): React.JSX.Element;
84
84
  setIsResizing(isResizing?: boolean): void;
85
85
  setRealWidth(realWidth: string | number): void;
86
86
  setIsFullscreen(isFullscreen: boolean): void;
@@ -95,7 +95,7 @@ export declare class Drawer extends React.Component<React.PropsWithChildren<IDra
95
95
  componentDidMount(): void;
96
96
  UNSAFE_componentWillUpdate(nextProps: Readonly<React.PropsWithChildren<IDrawerProps>>): void;
97
97
  componentWillUnmount(): void;
98
- render(): JSX.Element;
98
+ render(): React.JSX.Element;
99
99
  }
100
100
  declare const _default: (props: {
101
101
  className?: string | undefined;
@@ -118,7 +118,7 @@ declare const _default: (props: {
118
118
  /**
119
119
  * 位置
120
120
  */
121
- placement?: "top" | "left" | "right" | "bottom" | undefined;
121
+ placement?: "left" | "right" | "top" | "bottom" | undefined;
122
122
  /**
123
123
  * 标题
124
124
  */
@@ -164,12 +164,12 @@ declare const _default: (props: {
164
164
  */
165
165
  showFullScreen?: boolean | undefined;
166
166
  onScreenFullChange?: ((showFullScreen: boolean) => void) | undefined;
167
- } & Pick<DrawerProps, "style" | "autoFocus" | "prefixCls" | "footer" | "extra" | "bodyStyle" | "forceRender" | "push" | "keyboard" | "destroyOnClose" | "closeIcon" | "drawerStyle" | "headerStyle" | "contentWrapperStyle" | "handler" | "footerStyle" | "level" | "levelMove"> & {
167
+ } & Pick<DrawerProps, "autoFocus" | "style" | "prefixCls" | "footer" | "extra" | "bodyStyle" | "forceRender" | "push" | "keyboard" | "destroyOnClose" | "closeIcon" | "drawerStyle" | "headerStyle" | "contentWrapperStyle" | "handler" | "footerStyle" | "level" | "levelMove"> & {
168
168
  children?: React.ReactNode;
169
169
  } & {
170
170
  bodyStyle?: React.CSSProperties | undefined;
171
171
  children: React.ReactNode;
172
172
  title?: React.ReactNode;
173
173
  extra?: React.ReactNode;
174
- }) => JSX.Element;
174
+ }) => React.JSX.Element;
175
175
  export default _default;
@@ -3,7 +3,7 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
@@ -47,6 +47,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
47
47
  return (mod && mod.__esModule) ? mod : { "default": mod };
48
48
  };
49
49
  Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.Drawer = void 0;
50
51
  var react_1 = __importDefault(require("react"));
51
52
  var classnames_1 = __importDefault(require("classnames"));
52
53
  var lodash_1 = require("lodash");
@@ -87,7 +88,7 @@ var Drawer = /** @class */ (function (_super) {
87
88
  }
88
89
  return this.props.closable;
89
90
  },
90
- enumerable: true,
91
+ enumerable: false,
91
92
  configurable: true
92
93
  });
93
94
  Object.defineProperty(Drawer.prototype, "extra", {
@@ -106,7 +107,7 @@ var Drawer = /** @class */ (function (_super) {
106
107
  fullIcon,
107
108
  this.props.extra));
108
109
  },
109
- enumerable: true,
110
+ enumerable: false,
110
111
  configurable: true
111
112
  });
112
113
  Drawer.prototype.setIsResizing = function (isResizing) {
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { IFileResumableProps } from './constants';
3
3
  export interface IIconItem {
4
4
  iconType: any;
@@ -10,4 +10,4 @@ export interface IIconItem {
10
10
  }
11
11
  export default function FileResumable(props: PropsWithChildren<IFileResumableProps & {
12
12
  ref?: any;
13
- }>): JSX.Element;
13
+ }>): React.JSX.Element;
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
13
32
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
33
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
34
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -73,13 +92,6 @@ var __read = (this && this.__read) || function (o, n) {
73
92
  }
74
93
  return ar;
75
94
  };
76
- var __importStar = (this && this.__importStar) || function (mod) {
77
- if (mod && mod.__esModule) return mod;
78
- var result = {};
79
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
80
- result["default"] = mod;
81
- return result;
82
- };
83
95
  var __importDefault = (this && this.__importDefault) || function (mod) {
84
96
  return (mod && mod.__esModule) ? mod : { "default": mod };
85
97
  };
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.calculateFileMd5 = exports.isJpgOrPngOrSvg = void 0;
6
7
  var lodash_1 = require("lodash");
7
8
  var crypto_js_1 = __importDefault(require("crypto-js"));
8
9
  var MIME_IMAGE_TYPE = [
@@ -12,7 +13,7 @@ var MIME_IMAGE_TYPE = [
12
13
  'image/svg+xml',
13
14
  'image/vnd.microsoft.icon'
14
15
  ];
15
- exports.isJpgOrPngOrSvg = function (type, hexValue) {
16
+ var isJpgOrPngOrSvg = function (type, hexValue) {
16
17
  if (type === void 0) { type = ''; }
17
18
  if (hexValue === void 0) { hexValue = ''; }
18
19
  return (lodash_1.includes(MIME_IMAGE_TYPE, type.toLocaleLowerCase()) &&
@@ -21,6 +22,7 @@ exports.isJpgOrPngOrSvg = function (type, hexValue) {
21
22
  lodash_1.includes(hexValue.toLowerCase(), '3c3f786d') || // svg
22
23
  lodash_1.includes(hexValue.toLowerCase(), '89504e47')));
23
24
  };
25
+ exports.isJpgOrPngOrSvg = isJpgOrPngOrSvg;
24
26
  // 读取文件并计算 MD5
25
27
  function calculateFileMd5(file) {
26
28
  return new Promise(function (resolve) {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PasswordProps } from 'antd/es/input/Password';
3
3
  export declare type IPassInputProps = Omit<PasswordProps, 'onChange' | 'value'> & {
4
4
  /**
@@ -11,5 +11,5 @@ export declare type IPassInputProps = Omit<PasswordProps, 'onChange' | 'value'>
11
11
  emptyFill?: boolean;
12
12
  onChange?: (value: string) => void;
13
13
  };
14
- export declare function Password(props: IPassInputProps): JSX.Element;
14
+ export declare function Password(props: IPassInputProps): React.JSX.Element;
15
15
  export default Password;
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
13
32
  var __rest = (this && this.__rest) || function (s, e) {
14
33
  var t = {};
15
34
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -37,14 +56,8 @@ var __read = (this && this.__read) || function (o, n) {
37
56
  }
38
57
  return ar;
39
58
  };
40
- var __importStar = (this && this.__importStar) || function (mod) {
41
- if (mod && mod.__esModule) return mod;
42
- var result = {};
43
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
44
- result["default"] = mod;
45
- return result;
46
- };
47
59
  Object.defineProperty(exports, "__esModule", { value: true });
60
+ exports.Password = void 0;
48
61
  var react_1 = __importStar(require("react"));
49
62
  var antd_1 = require("antd");
50
63
  var useCallback = react_1.default.useCallback, useState = react_1.default.useState;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { TextAreaProps } from 'antd/es/input/TextArea';
3
3
  export declare type ITextAreaProps = Omit<TextAreaProps, 'onChange' | 'value'> & {
4
4
  value?: string;
5
5
  onChange?: (value: string) => void;
6
6
  };
7
- export declare function TextArea(props: ITextAreaProps): JSX.Element;
7
+ export declare function TextArea(props: ITextAreaProps): React.JSX.Element;
8
8
  export default TextArea;
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
13
32
  var __rest = (this && this.__rest) || function (s, e) {
14
33
  var t = {};
15
34
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -21,14 +40,8 @@ var __rest = (this && this.__rest) || function (s, e) {
21
40
  }
22
41
  return t;
23
42
  };
24
- var __importStar = (this && this.__importStar) || function (mod) {
25
- if (mod && mod.__esModule) return mod;
26
- var result = {};
27
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
28
- result["default"] = mod;
29
- return result;
30
- };
31
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
+ exports.TextArea = void 0;
32
45
  var React = __importStar(require("react"));
33
46
  var antd_1 = require("antd");
34
47
  var useCallback = React.useCallback;
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { InputProps } from 'antd/es/input';
3
3
  export declare type TInputProps = Omit<InputProps, 'value' | 'onChange'> & {
4
4
  value?: string;
5
5
  onChange?: (value: string) => void;
6
6
  };
7
- declare function Input(props: TInputProps): JSX.Element;
7
+ declare function Input(props: TInputProps): React.JSX.Element;
8
8
  declare namespace Input {
9
- var DebounceInput: (props: Pick<InputProps, "type" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "size" | "prefixCls" | "list" | "step" | "pattern" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width" | "onPressEnter" | "addonBefore" | "addonAfter" | "suffix" | "allowClear" | "bordered" | "htmlSize"> & {
9
+ var DebounceInput: (props: Pick<InputProps, "type" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "step" | "size" | "prefixCls" | "pattern" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width" | "onPressEnter" | "addonBefore" | "addonAfter" | "suffix" | "allowClear" | "bordered" | "htmlSize"> & {
10
10
  value?: string | undefined;
11
11
  onChange?: ((value: string) => void) | undefined;
12
12
  } & {
13
13
  debounce?: number | undefined;
14
- }) => JSX.Element;
14
+ }) => React.JSX.Element;
15
15
  var Password: typeof import("./Password").Password;
16
16
  var TextArea: typeof import("./TextArea").TextArea;
17
17
  }
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
13
32
  var __rest = (this && this.__rest) || function (s, e) {
14
33
  var t = {};
15
34
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -21,13 +40,6 @@ var __rest = (this && this.__rest) || function (s, e) {
21
40
  }
22
41
  return t;
23
42
  };
24
- var __importStar = (this && this.__importStar) || function (mod) {
25
- if (mod && mod.__esModule) return mod;
26
- var result = {};
27
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
28
- result["default"] = mod;
29
- return result;
30
- };
31
43
  var __importDefault = (this && this.__importDefault) || function (mod) {
32
44
  return (mod && mod.__esModule) ? mod : { "default": mod };
33
45
  };
@@ -4,6 +4,7 @@ interface IInputNumberWithUnitProps {
4
4
  onChange?: (value: string) => void;
5
5
  onNumberChange?: (num?: number) => void;
6
6
  onUnitChange?: (unit: string) => void;
7
+ readOnly?: boolean;
7
8
  className?: string;
8
9
  unitClassName?: string;
9
10
  placeholder?: string;
@@ -17,5 +18,5 @@ interface IInputNumberWithUnitProps {
17
18
  min?: number;
18
19
  max?: number;
19
20
  }
20
- declare function InputNumberWithUnit(props: IInputNumberWithUnitProps): JSX.Element;
21
+ declare function InputNumberWithUnit(props: IInputNumberWithUnitProps): React.JSX.Element;
21
22
  export default InputNumberWithUnit;
@@ -1,4 +1,23 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
2
21
  var __read = (this && this.__read) || function (o, n) {
3
22
  var m = typeof Symbol === "function" && o[Symbol.iterator];
4
23
  if (!m) return o;
@@ -15,13 +34,6 @@ var __read = (this && this.__read) || function (o, n) {
15
34
  }
16
35
  return ar;
17
36
  };
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
22
- result["default"] = mod;
23
- return result;
24
- };
25
37
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
38
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
39
  };
@@ -38,7 +50,7 @@ var getUnit = function (value) {
38
50
  return (value === null || value === void 0 ? void 0 : value.replace(/\d+/, '')) || '';
39
51
  };
40
52
  function InputNumberWithUnit(props) {
41
- var value = props.value, onChange = props.onChange, onNumberChange = props.onNumberChange, onUnitChange = props.onUnitChange, className = props.className, unitClassName = props.unitClassName, placeholder = props.placeholder, unitOptions = props.unitOptions, _a = props.unitWidth, unitWidth = _a === void 0 ? 86 : _a, min = props.min, max = props.max;
53
+ var value = props.value, onChange = props.onChange, onNumberChange = props.onNumberChange, onUnitChange = props.onUnitChange, className = props.className, unitClassName = props.unitClassName, placeholder = props.placeholder, unitOptions = props.unitOptions, _a = props.unitWidth, unitWidth = _a === void 0 ? 86 : _a, min = props.min, max = props.max, readOnly = props.readOnly;
42
54
  var _b = __read(react_1.useState(), 2), num = _b[0], setNum = _b[1];
43
55
  var _c = __read(react_1.useState(), 2), unit = _c[0], setUnit = _c[1];
44
56
  var controlled = Object.hasOwnProperty.call(props, 'value');
@@ -62,7 +74,7 @@ function InputNumberWithUnit(props) {
62
74
  }
63
75
  onUnitChange === null || onUnitChange === void 0 ? void 0 : onUnitChange(unit);
64
76
  }, [num, onChange, onUnitChange, controlled, value]);
65
- var addonAfterNode = (react_1.default.createElement(Selector_1.default, { options: unitOptions, className: unitClassName, value: controlled ? getUnit(value) : unit, style: { width: unitWidth }, onChange: onSelectorChange }));
66
- return (react_1.default.createElement(InputNumber_1.default, { className: style_1.SDK_PREFIX + "-input-number-unit " + className, value: controlled ? getNum(value) : num, onChange: onInputChange, placeholder: placeholder, addonAfter: addonAfterNode, min: min, max: max }));
77
+ var addonAfterNode = (react_1.default.createElement(Selector_1.default, { options: unitOptions, className: unitClassName, value: controlled ? getUnit(value) : unit, style: { width: unitWidth }, onChange: onSelectorChange, disabled: readOnly }));
78
+ return (react_1.default.createElement(InputNumber_1.default, { className: style_1.SDK_PREFIX + "-input-number-unit " + className, value: controlled ? getNum(value) : num, onChange: onInputChange, placeholder: placeholder, addonAfter: addonAfterNode, min: min, max: max, disabled: readOnly }));
67
79
  }
68
80
  exports.default = InputNumberWithUnit;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface IKeyValuePairProps {
3
3
  /**
4
4
  * 键值对的key
@@ -25,4 +25,4 @@ export interface IKeyValuePairProps {
25
25
  */
26
26
  htmlContent?: boolean;
27
27
  }
28
- export default function KeyValuePair(props: IKeyValuePairProps): JSX.Element;
28
+ export default function KeyValuePair(props: IKeyValuePairProps): React.JSX.Element;