@cloudtower/eagle 0.27.55 → 0.27.56

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 (323) hide show
  1. package/dist/components.css +2259 -3151
  2. package/dist/esm/index.js +10233 -34
  3. package/dist/esm/stats1.html +1 -1
  4. package/dist/src/index.d.ts +1 -0
  5. package/dist/src/styles/token/token.d.ts +1 -0
  6. package/dist/style.css +2226 -2226
  7. package/dist/token.css +209 -415
  8. package/dist/umd/index.js +10322 -0
  9. package/dist/{cjs → umd}/stats1.html +1 -1
  10. package/package.json +5 -7
  11. package/dist/cjs/UIKitProvider/index.js +0 -77
  12. package/dist/cjs/core/AccordionCard/index.js +0 -59
  13. package/dist/cjs/core/Alert/index.js +0 -80
  14. package/dist/cjs/core/Arch/index.js +0 -17
  15. package/dist/cjs/core/Badge/index.js +0 -51
  16. package/dist/cjs/core/BaseIcon/index.js +0 -76
  17. package/dist/cjs/core/Bit/index.js +0 -40
  18. package/dist/cjs/core/BitPerSecond/index.js +0 -40
  19. package/dist/cjs/core/Bps/index.js +0 -40
  20. package/dist/cjs/core/Breadcrumb/index.js +0 -58
  21. package/dist/cjs/core/Button/HoverableElement.js +0 -14
  22. package/dist/cjs/core/Button/index.js +0 -89
  23. package/dist/cjs/core/ButtonGroup/index.js +0 -110
  24. package/dist/cjs/core/Byte/index.js +0 -49
  25. package/dist/cjs/core/Calendar/index.js +0 -25
  26. package/dist/cjs/core/Card/CardBody.js +0 -12
  27. package/dist/cjs/core/Card/CardTitle.js +0 -12
  28. package/dist/cjs/core/Card/CardWrapper.js +0 -55
  29. package/dist/cjs/core/Card/index.js +0 -94
  30. package/dist/cjs/core/Cascader/cascader.style.js +0 -23
  31. package/dist/cjs/core/Cascader/cascader.widget.js +0 -86
  32. package/dist/cjs/core/Cascader/index.js +0 -74
  33. package/dist/cjs/core/Checkbox/checkbox.style.js +0 -5
  34. package/dist/cjs/core/Checkbox/index.js +0 -53
  35. package/dist/cjs/core/DetailCard/index.js +0 -23
  36. package/dist/cjs/core/DonutChart/index.js +0 -167
  37. package/dist/cjs/core/DropdownMenu/index.js +0 -66
  38. package/dist/cjs/core/Empty/index.js +0 -11
  39. package/dist/cjs/core/ExpandableList/ExpandIcon.js +0 -17
  40. package/dist/cjs/core/ExpandableList/ExpandableContainer.js +0 -17
  41. package/dist/cjs/core/ExpandableList/ExpandableItem.js +0 -48
  42. package/dist/cjs/core/ExpandableList/RoundOrder.js +0 -22
  43. package/dist/cjs/core/FailedLoad/index.js +0 -32
  44. package/dist/cjs/core/Fields/FieldsBoolean/index.js +0 -47
  45. package/dist/cjs/core/Fields/FieldsDateTime/index.js +0 -24
  46. package/dist/cjs/core/Fields/FieldsDateTimeRange/index.js +0 -50
  47. package/dist/cjs/core/Fields/FieldsEnum/index.js +0 -60
  48. package/dist/cjs/core/Fields/FieldsFloat/index.js +0 -60
  49. package/dist/cjs/core/Fields/FieldsInt/index.js +0 -78
  50. package/dist/cjs/core/Fields/FieldsInteger/index.js +0 -57
  51. package/dist/cjs/core/Fields/FieldsString/index.js +0 -116
  52. package/dist/cjs/core/Fields/FieldsTextArea/index.js +0 -64
  53. package/dist/cjs/core/Fields/FieldsTimePicker/index.js +0 -54
  54. package/dist/cjs/core/Fields/index.js +0 -28
  55. package/dist/cjs/core/Form/index.js +0 -10
  56. package/dist/cjs/core/FormItem/index.js +0 -38
  57. package/dist/cjs/core/Frequency/index.js +0 -40
  58. package/dist/cjs/core/Icon/index.js +0 -117
  59. package/dist/cjs/core/Input/index.js +0 -66
  60. package/dist/cjs/core/InputGroup/index.js +0 -14
  61. package/dist/cjs/core/InputInteger/formatterInteger.js +0 -15
  62. package/dist/cjs/core/InputInteger/index.js +0 -97
  63. package/dist/cjs/core/InputNumber/index.js +0 -90
  64. package/dist/cjs/core/InputTagItem/index.js +0 -12
  65. package/dist/cjs/core/KitStoreProvider/index.js +0 -23
  66. package/dist/cjs/core/Link/index.js +0 -56
  67. package/dist/cjs/core/Loading/index.js +0 -33
  68. package/dist/cjs/core/Loading/style.js +0 -11
  69. package/dist/cjs/core/Metric/metric.js +0 -21
  70. package/dist/cjs/core/Modal/index.js +0 -214
  71. package/dist/cjs/core/ModalStack/index.js +0 -47
  72. package/dist/cjs/core/Overflow/index.js +0 -117
  73. package/dist/cjs/core/Pagination/index.js +0 -120
  74. package/dist/cjs/core/ParrotTrans/index.js +0 -28
  75. package/dist/cjs/core/Percent/index.js +0 -41
  76. package/dist/cjs/core/Progress/index.js +0 -25
  77. package/dist/cjs/core/Radio/index.js +0 -142
  78. package/dist/cjs/core/SearchInput/index.js +0 -50
  79. package/dist/cjs/core/Second/index.js +0 -43
  80. package/dist/cjs/core/SegmentControl/index.js +0 -43
  81. package/dist/cjs/core/Select/index.js +0 -140
  82. package/dist/cjs/core/SimplePagination/index.js +0 -90
  83. package/dist/cjs/core/Speed/index.js +0 -40
  84. package/dist/cjs/core/StatusCapsule/index.js +0 -100
  85. package/dist/cjs/core/StepProgress/index.js +0 -44
  86. package/dist/cjs/core/Steps/index.js +0 -126
  87. package/dist/cjs/core/Steps/style.js +0 -13
  88. package/dist/cjs/core/Styled/index.js +0 -57
  89. package/dist/cjs/core/Switch/index.js +0 -61
  90. package/dist/cjs/core/Table/TableWidget.js +0 -47
  91. package/dist/cjs/core/Table/common.js +0 -46
  92. package/dist/cjs/core/Table/index.js +0 -112
  93. package/dist/cjs/core/TableForm/AddRowButton.js +0 -108
  94. package/dist/cjs/core/TableForm/Columns/AffixColumn.js +0 -48
  95. package/dist/cjs/core/TableForm/Columns/CheckboxColumn.js +0 -35
  96. package/dist/cjs/core/TableForm/Columns/FormItem.js +0 -20
  97. package/dist/cjs/core/TableForm/Columns/InputColumn.js +0 -117
  98. package/dist/cjs/core/TableForm/Columns/TextColumn.js +0 -44
  99. package/dist/cjs/core/TableForm/Columns/index.js +0 -24
  100. package/dist/cjs/core/TableForm/TableFormBodyCell.js +0 -165
  101. package/dist/cjs/core/TableForm/TableFormBodyRows.js +0 -215
  102. package/dist/cjs/core/TableForm/TableFormHeaderCell.js +0 -93
  103. package/dist/cjs/core/TableForm/index.js +0 -187
  104. package/dist/cjs/core/TableForm/style.js +0 -35
  105. package/dist/cjs/core/TableForm/types.js +0 -10
  106. package/dist/cjs/core/TableForm/utils.js +0 -36
  107. package/dist/cjs/core/Tag/SplitTag.js +0 -64
  108. package/dist/cjs/core/Tag/const.js +0 -12
  109. package/dist/cjs/core/Tag/index.js +0 -96
  110. package/dist/cjs/core/Tag/style.js +0 -14
  111. package/dist/cjs/core/TextArea/index.js +0 -72
  112. package/dist/cjs/core/Time/index.js +0 -31
  113. package/dist/cjs/core/TimePicker/index.js +0 -66
  114. package/dist/cjs/core/TimeZoneSelect/index.js +0 -165
  115. package/dist/cjs/core/Token/index.js +0 -86
  116. package/dist/cjs/core/Token/style.js +0 -5
  117. package/dist/cjs/core/Tooltip/index.js +0 -89
  118. package/dist/cjs/core/Truncate/index.js +0 -49
  119. package/dist/cjs/core/Typo/index.js +0 -130
  120. package/dist/cjs/core/antd.js +0 -208
  121. package/dist/cjs/core/message/index.js +0 -203
  122. package/dist/cjs/core/message-group/index.js +0 -147
  123. package/dist/cjs/coreX/BarChart/index.js +0 -39
  124. package/dist/cjs/coreX/BatchOperation/index.js +0 -149
  125. package/dist/cjs/coreX/ChartWithTooltip/index.js +0 -154
  126. package/dist/cjs/coreX/Counting/index.js +0 -22
  127. package/dist/cjs/coreX/CronCalendar/index.js +0 -105
  128. package/dist/cjs/coreX/CronPlan/index.js +0 -462
  129. package/dist/cjs/coreX/DateRangePicker/AbsoluteDate.js +0 -179
  130. package/dist/cjs/coreX/DateRangePicker/Calendar.js +0 -286
  131. package/dist/cjs/coreX/DateRangePicker/DateRangePicker.style.js +0 -84
  132. package/dist/cjs/coreX/DateRangePicker/InputTime.js +0 -151
  133. package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +0 -53
  134. package/dist/cjs/coreX/DateRangePicker/common.js +0 -195
  135. package/dist/cjs/coreX/DateRangePicker/index.js +0 -331
  136. package/dist/cjs/coreX/DeprecatedDonutChart/index.js +0 -39
  137. package/dist/cjs/coreX/DropdownTransition/index.js +0 -73
  138. package/dist/cjs/coreX/GoBackButton/index.js +0 -45
  139. package/dist/cjs/coreX/I18nNameTag/index.js +0 -37
  140. package/dist/cjs/coreX/NamesTooltip/index.js +0 -34
  141. package/dist/cjs/coreX/OverflowTooltip/index.js +0 -92
  142. package/dist/cjs/coreX/SidebarSubtitle/index.js +0 -13
  143. package/dist/cjs/coreX/SortableList/index.js +0 -33
  144. package/dist/cjs/coreX/SummaryTable/index.js +0 -113
  145. package/dist/cjs/coreX/SwitchWithText/index.js +0 -59
  146. package/dist/cjs/coreX/TabMenu/index.js +0 -152
  147. package/dist/cjs/coreX/TruncatedTextWithTooltip/index.js +0 -69
  148. package/dist/cjs/coreX/UnitWithChart/index.js +0 -118
  149. package/dist/cjs/coreX/common/getCalendarTitle.js +0 -26
  150. package/dist/cjs/hooks/useElementIntersectionRatio.js +0 -30
  151. package/dist/cjs/hooks/useElementResize.js +0 -69
  152. package/dist/cjs/hooks/useElementsSize.js +0 -58
  153. package/dist/cjs/hooks/useMemoCompare.js +0 -17
  154. package/dist/cjs/hooks/useParrotTranslation.js +0 -13
  155. package/dist/cjs/index.js +0 -120
  156. package/dist/cjs/spec/type.js +0 -9
  157. package/dist/cjs/store/chart.js +0 -65
  158. package/dist/cjs/store/index.js +0 -48
  159. package/dist/cjs/store/modal.js +0 -67
  160. package/dist/cjs/styles/token/color.js +0 -273
  161. package/dist/cjs/utils/constants.js +0 -8
  162. package/dist/cjs/utils/cron-time.js +0 -450
  163. package/dist/cjs/utils/dom.js +0 -16
  164. package/dist/cjs/utils/icon.js +0 -22
  165. package/dist/cjs/utils/isEmpty.js +0 -12
  166. package/dist/cjs/utils/time.js +0 -86
  167. package/dist/cjs/utils/tower.js +0 -188
  168. package/dist/esm/UIKitProvider/index.js +0 -71
  169. package/dist/esm/core/AccordionCard/index.js +0 -57
  170. package/dist/esm/core/Alert/index.js +0 -78
  171. package/dist/esm/core/Arch/index.js +0 -15
  172. package/dist/esm/core/Badge/index.js +0 -49
  173. package/dist/esm/core/BaseIcon/index.js +0 -74
  174. package/dist/esm/core/Bit/index.js +0 -38
  175. package/dist/esm/core/BitPerSecond/index.js +0 -38
  176. package/dist/esm/core/Bps/index.js +0 -38
  177. package/dist/esm/core/Breadcrumb/index.js +0 -53
  178. package/dist/esm/core/Button/HoverableElement.js +0 -12
  179. package/dist/esm/core/Button/index.js +0 -87
  180. package/dist/esm/core/ButtonGroup/index.js +0 -105
  181. package/dist/esm/core/Byte/index.js +0 -47
  182. package/dist/esm/core/Calendar/index.js +0 -23
  183. package/dist/esm/core/Card/CardBody.js +0 -10
  184. package/dist/esm/core/Card/CardTitle.js +0 -10
  185. package/dist/esm/core/Card/CardWrapper.js +0 -53
  186. package/dist/esm/core/Card/index.js +0 -92
  187. package/dist/esm/core/Cascader/cascader.style.js +0 -12
  188. package/dist/esm/core/Cascader/cascader.widget.js +0 -79
  189. package/dist/esm/core/Cascader/index.js +0 -72
  190. package/dist/esm/core/Checkbox/checkbox.style.js +0 -3
  191. package/dist/esm/core/Checkbox/index.js +0 -51
  192. package/dist/esm/core/DetailCard/index.js +0 -21
  193. package/dist/esm/core/DonutChart/index.js +0 -161
  194. package/dist/esm/core/DropdownMenu/index.js +0 -61
  195. package/dist/esm/core/Empty/index.js +0 -9
  196. package/dist/esm/core/ExpandableList/ExpandIcon.js +0 -15
  197. package/dist/esm/core/ExpandableList/ExpandableContainer.js +0 -15
  198. package/dist/esm/core/ExpandableList/ExpandableItem.js +0 -46
  199. package/dist/esm/core/ExpandableList/RoundOrder.js +0 -20
  200. package/dist/esm/core/FailedLoad/index.js +0 -30
  201. package/dist/esm/core/Fields/FieldsBoolean/index.js +0 -45
  202. package/dist/esm/core/Fields/FieldsDateTime/index.js +0 -22
  203. package/dist/esm/core/Fields/FieldsDateTimeRange/index.js +0 -48
  204. package/dist/esm/core/Fields/FieldsEnum/index.js +0 -58
  205. package/dist/esm/core/Fields/FieldsFloat/index.js +0 -58
  206. package/dist/esm/core/Fields/FieldsInt/index.js +0 -76
  207. package/dist/esm/core/Fields/FieldsInteger/index.js +0 -55
  208. package/dist/esm/core/Fields/FieldsString/index.js +0 -114
  209. package/dist/esm/core/Fields/FieldsTextArea/index.js +0 -62
  210. package/dist/esm/core/Fields/FieldsTimePicker/index.js +0 -52
  211. package/dist/esm/core/Fields/index.js +0 -26
  212. package/dist/esm/core/Form/index.js +0 -8
  213. package/dist/esm/core/FormItem/index.js +0 -36
  214. package/dist/esm/core/Frequency/index.js +0 -38
  215. package/dist/esm/core/Icon/index.js +0 -115
  216. package/dist/esm/core/Input/index.js +0 -64
  217. package/dist/esm/core/InputGroup/index.js +0 -12
  218. package/dist/esm/core/InputInteger/formatterInteger.js +0 -13
  219. package/dist/esm/core/InputInteger/index.js +0 -92
  220. package/dist/esm/core/InputNumber/index.js +0 -85
  221. package/dist/esm/core/InputTagItem/index.js +0 -10
  222. package/dist/esm/core/KitStoreProvider/index.js +0 -17
  223. package/dist/esm/core/Link/index.js +0 -54
  224. package/dist/esm/core/Loading/index.js +0 -31
  225. package/dist/esm/core/Loading/style.js +0 -6
  226. package/dist/esm/core/Metric/metric.js +0 -19
  227. package/dist/esm/core/Modal/index.js +0 -212
  228. package/dist/esm/core/ModalStack/index.js +0 -45
  229. package/dist/esm/core/Overflow/index.js +0 -112
  230. package/dist/esm/core/Pagination/index.js +0 -115
  231. package/dist/esm/core/ParrotTrans/index.js +0 -26
  232. package/dist/esm/core/Percent/index.js +0 -39
  233. package/dist/esm/core/Progress/index.js +0 -23
  234. package/dist/esm/core/Radio/index.js +0 -136
  235. package/dist/esm/core/SearchInput/index.js +0 -48
  236. package/dist/esm/core/Second/index.js +0 -41
  237. package/dist/esm/core/SegmentControl/index.js +0 -41
  238. package/dist/esm/core/Select/index.js +0 -138
  239. package/dist/esm/core/SimplePagination/index.js +0 -88
  240. package/dist/esm/core/Speed/index.js +0 -38
  241. package/dist/esm/core/StatusCapsule/index.js +0 -94
  242. package/dist/esm/core/StepProgress/index.js +0 -42
  243. package/dist/esm/core/Steps/index.js +0 -124
  244. package/dist/esm/core/Steps/style.js +0 -7
  245. package/dist/esm/core/Styled/index.js +0 -45
  246. package/dist/esm/core/Switch/index.js +0 -59
  247. package/dist/esm/core/Table/TableWidget.js +0 -44
  248. package/dist/esm/core/Table/common.js +0 -44
  249. package/dist/esm/core/Table/index.js +0 -104
  250. package/dist/esm/core/TableForm/AddRowButton.js +0 -106
  251. package/dist/esm/core/TableForm/Columns/AffixColumn.js +0 -46
  252. package/dist/esm/core/TableForm/Columns/CheckboxColumn.js +0 -32
  253. package/dist/esm/core/TableForm/Columns/FormItem.js +0 -18
  254. package/dist/esm/core/TableForm/Columns/InputColumn.js +0 -114
  255. package/dist/esm/core/TableForm/Columns/TextColumn.js +0 -41
  256. package/dist/esm/core/TableForm/Columns/index.js +0 -21
  257. package/dist/esm/core/TableForm/TableFormBodyCell.js +0 -163
  258. package/dist/esm/core/TableForm/TableFormBodyRows.js +0 -213
  259. package/dist/esm/core/TableForm/TableFormHeaderCell.js +0 -91
  260. package/dist/esm/core/TableForm/index.js +0 -185
  261. package/dist/esm/core/TableForm/style.js +0 -27
  262. package/dist/esm/core/TableForm/types.js +0 -8
  263. package/dist/esm/core/TableForm/utils.js +0 -32
  264. package/dist/esm/core/Tag/SplitTag.js +0 -62
  265. package/dist/esm/core/Tag/const.js +0 -10
  266. package/dist/esm/core/Tag/index.js +0 -91
  267. package/dist/esm/core/Tag/style.js +0 -9
  268. package/dist/esm/core/TextArea/index.js +0 -70
  269. package/dist/esm/core/Time/index.js +0 -29
  270. package/dist/esm/core/TimePicker/index.js +0 -64
  271. package/dist/esm/core/TimeZoneSelect/index.js +0 -163
  272. package/dist/esm/core/Token/index.js +0 -81
  273. package/dist/esm/core/Token/style.js +0 -3
  274. package/dist/esm/core/Tooltip/index.js +0 -87
  275. package/dist/esm/core/Truncate/index.js +0 -47
  276. package/dist/esm/core/Typo/index.js +0 -128
  277. package/dist/esm/core/antd.js +0 -205
  278. package/dist/esm/core/message/index.js +0 -179
  279. package/dist/esm/core/message-group/index.js +0 -143
  280. package/dist/esm/coreX/BarChart/index.js +0 -34
  281. package/dist/esm/coreX/BatchOperation/index.js +0 -144
  282. package/dist/esm/coreX/ChartWithTooltip/index.js +0 -149
  283. package/dist/esm/coreX/Counting/index.js +0 -20
  284. package/dist/esm/coreX/CronCalendar/index.js +0 -103
  285. package/dist/esm/coreX/CronPlan/index.js +0 -457
  286. package/dist/esm/coreX/DateRangePicker/AbsoluteDate.js +0 -177
  287. package/dist/esm/coreX/DateRangePicker/Calendar.js +0 -284
  288. package/dist/esm/coreX/DateRangePicker/DateRangePicker.style.js +0 -77
  289. package/dist/esm/coreX/DateRangePicker/InputTime.js +0 -149
  290. package/dist/esm/coreX/DateRangePicker/RelativeTime.js +0 -51
  291. package/dist/esm/coreX/DateRangePicker/common.js +0 -183
  292. package/dist/esm/coreX/DateRangePicker/index.js +0 -325
  293. package/dist/esm/coreX/DeprecatedDonutChart/index.js +0 -37
  294. package/dist/esm/coreX/DropdownTransition/index.js +0 -71
  295. package/dist/esm/coreX/GoBackButton/index.js +0 -43
  296. package/dist/esm/coreX/I18nNameTag/index.js +0 -35
  297. package/dist/esm/coreX/NamesTooltip/index.js +0 -32
  298. package/dist/esm/coreX/OverflowTooltip/index.js +0 -90
  299. package/dist/esm/coreX/SidebarSubtitle/index.js +0 -11
  300. package/dist/esm/coreX/SortableList/index.js +0 -31
  301. package/dist/esm/coreX/SummaryTable/index.js +0 -108
  302. package/dist/esm/coreX/SwitchWithText/index.js +0 -57
  303. package/dist/esm/coreX/TabMenu/index.js +0 -150
  304. package/dist/esm/coreX/TruncatedTextWithTooltip/index.js +0 -67
  305. package/dist/esm/coreX/UnitWithChart/index.js +0 -113
  306. package/dist/esm/coreX/common/getCalendarTitle.js +0 -24
  307. package/dist/esm/hooks/useElementIntersectionRatio.js +0 -28
  308. package/dist/esm/hooks/useElementResize.js +0 -67
  309. package/dist/esm/hooks/useElementsSize.js +0 -56
  310. package/dist/esm/hooks/useMemoCompare.js +0 -15
  311. package/dist/esm/hooks/useParrotTranslation.js +0 -11
  312. package/dist/esm/spec/type.js +0 -7
  313. package/dist/esm/store/chart.js +0 -62
  314. package/dist/esm/store/index.js +0 -37
  315. package/dist/esm/store/modal.js +0 -63
  316. package/dist/esm/styles/token/color.js +0 -271
  317. package/dist/esm/utils/constants.js +0 -5
  318. package/dist/esm/utils/cron-time.js +0 -448
  319. package/dist/esm/utils/dom.js +0 -14
  320. package/dist/esm/utils/icon.js +0 -20
  321. package/dist/esm/utils/isEmpty.js +0 -10
  322. package/dist/esm/utils/time.js +0 -76
  323. package/dist/esm/utils/tower.js +0 -173
