@king-design/vue 2.1.4 → 2.1.6

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 (521) hide show
  1. package/components/affix/index.d.ts +2 -2
  2. package/components/affix/index.js +5 -0
  3. package/components/affix/index.spec.js +108 -84
  4. package/components/affix/index.vdt.js +8 -5
  5. package/components/affix/useStyle.js +19 -8
  6. package/components/badge/index.js +2 -0
  7. package/components/badge/index.vdt.js +9 -5
  8. package/components/badge/styles.js +2 -0
  9. package/components/breadcrumb/index.js +4 -0
  10. package/components/breadcrumb/index.spec.js +6 -6
  11. package/components/breadcrumb/index.vdt.js +14 -5
  12. package/components/breadcrumb/item.js +8 -0
  13. package/components/breadcrumb/item.vdt.js +6 -3
  14. package/components/breadcrumb/styles.js +3 -0
  15. package/components/button/dynamicButton.d.ts +1 -1
  16. package/components/button/dynamicButton.js +5 -2
  17. package/components/button/group.js +10 -2
  18. package/components/button/group.vdt.js +7 -4
  19. package/components/button/index.js +27 -3
  20. package/components/button/index.spec.js +96 -74
  21. package/components/button/index.vdt.js +29 -19
  22. package/components/button/styles.d.ts +2 -2
  23. package/components/button/styles.js +48 -4
  24. package/components/card/column.js +2 -0
  25. package/components/card/column.vdt.js +10 -5
  26. package/components/card/index.js +4 -0
  27. package/components/card/index.vdt.js +16 -4
  28. package/components/carousel/index.js +19 -1
  29. package/components/carousel/index.spec.js +163 -127
  30. package/components/carousel/index.vdt.js +15 -12
  31. package/components/carousel/item.js +2 -0
  32. package/components/carousel/item.vdt.js +7 -4
  33. package/components/carousel/styles.js +1 -0
  34. package/components/carousel/useAutoplay.js +4 -0
  35. package/components/carousel/useItems.js +20 -4
  36. package/components/carousel/useSlide.js +89 -57
  37. package/components/cascader/index.d.ts +45 -0
  38. package/components/cascader/index.js +18 -3
  39. package/components/cascader/index.spec.js +445 -354
  40. package/components/cascader/index.vdt.js +31 -14
  41. package/components/cascader/styles.js +6 -0
  42. package/components/cascader/useFields.js +4 -1
  43. package/components/cascader/useFilterable.js +19 -2
  44. package/components/cascader/useLabel.js +9 -1
  45. package/components/cascader/useLoad.js +35 -22
  46. package/components/cascader/useValue.d.ts +2 -2
  47. package/components/cascader/useValue.js +26 -5
  48. package/components/checkbox/index.js +27 -5
  49. package/components/checkbox/index.spec.js +171 -129
  50. package/components/checkbox/index.vdt.js +16 -12
  51. package/components/checkbox/styles.js +10 -0
  52. package/components/code/crossDomain.js +9 -2
  53. package/components/code/index.js +9 -0
  54. package/components/code/index.spec.js +55 -46
  55. package/components/code/index.vdt.js +14 -6
  56. package/components/code/styles.js +1 -0
  57. package/components/code/useEditor.js +10 -5
  58. package/components/collapse/index.d.ts +1 -1
  59. package/components/collapse/index.js +14 -3
  60. package/components/collapse/index.spec.js +60 -47
  61. package/components/collapse/index.vdt.js +12 -4
  62. package/components/collapse/item.js +10 -0
  63. package/components/collapse/item.vdt.js +14 -7
  64. package/components/collapse/styles.js +1 -0
  65. package/components/colorpicker/drag.js +5 -0
  66. package/components/colorpicker/index.js +4 -0
  67. package/components/colorpicker/index.spec.js +259 -211
  68. package/components/colorpicker/index.vdt.js +11 -8
  69. package/components/colorpicker/panel.js +5 -0
  70. package/components/colorpicker/panel.vdt.js +26 -21
  71. package/components/colorpicker/styles.js +13 -2
  72. package/components/colorpicker/useDrag.js +26 -22
  73. package/components/colorpicker/useInput.js +16 -0
  74. package/components/colorpicker/usePointer.js +18 -15
  75. package/components/colorpicker/useValue.js +7 -2
  76. package/components/context.d.ts +2 -2
  77. package/components/context.js +19 -2
  78. package/components/datepicker/basepicker.d.ts +8 -8
  79. package/components/datepicker/basepicker.js +90 -20
  80. package/components/datepicker/calendar.js +11 -0
  81. package/components/datepicker/calendar.vdt.js +14 -11
  82. package/components/datepicker/constants.js +1 -0
  83. package/components/datepicker/dayjs.js +1 -1
  84. package/components/datepicker/helpers.js +15 -3
  85. package/components/datepicker/index.d.ts +63 -0
  86. package/components/datepicker/index.js +32 -6
  87. package/components/datepicker/index.spec.js +1448 -1141
  88. package/components/datepicker/index.vdt.js +34 -20
  89. package/components/datepicker/shortcuts.d.ts +1 -1
  90. package/components/datepicker/shortcuts.js +4 -0
  91. package/components/datepicker/styles.js +8 -0
  92. package/components/datepicker/time.d.ts +1 -1
  93. package/components/datepicker/time.js +23 -3
  94. package/components/datepicker/time.vdt.js +5 -4
  95. package/components/datepicker/useDays.js +9 -2
  96. package/components/datepicker/useDisabled.js +23 -6
  97. package/components/datepicker/useFocusDate.js +2 -0
  98. package/components/datepicker/useFormats.js +15 -6
  99. package/components/datepicker/useKeyboards.js +36 -20
  100. package/components/datepicker/useMonths.js +6 -0
  101. package/components/datepicker/usePanel.js +10 -0
  102. package/components/datepicker/useShowDate.js +37 -10
  103. package/components/datepicker/useStatus.js +15 -3
  104. package/components/datepicker/useValue.js +35 -22
  105. package/components/datepicker/useYears.js +15 -4
  106. package/components/diagram/diagram.js +43 -17
  107. package/components/diagram/diagram.vdt.js +5 -2
  108. package/components/diagram/graph.js +6 -6
  109. package/components/diagram/index.d.ts +1 -1
  110. package/components/diagram/index.js +7 -7
  111. package/components/diagram/index.spec.js +495 -369
  112. package/components/diagram/layouts/circle.js +14 -6
  113. package/components/diagram/layouts/flow.js +15 -7
  114. package/components/diagram/layouts/layout.js +28 -6
  115. package/components/diagram/layouts/organic.js +11 -3
  116. package/components/diagram/layouts/partition.js +12 -4
  117. package/components/diagram/layouts/radial.js +18 -6
  118. package/components/diagram/layouts/stack.js +14 -6
  119. package/components/diagram/layouts/tree.js +21 -11
  120. package/components/diagram/mxgraph/handler/mxConnectionHandler.js +22 -15
  121. package/components/diagram/mxgraph/handler/mxConstraintHandler.js +4 -4
  122. package/components/diagram/mxgraph/handler/mxEdgeHandler.js +15 -11
  123. package/components/diagram/mxgraph/handler/mxGraphHandler.js +9 -6
  124. package/components/diagram/mxgraph/handler/mxRubberband.js +4 -4
  125. package/components/diagram/mxgraph/handler/mxVertexHandler.js +10 -7
  126. package/components/diagram/mxgraph/index.js +2 -0
  127. package/components/diagram/mxgraph/mx.js +3 -3
  128. package/components/diagram/mxgraph/shape/mxCloud.js +2 -2
  129. package/components/diagram/mxgraph/shape/mxCylinder.js +9 -4
  130. package/components/diagram/mxgraph/shape/mxEllipse.js +2 -2
  131. package/components/diagram/mxgraph/shape/mxHexagon.js +2 -2
  132. package/components/diagram/mxgraph/shape/mxLine.js +2 -2
  133. package/components/diagram/mxgraph/shape/mxRectangleShape.js +2 -2
  134. package/components/diagram/mxgraph/shape/mxRhombus.js +12 -6
  135. package/components/diagram/mxgraph/shape/mxShape.js +1 -0
  136. package/components/diagram/mxgraph/shape/mxTriangle.js +2 -2
  137. package/components/diagram/mxgraph/util/mxConstants.js +2 -2
  138. package/components/diagram/mxgraph/util/mxGuide.js +7 -5
  139. package/components/diagram/mxgraph/view/mxCellEditor.js +29 -16
  140. package/components/diagram/mxgraph/view/mxCellRenderer.js +2 -0
  141. package/components/diagram/mxgraph/view/mxGraph.js +32 -14
  142. package/components/diagram/shapes/base.d.ts +1 -1
  143. package/components/diagram/shapes/base.js +39 -9
  144. package/components/diagram/shapes/callout.js +23 -10
  145. package/components/diagram/shapes/circle.js +10 -3
  146. package/components/diagram/shapes/document.js +16 -5
  147. package/components/diagram/shapes/ellipse.js +5 -0
  148. package/components/diagram/shapes/generateShapes.d.ts +1 -1
  149. package/components/diagram/shapes/generateShapes.js +9 -0
  150. package/components/diagram/shapes/hexagon.js +26 -9
  151. package/components/diagram/shapes/image.js +9 -1
  152. package/components/diagram/shapes/line.d.ts +2 -2
  153. package/components/diagram/shapes/line.js +48 -13
  154. package/components/diagram/shapes/parallelogram.js +26 -9
  155. package/components/diagram/shapes/rectangle.js +9 -1
  156. package/components/diagram/shapes/shape.js +35 -6
  157. package/components/diagram/shapes/square.js +11 -3
  158. package/components/diagram/shapes/text.js +5 -0
  159. package/components/diagram/styles.js +1 -0
  160. package/components/dialog/alert.vdt.js +19 -9
  161. package/components/dialog/base.js +29 -1
  162. package/components/dialog/base.vdt.js +29 -14
  163. package/components/dialog/index.js +31 -6
  164. package/components/dialog/index.spec.js +554 -406
  165. package/components/dialog/staticMethods.d.ts +1 -1
  166. package/components/dialog/staticMethods.js +13 -2
  167. package/components/dialog/styles.js +11 -0
  168. package/components/dialog/useDraggable.js +6 -0
  169. package/components/dialog/useEscClosable.js +12 -4
  170. package/components/dialog/useFixBody.d.ts +1 -1
  171. package/components/dialog/useFixBody.js +11 -0
  172. package/components/dialog/usePosition.js +5 -0
  173. package/components/drawer/index.js +5 -0
  174. package/components/drawer/index.spec.js +168 -126
  175. package/components/drawer/index.vdt.js +9 -3
  176. package/components/drawer/styles.d.ts +2 -2
  177. package/components/drawer/styles.js +4 -0
  178. package/components/dropdown/dropdown.d.ts +2 -2
  179. package/components/dropdown/dropdown.js +89 -33
  180. package/components/dropdown/index.js +6 -2
  181. package/components/dropdown/index.spec.js +496 -388
  182. package/components/dropdown/item.js +25 -4
  183. package/components/dropdown/item.vdt.js +8 -5
  184. package/components/dropdown/menu.js +29 -12
  185. package/components/dropdown/menu.vdt.js +13 -5
  186. package/components/dropdown/styles.js +9 -0
  187. package/components/dropdown/useKeyboard.d.ts +2 -2
  188. package/components/dropdown/useKeyboard.js +30 -8
  189. package/components/dropdown/usePosition.d.ts +1 -1
  190. package/components/dropdown/usePosition.js +22 -12
  191. package/components/dropdown/useTransition.js +8 -0
  192. package/components/editable/index.d.ts +1 -1
  193. package/components/editable/index.js +28 -4
  194. package/components/editable/index.spec.js +189 -152
  195. package/components/editable/index.vdt.js +11 -8
  196. package/components/editable/styles.js +1 -0
  197. package/components/form/form.js +18 -0
  198. package/components/form/form.vdt.js +7 -4
  199. package/components/form/index.spec.js +1280 -1057
  200. package/components/form/item.d.ts +1 -1
  201. package/components/form/item.js +12 -0
  202. package/components/form/item.vdt.js +31 -17
  203. package/components/form/methods.d.ts +5 -5
  204. package/components/form/methods.js +12 -2
  205. package/components/form/styles.js +8 -0
  206. package/components/form/useDirty.js +7 -2
  207. package/components/form/useError.js +10 -2
  208. package/components/form/useValidate.d.ts +1 -1
  209. package/components/form/useValidate.js +24 -8
  210. package/components/grid/col.d.ts +3 -3
  211. package/components/grid/col.js +7 -0
  212. package/components/grid/col.vdt.js +13 -8
  213. package/components/grid/constants.d.ts +6 -6
  214. package/components/grid/row.js +5 -0
  215. package/components/grid/row.vdt.js +8 -5
  216. package/components/grid/styles.js +7 -0
  217. package/components/grid/useBreakpoints.js +5 -0
  218. package/components/grid/useGutter.js +25 -5
  219. package/components/icon/index.js +10 -0
  220. package/components/icon/index.vdt.js +13 -7
  221. package/components/icon/styles.js +1 -0
  222. package/components/input/index.d.ts +3 -3
  223. package/components/input/index.js +14 -0
  224. package/components/input/index.spec.js +239 -185
  225. package/components/input/index.vdt.js +49 -39
  226. package/components/input/search.js +20 -0
  227. package/components/input/search.vdt.js +9 -6
  228. package/components/input/styles.js +26 -0
  229. package/components/input/useAutoRows.js +18 -6
  230. package/components/input/useAutoWidth.js +5 -0
  231. package/components/input/useFrozen.js +6 -0
  232. package/components/input/useShowPassword.js +5 -2
  233. package/components/layout/aside.js +17 -5
  234. package/components/layout/aside.vdt.js +9 -5
  235. package/components/layout/body.js +17 -5
  236. package/components/layout/footer.js +7 -1
  237. package/components/layout/header.js +21 -7
  238. package/components/layout/layout.js +24 -9
  239. package/components/layout/styles.js +13 -2
  240. package/components/layout/template.vdt.js +4 -2
  241. package/components/layout/useParse.js +7 -0
  242. package/components/menu/index.spec.js +242 -189
  243. package/components/menu/item.js +16 -3
  244. package/components/menu/item.vdt.js +32 -20
  245. package/components/menu/menu.js +11 -2
  246. package/components/menu/menu.vdt.js +12 -6
  247. package/components/menu/styles.js +18 -0
  248. package/components/menu/useDropdown.js +9 -4
  249. package/components/menu/useExpanded.js +14 -0
  250. package/components/menu/useHighlight.js +36 -26
  251. package/components/message/index.spec.js +73 -58
  252. package/components/message/message.js +19 -0
  253. package/components/message/message.vdt.js +8 -5
  254. package/components/message/messages.js +12 -0
  255. package/components/message/messages.vdt.js +1 -0
  256. package/components/message/styles.js +9 -0
  257. package/components/pagination/index.d.ts +1 -1
  258. package/components/pagination/index.js +46 -10
  259. package/components/pagination/index.spec.js +173 -133
  260. package/components/pagination/index.vdt.js +34 -14
  261. package/components/pagination/styles.js +4 -0
  262. package/components/portal.d.ts +1 -1
  263. package/components/portal.js +29 -2
  264. package/components/position.d.ts +12 -12
  265. package/components/position.js +88 -32
  266. package/components/progress/index.d.ts +6 -6
  267. package/components/progress/index.js +12 -0
  268. package/components/progress/index.spec.js +191 -143
  269. package/components/progress/index.vdt.js +11 -8
  270. package/components/progress/styles.js +6 -0
  271. package/components/progress/useColor.js +7 -2
  272. package/components/progress/useStatus.d.ts +1 -1
  273. package/components/progress/useStatus.js +5 -2
  274. package/components/radio/index.js +18 -3
  275. package/components/radio/index.spec.js +149 -111
  276. package/components/radio/index.vdt.js +17 -14
  277. package/components/radio/styles.js +10 -0
  278. package/components/rate/index.js +7 -0
  279. package/components/rate/index.spec.js +79 -64
  280. package/components/rate/index.vdt.js +21 -8
  281. package/components/rate/styles.js +3 -0
  282. package/components/rate/useActiveValue.js +7 -2
  283. package/components/scrollSelect/index.d.ts +2 -2
  284. package/components/scrollSelect/index.js +7 -0
  285. package/components/scrollSelect/index.spec.js +131 -100
  286. package/components/scrollSelect/index.vdt.js +11 -6
  287. package/components/scrollSelect/styles.js +7 -0
  288. package/components/scrollSelect/useList.js +17 -3
  289. package/components/scrollSelect/useMouseEvents.js +49 -31
  290. package/components/scrollSelect/useTranslate.js +11 -1
  291. package/components/select/base.js +35 -5
  292. package/components/select/base.vdt.js +38 -23
  293. package/components/select/group.js +5 -0
  294. package/components/select/group.vdt.js +10 -4
  295. package/components/select/index.spec.js +452 -361
  296. package/components/select/menu.js +5 -0
  297. package/components/select/menu.vdt.js +33 -18
  298. package/components/select/option.js +16 -2
  299. package/components/select/option.vdt.js +14 -7
  300. package/components/select/select.d.ts +33 -0
  301. package/components/select/select.js +20 -3
  302. package/components/select/select.vdt.js +17 -9
  303. package/components/select/styles.js +33 -0
  304. package/components/select/useBaseLabel.d.ts +1 -1
  305. package/components/select/useBaseLabel.js +17 -4
  306. package/components/select/useCard.js +4 -0
  307. package/components/select/useEqualWidth.js +1 -0
  308. package/components/select/useFilterable.js +27 -5
  309. package/components/select/useFocusout.js +8 -0
  310. package/components/select/useInput.js +10 -6
  311. package/components/select/useLabel.js +13 -3
  312. package/components/select/useSearchable.js +10 -0
  313. package/components/skeleton/item.d.ts +1 -1
  314. package/components/skeleton/item.js +4 -0
  315. package/components/skeleton/item.vdt.js +6 -1
  316. package/components/skeleton/skeleton.js +4 -0
  317. package/components/skeleton/skeleton.vdt.js +12 -6
  318. package/components/skeleton/style.d.ts +1 -1
  319. package/components/skeleton/style.js +1 -0
  320. package/components/slider/index.d.ts +1 -1
  321. package/components/slider/index.js +7 -0
  322. package/components/slider/index.spec.js +585 -467
  323. package/components/slider/index.vdt.js +45 -32
  324. package/components/slider/styles.js +14 -0
  325. package/components/slider/useClick.js +11 -2
  326. package/components/slider/useDraggable.js +34 -23
  327. package/components/slider/useKeyboard.js +18 -7
  328. package/components/slider/useMarks.d.ts +5 -5
  329. package/components/slider/useMarks.js +13 -5
  330. package/components/slider/usePoints.d.ts +2 -2
  331. package/components/slider/usePoints.js +21 -7
  332. package/components/slider/useStyles.d.ts +1 -1
  333. package/components/slider/useStyles.js +10 -5
  334. package/components/slider/useTooltip.js +10 -2
  335. package/components/slider/useValue.d.ts +1 -1
  336. package/components/slider/useValue.js +22 -7
  337. package/components/spin/index.js +4 -0
  338. package/components/spin/index.vdt.js +11 -4
  339. package/components/spin/styles.js +2 -0
  340. package/components/spinner/index.d.ts +4 -4
  341. package/components/spinner/index.js +24 -9
  342. package/components/spinner/index.spec.js +460 -359
  343. package/components/spinner/index.vdt.js +13 -10
  344. package/components/spinner/styles.js +3 -0
  345. package/components/spinner/useChange.js +16 -4
  346. package/components/spinner/useFormatter.js +16 -6
  347. package/components/spinner/useStep.d.ts +3 -3
  348. package/components/spinner/useStep.js +20 -2
  349. package/components/spinner/useValue.js +26 -11
  350. package/components/split/index.js +7 -0
  351. package/components/split/index.spec.js +267 -223
  352. package/components/split/index.vdt.js +17 -8
  353. package/components/split/style.d.ts +1 -1
  354. package/components/split/style.js +8 -0
  355. package/components/split/useDraggable.js +35 -11
  356. package/components/split/useSize.js +5 -2
  357. package/components/steps/context.d.ts +2 -2
  358. package/components/steps/index.js +10 -2
  359. package/components/steps/index.spec.js +27 -21
  360. package/components/steps/index.vdt.js +10 -8
  361. package/components/steps/step.js +2 -0
  362. package/components/steps/step.vdt.js +12 -8
  363. package/components/steps/styles.js +27 -0
  364. package/components/switch/index.js +23 -2
  365. package/components/switch/index.spec.js +224 -188
  366. package/components/switch/index.vdt.js +32 -16
  367. package/components/switch/styles.js +14 -3
  368. package/components/switch/useDraggable.js +18 -10
  369. package/components/table/cell.js +6 -0
  370. package/components/table/cell.vdt.js +21 -14
  371. package/components/table/column.d.ts +1 -1
  372. package/components/table/column.js +5 -0
  373. package/components/table/column.vdt.js +30 -19
  374. package/components/table/exportTable.js +56 -45
  375. package/components/table/index.spec.js +984 -780
  376. package/components/table/row.d.ts +1 -1
  377. package/components/table/row.js +41 -12
  378. package/components/table/row.vdt.js +39 -27
  379. package/components/table/styles.js +11 -0
  380. package/components/table/table.d.ts +5 -5
  381. package/components/table/table.js +50 -18
  382. package/components/table/table.vdt.js +85 -61
  383. package/components/table/useChecked.d.ts +1 -1
  384. package/components/table/useChecked.js +61 -20
  385. package/components/table/useColumns.js +16 -3
  386. package/components/table/useDisableRow.js +12 -2
  387. package/components/table/useDraggable.js +12 -4
  388. package/components/table/useExpandable.js +5 -2
  389. package/components/table/useFixedColumns.d.ts +1 -1
  390. package/components/table/useFixedColumns.js +23 -4
  391. package/components/table/useGroup.d.ts +1 -1
  392. package/components/table/useGroup.js +24 -7
  393. package/components/table/useMerge.d.ts +4 -4
  394. package/components/table/useMerge.js +14 -2
  395. package/components/table/usePagination.js +18 -4
  396. package/components/table/useResizable.js +10 -2
  397. package/components/table/useRestRowStatus.js +6 -2
  398. package/components/table/useScroll.d.ts +1 -1
  399. package/components/table/useScroll.js +3 -0
  400. package/components/table/useSelected.js +5 -2
  401. package/components/table/useSortable.js +8 -2
  402. package/components/table/useStickyHeader.js +7 -3
  403. package/components/table/useStickyScrollbar.js +16 -6
  404. package/components/table/useTree.js +12 -1
  405. package/components/table/useWidth.js +30 -14
  406. package/components/tabs/index.js +51 -29
  407. package/components/tabs/index.spec.js +74 -56
  408. package/components/tabs/index.vdt.js +16 -13
  409. package/components/tabs/styles.js +16 -0
  410. package/components/tabs/tab.js +10 -0
  411. package/components/tabs/tab.vdt.js +10 -6
  412. package/components/tabs/useActiveBar.js +11 -2
  413. package/components/tabs/useScroll.js +20 -4
  414. package/components/tag/base.js +8 -0
  415. package/components/tag/index.js +4 -2
  416. package/components/tag/index.spec.js +25 -19
  417. package/components/tag/index.vdt.js +15 -8
  418. package/components/tag/styles.js +9 -0
  419. package/components/timeline/item.js +4 -0
  420. package/components/timeline/item.vdt.js +9 -4
  421. package/components/timeline/styles.d.ts +2 -2
  422. package/components/timeline/styles.js +4 -0
  423. package/components/timeline/timeline.js +2 -0
  424. package/components/timeline/timeline.vdt.js +5 -2
  425. package/components/timepicker/index.js +7 -2
  426. package/components/timepicker/index.spec.js +368 -293
  427. package/components/timepicker/panelPicker.d.ts +54 -0
  428. package/components/timepicker/panelPicker.js +11 -2
  429. package/components/timepicker/panelPicker.vdt.js +24 -14
  430. package/components/timepicker/selectPicker.js +5 -0
  431. package/components/timepicker/selectPicker.vdt.js +10 -5
  432. package/components/timepicker/styles.js +1 -0
  433. package/components/timepicker/useDisabled.js +4 -2
  434. package/components/timepicker/useFormats.js +13 -4
  435. package/components/timepicker/useStep.d.ts +1 -1
  436. package/components/timepicker/useStep.js +17 -8
  437. package/components/timepicker/useValue.js +21 -16
  438. package/components/tip/index.js +2 -0
  439. package/components/tip/index.vdt.js +17 -5
  440. package/components/tip/styles.js +3 -0
  441. package/components/tooltip/content.js +28 -0
  442. package/components/tooltip/content.vdt.js +25 -15
  443. package/components/tooltip/index.js +7 -3
  444. package/components/tooltip/index.spec.js +572 -434
  445. package/components/tooltip/styles.d.ts +1 -1
  446. package/components/tooltip/styles.js +10 -2
  447. package/components/tooltip/tooltip.js +15 -2
  448. package/components/tooltip/useArrow.js +14 -11
  449. package/components/transfer/index.d.ts +1 -1
  450. package/components/transfer/index.js +13 -1
  451. package/components/transfer/index.spec.js +194 -159
  452. package/components/transfer/index.vdt.js +34 -16
  453. package/components/transfer/styles.js +10 -0
  454. package/components/transfer/useCheck.d.ts +1 -1
  455. package/components/transfer/useCheck.js +15 -1
  456. package/components/transfer/useFilter.d.ts +1 -1
  457. package/components/transfer/useFilter.js +30 -9
  458. package/components/transfer/useTransfer.js +26 -10
  459. package/components/tree/index.d.ts +3 -3
  460. package/components/tree/index.js +22 -4
  461. package/components/tree/index.spec.js +355 -285
  462. package/components/tree/index.vdt.js +23 -12
  463. package/components/tree/styles.js +16 -2
  464. package/components/tree/useChecked.js +26 -3
  465. package/components/tree/useDraggable.js +42 -12
  466. package/components/tree/useExpanded.js +43 -26
  467. package/components/tree/useFilter.js +10 -3
  468. package/components/tree/useNodes.d.ts +1 -1
  469. package/components/tree/useNodes.js +4 -0
  470. package/components/tree/useSelected.js +38 -21
  471. package/components/tree/useTransitionEvent.js +5 -3
  472. package/components/treeSelect/index.d.ts +27 -0
  473. package/components/treeSelect/index.js +36 -9
  474. package/components/treeSelect/index.spec.js +160 -123
  475. package/components/treeSelect/index.vdt.js +20 -14
  476. package/components/treeSelect/styles.js +1 -0
  477. package/components/treeSelect/useValue.js +11 -0
  478. package/components/types.d.ts +3 -3
  479. package/components/upload/ajaxUploader.d.ts +1 -1
  480. package/components/upload/ajaxUploader.js +17 -0
  481. package/components/upload/index.d.ts +4 -4
  482. package/components/upload/index.js +14 -0
  483. package/components/upload/index.spec.js +249 -142
  484. package/components/upload/index.vdt.js +27 -12
  485. package/components/upload/styles.js +30 -0
  486. package/components/upload/useAccept.js +10 -2
  487. package/components/upload/useDrag.js +7 -0
  488. package/components/upload/useFiles.js +145 -103
  489. package/components/upload/useShowImage.js +3 -0
  490. package/components/upload/useUpload.js +69 -47
  491. package/components/utils.d.ts +3 -3
  492. package/components/utils.js +47 -12
  493. package/components/virtual.js +37 -9
  494. package/components/wave/index.js +31 -5
  495. package/hooks/useDelayClose.js +6 -2
  496. package/hooks/useDocumentClick.js +16 -8
  497. package/hooks/useDraggable.d.ts +1 -1
  498. package/hooks/useDraggable.js +9 -0
  499. package/hooks/useKeyboard.d.ts +3 -3
  500. package/hooks/useKeyboard.js +10 -0
  501. package/hooks/useMouseOutsidable.js +8 -0
  502. package/hooks/useReceive.d.ts +1 -1
  503. package/hooks/useReceive.js +4 -0
  504. package/hooks/useRecordComponent.js +6 -0
  505. package/hooks/useRouter.js +18 -7
  506. package/hooks/useShowHideEvents.js +3 -0
  507. package/hooks/useState.d.ts +2 -2
  508. package/hooks/useState.js +6 -2
  509. package/i18n/en-US.js +1 -0
  510. package/i18n/index.d.ts +1 -1
  511. package/i18n/index.js +7 -0
  512. package/index.d.ts +2 -2
  513. package/index.js +3 -2
  514. package/package.json +2 -2
  515. package/styles/global.js +3 -2
  516. package/styles/keyframes.js +1 -0
  517. package/styles/theme.d.ts +1 -1
  518. package/styles/theme.js +7 -4
  519. package/styles/utils.d.ts +1 -1
  520. package/styles/utils.js +17 -3
  521. package/yarn-error.log +0 -1013
@@ -1,20 +1,23 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxGraphHandler = mx.mxGraphHandler;
4
- mxGraphHandler.prototype.maxLivePreview = 16;
5
- // Enables guides
6
- mxGraphHandler.prototype.guidesEnabled = true;
7
- // Removes parents where all child cells are moved out
8
- mxGraphHandler.prototype.removeEmptyParents = true;
9
- // Select descendant if we select unselectable children
4
+ mxGraphHandler.prototype.maxLivePreview = 16; // Enables guides
5
+
6
+ mxGraphHandler.prototype.guidesEnabled = true; // Removes parents where all child cells are moved out
7
+
8
+ mxGraphHandler.prototype.removeEmptyParents = true; // Select descendant if we select unselectable children
9
+
10
10
  var graphHandlerGetInitialCellForEvent = mxGraphHandler.prototype.getInitialCellForEvent;
11
+
11
12
  mxGraphHandler.prototype.getInitialCellForEvent = function () {
12
13
  var graph = this.graph;
13
14
  var model = graph.getModel();
14
15
  var cell = graphHandlerGetInitialCellForEvent.apply(this, arguments);
16
+
15
17
  while (!graph.isCellSelectable(cell) && model.isVertex(cell)) {
16
18
  cell = model.getParent(cell);
17
19
  }
20
+
18
21
  return cell;
19
22
  };