@@ -1,147 +0,0 @@
1
- 'use strict';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
- var __spreadValues = (a, b) => {
11
- for (var prop in b || (b = {}))
12
- if (__hasOwnProp.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- if (__getOwnPropSymbols)
15
- for (var prop of __getOwnPropSymbols(b)) {
16
- if (__propIsEnum.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- }
19
- return a;
20
- };
21
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
- var __publicField = (obj, key, value) => {
23
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
24
- return value;
25
- };
26
- function makeUUID(length = 25) {
27
- let result = "";
28
- const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
29
- const charactersLength = characters.length;
30
- for (let i = 0; i < length; i++) {
31
- result += characters.charAt(Math.floor(Math.random() * charactersLength));
32
- }
33
- return result;
34
- }
35
- class Batcher {
36
- constructor(originalMethod, batchHelper) {
37
- __publicField(this, "batchSize", 2);
38
- __publicField(this, "batchTime", 200);
39
- __publicField(this, "scheduler", {});
40
- __publicField(this, "originalMethod");
41
- __publicField(this, "batchHelper");
42
- this.originalMethod = originalMethod;
43
- this.batchHelper = batchHelper;
44
- }
45
- addMessage(originContent) {
46
- if (document.hidden) {
47
- return;
48
- }
49
- const batchKey = this.batchHelper.getBatchKey(originContent.content);
50
- if (batchKey == null) {
51
- this.originalMethod(originContent);
52
- return;
53
- }
54
- if (!this.scheduler[batchKey]) {
55
- this.scheduler[batchKey] = {
56
- firedHandlers: {},
57
- pendingMessages: {}
58
- };
59
- }
60
- const messageStore = this.scheduler[batchKey];
61
- const { firedHandlers, pendingMessages, groupedCtx } = messageStore;
62
- if (groupedCtx) {
63
- groupedCtx.count++;
64
- this.applyContent(batchKey, originContent, messageStore);
65
- return;
66
- }
67
- const messageCount = Object.keys(firedHandlers).length + Object.keys(pendingMessages).length;
68
- if (messageCount + 1 > this.batchSize) {
69
- for (const k in firedHandlers) {
70
- try {
71
- firedHandlers[k]();
72
- } catch (e) {
73
- }
74
- delete firedHandlers[k];
75
- }
76
- for (const k in pendingMessages) {
77
- delete pendingMessages[k];
78
- }
79
- messageStore.groupedCtx = {
80
- key: originContent.key,
81
- count: messageCount + 1
82
- };
83
- this.applyContent(batchKey, originContent, messageStore);
84
- return;
85
- }
86
- pendingMessages[originContent.key] = originContent;
87
- setTimeout(() => {
88
- if (originContent.key in pendingMessages) {
89
- delete pendingMessages[originContent.key];
90
- originContent.onClose = () => {
91
- delete firedHandlers[originContent.key];
92
- };
93
- const handler = this.originalMethod(originContent);
94
- firedHandlers[originContent.key] = handler;
95
- }
96
- }, this.batchTime);
97
- }
98
- applyContent(batchKey, content, store) {
99
- content.content = this.batchHelper.getBatchContent(
100
- batchKey,
101
- store.groupedCtx.count
102
- );
103
- content.key = store.groupedCtx.key;
104
- content.onClose = () => {
105
- delete store.groupedCtx;
106
- };
107
- this.originalMethod(content);
108
- }
109
- }
110
- function createBatchMessageMethods(message, batchHelper) {
111
- let _message = __spreadValues({}, message);
112
- const methods = [
113
- "success",
114
- "error",
115
- "info",
116
- "warning",
117
- "warn",
118
- "loading"
119
- ];
120
- for (const method of methods) {
121
- const originalMethod = _message[method];
122
- const batcher = new Batcher(originalMethod, batchHelper);
123
- _message[method] = function(...args) {
124
- const key = makeUUID();
125
- const content = normalizeContent(args, method);
126
- batcher.addMessage(__spreadProps(__spreadValues({}, content), { key }));
127
- return () => {
128
- };
129
- };
130
- }
131
- return _message;
132
- }
133
- function normalizeContent(args, type) {
134
- const c = args[0];
135
- if (c && typeof c === "object" && "content" in c) {
136
- return c;
137
- }
138
- return {
139
- content: c,
140
- duration: typeof args[1] === "number" ? args[1] : 6,
141
- type: type === "warn" ? "warning" : type
142
- };
143
- }
144
-
145
- exports.Batcher = Batcher;
146
- exports.createBatchMessageMethods = createBatchMessageMethods;
147
- exports.makeUUID = makeUUID;
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tower = require('../../utils/tower.js');
6
- var React = require('react');
7
-
8
- const StackBar = "skwah65";
9
- function getWidth(input) {
10
- const {
11
- value,
12
- unit
13
- } = tower.formatPercent(input);
14
- return value + unit;
15
- }
16
- const BarChart = ({
17
- data,
18
- total
19
- }) => /* @__PURE__ */React.createElement("div", {
20
- className: StackBar
21
- }, (data || []).map(item => {
22
- const {
23
- value,
24
- color
25
- } = item;
26
- const width = total === 0 ? 0 : getWidth(100 * value / total);
27
- return /* @__PURE__ */React.createElement("div", {
28
- className: "stack-bar-item",
29
- style: {
30
- width,
31
- background: color,
32
- display: value === 0 || total === 0 ? "none" : "inline-block"
33
- }
34
- });
35
- }));
36
- var BarChart$1 = BarChart;
37
-
38
- exports.default = BarChart$1;
39
- exports.getWidth = getWidth;
@@ -1,149 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var iconsReact = require('@cloudtower/icons-react');
6
- var index$2 = require('../../core/Button/index.js');
7
- var index$3 = require('../../core/Icon/index.js');
8
- var index$4 = require('../../core/Overflow/index.js');
9
- var index$1 = require('../../core/Tooltip/index.js');
10
- var index = require('../../core/Typo/index.js');
11
- var useParrotTranslation = require('../../hooks/useParrotTranslation.js');
12
- var antd = require('antd');
13
- var cs = require('classnames');
14
- var React = require('react');
15
-
16
- var __defProp = Object.defineProperty;
17
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
18
- var __hasOwnProp = Object.prototype.hasOwnProperty;
19
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
20
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value
25
- }) : obj[key] = value;
26
- var __spreadValues = (a, b) => {
27
- for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
28
- if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
29
- if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
30
- }
31
- return a;
32
- };
33
- const SelectToolbar = "s1ebs0ra";
34
- const renderBatchOperationMenuItem = (act, idx = 0) => {
35
- if (act === "divider") {
36
- return /* @__PURE__ */React.createElement(antd.Menu.Divider, {
37
- key: `divider-${idx}`
38
- });
39
- }
40
- if ("children" in act) {
41
- return /* @__PURE__ */React.createElement(antd.Menu.SubMenu, {
42
- className: cs(index.Typo.Label.l4_regular),
43
- key: act.key,
44
- title: (act == null ? void 0 : act.icon) ? React.cloneElement(act.icon, {}, act.title) : /* @__PURE__ */React.createElement("span", null, act.title)
45
- }, act.children.map(renderBatchOperationMenuItem));
46
- }
47
- const Inner = props => {
48
- return /* @__PURE__ */React.createElement("span", __spreadValues({}, props), act.icon ? React.cloneElement(act.icon, {}, act.title) : null, (act == null ? void 0 : act.count) && /* @__PURE__ */React.createElement("span", null, act.count));
49
- };
50
- return /* @__PURE__ */React.createElement(antd.Menu.Item, {
51
- key: act.key,
52
- onClick: act.onClick,
53
- danger: act.danger,
54
- disabled: !!(act == null ? void 0 : act.disabled),
55
- className: (act == null ? void 0 : act.danger) && act.disabled ? "item-danger-disabled" : ""
56
- }, "tooltip" in act && act.tooltip ? /* @__PURE__ */React.createElement(index$1, {
57
- title: act.tooltip
58
- }, /* @__PURE__ */React.createElement(Inner, null)) : /* @__PURE__ */React.createElement(Inner, null));
59
- };
60
- const BatchOperation = props => {
61
- const {
62
- count,
63
- onClearSelection,
64
- actions
65
- } = props;
66
- const {
67
- t
68
- } = useParrotTranslation();
69
- const els = React.useMemo(() => {
70
- return actions.map((act, idx) => {
71
- if (act === "divider") {
72
- return /* @__PURE__ */React.createElement(antd.Menu.Divider, {
73
- key: `divider-${idx}`
74
- });
75
- }
76
- if ("children" in act) {
77
- return /* @__PURE__ */React.createElement(antd.Dropdown, {
78
- key: act.key,
79
- trigger: ["click"],
80
- placement: "bottomRight",
81
- overlay: /* @__PURE__ */React.createElement(antd.Menu, null, act.children.map(renderBatchOperationMenuItem))
82
- }, /* @__PURE__ */React.createElement(index$2, {
83
- key: act.key,
84
- type: "ordinary-onTint",
85
- prefixIcon: act.icon != null ? act.icon : void 0,
86
- danger: act == null ? void 0 : act.danger,
87
- className: `sub-menu-${act.key}`,
88
- suffixIcon: /* @__PURE__ */React.createElement(index$3, {
89
- src: iconsReact.ArrowChevronDown16SecondaryIcon
90
- })
91
- }, act.title));
92
- }
93
- if (act.tooltip) {
94
- return /* @__PURE__ */React.createElement(index$1, {
95
- title: act.tooltip
96
- }, /* @__PURE__ */React.createElement(index$2, {
97
- key: act.key,
98
- type: "ordinary-onTint",
99
- danger: act.danger,
100
- onClick: act.onClick,
101
- disabled: act.disabled,
102
- prefixIcon: act.icon != null ? act.icon : void 0
103
- }, act.title));
104
- }
105
- return /* @__PURE__ */React.createElement(index$2, {
106
- key: act.key,
107
- type: "ordinary-onTint",
108
- danger: act.danger,
109
- onClick: act.onClick,
110
- disabled: act.disabled,
111
- prefixIcon: act.icon != null ? act.icon : void 0
112
- }, act.title);
113
- });
114
- }, [actions]);
115
- const getExtraEl = React.useCallback(end => /* @__PURE__ */React.createElement(antd.Dropdown, {
116
- overlay: /* @__PURE__ */React.createElement(antd.Menu, null, actions.slice(end).map((act, idx) => {
117
- return act === "divider" ? /* @__PURE__ */React.createElement(antd.Menu.Divider, {
118
- key: `divider-${idx}`
119
- }) : "children" in act ? /* @__PURE__ */React.createElement(antd.Menu.SubMenu, {
120
- className: cs(index.Typo.Label.l4_regular),
121
- key: act.key,
122
- title: (act == null ? void 0 : act.icon) ? React.cloneElement(act.icon, {}, act.title) : /* @__PURE__ */React.createElement("span", null, act.title)
123
- }, act.children.map(renderBatchOperationMenuItem)) : renderBatchOperationMenuItem(act);
124
- }))
125
- }, /* @__PURE__ */React.createElement(index$3, {
126
- className: "more-btn",
127
- src: iconsReact.MoreEllipsis316BoldBlueIcon
128
- })), [actions]);
129
- return /* @__PURE__ */React.createElement("div", {
130
- className: SelectToolbar
131
- }, /* @__PURE__ */React.createElement("span", {
132
- className: "select-total"
133
- }, t("components.selected_item_with_count", {
134
- count
135
- }), /* @__PURE__ */React.createElement(index$3, {
136
- src: iconsReact.XmarkRemove16SecondaryIcon,
137
- hoverSrc: iconsReact.XmarkRemove16BlueIcon,
138
- onClick: onClearSelection
139
- })), /* @__PURE__ */React.createElement(index$4.ExtraOverflow, {
140
- className: "action-group",
141
- reverse: true,
142
- els,
143
- extraEl: getExtraEl
144
- }));
145
- };
146
- var BatchOperation$1 = BatchOperation;
147
-
148
- exports.default = BatchOperation$1;
149
- exports.renderBatchOperationMenuItem = renderBatchOperationMenuItem;
@@ -1,154 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var react = require('@linaria/react');
6
- var index$9 = require('../../core/Bit/index.js');
7
- var index$8 = require('../../core/BitPerSecond/index.js');
8
- var index$7 = require('../../core/Bps/index.js');
9
- var index$4 = require('../../core/Byte/index.js');
10
- var index$5 = require('../../core/Frequency/index.js');
11
- var index$3 = require('../../core/Percent/index.js');
12
- var index$a = require('../../core/Second/index.js');
13
- var index$6 = require('../../core/Speed/index.js');
14
- var index$2 = require('../../core/Styled/index.js');
15
- var index$1 = require('../../core/Tooltip/index.js');
16
- var index = require('../UnitWithChart/index.js');
17
- var tower = require('../../utils/tower.js');
18
- var _ = require('lodash');
19
- var React = require('react');
20
-
21
- const units = {
22
- Percent: index$3,
23
- Byte: index$4,
24
- Frequency: index$5,
25
- Speed: index$6,
26
- Bps: index$7,
27
- BitPerSecond: index$8,
28
- Bit: index$9,
29
- Second: index$a
30
- };
31
- const ChartContent = /*#__PURE__*/react.styled('div')({
32
- name: "ChartContent",
33
- class: "c18bcrac",
34
- propsAsIs: false
35
- });
36
- const ChartTooltipContainer = /*#__PURE__*/react.styled('div')({
37
- name: "ChartTooltipContainer",
38
- class: "cro7kg2",
39
- propsAsIs: false
40
- });
41
- const ChartTooltipRow = /*#__PURE__*/react.styled('div')({
42
- name: "ChartTooltipRow",
43
- class: "c14wcxf0",
44
- propsAsIs: false
45
- });
46
- const _exp = () => ChartTooltipRow;
47
- const ChartTooltipTitle = /*#__PURE__*/react.styled(_exp())({
48
- name: "ChartTooltipTitle",
49
- class: "coy29mj",
50
- propsAsIs: true
51
- });
52
- const _exp2 = () => props => props.color;
53
- const SpaceStatus = /*#__PURE__*/react.styled('i')({
54
- name: "SpaceStatus",
55
- class: "s11212zy",
56
- propsAsIs: false,
57
- vars: {
58
- "s11212zy-0": [_exp2()]
59
- }
60
- });
61
- const PrimaryUnit = /*#__PURE__*/react.styled('div')({
62
- name: "PrimaryUnit",
63
- class: "p1lyky6c",
64
- propsAsIs: false
65
- });
66
- const ChartWithUnit = props => {
67
- const {
68
- items,
69
- rawValue,
70
- unit,
71
- chartType,
72
- tableUnit,
73
- total
74
- } = props;
75
- const finalTableUnit = tableUnit != null ? tableUnit : unit;
76
- const emptyDisplay = rawValue2 => {
77
- if (_.isNil(rawValue2)) {
78
- return /* @__PURE__ */React.createElement(index$2.TertiaryText, null, "-");
79
- }
80
- return finalTableUnit === "Percent" ?
81
- // process 0.0%
82
- /* @__PURE__ */
83
- React.createElement("span", {
84
- className: index.UnitWrapper
85
- }, /* @__PURE__ */React.createElement(index$3, {
86
- rawValue: rawValue2,
87
- decimals: 1
88
- })) : rawValue2;
89
- };
90
- return /* @__PURE__ */React.createElement(ChartContent, null, rawValue || rawValue === 0 ? /* @__PURE__ */React.createElement(index.default, {
91
- unit: finalTableUnit,
92
- rawValue: chartType === "barChart" ? tower.formatPercent(rawValue / total * 100, 1).numberValue : rawValue,
93
- total,
94
- chartType,
95
- data: items
96
- }) : emptyDisplay(rawValue));
97
- };
98
- const ChartWithTooltip = props => {
99
- const {
100
- title,
101
- items,
102
- rawValue,
103
- unit,
104
- chartType,
105
- tableUnit,
106
- saturated
107
- } = props;
108
- const KitUnit = units[unit];
109
- const total = title.value || 0;
110
- const finalTableUnit = tableUnit != null ? tableUnit : unit;
111
- const emptyDisplay = rawValue2 => {
112
- if (_.isNil(rawValue2)) {
113
- return /* @__PURE__ */React.createElement(index$2.TertiaryText, null, "-");
114
- }
115
- return finalTableUnit === "Percent" ?
116
- // process 0.0%
117
- /* @__PURE__ */
118
- React.createElement(index$3, {
119
- rawValue: rawValue2,
120
- decimals: 1
121
- }) : rawValue2;
122
- };
123
- return /* @__PURE__ */React.createElement(index$1, {
124
- title: /* @__PURE__ */React.createElement(ChartTooltipContainer, null, /* @__PURE__ */React.createElement(ChartTooltipTitle, null, /* @__PURE__ */React.createElement("label", null, title.label), /* @__PURE__ */React.createElement(KitUnit, {
125
- rawValue: total
126
- })), items.map(item => {
127
- var _a;
128
- return /* @__PURE__ */React.createElement(ChartTooltipRow, {
129
- key: item.label
130
- }, /* @__PURE__ */React.createElement("label", null, /* @__PURE__ */React.createElement(SpaceStatus, {
131
- color: item.color
132
- }), /* @__PURE__ */React.createElement("span", null, item.label)), /* @__PURE__ */React.createElement(PrimaryUnit, {
133
- className: "value"
134
- }, /* @__PURE__ */React.createElement(KitUnit, {
135
- rawValue: item.value || 0
136
- }), /* @__PURE__ */React.createElement("span", null, "(", total ? (item.value ? tower.formatPercent((item.value || 0) / total * 100, 1, (_a = item.saturated) != null ? _a : true).value : 0) + "%" : "-", ")")));
137
- })),
138
- overlayStyle: {
139
- maxWidth: 500,
140
- minWidth: 246
141
- }
142
- }, /* @__PURE__ */React.createElement(ChartContent, null, total ? rawValue ? /* @__PURE__ */React.createElement(index.default, {
143
- unit: finalTableUnit,
144
- rawValue: chartType === "barChart" ? tower.formatPercent(rawValue / total * 100, 1, saturated != null ? saturated : true).numberValue : rawValue,
145
- total,
146
- chartType,
147
- data: items,
148
- saturated
149
- }) : emptyDisplay(rawValue) : emptyDisplay(null)));
150
- };
151
- var ChartWithTooltip$1 = ChartWithTooltip;
152
-
153
- exports.ChartWithUnit = ChartWithUnit;
154
- exports.default = ChartWithTooltip$1;
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
5
- const Counting = (props) => {
6
- const { stop, interval = 1e3, render } = props;
7
- const [, setState] = React.useState(true);
8
- React.useEffect(() => {
9
- if (stop)
10
- return;
11
- const timer = setInterval(() => {
12
- setState((state) => !state);
13
- }, interval);
14
- return () => {
15
- clearInterval(timer);
16
- };
17
- }, [stop, interval]);
18
- return /* @__PURE__ */ React.createElement(React.Fragment, null, render());
19
- };
20
- var Counting$1 = Counting;
21
-
22
- module.exports = Counting$1;
@@ -1,105 +0,0 @@
1
- 'use strict';
2
-
3
- var icons = require('@ant-design/icons');
4
- var core = require('@linaria/core');
5
- var index = require('../../core/Calendar/index.js');
6
- var index$2 = require('../../core/Tooltip/index.js');
7
- var index$1 = require('../../core/Typo/index.js');
8
- var getCalendarTitle = require('../common/getCalendarTitle.js');
9
- var useParrotTranslation = require('../../hooks/useParrotTranslation.js');
10
- var cronTime = require('../../utils/cron-time.js');
11
- var dayjs = require('dayjs');
12
- var moment = require('moment');
13
- var React = require('react');
14
-
15
- const CronCalendarWrapper = "clm1wy1";
16
- const Title = "t1tsm00v";
17
- const Control = "c167wnad";
18
- const Cell = "cxhf7dh";
19
- const CronCalendar = ({
20
- plans
21
- }) => {
22
- const {
23
- t,
24
- i18n
25
- } = useParrotTranslation();
26
- const [value, setValue] = React.useState(moment());
27
- const days = React.useMemo(() => {
28
- const sendAt = [];
29
- const lastDayOfMonth = dayjs(value.valueOf()).endOf("month");
30
- for (const plan of plans) {
31
- if (plan.empty) {
32
- continue;
33
- }
34
- const cronTime$1 = new cronTime.CronTime(plan.expression, plan.startAt);
35
- let current = cronTime$1["getNextDateFromWithValidation"](dayjs());
36
- while (current.isBefore(lastDayOfMonth)) {
37
- sendAt.push(current);
38
- cronTime$1.setLastSendAt(current);
39
- current = cronTime$1["getNextDateFromWithValidation"](current);
40
- }
41
- }
42
- return sendAt;
43
- }, [value, plans]);
44
- return /* @__PURE__ */React.createElement("div", {
45
- className: CronCalendarWrapper
46
- }, /* @__PURE__ */React.createElement(index, {
47
- onChange: setValue,
48
- value,
49
- fullscreen: false,
50
- headerRender: ({
51
- value: value2,
52
- onChange
53
- }) => /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("div", {
54
- className: core.cx(Title, index$1.Typo.Label.l4_bold)
55
- }, t("components.generate_date_preview")), /* @__PURE__ */React.createElement("div", {
56
- className: core.cx(Control, index$1.Typo.Label.l4_regular)
57
- }, /* @__PURE__ */React.createElement(icons.LeftOutlined, {
58
- onClick: () => onChange(value2.clone().subtract(1, "month"))
59
- }), t("components.date_with_year_and_month", {
60
- year: value2.format("YYYY"),
61
- month: getCalendarTitle.getCalendarTitle(value2.format("M"), t, i18n),
62
- interpolation: {
63
- escapeValue: false
64
- }
65
- }), /* @__PURE__ */React.createElement(icons.RightOutlined, {
66
- onClick: () => onChange(value2.clone().add(1, "month"))
67
- }))),
68
- dateFullCellRender: date => {
69
- const activeDays = days.filter(d => d.startOf("day").isSame(dayjs(date.valueOf()).startOf("day")));
70
- return /* @__PURE__ */React.createElement(index$2, {
71
- title: activeDays.length === 0 ? null : activeDays.length === 1 ?
72
- // TODO pass the callback via props and remove this
73
- t("components.will_generate_one_reporte_with_date_and_time", {
74
- date: activeDays[0].format("YYYY/M/D"),
75
- time: activeDays[0].format("HH:mm"),
76
- interpolation: {
77
- escapeValue: false
78
- }
79
- }) : /* @__PURE__ */React.createElement(React.Fragment, null, t("components.will_generate_report_will_date_and_count", {
80
- date: activeDays[0].format("YYYY/M/D"),
81
- count: activeDays.length,
82
- interpolation: {
83
- escapeValue: false
84
- }
85
- }), /* @__PURE__ */React.createElement("br", null), activeDays.map((d, idx) => /* @__PURE__ */React.createElement("div", {
86
- key: idx
87
- }, d.format("HH:mm"), /* @__PURE__ */React.createElement("br", null)))),
88
- placement: "bottom"
89
- }, /* @__PURE__ */React.createElement("div", {
90
- className: core.cx(Cell, index$1.Typo.Label.l4_regular, activeDays.length > 0 && "active"),
91
- title: ""
92
- }, date.date(), /* @__PURE__ */React.createElement("div", {
93
- className: "dots"
94
- }, activeDays.length < 4 && activeDays.map((_, idx) => /* @__PURE__ */React.createElement("span", {
95
- className: "dot",
96
- key: idx
97
- })), activeDays.length >= 4 && /* @__PURE__ */React.createElement("div", {
98
- className: "bar"
99
- }))));
100
- }
101
- }));
102
- };
103
- var CronCalendar$1 = CronCalendar;
104
-
105
- module.exports = CronCalendar$1;