20
23
  }
@@ -1,8 +1,8 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
- var mxRubberband = mx.mxRubberband;
4
- // Enables fading of rubberband
5
- mxRubberband.prototype.fadeOut = true;
6
- // Increases default rubberband opacity (default is 20)
3
+ var mxRubberband = mx.mxRubberband; // Enables fading of rubberband
4
+
5
+ mxRubberband.prototype.fadeOut = true; // Increases default rubberband opacity (default is 20)
6
+
7
7
  mxRubberband.prototype.defaultOpacity = 30;
8
8
  }
@@ -3,24 +3,27 @@ import '../util/mxConstants';
3
3
  var mainHandle;
4
4
  export default function () {
5
5
  var mxVertexHandler = mx.mxVertexHandler,
6
- mxImage = mx.mxImage,
7
- mxConstants = mx.mxConstants,
8
- mxEvent = mx.mxEvent;
9
- mainHandle = createSvgImage(18, 18, "<circle cx=\"9\" cy=\"9\" r=\"5\" stroke=\"#fff\" fill=\"" + mxConstants.HANDLE_FILLCOLOR + "\" stroke-width=\"1\"/>");
10
- // set sizer shape
6
+ mxImage = mx.mxImage,
7
+ mxConstants = mx.mxConstants,
8
+ mxEvent = mx.mxEvent;
9
+ mainHandle = createSvgImage(18, 18, "<circle cx=\"9\" cy=\"9\" r=\"5\" stroke=\"#fff\" fill=\"" + mxConstants.HANDLE_FILLCOLOR + "\" stroke-width=\"1\"/>"); // set sizer shape
10
+
11
11
  var rotationHandle = new mxImage('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB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xcXFRB/4rEgDcPouIIx6P4+bmBi0tLSCpAzBqAIqnp6c/dnZ2IpfLYXNzE62traMADACKNputpr+/v8lms9UAKAAwiMjXe3t7KBQKqKurQy6Xi6K0i2l6evpROp1mbW0t29vbGY/Hb8/IVIqq2zlJXl1dsaOjg2azmefn5wwEAl+JSBVExCgi75PkzMwMlVJsbGxkIpFgPp8PX15ePopEIs3JZPITXdf/iEajbGpqolKKExMT1HWdHo/nIxGpgIgoEXnQ3d39kCTHxsYIgC6Xi3NzcwyHw8xkMozFYlxaWmJbWxuVUuzt7WUul6PX6/1cRN4WEe2uA0SkaWVl5XGpRVhdXU0A1DSNlZWVdz3qdDrZ09PDWCzG4+Pjn0XEWvp9KJKw2WwKwBsA3gHQHAqFfr24uMDGxgZ2d3cRiUQAAHa7HU6nE319fTg5Ofmlq6vrGwB/AngaCoWK6rbsNptNA1AJoA7Aux6Pp3NoaMhjsVg+QNmIRqO/u1yubwFEASRKUAEA7rASqABUAKgC8KAUb5XWCOAfAFcA/gJwDSB7C93DylCtdM8qABhLc5TumV6KQigUeubjfwcAHkQJ94ndWeYAAAAASUVORK5CYII=', 19, 21);
12
12
  var secondaryHandle = createSvgImage(16, 16, '<path d="m 8 3 L 13 8 L 8 13 L 3 8 z" stroke="#fff" fill="#fca000"/>');
13
13
  mxVertexHandler.prototype.rotationEnabled = true;
14
14
  mxVertexHandler.prototype.handleImage = mainHandle;
15
15
  mxVertexHandler.prototype.secondaryHandle = secondaryHandle;
16
16
  var createSizerShape = mxVertexHandler.prototype.createSizerShape;
17
+
17
18
  mxVertexHandler.prototype.createSizerShape = function (bounds, index, fillColor) {
18
19
  if (index === mxEvent.ROTATION_HANDLE) {
19
20
  this.handleImage = rotationHandle;
20
21
  }
22
+
21
23
  return createSizerShape.apply(this, arguments);
22
- };
23
- // Adds rotation handle and live preview
24
+ }; // Adds rotation handle and live preview
25
+
26
+
24
27
  mxVertexHandler.prototype.manageSizers = true;
25
28
  mxVertexHandler.prototype.livePreview = true;
26
29
  }
@@ -20,6 +20,7 @@ import mxConstraintHandlerSetup from './handler/mxConstraintHandler';
20
20
  import mxEdgeHandlerSetup from './handler/mxEdgeHandler';
21
21
  import mxGraphHandlerSetup from './handler/mxGraphHandler';
22
22
  import mxRubberbandSetup from './handler/mxRubberband';
23
+
23
24
  if (hasDocumentAvailable) {
24
25
  mxConstantsSetup();
25
26
  mxGuideSetup();
@@ -42,4 +43,5 @@ if (hasDocumentAvailable) {
42
43
  mxGraphHandlerSetup();
43
44
  mxRubberbandSetup();
44
45
  }
46
+
45
47
  export default mx;
@@ -1,12 +1,12 @@
1
1
  import mx from 'mxgraphx';
2
- import { hasDocumentAvailable } from 'intact-shared';
3
- // only support running in browser
2
+ import { hasDocumentAvailable } from 'intact-shared'; // only support running in browser
3
+
4
4
  var doll = hasDocumentAvailable ? mx({
5
5
  mxLoadResources: false,
6
6
  mxLoadStylesheets: false
7
7
  }) : {};
8
8
  var mxImage = doll.mxImage,
9
- mxLog = doll.mxLog;
9
+ mxLog = doll.mxLog;
10
10
  export default doll;
11
11
  export function createSvgImage(w, h, data) {
12
12
  var tmp = unescape(encodeURIComponent('<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' + '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="' + w + 'px" height="' + h + 'px" ' + 'version="1.1">' + data + '</svg>'));
@@ -1,7 +1,7 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxCloud = mx.mxCloud,
4
- mxConnectionConstraint = mx.mxConnectionConstraint,
5
- mxPoint = mx.mxPoint;
4
+ mxConnectionConstraint = mx.mxConnectionConstraint,
5
+ mxPoint = mx.mxPoint;
6
6
  mxCloud.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), new mxConnectionConstraint(new mxPoint(0.4, 0.1), false), new mxConnectionConstraint(new mxPoint(0.16, 0.55), false), new mxConnectionConstraint(new mxPoint(0.07, 0.4), false), new mxConnectionConstraint(new mxPoint(0.31, 0.8), false), new mxConnectionConstraint(new mxPoint(0.13, 0.77), false), new mxConnectionConstraint(new mxPoint(0.8, 0.8), false), new mxConnectionConstraint(new mxPoint(0.55, 0.95), false), new mxConnectionConstraint(new mxPoint(0.875, 0.5), false), new mxConnectionConstraint(new mxPoint(0.96, 0.7), false), new mxConnectionConstraint(new mxPoint(0.625, 0.2), false), new mxConnectionConstraint(new mxPoint(0.88, 0.25), false)];
7
7
  }
@@ -1,25 +1,30 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxCylinder = mx.mxCylinder,
4
- mxUtils = mx.mxUtils,
5
- mxRectangle = mx.mxRectangle,
6
- mxConnectionConstraint = mx.mxConnectionConstraint,
7
- mxPoint = mx.mxPoint;
4
+ mxUtils = mx.mxUtils,
5
+ mxRectangle = mx.mxRectangle,
6
+ mxConnectionConstraint = mx.mxConnectionConstraint,
7
+ mxPoint = mx.mxPoint;
8
8
  var cylinderGetCylinderSize = mxCylinder.prototype.getCylinderSize;
9
+
9
10
  mxCylinder.prototype.getCylinderSize = function (x, y, w, h) {
10
11
  var size = mxUtils.getValue(this.style, 'size');
12
+
11
13
  if (size != null) {
12
14
  return h * Math.max(0, Math.min(1, size));
13
15
  } else {
14
16
  return cylinderGetCylinderSize.apply(this, arguments);
15
17
  }
16
18
  };
19
+
17
20
  mxCylinder.prototype.getLabelMargins = function (rect) {
18
21
  if (mxUtils.getValue(this.style, 'boundedLbl', false)) {
19
22
  var size = mxUtils.getValue(this.style, 'size', 0.15) * 2;
20
23
  return new mxRectangle(0, Math.min(this.maxHeight * this.scale, rect.height * size), 0, 0);
21
24
  }
25
+
22
26
  return null;
23
27
  };
28
+
24
29
  mxCylinder.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.15, 0.05), false), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.85, 0.05), false), new mxConnectionConstraint(new mxPoint(0, 0.3), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.7), true), new mxConnectionConstraint(new mxPoint(1, 0.3), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.7), true), new mxConnectionConstraint(new mxPoint(0.15, 0.95), false), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.85, 0.95), false)];
25
30
  }
@@ -1,7 +1,7 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxEllipse = mx.mxEllipse,
4
- mxConnectionConstraint = mx.mxConnectionConstraint,
5
- mxPoint = mx.mxPoint;
4
+ mxConnectionConstraint = mx.mxConnectionConstraint,
5
+ mxPoint = mx.mxPoint;
6
6
  mxEllipse.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5))];
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxHexagon = mx.mxHexagon,
4
- mxConnectionConstraint = mx.mxConnectionConstraint,
5
- mxPoint = mx.mxPoint;
4
+ mxConnectionConstraint = mx.mxConnectionConstraint,
5
+ mxPoint = mx.mxPoint;
6
6
  mxHexagon.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.375, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.625, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.375, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.625, 1), true)];
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxLine = mx.mxLine,
4
- mxConnectionConstraint = mx.mxConnectionConstraint,
5
- mxPoint = mx.mxPoint;
4
+ mxConnectionConstraint = mx.mxConnectionConstraint,
5
+ mxPoint = mx.mxPoint;
6
6
  mxLine.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false)];
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxRectangleShape = mx.mxRectangleShape,
4
- mxConnectionConstraint = mx.mxConnectionConstraint,
5
- mxPoint = mx.mxPoint;
4
+ mxConnectionConstraint = mx.mxConnectionConstraint,
5
+ mxPoint = mx.mxPoint;
6
6
  mxRectangleShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)];
7
7
  }
@@ -1,33 +1,39 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxRhombus = mx.mxRhombus,
4
- mxConstants = mx.mxConstants,
5
- mxRectangle = mx.mxRectangle,
6
- mxEllipse = mx.mxEllipse;
7
- // Overrides painting of rhombus shape to allow for double style
4
+ mxConstants = mx.mxConstants,
5
+ mxRectangle = mx.mxRectangle,
6
+ mxEllipse = mx.mxEllipse; // Overrides painting of rhombus shape to allow for double style
7
+
8
8
  var mxRhombusPaintVertexShape = mxRhombus.prototype.paintVertexShape;
9
+
9
10
  mxRhombus.prototype.getLabelBounds = function (rect) {
10
11
  if (this.style['double'] == 1) {
11
12
  var margin = (Math.max(2, this.strokewidth + 1) * 2 + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0)) * this.scale;
12
13
  return new mxRectangle(rect.x + margin, rect.y + margin, rect.width - 2 * margin, rect.height - 2 * margin);
13
14
  }
15
+
14
16
  return rect;
15
17
  };
18
+
16
19
  mxRhombus.prototype.paintVertexShape = function (c, x, y, w, h) {
17
20
  mxRhombusPaintVertexShape.apply(this, arguments);
21
+
18
22
  if (!this.outline && this.style['double'] == 1) {
19
23
  var margin = Math.max(2, this.strokewidth + 1) * 2 + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0);
20
24
  x += margin;
21
25
  y += margin;
22
26
  w -= 2 * margin;
23
27
  h -= 2 * margin;
28
+
24
29
  if (w > 0 && h > 0) {
25
- c.setShadow(false);
26
- // Workaround for closure compiler bug where the lines with x and y above
30
+ c.setShadow(false); // Workaround for closure compiler bug where the lines with x and y above
27
31
  // are removed if arguments is used as second argument in call below.
32
+
28
33
  mxRhombusPaintVertexShape.apply(this, [c, x, y, w, h]);
29
34
  }
30
35
  }
31
36
  };
37
+
32
38
  mxRhombus.prototype.constraints = mxEllipse.prototype.constraints;
33
39
  }
@@ -1,6 +1,7 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxShape = mx.mxShape;
4
+
4
5
  mxShape.prototype.getConstraints = function () {
5
6
  return null;
6
7
  };
@@ -1,7 +1,7 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxTriangle = mx.mxTriangle,
4
- mxConnectionConstraint = mx.mxConnectionConstraint,
5
- mxPoint = mx.mxPoint;
4
+ mxConnectionConstraint = mx.mxConnectionConstraint,
5
+ mxPoint = mx.mxPoint;
6
6
  mxTriangle.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true)];
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
- var mxConstants = mx.mxConstants;
4
- // Sets colors for handles
3
+ var mxConstants = mx.mxConstants; // Sets colors for handles
4
+
5
5
  mxConstants.HANDLE_FILLCOLOR = '#29b6f2';
6
6
  mxConstants.HANDLE_STROKECOLOR = '#0088cf';
7
7
  mxConstants.VERTEX_SELECTION_COLOR = '#00a8ff';
@@ -1,17 +1,19 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxGuide = mx.mxGuide,
4
- mxPolyline = mx.mxPolyline,
5
- mxConstants = mx.mxConstants,
6
- mxEvent = mx.mxEvent;
4
+ mxPolyline = mx.mxPolyline,
5
+ mxConstants = mx.mxConstants,
6
+ mxEvent = mx.mxEvent;
7
7
  /**
8
8
  * No dashed shapes.
9
9
  */
10
+
10
11
  mxGuide.prototype.createGuideShape = function () {
11
12
  var guide = new mxPolyline([], mxConstants.GUIDE_COLOR, mxConstants.GUIDE_STROKEWIDTH);
12
13
  return guide;
13
- };
14
- // Alt disables guides
14
+ }; // Alt disables guides
15
+
16
+
15
17
  mxGuide.prototype.isEnabledForEvent = function (evt) {
16
18
  return !mxEvent.isAltDown(evt);
17
19
  };
@@ -1,8 +1,8 @@
1
1
  import mx from '../mx';
2
2
  export default function () {
3
3
  var mxCellEditor = mx.mxCellEditor,
4
- mxUtils = mx.mxUtils,
5
- mxClient = mx.mxClient;
4
+ mxUtils = mx.mxUtils,
5
+ mxClient = mx.mxClient;
6
6
  mxCellEditor.prototype.blurEnabled = true;
7
7
  /**
8
8
  * HTML in-place editor
@@ -11,49 +11,58 @@ export default function () {
11
11
  // var state = this.graph.view.getState(this.editingCell);
12
12
  // return state != null && state.style['html'] == 1;
13
13
  // };
14
+
14
15
  var mxCellEditorGetInitialValue = mxCellEditor.prototype.getInitialValue;
16
+
15
17
  mxCellEditor.prototype.getInitialValue = function (state, trigger) {
16
18
  if (mxUtils.getValue(state.style, 'html', '0') == '0') {
17
19
  return mxCellEditorGetInitialValue.apply(this, arguments);
18
20
  } else {
19
21
  var result = this.graph.getEditingValue(state.cell, trigger);
22
+
20
23
  if (mxUtils.getValue(state.style, 'nl2Br', '1') == '1') {
21
24
  result = result.replace(/\n/g, '<br/>');
22
- }
23
- // result = this.graph.sanitizeHtml(result, true);
25
+ } // result = this.graph.sanitizeHtml(result, true);
26
+
27
+
24
28
  return result;
25
29
  }
26
30
  };
27
31
  /**
28
32
  * HTML in-place editor
29
33
  */
34
+
35
+
30
36
  mxCellEditor.prototype.escapeCancelsEditing = false;
31
37
  var mxCellEditorStartEditing = mxCellEditor.prototype.startEditing;
38
+
32
39
  mxCellEditor.prototype.startEditing = function (cell, trigger) {
33
- mxCellEditorStartEditing.apply(this, arguments);
34
- // Overrides class in case of HTML content to add
40
+ mxCellEditorStartEditing.apply(this, arguments); // Overrides class in case of HTML content to add
35
41
  // dashed borders for divs and table cells
42
+
36
43
  var state = this.graph.view.getState(cell);
44
+
37
45
  if (state != null && state.style['html'] == 1) {
38
46
  this.textarea.className = 'mxCellEditor';
39
47
  } else {
40
48
  this.textarea.className = 'mxCellEditor mxPlainTextEditor';
41
- }
42
- // Toggles markup vs wysiwyg mode
43
- this.codeViewMode = false;
44
- // Stores current selection range when switching between markup and code
45
- this.switchSelectionState = null;
46
- // Selects editing cell
47
- this.graph.setSelectionCell(cell);
48
- // Enables focus outline for edges and edge labels
49
+ } // Toggles markup vs wysiwyg mode
50
+
51
+
52
+ this.codeViewMode = false; // Stores current selection range when switching between markup and code
53
+
54
+ this.switchSelectionState = null; // Selects editing cell
55
+
56
+ this.graph.setSelectionCell(cell); // Enables focus outline for edges and edge labels
57
+
49
58
  var parent = this.graph.getModel().getParent(cell);
50
59
  var geo = this.graph.getCellGeometry(cell);
60
+
51
61
  if (this.graph.getModel().isEdge(parent) && geo != null && geo.relative || this.graph.getModel().isEdge(cell)) {
52
62
  // Quirks does not support outline at all so use border instead
53
63
  if (mxClient.IS_QUIRKS) {
54
64
  this.textarea.style.border = 'gray dotted 1px';
55
- }
56
- // IE>8 and FF on Windows uses outline default of none
65
+ } // IE>8 and FF on Windows uses outline default of none
57
66
  else if (mxClient.IS_IE || mxClient.IS_IE11 || mxClient.IS_FF && mxClient.IS_WIN) {
58
67
  this.textarea.style.outline = 'gray dotted 1px';
59
68
  } else {
@@ -64,17 +73,21 @@ export default function () {
64
73
  this.textarea.style.border = '';
65
74
  }
66
75
  };
76
+
67
77
  var mxCellEditorGetCurrentValue = mxCellEditor.prototype.getCurrentValue;
78
+
68
79
  mxCellEditor.prototype.getCurrentValue = function (state) {
69
80
  if (mxUtils.getValue(state.style, 'html', '0') == '0') {
70
81
  return mxCellEditorGetCurrentValue.apply(this, arguments);
71
82
  } else {
72
83
  var result = this.textarea.innerHTML;
84
+
73
85
  if (mxUtils.getValue(state.style, 'nl2Br', '1') == '1') {
74
86
  result = result.replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>');
75
87
  } else {
76
88
  result = result.replace(/\r\n/g, '').replace(/\n/g, '');
77
89
  }
90
+
78
91
  return result;
79
92
  }
80
93
  };
@@ -4,7 +4,9 @@ export default function () {
4
4
  /**
5
5
  * support render DOM as label
6
6
  */
7
+
7
8
  var getLabelValue = mxCellRenderer.prototype.getLabelValue;
9
+
8
10
  mxCellRenderer.prototype.getLabelValue = function (state) {
9
11
  return state.cell.value;
10
12
  };
@@ -1,21 +1,21 @@
1
- import mx from '../mx';
2
- // import expandedImage from 'mxgraphx/javascript/src/images/expanded.gif';
1
+ import mx from '../mx'; // import expandedImage from 'mxgraphx/javascript/src/images/expanded.gif';
3
2
  // import collapsedImage from 'mxgraphx/javascript/src/images/collapsed.gif';
3
+
4
4
  export default function () {
5
5
  var mxGraph = mx.mxGraph,
6
- mxConstants = mx.mxConstants,
7
- mxUtils = mx.mxUtils,
8
- mxConnectionConstraint = mx.mxConnectionConstraint,
9
- mxPoint = mx.mxPoint,
10
- mxRectangle = mx.mxRectangle,
11
- mxImage = mx.mxImage;
6
+ mxConstants = mx.mxConstants,
7
+ mxUtils = mx.mxUtils,
8
+ mxConnectionConstraint = mx.mxConnectionConstraint,
9
+ mxPoint = mx.mxPoint,
10
+ mxRectangle = mx.mxRectangle,
11
+ mxImage = mx.mxImage;
12
12
  var expandedImage = "data:image/gif;base64,R0lGODlhCQAJAPcAAAAAAHuUrXuctYSMlISUnISUpYSUrYScpYScrYSctYyUnIyUpZScnJScpaXG3q21va29xq3G1q3G3rW9xr3GzsbGxsbOzsbO1sbO3sbW1s7W1tbe597e3t7n597v9+fn3ufv9+fv/+f3/+/v7+/v9+/39+////f37/f39/f/////9////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ywAAAAACQAJAAAIUwAdBChAoMGAAQQiJBBhwkSKhyYKIBCRAgSKFSk8EASRYsUJFCM0KkgBoGTJDQUYkBjB8kOHCwUGbOCgoQKHCjAXYIAwYcKDCRAKRChAlCDRCAEBADs=";
13
- var collapsedImage = "data:image/gif;base64,R0lGODlhCQAJAPcAAAAAABAICHuUrXuctYSMlISUnISUpYSUrYScrYyUnIyUpYycpZScnJScpaXG3q3G1q3G3rW1vbW9xrW9zsbGzsbO3sbW3s7Oztbe3tbe597e3t7e597n7+fn7+/v7+/3/+////f39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ywAAAAACQAJAAAIUgAdCDBQoAADAgseCADBUIRDEAYMgPggAkCIDx8QKMA4AsCIEBwKEKgIIAAAABgMMNjgwYNFDRYMEOCAQQOACxQqFFBQQUIEnz8NPIhINOKDgAAAOw==";
14
- // Adds support for HTML labels via style. Note: Currently, only the Java
13
+ var collapsedImage = "data:image/gif;base64,R0lGODlhCQAJAPcAAAAAABAICHuUrXuctYSMlISUnISUpYSUrYScrYyUnIyUpYycpZScnJScpaXG3q3G1q3G3rW1vbW9xrW9zsbGzsbO3sbW3s7Oztbe3tbe597e3t7e597n7+fn7+/v7+/3/+////f39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ywAAAAACQAJAAAIUgAdCDBQoAADAgseCADBUIRDEAYMgPggAkCIDx8QKMA4AsCIEBwKEKgIIAAAABgMMNjgwYNFDRYMEOCAQQOACxQqFFBQQUIEnz8NPIhINOKDgAAAOw=="; // Adds support for HTML labels via style. Note: Currently, only the Java
15
14
  // backend supports HTML labels but CSS support is limited to the following:
16
15
  // http://docs.oracle.com/javase/6/docs/api/index.html?javax/swing/text/html/CSS.html
17
16
  // TODO: Wrap should not affect isHtmlLabel output (should be handled later)
18
17
  // const isHtmlLabel = mxGraph.prototype.isHtmlLabel;
18
+
19
19
  mxGraph.prototype.isHtmlLabel = function (cell) {
20
20
  var state = this.view.getState(cell);
21
21
  var style = state != null ? state.style : this.getCellStyle(cell);
@@ -24,22 +24,27 @@ export default function () {
24
24
  /**
25
25
  * Overrides method to provide connection constraints for shapes.
26
26
  */
27
+
28
+
27
29
  mxGraph.prototype.getAllConnectionConstraints = function (terminal, source) {
28
30
  if (terminal != null) {
29
31
  var constraints = mxUtils.getValue(terminal.style, 'points', null);
32
+
30
33
  if (constraints != null) {
31
34
  // Requires an array of arrays with x, y (0..1), an optional
32
35
  // [perimeter (0 or 1), dx, and dy] eg. points=[[0,0,1,-10,10],[0,1,0],[1,1]]
33
36
  var result = [];
37
+
34
38
  try {
35
39
  var c = JSON.parse(constraints);
40
+
36
41
  for (var i = 0; i < c.length; i++) {
37
42
  var tmp = c[i];
38
43
  result.push(new mxConnectionConstraint(new mxPoint(tmp[0], tmp[1]), tmp.length > 2 ? tmp[2] != '0' : true, null, tmp.length > 3 ? tmp[3] : 0, tmp.length > 4 ? tmp[4] : 0));
39
44
  }
40
- } catch (e) {
41
- // ignore
45
+ } catch (e) {// ignore
42
46
  }
47
+
43
48
  return result;
44
49
  } else if (terminal.shape != null && terminal.shape.bounds != null) {
45
50
  var dir = terminal.shape.direction;
@@ -47,12 +52,15 @@ export default function () {
47
52
  var scale = terminal.shape.scale;
48
53
  var w = bounds.width / scale;
49
54
  var h = bounds.height / scale;
55
+
50
56
  if (dir == mxConstants.DIRECTION_NORTH || dir == mxConstants.DIRECTION_SOUTH) {
51
57
  var tmp = w;
52
58
  w = h;
53
59
  h = tmp;
54
60
  }
61
+
55
62
  constraints = terminal.shape.getConstraints(terminal.style, w, h);
63
+
56
64
  if (constraints != null) {
57
65
  return constraints;
58
66
  } else if (terminal.shape.stencil != null && terminal.shape.stencil.constraints != null) {
@@ -62,11 +70,14 @@ export default function () {
62
70
  }
63
71
  }
64
72
  }
73
+
65
74
  return null;
66
75
  };
67
76
  /**
68
77
  * Returns a point that specifies the location for inserting cells.
69
78
  */
79
+
80
+
70
81
  mxGraph.prototype.getInsertPoint = function () {
71
82
  var gs = this.getGridSize();
72
83
  var dx = this.container.scrollLeft / this.view.scale - this.view.translate.x;
@@ -77,11 +88,12 @@ export default function () {
77
88
  dy = Math.max(dy, layout.y * page.height);
78
89
  return new mxPoint(this.snap(dx + gs), this.snap(dy + gs));
79
90
  };
91
+
80
92
  mxGraph.prototype.getFreeInsertPoint = function () {
81
93
  var view = this.view;
82
94
  var bds = this.getGraphBounds();
83
- var pt = this.getInsertPoint();
84
- // Places at same x-coord and 2 grid sizes below existing graph
95
+ var pt = this.getInsertPoint(); // Places at same x-coord and 2 grid sizes below existing graph
96
+
85
97
  var x = this.snap(Math.round(Math.max(pt.x, bds.x / view.scale - view.translate.x + (bds.width == 0 ? 2 * this.gridSize : 0))));
86
98
  var y = this.snap(Math.round(Math.max(pt.y, (bds.y + bds.height) / view.scale - view.translate.y + 2 * this.gridSize)));
87
99
  return new mxPoint(x, y);
@@ -92,9 +104,12 @@ export default function () {
92
104
  * left page and width and height are the vertical and horizontal
93
105
  * page count.
94
106
  */
107
+
108
+
95
109
  mxGraph.prototype.getPageLayout = function () {
96
110
  var size = this.getPageSize();
97
111
  var bounds = this.getGraphBounds();
112
+
98
113
  if (bounds.width == 0 || bounds.height == 0) {
99
114
  return new mxRectangle(0, 0, 1, 1);
100
115
  } else {
@@ -113,9 +128,12 @@ export default function () {
113
128
  /**
114
129
  * Returns the size of the page format scaled with the page size.
115
130
  */
131
+
132
+
116
133
  mxGraph.prototype.getPageSize = function () {
117
134
  return new mxRectangle(0, 0, this.pageFormat.width * this.pageScale, this.pageFormat.height * this.pageScale);
118
135
  };
136
+
119
137
  mxGraph.prototype.expandedImage = new mxImage(expandedImage, 9, 9);
120
138
  mxGraph.prototype.collapsedImage = new mxImage(collapsedImage, 9, 9);
121
139
  }
@@ -1,6 +1,6 @@
1
1
  import { Component, TypeDefs, VNodeComponentClass } from 'intact-vue-next';
2
2
  import type { Diagram } from '../diagram';
3
- export type Cell = {
3
+ export declare type Cell = {
4
4
  data?: any;
5
5
  instance?: DBase;
6
6
  vertex?: boolean;