@vertexvis/ui 0.1.5-testing.0 → 1.0.0-testing.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (888) hide show
  1. package/dist/cjs/components.cjs.js +14 -84
  2. package/dist/cjs/{dom-a2c535e3.js → dom-v38DVhe2.js} +4 -4
  3. package/dist/cjs/icon-helper-ut8vR2Rk.js +559 -0
  4. package/dist/cjs/index-D-R2lvls.js +62 -0
  5. package/dist/cjs/index-DihxupoM.js +95 -0
  6. package/dist/cjs/index-DwS9D24e.js +2230 -0
  7. package/dist/cjs/index.cjs.js +91 -92
  8. package/dist/cjs/{lib-1bd1e383.js → lib-CCXuRx1c.js} +2 -2
  9. package/dist/cjs/loader.cjs.js +5 -15
  10. package/dist/cjs/slots-DEdmqbtw.js +29 -0
  11. package/dist/cjs/templates-C_WUWcnZ.js +230 -0
  12. package/dist/cjs/tslib.es6-AsLBQn5u.js +68 -0
  13. package/dist/cjs/vertex-auto-resize-textarea.cjs.entry.js +132 -5
  14. package/dist/cjs/vertex-avatar-group.cjs.entry.js +12 -5
  15. package/dist/cjs/vertex-avatar.cjs.entry.js +44 -6
  16. package/dist/cjs/vertex-badge.cjs.entry.js +21 -6
  17. package/dist/cjs/vertex-banner.cjs.entry.js +122 -7
  18. package/dist/cjs/vertex-button.cjs.entry.js +83 -6
  19. package/dist/cjs/vertex-card-group.cjs.entry.js +34 -6
  20. package/dist/cjs/vertex-card.cjs.entry.js +33 -5
  21. package/dist/cjs/vertex-chip.cjs.entry.js +28 -6
  22. package/dist/cjs/vertex-click-to-edit-textfield.cjs.entry.js +112 -7
  23. package/dist/cjs/vertex-collapsible.cjs.entry.js +22 -6
  24. package/dist/cjs/vertex-color-circle-picker.cjs.entry.js +142 -6
  25. package/dist/cjs/vertex-color-picker.cjs.entry.js +67 -7
  26. package/dist/cjs/vertex-color-swatch.cjs.entry.js +141 -7
  27. package/dist/cjs/vertex-context-menu.cjs.entry.js +91 -6
  28. package/dist/cjs/vertex-dialog.cjs.entry.js +226 -5
  29. package/dist/cjs/vertex-draggable-popover.cjs.entry.js +79 -6
  30. package/dist/cjs/vertex-dropdown-menu.cjs.entry.js +34 -6
  31. package/dist/cjs/vertex-expandable.cjs.entry.js +101 -6
  32. package/dist/cjs/vertex-help-tooltip.cjs.entry.js +36 -5
  33. package/dist/cjs/vertex-icon-button.cjs.entry.js +58 -7
  34. package/dist/cjs/vertex-icon.cjs.entry.js +29 -7
  35. package/dist/cjs/vertex-logo-loading.cjs.entry.js +12 -5
  36. package/dist/cjs/vertex-menu-divider.cjs.entry.js +12 -5
  37. package/dist/cjs/vertex-menu-item.cjs.entry.js +24 -6
  38. package/dist/cjs/vertex-menu.cjs.entry.js +80 -6
  39. package/dist/cjs/vertex-popover.cjs.entry.js +1894 -5
  40. package/dist/cjs/vertex-radio-group.cjs.entry.js +73 -5
  41. package/dist/cjs/vertex-radio.cjs.entry.js +29 -6
  42. package/dist/cjs/vertex-resizable.cjs.entry.js +439 -7
  43. package/dist/cjs/vertex-result-list.cjs.entry.js +300 -7
  44. package/dist/cjs/vertex-search-bar.cjs.entry.js +528 -7
  45. package/dist/cjs/vertex-select.cjs.entry.js +181 -6
  46. package/dist/cjs/vertex-slider.cjs.entry.js +55 -7
  47. package/dist/cjs/vertex-spinner.cjs.entry.js +32 -6
  48. package/dist/cjs/vertex-tab.cjs.entry.js +20 -6
  49. package/dist/cjs/vertex-tabs.cjs.entry.js +104 -6
  50. package/dist/cjs/vertex-textfield.cjs.entry.js +147 -7
  51. package/dist/cjs/vertex-toast.cjs.entry.js +109 -6
  52. package/dist/cjs/vertex-toggle.cjs.entry.js +47 -6
  53. package/dist/cjs/vertex-tooltip.cjs.entry.js +343 -8
  54. package/dist/collection/collection-manifest.json +44 -43
  55. package/dist/collection/components/auto-resize-textarea/auto-resize-textarea.js +222 -213
  56. package/dist/collection/components/auto-resize-textarea/utils.js +1 -1
  57. package/dist/collection/components/avatar/avatar.js +153 -137
  58. package/dist/collection/components/avatar-group/avatar-group.js +16 -16
  59. package/dist/collection/components/badge/badge.js +75 -66
  60. package/dist/collection/components/banner/banner.js +284 -247
  61. package/dist/collection/components/button/button.css +1 -1
  62. package/dist/collection/components/button/button.js +274 -230
  63. package/dist/collection/components/card/card.js +89 -76
  64. package/dist/collection/components/card-group/card-group.js +104 -89
  65. package/dist/collection/components/chip/chip.js +89 -73
  66. package/dist/collection/components/click-to-edit-text-field/click-to-edit-text-field.js +412 -373
  67. package/dist/collection/components/collapsible/collapsible.js +71 -65
  68. package/dist/collection/components/color-circle-picker/color-circle-picker.js +398 -312
  69. package/dist/collection/components/color-picker/color-picker.js +225 -186
  70. package/dist/collection/components/color-swatch/color-swatch.js +341 -272
  71. package/dist/collection/components/color-swatch/lib.js +2 -2
  72. package/dist/collection/components/context-menu/context-menu.js +168 -161
  73. package/dist/collection/components/dialog/dialog.js +332 -323
  74. package/dist/collection/components/dialog/lib.js +4 -4
  75. package/dist/collection/components/draggable-popover/draggable-popover.js +182 -175
  76. package/dist/collection/components/dropdown-menu/dropdown-menu.js +122 -108
  77. package/dist/collection/components/expandable/expandable.js +272 -224
  78. package/dist/collection/components/help-tooltip/help-tooltip.js +132 -118
  79. package/dist/collection/components/icon/icon-helper.js +414 -414
  80. package/dist/collection/components/icon/icon.js +91 -75
  81. package/dist/collection/components/icon/icons/adjustments.js +1 -1
  82. package/dist/collection/components/icon/icons/align-to-global.js +1 -1
  83. package/dist/collection/components/icon/icons/align-to-part.js +1 -1
  84. package/dist/collection/components/icon/icons/align-to-surface.js +1 -1
  85. package/dist/collection/components/icon/icons/align-view-to-plane.js +1 -1
  86. package/dist/collection/components/icon/icons/annotation.js +1 -1
  87. package/dist/collection/components/icon/icons/arrow-filled.js +1 -1
  88. package/dist/collection/components/icon/icons/arrow-left-circled.js +1 -1
  89. package/dist/collection/components/icon/icons/arrow-line-left.js +1 -1
  90. package/dist/collection/components/icon/icons/arrow-line-right.js +1 -1
  91. package/dist/collection/components/icon/icons/arrow-partial.js +1 -1
  92. package/dist/collection/components/icon/icons/arrow-right-circled.js +2 -2
  93. package/dist/collection/components/icon/icons/arrow-swap.js +1 -1
  94. package/dist/collection/components/icon/icons/arrow-triangle-left.js +1 -1
  95. package/dist/collection/components/icon/icons/arrow-triangle-right.js +1 -1
  96. package/dist/collection/components/icon/icons/arrow-up-circled.js +1 -1
  97. package/dist/collection/components/icon/icons/attachment.js +1 -1
  98. package/dist/collection/components/icon/icons/axis-x.js +1 -1
  99. package/dist/collection/components/icon/icons/axis-y.js +1 -1
  100. package/dist/collection/components/icon/icons/axis-z.js +1 -1
  101. package/dist/collection/components/icon/icons/back.js +1 -1
  102. package/dist/collection/components/icon/icons/box-cursor.js +1 -1
  103. package/dist/collection/components/icon/icons/box-select.js +1 -1
  104. package/dist/collection/components/icon/icons/camera-add.js +1 -1
  105. package/dist/collection/components/icon/icons/camera.js +1 -1
  106. package/dist/collection/components/icon/icons/caret-down.js +1 -1
  107. package/dist/collection/components/icon/icons/caret-left.js +1 -1
  108. package/dist/collection/components/icon/icons/caret-right.js +1 -1
  109. package/dist/collection/components/icon/icons/caret-up.js +1 -1
  110. package/dist/collection/components/icon/icons/caution.js +1 -1
  111. package/dist/collection/components/icon/icons/check-circle.js +1 -1
  112. package/dist/collection/components/icon/icons/check.js +1 -1
  113. package/dist/collection/components/icon/icons/chevron-down.js +1 -1
  114. package/dist/collection/components/icon/icons/chevron-left.js +1 -1
  115. package/dist/collection/components/icon/icons/chevron-right.js +1 -1
  116. package/dist/collection/components/icon/icons/chevron-up.js +1 -1
  117. package/dist/collection/components/icon/icons/circle-outline.js +1 -1
  118. package/dist/collection/components/icon/icons/close-circle-fill.js +1 -1
  119. package/dist/collection/components/icon/icons/close-circle.js +1 -1
  120. package/dist/collection/components/icon/icons/close.js +1 -1
  121. package/dist/collection/components/icon/icons/collapse-all.js +1 -1
  122. package/dist/collection/components/icon/icons/columns-add.js +1 -1
  123. package/dist/collection/components/icon/icons/columns.js +1 -1
  124. package/dist/collection/components/icon/icons/comment-add.js +1 -1
  125. package/dist/collection/components/icon/icons/comment-filled.js +1 -1
  126. package/dist/collection/components/icon/icons/comment-reopen.js +1 -1
  127. package/dist/collection/components/icon/icons/comment-resolve.js +1 -1
  128. package/dist/collection/components/icon/icons/comment-show.js +1 -1
  129. package/dist/collection/components/icon/icons/compare.js +1 -1
  130. package/dist/collection/components/icon/icons/compress.js +1 -1
  131. package/dist/collection/components/icon/icons/copy.js +1 -1
  132. package/dist/collection/components/icon/icons/cross-section.js +1 -1
  133. package/dist/collection/components/icon/icons/cube-orthographic.js +1 -1
  134. package/dist/collection/components/icon/icons/cube-perspective.js +1 -1
  135. package/dist/collection/components/icon/icons/cube-stack.js +1 -1
  136. package/dist/collection/components/icon/icons/delete.js +1 -1
  137. package/dist/collection/components/icon/icons/download.js +1 -1
  138. package/dist/collection/components/icon/icons/drag-indicator.js +1 -1
  139. package/dist/collection/components/icon/icons/ellipse.js +1 -1
  140. package/dist/collection/components/icon/icons/error-circle.js +1 -1
  141. package/dist/collection/components/icon/icons/expand-all.js +1 -1
  142. package/dist/collection/components/icon/icons/expand.js +1 -1
  143. package/dist/collection/components/icon/icons/export.js +1 -1
  144. package/dist/collection/components/icon/icons/file-folder.js +1 -1
  145. package/dist/collection/components/icon/icons/file-pdf.js +1 -1
  146. package/dist/collection/components/icon/icons/file.js +1 -1
  147. package/dist/collection/components/icon/icons/fit-all.js +1 -1
  148. package/dist/collection/components/icon/icons/fit-selected.js +1 -1
  149. package/dist/collection/components/icon/icons/flip.js +1 -1
  150. package/dist/collection/components/icon/icons/folder-plus.js +1 -1
  151. package/dist/collection/components/icon/icons/forward.js +1 -1
  152. package/dist/collection/components/icon/icons/gear.js +1 -1
  153. package/dist/collection/components/icon/icons/help.js +1 -1
  154. package/dist/collection/components/icon/icons/info.js +1 -1
  155. package/dist/collection/components/icon/icons/invert.js +1 -1
  156. package/dist/collection/components/icon/icons/label-off.js +1 -1
  157. package/dist/collection/components/icon/icons/label.js +1 -1
  158. package/dist/collection/components/icon/icons/line-dot-left.js +1 -1
  159. package/dist/collection/components/icon/icons/line-dot-right.js +1 -1
  160. package/dist/collection/components/icon/icons/line-hash-left.js +1 -1
  161. package/dist/collection/components/icon/icons/line-hash-right.js +1 -1
  162. package/dist/collection/components/icon/icons/line.js +1 -1
  163. package/dist/collection/components/icon/icons/locate.js +1 -1
  164. package/dist/collection/components/icon/icons/lock-closed.js +1 -1
  165. package/dist/collection/components/icon/icons/lock-open.js +1 -1
  166. package/dist/collection/components/icon/icons/markup.js +1 -1
  167. package/dist/collection/components/icon/icons/menu.js +1 -1
  168. package/dist/collection/components/icon/icons/notification.js +1 -1
  169. package/dist/collection/components/icon/icons/open-window.js +1 -1
  170. package/dist/collection/components/icon/icons/open.js +1 -1
  171. package/dist/collection/components/icon/icons/pan.js +1 -1
  172. package/dist/collection/components/icon/icons/paper-airplane.js +1 -1
  173. package/dist/collection/components/icon/icons/paste.js +1 -1
  174. package/dist/collection/components/icon/icons/pencil.js +1 -1
  175. package/dist/collection/components/icon/icons/person-height.js +1 -1
  176. package/dist/collection/components/icon/icons/person-run.js +1 -1
  177. package/dist/collection/components/icon/icons/person-short.js +1 -1
  178. package/dist/collection/components/icon/icons/person-tall.js +1 -1
  179. package/dist/collection/components/icon/icons/person-walk.js +1 -1
  180. package/dist/collection/components/icon/icons/pin-fill.js +1 -1
  181. package/dist/collection/components/icon/icons/pin-line.js +1 -1
  182. package/dist/collection/components/icon/icons/pin-text-fill.js +1 -1
  183. package/dist/collection/components/icon/icons/pin-text-square.js +1 -1
  184. package/dist/collection/components/icon/icons/pin-text.js +1 -1
  185. package/dist/collection/components/icon/icons/plus-with-arrow.js +1 -1
  186. package/dist/collection/components/icon/icons/plus.js +1 -1
  187. package/dist/collection/components/icon/icons/pmi.js +1 -1
  188. package/dist/collection/components/icon/icons/precise-measurement.js +1 -1
  189. package/dist/collection/components/icon/icons/rabbit.js +1 -1
  190. package/dist/collection/components/icon/icons/refresh.js +1 -1
  191. package/dist/collection/components/icon/icons/rename.js +1 -1
  192. package/dist/collection/components/icon/icons/report.js +1 -1
  193. package/dist/collection/components/icon/icons/reset.js +1 -1
  194. package/dist/collection/components/icon/icons/resize.js +1 -1
  195. package/dist/collection/components/icon/icons/rotate.js +1 -1
  196. package/dist/collection/components/icon/icons/ruler.js +1 -1
  197. package/dist/collection/components/icon/icons/scissors.js +1 -1
  198. package/dist/collection/components/icon/icons/search.js +1 -1
  199. package/dist/collection/components/icon/icons/show-only-nearby.js +1 -1
  200. package/dist/collection/components/icon/icons/snapshots.js +1 -1
  201. package/dist/collection/components/icon/icons/square-dot-outline.js +1 -1
  202. package/dist/collection/components/icon/icons/star.js +1 -1
  203. package/dist/collection/components/icon/icons/tag.js +1 -1
  204. package/dist/collection/components/icon/icons/tape-measure.js +1 -1
  205. package/dist/collection/components/icon/icons/teleport-and-align.js +1 -1
  206. package/dist/collection/components/icon/icons/teleport-toward.js +1 -1
  207. package/dist/collection/components/icon/icons/teleport.js +1 -1
  208. package/dist/collection/components/icon/icons/triad.js +1 -1
  209. package/dist/collection/components/icon/icons/turtle.js +1 -1
  210. package/dist/collection/components/icon/icons/update.js +1 -1
  211. package/dist/collection/components/icon/icons/version-history.js +1 -1
  212. package/dist/collection/components/icon/icons/views.js +1 -1
  213. package/dist/collection/components/icon/icons/visibility-hidden.js +1 -1
  214. package/dist/collection/components/icon/icons/visibility-partial.js +1 -1
  215. package/dist/collection/components/icon/icons/visibility-visible.js +1 -1
  216. package/dist/collection/components/icon/icons/workspace-add.js +1 -1
  217. package/dist/collection/components/icon/icons/zoom.js +1 -1
  218. package/dist/collection/components/icon-button/icon-button.css +5 -2
  219. package/dist/collection/components/icon-button/icon-button.js +190 -152
  220. package/dist/collection/components/logo-loading/logo-loading.js +16 -16
  221. package/dist/collection/components/menu/menu.js +286 -250
  222. package/dist/collection/components/menu-divider/menu-divider.js +16 -16
  223. package/dist/collection/components/menu-item/menu-item.js +54 -48
  224. package/dist/collection/components/popover/middleware.js +22 -22
  225. package/dist/collection/components/popover/popover.js +654 -567
  226. package/dist/collection/components/popover/util.js +7 -7
  227. package/dist/collection/components/radio/radio.js +157 -145
  228. package/dist/collection/components/radio-group/radio-group.js +135 -133
  229. package/dist/collection/components/resizable/resizable.js +758 -702
  230. package/dist/collection/components/result-list/lib.js +6 -6
  231. package/dist/collection/components/result-list/result-list.js +456 -431
  232. package/dist/collection/components/search-bar/dom.js +13 -13
  233. package/dist/collection/components/search-bar/lib.js +50 -50
  234. package/dist/collection/components/search-bar/search-bar.js +739 -661
  235. package/dist/collection/components/select/select.css +7 -2
  236. package/dist/collection/components/select/select.js +332 -303
  237. package/dist/collection/components/slider/slider.js +258 -220
  238. package/dist/collection/components/spinner/spinner.js +93 -77
  239. package/dist/collection/components/tab/tab.js +86 -83
  240. package/dist/collection/components/tab/util.js +1 -1
  241. package/dist/collection/components/tabs/tabs.js +150 -151
  242. package/dist/collection/components/text-field/text-field.js +637 -572
  243. package/dist/collection/components/toast/toast.js +266 -228
  244. package/dist/collection/components/toggle/toggle.js +139 -119
  245. package/dist/collection/components/tooltip/tooltip.js +280 -247
  246. package/dist/collection/types/icon.js +137 -137
  247. package/dist/collection/util/components/dom.js +5 -5
  248. package/dist/collection/util/components/slots.js +17 -17
  249. package/dist/collection/util/templates/binding.js +121 -121
  250. package/dist/collection/util/templates/element-pool.js +79 -79
  251. package/dist/collection/util/templates/templates.js +15 -15
  252. package/dist/components/components.esm.js +1 -1
  253. package/dist/components/index.d.ts +6 -42
  254. package/dist/components/index.esm.js +1 -1
  255. package/dist/components/index.js +1 -52
  256. package/dist/components/p-00eaa8d7.entry.js +1 -0
  257. package/dist/components/p-0180556d.entry.js +1 -0
  258. package/dist/components/p-091b9e27.entry.js +1 -0
  259. package/dist/components/p-0af9b71c.entry.js +1 -0
  260. package/dist/components/p-0bd4222b.entry.js +1 -0
  261. package/dist/components/p-0c389e6f.entry.js +1 -0
  262. package/dist/{esm/toggle-1fe22e4f.js → components/p-0f13f6f3.entry.js} +1 -38
  263. package/dist/components/p-1KuzBK7Z.js +1 -0
  264. package/dist/components/p-1c5e8df5.entry.js +1 -0
  265. package/dist/components/p-1e6ff76a.entry.js +1 -0
  266. package/dist/components/p-26f9abc0.entry.js +1 -0
  267. package/dist/components/p-28460604.entry.js +1 -0
  268. package/dist/components/p-2cdfe6bf.entry.js +1 -0
  269. package/dist/components/p-2e0ee616.entry.js +1 -0
  270. package/dist/components/p-34d8a04e.entry.js +1 -0
  271. package/dist/components/p-3ddb0c4e.entry.js +1 -0
  272. package/dist/components/p-4HdACFFW.js +1 -0
  273. package/dist/components/p-553d01af.entry.js +1 -0
  274. package/dist/components/p-595b8bd6.entry.js +1 -0
  275. package/dist/components/p-5c032b37.entry.js +1 -0
  276. package/dist/components/p-5e3fe5e7.entry.js +1 -0
  277. package/dist/components/p-61742c05.entry.js +1 -0
  278. package/dist/components/p-6b2db72c.entry.js +1 -0
  279. package/dist/components/p-6c6a2fc5.entry.js +1 -0
  280. package/dist/components/p-6d03a954.entry.js +1 -0
  281. package/dist/components/p-6qoO8Yf3.js +1 -0
  282. package/dist/components/p-705d25f3.entry.js +1 -0
  283. package/dist/components/p-7f768637.entry.js +1 -0
  284. package/dist/components/p-8358ad1c.entry.js +1 -0
  285. package/dist/components/p-88781e72.entry.js +1 -0
  286. package/dist/components/p-B-yvbsY0.js +1 -0
  287. package/dist/components/p-B23i1cwy.js +1 -0
  288. package/dist/components/p-B2oECB2P.js +1 -0
  289. package/dist/components/p-B9qe9CNv.js +1 -0
  290. package/dist/components/p-BAfJR2VF.js +1 -0
  291. package/dist/components/p-BHmM6WC-.js +1 -0
  292. package/dist/components/p-BLc3P-0q.js +1 -0
  293. package/dist/components/{p-1356f525.js → p-BSoicxl1.js} +1 -1
  294. package/dist/components/p-BZ5oF5Ci.js +1 -0
  295. package/dist/components/p-BZutc-CC.js +1 -0
  296. package/dist/components/p-BbDaHMlz.js +1 -0
  297. package/dist/components/p-BdR40EV2.js +1 -0
  298. package/dist/components/p-Beav1bNT.js +6 -0
  299. package/dist/components/p-Bo65Viuh.js +1 -0
  300. package/dist/components/p-ByQGREpQ.js +1 -0
  301. package/dist/components/p-C1H5-_5m.js +1 -0
  302. package/dist/components/p-C1qwHMcr.js +1 -0
  303. package/dist/components/p-C27tS7nl.js +2 -0
  304. package/dist/components/p-C7VaFE8W.js +1 -0
  305. package/dist/components/p-CAFdRyLE.js +1 -0
  306. package/dist/components/p-CDYHYPYF.js +1 -0
  307. package/dist/components/p-CFaiLAq0.js +1 -0
  308. package/dist/components/{p-59032668.js → p-CIs0DJX1.js} +1 -1
  309. package/dist/components/p-CZ1Qa_xv.js +1 -0
  310. package/dist/components/p-CZyp2id8.js +1 -0
  311. package/dist/components/p-Ci26QjYl.js +1 -0
  312. package/dist/components/p-D1P5FeY6.js +1 -0
  313. package/dist/components/p-D3BXoJJN.js +1 -0
  314. package/dist/components/p-DEpMfvdS.js +1 -0
  315. package/dist/components/p-DGZHaSjz.js +1 -0
  316. package/dist/components/p-DHNuRvq0.js +1 -0
  317. package/dist/components/p-DMLgHhJc.js +1 -0
  318. package/dist/components/p-DO6VjClS.js +1 -0
  319. package/dist/components/p-DPgx10Cw.js +1 -0
  320. package/dist/components/p-DXQBJLz-.js +1 -0
  321. package/dist/components/p-D_mp9WMh.js +1 -0
  322. package/dist/components/p-De54LBPx.js +1 -0
  323. package/dist/components/p-DjrAIJhB.js +1 -0
  324. package/dist/components/p-DsAkiOMC.js +1 -0
  325. package/dist/components/p-Dw5WRKyY.js +1 -0
  326. package/dist/components/p-ILu24ZUX.js +1 -0
  327. package/dist/components/p-K5a7HQMt.js +1 -0
  328. package/dist/components/p-KilWQmEJ.js +1 -0
  329. package/dist/components/p-Mnv_zHXq.js +1 -0
  330. package/dist/components/p-RaMDrnzd.js +1 -0
  331. package/dist/components/p-TLO_pywp.js +1 -0
  332. package/dist/components/p-_3Hgy0Z4.js +1 -0
  333. package/dist/components/p-a287d016.entry.js +1 -0
  334. package/dist/components/p-a886721b.entry.js +1 -0
  335. package/dist/components/p-a8e75bdc.entry.js +1 -0
  336. package/dist/components/p-al_CUADF.js +1 -0
  337. package/dist/components/p-b5921385.entry.js +1 -0
  338. package/dist/components/p-c2f3cf8b.entry.js +1 -0
  339. package/dist/components/p-ca6a4b08.entry.js +1 -0
  340. package/dist/components/p-e311af0e.entry.js +1 -0
  341. package/dist/components/p-eYTN_sVb.js +1 -0
  342. package/dist/components/p-edfd86c9.entry.js +1 -0
  343. package/dist/components/p-ef419ddf.entry.js +1 -0
  344. package/dist/components/p-efd0223b.entry.js +1 -0
  345. package/dist/components/p-f1abef98.entry.js +1 -0
  346. package/dist/components/p-f23df530.entry.js +1 -0
  347. package/dist/components/p-f37dc3c4.entry.js +1 -0
  348. package/dist/components/p-f793f80a.entry.js +1 -0
  349. package/dist/components/p-y4p55dbx.js +1 -0
  350. package/dist/components/vertex-auto-resize-textarea.d.ts +2 -2
  351. package/dist/components/vertex-auto-resize-textarea.js +1 -6
  352. package/dist/components/vertex-avatar-group.d.ts +2 -2
  353. package/dist/components/vertex-avatar-group.js +1 -34
  354. package/dist/components/vertex-avatar.d.ts +2 -2
  355. package/dist/components/vertex-avatar.js +1 -68
  356. package/dist/components/vertex-badge.d.ts +2 -2
  357. package/dist/components/vertex-badge.js +1 -43
  358. package/dist/components/vertex-banner.d.ts +2 -2
  359. package/dist/components/vertex-banner.js +1 -141
  360. package/dist/components/vertex-button.d.ts +2 -2
  361. package/dist/components/vertex-button.js +1 -96
  362. package/dist/components/vertex-card-group.d.ts +2 -2
  363. package/dist/components/vertex-card-group.js +1 -51
  364. package/dist/components/vertex-card.d.ts +2 -2
  365. package/dist/components/vertex-card.js +1 -49
  366. package/dist/components/vertex-chip.d.ts +2 -2
  367. package/dist/components/vertex-chip.js +1 -45
  368. package/dist/components/vertex-click-to-edit-textfield.d.ts +2 -2
  369. package/dist/components/vertex-click-to-edit-textfield.js +1 -156
  370. package/dist/components/vertex-collapsible.d.ts +2 -2
  371. package/dist/components/vertex-collapsible.js +1 -63
  372. package/dist/components/vertex-color-circle-picker.d.ts +2 -2
  373. package/dist/components/vertex-color-circle-picker.js +1 -131
  374. package/dist/components/vertex-color-picker.d.ts +2 -2
  375. package/dist/components/vertex-color-picker.js +1 -75
  376. package/dist/components/vertex-color-swatch.d.ts +2 -2
  377. package/dist/components/vertex-color-swatch.js +1 -6
  378. package/dist/components/vertex-context-menu.d.ts +2 -2
  379. package/dist/components/vertex-context-menu.js +1 -125
  380. package/dist/components/vertex-dialog.d.ts +2 -2
  381. package/dist/components/vertex-dialog.js +1 -265
  382. package/dist/components/vertex-draggable-popover.d.ts +2 -2
  383. package/dist/components/vertex-draggable-popover.js +1 -119
  384. package/dist/components/vertex-dropdown-menu.d.ts +2 -2
  385. package/dist/components/vertex-dropdown-menu.js +1 -64
  386. package/dist/components/vertex-expandable.d.ts +2 -2
  387. package/dist/components/vertex-expandable.js +1 -6
  388. package/dist/components/vertex-help-tooltip.d.ts +2 -2
  389. package/dist/components/vertex-help-tooltip.js +1 -67
  390. package/dist/components/vertex-icon-button.d.ts +2 -2
  391. package/dist/components/vertex-icon-button.js +1 -6
  392. package/dist/components/vertex-icon.d.ts +2 -2
  393. package/dist/components/vertex-icon.js +1 -6
  394. package/dist/components/vertex-logo-loading.d.ts +2 -2
  395. package/dist/components/vertex-logo-loading.js +1 -34
  396. package/dist/components/vertex-menu-divider.d.ts +2 -2
  397. package/dist/components/vertex-menu-divider.js +1 -34
  398. package/dist/components/vertex-menu-item.d.ts +2 -2
  399. package/dist/components/vertex-menu-item.js +1 -44
  400. package/dist/components/vertex-menu.d.ts +2 -2
  401. package/dist/components/vertex-menu.js +1 -6
  402. package/dist/components/vertex-popover.d.ts +2 -2
  403. package/dist/components/vertex-popover.js +1 -6
  404. package/dist/components/vertex-radio-group.d.ts +2 -2
  405. package/dist/components/vertex-radio-group.js +1 -98
  406. package/dist/components/vertex-radio.d.ts +2 -2
  407. package/dist/components/vertex-radio.js +1 -56
  408. package/dist/components/vertex-resizable.d.ts +2 -2
  409. package/dist/components/vertex-resizable.js +1 -463
  410. package/dist/components/vertex-result-list.d.ts +2 -2
  411. package/dist/components/vertex-result-list.js +1 -6
  412. package/dist/components/vertex-search-bar.d.ts +2 -2
  413. package/dist/components/vertex-search-bar.js +1 -568
  414. package/dist/components/vertex-select.d.ts +2 -2
  415. package/dist/components/vertex-select.js +1 -202
  416. package/dist/components/vertex-slider.d.ts +2 -2
  417. package/dist/components/vertex-slider.js +1 -81
  418. package/dist/components/vertex-spinner.d.ts +2 -2
  419. package/dist/components/vertex-spinner.js +1 -49
  420. package/dist/components/vertex-tab.d.ts +2 -2
  421. package/dist/components/vertex-tab.js +1 -46
  422. package/dist/components/vertex-tabs.d.ts +2 -2
  423. package/dist/components/vertex-tabs.js +1 -133
  424. package/dist/components/vertex-textfield.d.ts +2 -2
  425. package/dist/components/vertex-textfield.js +1 -6
  426. package/dist/components/vertex-toast.d.ts +2 -2
  427. package/dist/components/vertex-toast.js +1 -127
  428. package/dist/components/vertex-toggle.d.ts +2 -2
  429. package/dist/components/vertex-toggle.js +1 -67
  430. package/dist/components/vertex-tooltip.d.ts +2 -2
  431. package/dist/components/vertex-tooltip.js +1 -6
  432. package/dist/esm/components.js +14 -83
  433. package/dist/{components/dom.js → esm/dom-Oz9KwTs0.js} +4 -4
  434. package/dist/esm/icon-helper-Dw0fFePg.js +557 -0
  435. package/dist/esm/index-Beav1bNT.js +92 -0
  436. package/dist/esm/index-C27tS7nl.js +2219 -0
  437. package/dist/esm/index-DYRkgxax.js +60 -0
  438. package/dist/esm/index.js +50 -49
  439. package/dist/esm/{lib-73fbca8b.js → lib-DgySd_r0.js} +2 -2
  440. package/dist/esm/loader.js +6 -14
  441. package/dist/esm/slots-DXuCPm6v.js +26 -0
  442. package/dist/esm/templates-DZ8xV3--.js +228 -0
  443. package/dist/esm/tslib.es6-CIs0DJX1.js +65 -0
  444. package/dist/esm/vertex-auto-resize-textarea.entry.js +136 -3
  445. package/dist/esm/vertex-avatar-group.entry.js +15 -2
  446. package/dist/esm/vertex-avatar.entry.js +47 -3
  447. package/dist/esm/vertex-badge.entry.js +24 -3
  448. package/dist/esm/vertex-banner.entry.js +125 -4
  449. package/dist/esm/vertex-button.entry.js +86 -3
  450. package/dist/esm/vertex-card-group.entry.js +37 -3
  451. package/dist/esm/vertex-card.entry.js +36 -2
  452. package/dist/esm/vertex-chip.entry.js +31 -3
  453. package/dist/esm/vertex-click-to-edit-textfield.entry.js +114 -3
  454. package/dist/esm/vertex-collapsible.entry.js +25 -3
  455. package/dist/esm/vertex-color-circle-picker.entry.js +145 -3
  456. package/dist/esm/vertex-color-picker.entry.js +70 -4
  457. package/dist/esm/vertex-color-swatch.entry.js +144 -4
  458. package/dist/esm/vertex-context-menu.entry.js +93 -2
  459. package/dist/esm/vertex-dialog.entry.js +230 -3
  460. package/dist/esm/vertex-draggable-popover.entry.js +82 -3
  461. package/dist/esm/vertex-dropdown-menu.entry.js +36 -2
  462. package/dist/esm/vertex-expandable.entry.js +104 -3
  463. package/dist/esm/vertex-help-tooltip.entry.js +39 -2
  464. package/dist/esm/vertex-icon-button.entry.js +61 -4
  465. package/dist/esm/vertex-icon.entry.js +32 -4
  466. package/dist/esm/vertex-logo-loading.entry.js +15 -2
  467. package/dist/esm/vertex-menu-divider.entry.js +15 -2
  468. package/dist/esm/vertex-menu-item.entry.js +27 -3
  469. package/dist/esm/vertex-menu.entry.js +83 -3
  470. package/dist/esm/vertex-popover.entry.js +1898 -3
  471. package/dist/esm/vertex-radio-group.entry.js +76 -2
  472. package/dist/esm/vertex-radio.entry.js +32 -3
  473. package/dist/esm/vertex-resizable.entry.js +442 -4
  474. package/dist/esm/vertex-result-list.entry.js +304 -5
  475. package/dist/esm/vertex-search-bar.entry.js +532 -5
  476. package/dist/esm/vertex-select.entry.js +184 -3
  477. package/dist/esm/vertex-slider.entry.js +58 -4
  478. package/dist/esm/vertex-spinner.entry.js +35 -3
  479. package/dist/esm/vertex-tab.entry.js +23 -3
  480. package/dist/esm/vertex-tabs.entry.js +108 -4
  481. package/dist/esm/vertex-textfield.entry.js +149 -3
  482. package/dist/esm/vertex-toast.entry.js +112 -3
  483. package/dist/esm/vertex-toggle.entry.js +50 -3
  484. package/dist/esm/vertex-tooltip.entry.js +347 -6
  485. package/dist/types/components/auto-resize-textarea/auto-resize-textarea.d.ts +43 -43
  486. package/dist/types/components/avatar/avatar.d.ts +33 -33
  487. package/dist/types/components/avatar-group/avatar-group.d.ts +1 -1
  488. package/dist/types/components/badge/badge.d.ts +10 -10
  489. package/dist/types/components/banner/banner.d.ts +50 -50
  490. package/dist/types/components/button/button.d.ts +52 -52
  491. package/dist/types/components/card/card.d.ts +19 -19
  492. package/dist/types/components/card-group/card-group.d.ts +13 -13
  493. package/dist/types/components/chip/chip.d.ts +11 -11
  494. package/dist/types/components/click-to-edit-text-field/click-to-edit-text-field.d.ts +78 -78
  495. package/dist/types/components/collapsible/collapsible.d.ts +10 -10
  496. package/dist/types/components/color-circle-picker/color-circle-picker.d.ts +89 -89
  497. package/dist/types/components/color-picker/color-picker.d.ts +46 -46
  498. package/dist/types/components/color-swatch/color-swatch.d.ts +69 -69
  499. package/dist/types/components/context-menu/context-menu.d.ts +33 -33
  500. package/dist/types/components/dialog/dialog.d.ts +55 -55
  501. package/dist/types/components/draggable-popover/draggable-popover.d.ts +32 -32
  502. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +22 -22
  503. package/dist/types/components/expandable/expandable.d.ts +58 -58
  504. package/dist/types/components/help-tooltip/help-tooltip.d.ts +22 -22
  505. package/dist/types/components/icon/icon.d.ts +15 -15
  506. package/dist/types/components/icon/icons/adjustments.d.ts +0 -1
  507. package/dist/types/components/icon/icons/align-to-global.d.ts +0 -1
  508. package/dist/types/components/icon/icons/align-to-part.d.ts +0 -1
  509. package/dist/types/components/icon/icons/align-to-surface.d.ts +0 -1
  510. package/dist/types/components/icon/icons/align-view-to-plane.d.ts +0 -1
  511. package/dist/types/components/icon/icons/annotation.d.ts +0 -1
  512. package/dist/types/components/icon/icons/arrow-filled.d.ts +0 -1
  513. package/dist/types/components/icon/icons/arrow-left-circled.d.ts +0 -1
  514. package/dist/types/components/icon/icons/arrow-line-left.d.ts +0 -1
  515. package/dist/types/components/icon/icons/arrow-line-right.d.ts +0 -1
  516. package/dist/types/components/icon/icons/arrow-partial.d.ts +0 -1
  517. package/dist/types/components/icon/icons/arrow-right-circled.d.ts +0 -1
  518. package/dist/types/components/icon/icons/arrow-swap.d.ts +0 -1
  519. package/dist/types/components/icon/icons/arrow-triangle-left.d.ts +0 -1
  520. package/dist/types/components/icon/icons/arrow-triangle-right.d.ts +0 -1
  521. package/dist/types/components/icon/icons/arrow-up-circled.d.ts +0 -1
  522. package/dist/types/components/icon/icons/attachment.d.ts +0 -1
  523. package/dist/types/components/icon/icons/axis-x.d.ts +0 -1
  524. package/dist/types/components/icon/icons/axis-y.d.ts +0 -1
  525. package/dist/types/components/icon/icons/axis-z.d.ts +0 -1
  526. package/dist/types/components/icon/icons/back.d.ts +0 -1
  527. package/dist/types/components/icon/icons/box-cursor.d.ts +0 -1
  528. package/dist/types/components/icon/icons/box-select.d.ts +0 -1
  529. package/dist/types/components/icon/icons/camera-add.d.ts +0 -1
  530. package/dist/types/components/icon/icons/camera.d.ts +0 -1
  531. package/dist/types/components/icon/icons/caret-down.d.ts +0 -1
  532. package/dist/types/components/icon/icons/caret-left.d.ts +0 -1
  533. package/dist/types/components/icon/icons/caret-right.d.ts +0 -1
  534. package/dist/types/components/icon/icons/caret-up.d.ts +0 -1
  535. package/dist/types/components/icon/icons/caution.d.ts +0 -1
  536. package/dist/types/components/icon/icons/check-circle.d.ts +0 -1
  537. package/dist/types/components/icon/icons/check.d.ts +0 -1
  538. package/dist/types/components/icon/icons/chevron-down.d.ts +0 -1
  539. package/dist/types/components/icon/icons/chevron-left.d.ts +0 -1
  540. package/dist/types/components/icon/icons/chevron-right.d.ts +0 -1
  541. package/dist/types/components/icon/icons/chevron-up.d.ts +0 -1
  542. package/dist/types/components/icon/icons/circle-outline.d.ts +0 -1
  543. package/dist/types/components/icon/icons/close-circle-fill.d.ts +0 -1
  544. package/dist/types/components/icon/icons/close-circle.d.ts +0 -1
  545. package/dist/types/components/icon/icons/close.d.ts +0 -1
  546. package/dist/types/components/icon/icons/collapse-all.d.ts +0 -1
  547. package/dist/types/components/icon/icons/columns-add.d.ts +0 -1
  548. package/dist/types/components/icon/icons/columns.d.ts +0 -1
  549. package/dist/types/components/icon/icons/comment-add.d.ts +0 -1
  550. package/dist/types/components/icon/icons/comment-filled.d.ts +0 -1
  551. package/dist/types/components/icon/icons/comment-reopen.d.ts +0 -1
  552. package/dist/types/components/icon/icons/comment-resolve.d.ts +0 -1
  553. package/dist/types/components/icon/icons/comment-show.d.ts +0 -1
  554. package/dist/types/components/icon/icons/compare.d.ts +0 -1
  555. package/dist/types/components/icon/icons/compress.d.ts +0 -1
  556. package/dist/types/components/icon/icons/copy.d.ts +0 -1
  557. package/dist/types/components/icon/icons/cross-section.d.ts +0 -1
  558. package/dist/types/components/icon/icons/cube-orthographic.d.ts +0 -1
  559. package/dist/types/components/icon/icons/cube-perspective.d.ts +0 -1
  560. package/dist/types/components/icon/icons/cube-stack.d.ts +0 -1
  561. package/dist/types/components/icon/icons/delete.d.ts +0 -1
  562. package/dist/types/components/icon/icons/download.d.ts +0 -1
  563. package/dist/types/components/icon/icons/drag-indicator.d.ts +0 -1
  564. package/dist/types/components/icon/icons/ellipse.d.ts +0 -1
  565. package/dist/types/components/icon/icons/error-circle.d.ts +0 -1
  566. package/dist/types/components/icon/icons/expand-all.d.ts +0 -1
  567. package/dist/types/components/icon/icons/expand.d.ts +0 -1
  568. package/dist/types/components/icon/icons/export.d.ts +0 -1
  569. package/dist/types/components/icon/icons/file-folder.d.ts +0 -1
  570. package/dist/types/components/icon/icons/file-pdf.d.ts +0 -1
  571. package/dist/types/components/icon/icons/file.d.ts +0 -1
  572. package/dist/types/components/icon/icons/fit-all.d.ts +0 -1
  573. package/dist/types/components/icon/icons/fit-selected.d.ts +0 -1
  574. package/dist/types/components/icon/icons/flip.d.ts +0 -1
  575. package/dist/types/components/icon/icons/folder-plus.d.ts +0 -1
  576. package/dist/types/components/icon/icons/forward.d.ts +0 -1
  577. package/dist/types/components/icon/icons/gear.d.ts +0 -1
  578. package/dist/types/components/icon/icons/help.d.ts +0 -1
  579. package/dist/types/components/icon/icons/info.d.ts +0 -1
  580. package/dist/types/components/icon/icons/invert.d.ts +0 -1
  581. package/dist/types/components/icon/icons/label-off.d.ts +0 -1
  582. package/dist/types/components/icon/icons/label.d.ts +0 -1
  583. package/dist/types/components/icon/icons/line-dot-left.d.ts +0 -1
  584. package/dist/types/components/icon/icons/line-dot-right.d.ts +0 -1
  585. package/dist/types/components/icon/icons/line-hash-left.d.ts +0 -1
  586. package/dist/types/components/icon/icons/line-hash-right.d.ts +0 -1
  587. package/dist/types/components/icon/icons/line.d.ts +0 -1
  588. package/dist/types/components/icon/icons/locate.d.ts +0 -1
  589. package/dist/types/components/icon/icons/lock-closed.d.ts +0 -1
  590. package/dist/types/components/icon/icons/lock-open.d.ts +0 -1
  591. package/dist/types/components/icon/icons/markup.d.ts +0 -1
  592. package/dist/types/components/icon/icons/menu.d.ts +0 -1
  593. package/dist/types/components/icon/icons/notification.d.ts +0 -1
  594. package/dist/types/components/icon/icons/open-window.d.ts +0 -1
  595. package/dist/types/components/icon/icons/open.d.ts +0 -1
  596. package/dist/types/components/icon/icons/pan.d.ts +0 -1
  597. package/dist/types/components/icon/icons/paper-airplane.d.ts +0 -1
  598. package/dist/types/components/icon/icons/paste.d.ts +0 -1
  599. package/dist/types/components/icon/icons/pencil.d.ts +0 -1
  600. package/dist/types/components/icon/icons/person-height.d.ts +0 -1
  601. package/dist/types/components/icon/icons/person-run.d.ts +0 -1
  602. package/dist/types/components/icon/icons/person-short.d.ts +0 -1
  603. package/dist/types/components/icon/icons/person-tall.d.ts +0 -1
  604. package/dist/types/components/icon/icons/person-walk.d.ts +0 -1
  605. package/dist/types/components/icon/icons/pin-fill.d.ts +0 -1
  606. package/dist/types/components/icon/icons/pin-line.d.ts +0 -1
  607. package/dist/types/components/icon/icons/pin-text-fill.d.ts +0 -1
  608. package/dist/types/components/icon/icons/pin-text-square.d.ts +0 -1
  609. package/dist/types/components/icon/icons/pin-text.d.ts +0 -1
  610. package/dist/types/components/icon/icons/plus-with-arrow.d.ts +0 -1
  611. package/dist/types/components/icon/icons/plus.d.ts +0 -1
  612. package/dist/types/components/icon/icons/pmi.d.ts +0 -1
  613. package/dist/types/components/icon/icons/precise-measurement.d.ts +0 -1
  614. package/dist/types/components/icon/icons/rabbit.d.ts +0 -1
  615. package/dist/types/components/icon/icons/refresh.d.ts +0 -1
  616. package/dist/types/components/icon/icons/rename.d.ts +0 -1
  617. package/dist/types/components/icon/icons/report.d.ts +0 -1
  618. package/dist/types/components/icon/icons/reset.d.ts +0 -1
  619. package/dist/types/components/icon/icons/resize.d.ts +0 -1
  620. package/dist/types/components/icon/icons/rotate.d.ts +0 -1
  621. package/dist/types/components/icon/icons/ruler.d.ts +0 -1
  622. package/dist/types/components/icon/icons/scissors.d.ts +0 -1
  623. package/dist/types/components/icon/icons/search.d.ts +0 -1
  624. package/dist/types/components/icon/icons/show-only-nearby.d.ts +0 -1
  625. package/dist/types/components/icon/icons/snapshots.d.ts +0 -1
  626. package/dist/types/components/icon/icons/square-dot-outline.d.ts +0 -1
  627. package/dist/types/components/icon/icons/star.d.ts +0 -1
  628. package/dist/types/components/icon/icons/tag.d.ts +0 -1
  629. package/dist/types/components/icon/icons/tape-measure.d.ts +0 -1
  630. package/dist/types/components/icon/icons/teleport-and-align.d.ts +0 -1
  631. package/dist/types/components/icon/icons/teleport-toward.d.ts +0 -1
  632. package/dist/types/components/icon/icons/teleport.d.ts +0 -1
  633. package/dist/types/components/icon/icons/triad.d.ts +0 -1
  634. package/dist/types/components/icon/icons/turtle.d.ts +0 -1
  635. package/dist/types/components/icon/icons/update.d.ts +0 -1
  636. package/dist/types/components/icon/icons/version-history.d.ts +0 -1
  637. package/dist/types/components/icon/icons/views.d.ts +0 -1
  638. package/dist/types/components/icon/icons/visibility-hidden.d.ts +0 -1
  639. package/dist/types/components/icon/icons/visibility-partial.d.ts +0 -1
  640. package/dist/types/components/icon/icons/visibility-visible.d.ts +0 -1
  641. package/dist/types/components/icon/icons/workspace-add.d.ts +0 -1
  642. package/dist/types/components/icon/icons/zoom.d.ts +0 -1
  643. package/dist/types/components/icon-button/icon-button.d.ts +36 -36
  644. package/dist/types/components/logo-loading/logo-loading.d.ts +1 -1
  645. package/dist/types/components/menu/menu.d.ts +53 -53
  646. package/dist/types/components/menu-divider/menu-divider.d.ts +1 -1
  647. package/dist/types/components/menu-item/menu-item.d.ts +6 -6
  648. package/dist/types/components/popover/popover.d.ts +156 -156
  649. package/dist/types/components/radio/radio.d.ts +28 -28
  650. package/dist/types/components/radio-group/radio-group.d.ts +23 -23
  651. package/dist/types/components/resizable/resizable.d.ts +161 -161
  652. package/dist/types/components/result-list/result-list.d.ts +42 -42
  653. package/dist/types/components/result-list/types.d.ts +2 -2
  654. package/dist/types/components/search-bar/lib.d.ts +5 -5
  655. package/dist/types/components/search-bar/search-bar.d.ts +144 -144
  656. package/dist/types/components/select/select.d.ts +65 -65
  657. package/dist/types/components/slider/slider.d.ts +44 -44
  658. package/dist/types/components/spinner/spinner.d.ts +11 -11
  659. package/dist/types/components/tab/tab.d.ts +8 -8
  660. package/dist/types/components/tabs/tabs.d.ts +20 -20
  661. package/dist/types/components/text-field/text-field.d.ts +112 -112
  662. package/dist/types/components/toast/toast.d.ts +50 -50
  663. package/dist/types/components/toggle/toggle.d.ts +17 -17
  664. package/dist/types/components/tooltip/tooltip.d.ts +60 -60
  665. package/dist/types/components.d.ts +970 -90
  666. package/dist/types/stencil-public-runtime.d.ts +257 -34
  667. package/dist/types/types/icon.d.ts +137 -137
  668. package/dist/types/types/point.d.ts +2 -2
  669. package/dist/types/util/components/slots.d.ts +3 -3
  670. package/dist/types/util/templates/binding.d.ts +20 -20
  671. package/dist/types/util/templates/disposable.d.ts +4 -4
  672. package/dist/types/util/templates/element-pool.d.ts +19 -19
  673. package/dist/types/util/templates/templates.d.ts +2 -2
  674. package/loader/cdn.js +1 -3
  675. package/loader/index.cjs.js +1 -3
  676. package/loader/index.d.ts +5 -2
  677. package/loader/index.es2017.js +1 -3
  678. package/loader/index.js +1 -3
  679. package/package.json +32 -32
  680. package/dist/cjs/auto-resize-textarea-deb05359.js +0 -137
  681. package/dist/cjs/avatar-e69bb687.js +0 -45
  682. package/dist/cjs/avatar-group-d2af53e4.js +0 -17
  683. package/dist/cjs/badge-d39ac1fc.js +0 -23
  684. package/dist/cjs/banner-8325d5ca.js +0 -104
  685. package/dist/cjs/button-e63d25b1.js +0 -70
  686. package/dist/cjs/card-ae9e8a8f.js +0 -30
  687. package/dist/cjs/card-group-da93e610.js +0 -30
  688. package/dist/cjs/chip-a3b2e8e0.js +0 -25
  689. package/dist/cjs/click-to-edit-text-field-2c87ee66.js +0 -105
  690. package/dist/cjs/collapsible-50ea984c.js +0 -25
  691. package/dist/cjs/color-circle-picker-b0927289.js +0 -82
  692. package/dist/cjs/color-picker-6aa97d3b.js +0 -47
  693. package/dist/cjs/color-swatch-6d98da5f.js +0 -95
  694. package/dist/cjs/context-menu-664922cd.js +0 -91
  695. package/dist/cjs/dialog-34244fe1.js +0 -225
  696. package/dist/cjs/dom-ff96a4bc.js +0 -75
  697. package/dist/cjs/draggable-popover-125717a7.js +0 -83
  698. package/dist/cjs/dropdown-menu-5ae03a72.js +0 -31
  699. package/dist/cjs/expandable-b1cd4f0b.js +0 -72
  700. package/dist/cjs/help-tooltip-f72eccc7.js +0 -34
  701. package/dist/cjs/icon-ab3e2b83.js +0 -26
  702. package/dist/cjs/icon-button-9a6314cd.js +0 -43
  703. package/dist/cjs/icon-helper-b2117772.js +0 -785
  704. package/dist/cjs/index-6a92256c.js +0 -2152
  705. package/dist/cjs/index-e1b40fa6.js +0 -91
  706. package/dist/cjs/logo-loading-4d49fedf.js +0 -17
  707. package/dist/cjs/menu-bfc03108.js +0 -74
  708. package/dist/cjs/menu-divider-5bdebe5d.js +0 -17
  709. package/dist/cjs/menu-item-d213fd4d.js +0 -25
  710. package/dist/cjs/popover-942209b8.js +0 -1706
  711. package/dist/cjs/radio-bff991d2.js +0 -34
  712. package/dist/cjs/radio-group-11ecf8bf.js +0 -78
  713. package/dist/cjs/resizable-c0a69532.js +0 -423
  714. package/dist/cjs/result-list-241ffe8d.js +0 -304
  715. package/dist/cjs/search-bar-2e7ee35a.js +0 -527
  716. package/dist/cjs/select-554f3c11.js +0 -163
  717. package/dist/cjs/shadow-css-8eb74fbb.js +0 -389
  718. package/dist/cjs/slider-7714cccb.js +0 -44
  719. package/dist/cjs/slots-fb5ac359.js +0 -29
  720. package/dist/cjs/spinner-bb990a42.js +0 -29
  721. package/dist/cjs/tab-4335cd8f.js +0 -26
  722. package/dist/cjs/tabs-6f3e76e1.js +0 -111
  723. package/dist/cjs/templates-e7b3ffbb.js +0 -230
  724. package/dist/cjs/text-field-bccbde1f.js +0 -133
  725. package/dist/cjs/toast-bee7f47b.js +0 -90
  726. package/dist/cjs/toggle-a5dde469.js +0 -40
  727. package/dist/cjs/tooltip-634eb8c9.js +0 -333
  728. package/dist/cjs/tslib.es6-838fd860.js +0 -68
  729. package/dist/components/auto-resize-textarea.js +0 -157
  730. package/dist/components/color-swatch.js +0 -124
  731. package/dist/components/expandable.js +0 -100
  732. package/dist/components/icon-button.js +0 -63
  733. package/dist/components/icon-helper.js +0 -783
  734. package/dist/components/icon.js +0 -43
  735. package/dist/components/index2.js +0 -89
  736. package/dist/components/menu.js +0 -103
  737. package/dist/components/p-01d4be1d.entry.js +0 -1
  738. package/dist/components/p-0541e2b0.js +0 -1
  739. package/dist/components/p-09ba50c3.js +0 -1
  740. package/dist/components/p-0b4406fa.entry.js +0 -1
  741. package/dist/components/p-0de26b21.entry.js +0 -1
  742. package/dist/components/p-0e628c05.js +0 -1
  743. package/dist/components/p-16fc9e9a.entry.js +0 -1
  744. package/dist/components/p-18ed73e9.js +0 -1
  745. package/dist/components/p-1e645c1f.js +0 -1
  746. package/dist/components/p-211c1186.entry.js +0 -1
  747. package/dist/components/p-226e83a6.entry.js +0 -1
  748. package/dist/components/p-22ec9b78.entry.js +0 -1
  749. package/dist/components/p-24c72960.entry.js +0 -1
  750. package/dist/components/p-2930bcb0.entry.js +0 -1
  751. package/dist/components/p-29d7697f.js +0 -1
  752. package/dist/components/p-2ae8175d.entry.js +0 -1
  753. package/dist/components/p-2cff3285.js +0 -1
  754. package/dist/components/p-33400eed.entry.js +0 -1
  755. package/dist/components/p-3508048d.js +0 -12
  756. package/dist/components/p-36c853c4.js +0 -1
  757. package/dist/components/p-39133bc7.js +0 -1
  758. package/dist/components/p-3b794014.entry.js +0 -1
  759. package/dist/components/p-3dd08a0f.js +0 -1
  760. package/dist/components/p-406e73da.entry.js +0 -1
  761. package/dist/components/p-407430fe.entry.js +0 -1
  762. package/dist/components/p-41ced35c.entry.js +0 -1
  763. package/dist/components/p-43b1b3f9.js +0 -1
  764. package/dist/components/p-48629bf1.js +0 -1
  765. package/dist/components/p-4e3ba3df.entry.js +0 -1
  766. package/dist/components/p-53515813.entry.js +0 -1
  767. package/dist/components/p-5366a759.entry.js +0 -1
  768. package/dist/components/p-573b8ec6.entry.js +0 -1
  769. package/dist/components/p-59fb829f.js +0 -1
  770. package/dist/components/p-5fb1724f.js +0 -1
  771. package/dist/components/p-606596de.entry.js +0 -1
  772. package/dist/components/p-65f9817e.js +0 -1
  773. package/dist/components/p-6834631c.js +0 -2
  774. package/dist/components/p-69375605.entry.js +0 -1
  775. package/dist/components/p-6a49c365.entry.js +0 -1
  776. package/dist/components/p-6a640a2c.js +0 -1
  777. package/dist/components/p-6b6c2260.js +0 -1
  778. package/dist/components/p-6b862967.js +0 -1
  779. package/dist/components/p-6d4f055b.entry.js +0 -1
  780. package/dist/components/p-756c9977.entry.js +0 -1
  781. package/dist/components/p-7ace7800.entry.js +0 -1
  782. package/dist/components/p-7e6ca4fb.entry.js +0 -1
  783. package/dist/components/p-80c989fa.entry.js +0 -1
  784. package/dist/components/p-817bf6ff.js +0 -1
  785. package/dist/components/p-81cb4da4.js +0 -1
  786. package/dist/components/p-8a52767f.js +0 -1
  787. package/dist/components/p-8b211d6f.js +0 -1
  788. package/dist/components/p-8c69bb83.js +0 -1
  789. package/dist/components/p-8d83dfff.entry.js +0 -1
  790. package/dist/components/p-8fe0084d.js +0 -1
  791. package/dist/components/p-90931a94.js +0 -1
  792. package/dist/components/p-90b4e04b.js +0 -1
  793. package/dist/components/p-90cf31d2.js +0 -1
  794. package/dist/components/p-91123ff6.entry.js +0 -1
  795. package/dist/components/p-95358d00.entry.js +0 -1
  796. package/dist/components/p-96f55673.js +0 -1
  797. package/dist/components/p-988058f9.js +0 -1
  798. package/dist/components/p-9c384f6c.entry.js +0 -1
  799. package/dist/components/p-a2018217.entry.js +0 -1
  800. package/dist/components/p-a3c04bbd.js +0 -1
  801. package/dist/components/p-a6614625.js +0 -1
  802. package/dist/components/p-bca6275a.entry.js +0 -1
  803. package/dist/components/p-bec53c3a.js +0 -1
  804. package/dist/components/p-c2706288.js +0 -1
  805. package/dist/components/p-c2c076f1.js +0 -1
  806. package/dist/components/p-c3ec6642.js +0 -19
  807. package/dist/components/p-c8ab09fb.js +0 -1
  808. package/dist/components/p-c939fa4e.js +0 -1
  809. package/dist/components/p-c9a967d9.js +0 -1
  810. package/dist/components/p-cc2e3192.entry.js +0 -1
  811. package/dist/components/p-d7c0c287.entry.js +0 -1
  812. package/dist/components/p-dfe98f07.entry.js +0 -1
  813. package/dist/components/p-e3d0c2d1.entry.js +0 -1
  814. package/dist/components/p-e3ea44b2.js +0 -1
  815. package/dist/components/p-ea8f3750.entry.js +0 -1
  816. package/dist/components/p-ec7be8df.js +0 -1
  817. package/dist/components/p-ee496965.entry.js +0 -1
  818. package/dist/components/p-f2bc7ec5.js +0 -1
  819. package/dist/components/p-f55574fb.js +0 -1
  820. package/dist/components/p-f6f2bc86.entry.js +0 -1
  821. package/dist/components/p-fe062eb0.js +0 -7
  822. package/dist/components/p-fe7e7a74.entry.js +0 -1
  823. package/dist/components/p-fedcc21e.js +0 -1
  824. package/dist/components/p-ff4a1c3a.js +0 -1
  825. package/dist/components/popover.js +0 -1737
  826. package/dist/components/result-list.js +0 -565
  827. package/dist/components/slots.js +0 -26
  828. package/dist/components/text-field.js +0 -171
  829. package/dist/components/tooltip.js +0 -360
  830. package/dist/components/tslib.es6.js +0 -65
  831. package/dist/esm/auto-resize-textarea-087fecdb.js +0 -135
  832. package/dist/esm/avatar-775455a5.js +0 -43
  833. package/dist/esm/avatar-group-e5ca86bf.js +0 -15
  834. package/dist/esm/badge-6d27ca92.js +0 -21
  835. package/dist/esm/banner-b292060d.js +0 -102
  836. package/dist/esm/button-81207236.js +0 -68
  837. package/dist/esm/card-1e8790aa.js +0 -28
  838. package/dist/esm/card-group-4e8e0421.js +0 -28
  839. package/dist/esm/chip-4e568eee.js +0 -23
  840. package/dist/esm/click-to-edit-text-field-d9b27cd0.js +0 -103
  841. package/dist/esm/collapsible-b52960e6.js +0 -23
  842. package/dist/esm/color-circle-picker-c4e92fea.js +0 -80
  843. package/dist/esm/color-picker-b292ad8d.js +0 -45
  844. package/dist/esm/color-swatch-ab647632.js +0 -93
  845. package/dist/esm/context-menu-12f1afe1.js +0 -89
  846. package/dist/esm/dialog-c69d9152.js +0 -223
  847. package/dist/esm/dom-64053c71.js +0 -73
  848. package/dist/esm/dom-9d0f7bf4.js +0 -13
  849. package/dist/esm/draggable-popover-9f9b7c97.js +0 -81
  850. package/dist/esm/dropdown-menu-1598ba20.js +0 -29
  851. package/dist/esm/expandable-b487cb00.js +0 -70
  852. package/dist/esm/help-tooltip-c2f0d996.js +0 -32
  853. package/dist/esm/icon-390b9402.js +0 -24
  854. package/dist/esm/icon-button-552e31fe.js +0 -41
  855. package/dist/esm/icon-helper-7437b548.js +0 -783
  856. package/dist/esm/index-72f28b71.js +0 -2118
  857. package/dist/esm/index-9c609209.js +0 -89
  858. package/dist/esm/logo-loading-3c7fa23d.js +0 -15
  859. package/dist/esm/menu-49420f98.js +0 -72
  860. package/dist/esm/menu-divider-87c888cb.js +0 -15
  861. package/dist/esm/menu-item-c33aa9dd.js +0 -23
  862. package/dist/esm/polyfills/core-js.js +0 -11
  863. package/dist/esm/polyfills/css-shim.js +0 -1
  864. package/dist/esm/polyfills/dom.js +0 -79
  865. package/dist/esm/polyfills/es5-html-element.js +0 -1
  866. package/dist/esm/polyfills/index.js +0 -34
  867. package/dist/esm/polyfills/system.js +0 -6
  868. package/dist/esm/popover-6e806354.js +0 -1704
  869. package/dist/esm/radio-39c11ba4.js +0 -32
  870. package/dist/esm/radio-group-2f5467b5.js +0 -76
  871. package/dist/esm/resizable-833336bf.js +0 -421
  872. package/dist/esm/result-list-16c6afbd.js +0 -302
  873. package/dist/esm/search-bar-8d18626e.js +0 -525
  874. package/dist/esm/select-66bb59f8.js +0 -161
  875. package/dist/esm/shadow-css-008a49f5.js +0 -387
  876. package/dist/esm/slider-3d8545e3.js +0 -42
  877. package/dist/esm/slots-fbb5afb3.js +0 -26
  878. package/dist/esm/spinner-afccea51.js +0 -27
  879. package/dist/esm/tab-c76332b0.js +0 -24
  880. package/dist/esm/tabs-e9f6dcbe.js +0 -109
  881. package/dist/esm/templates-797420bf.js +0 -228
  882. package/dist/esm/text-field-32ac877e.js +0 -131
  883. package/dist/esm/toast-255648ff.js +0 -88
  884. package/dist/esm/tooltip-bed548f4.js +0 -331
  885. package/dist/esm/tslib.es6-99cd0de8.js +0 -65
  886. package/loader/package.json +0 -11
  887. /package/dist/components/{p-b2c7b113.js → p-DXuCPm6v.js} +0 -0
  888. /package/dist/components/{p-3438c441.js → p-DgySd_r0.js} +0 -0
@@ -1,715 +1,771 @@
1
- import { h, Host, } from '@stencil/core';
2
- import classNames from 'classnames';
3
- import { readDOM } from '../../util/components/dom';
1
+ import { h, Host, } from "@stencil/core";
2
+ import classNames from "classnames";
3
+ import { readDOM } from "../../util/components/dom";
4
4
  const WINDOW_RESIZE_DEBOUNCE_THRESHOLD = 200;
5
5
  export class Resizable {
6
- constructor() {
7
- this.containerTop = 0;
8
- this.containerLeft = 0;
9
- this.horizontalDirection = 'both';
10
- this.verticalDirection = 'both';
11
- this.initialHorizontalScale = undefined;
12
- this.initialVerticalScale = undefined;
13
- this.initializeWithOffset = false;
14
- this.parentSelector = undefined;
15
- this.verticalSiblingSelector = undefined;
16
- this.horizontalSiblingSelector = undefined;
17
- this.contentSelector = undefined;
18
- this.position = 'relative';
19
- this.dimensionsComputed = false;
20
- this.width = -1;
21
- this.minWidth = undefined;
22
- this.maxWidth = undefined;
23
- this.height = -1;
24
- this.minHeight = undefined;
25
- this.maxHeight = undefined;
26
- this.left = 0;
27
- this.top = 0;
28
- this.hoveredLocation = undefined;
29
- this.dragStartLocation = undefined;
30
- this.handleDrag = this.handleDrag.bind(this);
31
- this.handleDragBottom = this.handleDragBottom.bind(this);
32
- this.handleDragTop = this.handleDragTop.bind(this);
33
- this.handleDragLeft = this.handleDragLeft.bind(this);
34
- this.handleDragRight = this.handleDragRight.bind(this);
35
- this.handleWindowPointerUp = this.handleWindowPointerUp.bind(this);
36
- this.updateDimensions = this.updateDimensions.bind(this);
37
- this.recomputeDimensions = this.recomputeDimensions.bind(this);
38
- this.computeDimensions = this.computeDimensions.bind(this);
39
- this.mutationObserver = new MutationObserver(this.recomputeDimensions);
40
- this.resizeObserver = new ResizeObserver(this.recomputeDimensions);
41
- }
42
- componentDidLoad() {
43
- this.computeDimensions();
44
- window.addEventListener('resize', this.recomputeDimensions);
45
- this.mutationObserver.observe(this.hostElement, {
46
- attributes: true,
47
- attributeFilter: ['class'],
48
- });
49
- if (this.parentSelector != null) {
50
- const parent = document.querySelector(this.parentSelector);
51
- if (parent != null) {
52
- this.resizeObserver.observe(parent);
53
- }
54
- }
55
- this.resizeObserver.observe(this.hostElement);
56
- }
57
- disconnectedCallback() {
58
- this.dimensionsComputed = false;
59
- window.removeEventListener('resize', this.recomputeDimensions);
60
- this.mutationObserver.disconnect();
61
- this.resizeObserver.disconnect();
62
- }
63
- connectedCallback() {
64
- this.computeDimensions();
65
- window.addEventListener('resize', this.recomputeDimensions);
66
- this.mutationObserver.observe(this.hostElement, {
67
- attributes: true,
68
- attributeFilter: ['class'],
69
- });
70
- if (this.parentSelector != null) {
71
- const parent = document.querySelector(this.parentSelector);
72
- if (parent != null) {
73
- this.resizeObserver.observe(parent);
74
- }
75
- }
76
- this.resizeObserver.observe(this.hostElement);
77
- }
78
- render() {
79
- const width = this.width < 0 || this.horizontalDirection === 'none'
80
- ? '100%'
81
- : `${this.width}px`;
82
- const height = this.height < 0 || this.verticalDirection === 'none'
83
- ? '100%'
84
- : `${this.height}px`;
85
- return (h(Host, { style: {
86
- width,
87
- height,
88
- left: this.position === 'relative' ? `${this.left}px` : undefined,
89
- top: this.position === 'relative' ? `${this.top}px` : undefined,
90
- } }, h("div", { class: classNames('container', {
91
- hidden: this.width <= 0 && this.height <= 0,
92
- }) }, h("div", { class: classNames('shadow', `hovered-location-${this.dragStartLocation || this.hoveredLocation}`) }), h("div", { class: classNames('handle', 'left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'left'), onPointerEnter: () => this.handlePointerEnter('left'), onPointerLeave: () => this.handlePointerLeave('left') }), h("div", { class: classNames('handle', 'right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'right'), onPointerEnter: () => this.handlePointerEnter('right'), onPointerLeave: () => this.handlePointerLeave('right') }), h("div", { class: classNames('handle', 'top-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top'), onPointerEnter: () => this.handlePointerEnter('top'), onPointerLeave: () => this.handlePointerLeave('top') }), h("div", { class: classNames('handle', 'bottom-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom'), onPointerEnter: () => this.handlePointerEnter('bottom'), onPointerLeave: () => this.handlePointerLeave('bottom') }), h("div", { class: classNames('handle', 'bottom-right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom-right'), onPointerEnter: () => this.handlePointerEnter('bottom-right'), onPointerLeave: () => this.handlePointerLeave('bottom-right') }), h("div", { class: classNames('handle', 'bottom-left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom-left'), onPointerEnter: () => this.handlePointerEnter('bottom-left'), onPointerLeave: () => this.handlePointerLeave('bottom-left') }), h("div", { class: classNames('handle', 'top-right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top-right'), onPointerEnter: () => this.handlePointerEnter('top-right'), onPointerLeave: () => this.handlePointerLeave('top-right') }), h("div", { class: classNames('handle', 'top-left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top-left'), onPointerEnter: () => this.handlePointerEnter('top-left'), onPointerLeave: () => this.handlePointerLeave('top-left') }), h("slot", null))));
93
- }
94
- /**
95
- * @private
96
- *
97
- * Used for internals or testing.
98
- */
99
- async updateDimensions(bounds, isRecompute = false) {
100
- var _a, _b;
101
- const { host, slotted, parent, minWidth, maxWidth, minHeight, maxHeight } = bounds;
102
- // Calculate the horizontal bounds of the component, where baseMaxWidth is the
103
- // maximum width of the container and this.maxWidth is the maximum width of the
104
- // component when taking siblings into account
105
- const baseMaxWidth = this.fromComputedStyle(maxWidth, (parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width);
106
- this.maxWidth =
107
- baseMaxWidth != null
108
- ? baseMaxWidth -
109
- this.getSiblingMinWidth((parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width)
110
- : undefined;
111
- this.minWidth = this.fromComputedStyle(minWidth, (parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width);
112
- // Calculate the vertical bounds of the component, where baseMaxHeight is the
113
- // maximum height of the container and this.maxHeight is the maximum height of
114
- // the component when taking siblings into account
115
- const baseMaxHeight = this.fromComputedStyle(maxHeight, (parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height);
116
- this.maxHeight =
117
- baseMaxHeight != null
118
- ? baseMaxHeight -
119
- this.getSiblingMinHeight((parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height)
120
- : undefined;
121
- this.minHeight = this.fromComputedStyle(minHeight, (parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height);
122
- // Initialize the component's height and width if it was previously hidden
123
- if (!isRecompute || this.height <= 0) {
124
- const initialWidth = this.maxWidth != null && this.initialHorizontalScale != null
125
- ? this.maxWidth * this.initialHorizontalScale
126
- : this.minWidth;
127
- const initialHeight = this.maxHeight != null && this.initialVerticalScale != null
128
- ? this.maxHeight * this.initialVerticalScale
129
- : this.minHeight;
130
- this.width = initialWidth || slotted.width || this.width;
131
- this.height = initialHeight || slotted.height || this.height;
132
- }
133
- else {
134
- this.height = this.toBoundedValue(this.height, this.minHeight || 0, this.maxHeight);
135
- this.width = this.toBoundedValue(this.width, this.minWidth || 0, this.maxWidth);
136
- }
137
- this.containerTop = (_a = parent === null || parent === void 0 ? void 0 : parent.top) !== null && _a !== void 0 ? _a : host.top;
138
- this.containerLeft = (_b = parent === null || parent === void 0 ? void 0 : parent.left) !== null && _b !== void 0 ? _b : host.left;
139
- // this.left and this.top are only used internally, and in the case of absolute positioning, we only update
140
- // the width/height, so we want to reset left & top to 0 to take into consideration the difference between
141
- // it's parent container to the left/top position.
142
- this.top =
143
- baseMaxHeight != null &&
144
- this.initializeWithOffset &&
145
- this.position !== 'absolute'
146
- ? baseMaxHeight - this.height
147
- : 0;
148
- this.left =
149
- baseMaxWidth != null &&
150
- this.initializeWithOffset &&
151
- this.position !== 'absolute'
152
- ? baseMaxWidth - this.width
153
- : 0;
154
- }
155
- computeDimensions() {
156
- readDOM(() => {
157
- var _a;
158
- const slotted = this.getSlottedElement();
159
- if (typeof window !== 'undefined' && slotted != null) {
160
- const computedStyles = window.getComputedStyle(this.hostElement);
161
- this.updateDimensions({
162
- host: this.hostElement.getBoundingClientRect(),
163
- slotted: slotted.getBoundingClientRect(),
164
- parent: this.parentSelector != null
165
- ? (_a = document
166
- .querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
167
- : undefined,
168
- minWidth: computedStyles.minWidth,
169
- maxWidth: computedStyles.maxWidth,
170
- minHeight: computedStyles.minHeight,
171
- maxHeight: computedStyles.maxHeight,
6
+ constructor() {
7
+ /**
8
+ * The horizontal direction that this component can be resized in.
9
+ *
10
+ * Supports `left`, `right`, `both`, or `none`, and defaults to `both`.
11
+ */
12
+ this.horizontalDirection = 'both';
13
+ /**
14
+ * The vertical direction that this component can be resized in.
15
+ *
16
+ * Supports `top`, `bottom`, `both`, or `none`, and defaults to `both`.
17
+ */
18
+ this.verticalDirection = 'both';
19
+ /**
20
+ * Indicates whether this resizable should set its `top` property to the
21
+ * difference between its initial height and max height, and its `left`
22
+ * property to the difference between its initial width and max width.
23
+ *
24
+ * Setting this is useful when using the `verticalDirection` of `top`
25
+ * or `horizontalDirection` of `left`, and positioning it to the
26
+ * bottom of the parent container or right of the parent container
27
+ * respectively.
28
+ */
29
+ this.initializeWithOffset = false;
30
+ /**
31
+ * A prop to tell the component that it is absolutely positioned.
32
+ *
33
+ * If this prop is passed, it is expected that this component is anchored, and would only be
34
+ * draggable in one direction. It could have adverse affects if it is positioned absolutely, but then
35
+ * dragged in the opposite position from it's anchor point.
36
+ */
37
+ this.position = 'relative';
38
+ /**
39
+ * Indicates whether the component has computed its initial dimensions.
40
+ * This can be used to hide a resizable element that has both a `min-width` or `min-height`
41
+ * and an initial horizontal or vertical scale factor prior to the actual initial width
42
+ * or height being computed.
43
+ */
44
+ this.dimensionsComputed = false;
45
+ this.width = -1;
46
+ this.height = -1;
47
+ this.left = 0;
48
+ this.top = 0;
49
+ this.containerTop = 0;
50
+ this.containerLeft = 0;
51
+ this.handleDrag = this.handleDrag.bind(this);
52
+ this.handleDragBottom = this.handleDragBottom.bind(this);
53
+ this.handleDragTop = this.handleDragTop.bind(this);
54
+ this.handleDragLeft = this.handleDragLeft.bind(this);
55
+ this.handleDragRight = this.handleDragRight.bind(this);
56
+ this.handleWindowPointerUp = this.handleWindowPointerUp.bind(this);
57
+ this.updateDimensions = this.updateDimensions.bind(this);
58
+ this.recomputeDimensions = this.recomputeDimensions.bind(this);
59
+ this.computeDimensions = this.computeDimensions.bind(this);
60
+ this.mutationObserver = new MutationObserver(this.recomputeDimensions);
61
+ this.resizeObserver = new ResizeObserver(this.recomputeDimensions);
62
+ }
63
+ componentDidLoad() {
64
+ this.computeDimensions();
65
+ window.addEventListener('resize', this.recomputeDimensions);
66
+ this.mutationObserver.observe(this.hostElement, {
67
+ attributes: true,
68
+ attributeFilter: ['class'],
172
69
  });
173
- this.dimensionsComputed = true;
174
- }
175
- });
176
- }
177
- recomputeDimensions() {
178
- if (this.resizeTimeout != null) {
179
- clearTimeout(this.resizeTimeout);
180
- this.resizeTimeout = undefined;
181
- }
182
- this.resizeTimeout = setTimeout(() => {
183
- this.resizeTimeout = undefined;
184
- readDOM(() => {
185
- var _a;
186
- const slotted = this.getSlottedElement();
187
- if (typeof window !== 'undefined' && slotted != null) {
188
- const computedStyles = window.getComputedStyle(this.hostElement);
189
- this.updateDimensions({
190
- host: this.hostElement.getBoundingClientRect(),
191
- slotted: slotted.getBoundingClientRect(),
192
- parent: this.parentSelector != null
193
- ? (_a = document
194
- .querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
195
- : undefined,
196
- minWidth: computedStyles.minWidth,
197
- maxWidth: computedStyles.maxWidth,
198
- minHeight: computedStyles.minHeight,
199
- maxHeight: computedStyles.maxHeight,
200
- }, true);
70
+ if (this.parentSelector != null) {
71
+ const parent = document.querySelector(this.parentSelector);
72
+ if (parent != null) {
73
+ this.resizeObserver.observe(parent);
74
+ }
201
75
  }
202
- });
203
- }, WINDOW_RESIZE_DEBOUNCE_THRESHOLD);
204
- }
205
- handlePointerEnter(location) {
206
- this.hoveredLocation = location;
207
- }
208
- handlePointerLeave(location) {
209
- if (location === this.hoveredLocation) {
210
- this.hoveredLocation = undefined;
211
- }
212
- }
213
- handlePointerDown(e, location) {
214
- this.setStartPosition(e, location);
215
- this.emitResizeStart(location);
216
- window.addEventListener('pointermove', this.handleDrag);
217
- window.addEventListener('pointerup', this.handleWindowPointerUp);
218
- }
219
- handleDrag(e) {
220
- if (this.lastPointerPosition != null) {
221
- const difference = {
222
- x: this.lastPointerPosition.x - e.clientX,
223
- y: this.lastPointerPosition.y - e.clientY,
224
- };
225
- this.lastPointerPosition = { x: e.clientX, y: e.clientY };
226
- switch (this.dragStartLocation) {
227
- case 'bottom':
228
- this.ifValidDragBottom(e, difference, this.handleDragBottom);
229
- break;
230
- case 'top':
231
- this.ifValidDragTop(e, difference, this.handleDragTop);
232
- break;
233
- case 'right':
234
- this.ifValidDragRight(e, difference, this.handleDragRight);
235
- break;
236
- case 'left':
237
- this.ifValidDragLeft(e, difference, this.handleDragLeft);
238
- break;
239
- case 'bottom-right':
240
- this.ifValidDragBottom(e, difference, this.handleDragBottom);
241
- this.ifValidDragRight(e, difference, this.handleDragRight);
242
- break;
243
- case 'bottom-left':
244
- this.ifValidDragBottom(e, difference, this.handleDragBottom);
245
- this.ifValidDragLeft(e, difference, this.handleDragLeft);
246
- break;
247
- case 'top-right':
248
- this.ifValidDragTop(e, difference, this.handleDragTop);
249
- this.ifValidDragRight(e, difference, this.handleDragRight);
250
- break;
251
- case 'top-left':
252
- this.ifValidDragTop(e, difference, this.handleDragTop);
253
- this.ifValidDragLeft(e, difference, this.handleDragLeft);
254
- break;
255
- }
256
- }
257
- }
258
- handleWindowPointerUp() {
259
- if (this.dragStartLocation != null) {
260
- this.emitResizeEnd(this.dragStartLocation);
261
- }
262
- this.lastPointerPosition = undefined;
263
- this.dragStartLocation = undefined;
264
- window.removeEventListener('pointermove', this.handleDrag);
265
- window.removeEventListener('pointerup', this.handleWindowPointerUp);
266
- }
267
- ifValidDragTop(e, difference, fn) {
268
- const isReducingSize = difference.y < 0;
269
- const isValid = isReducingSize
270
- ? e.clientY - this.containerTop > this.top
271
- : e.clientY - this.containerTop <= this.top;
272
- if (isValid) {
273
- fn(difference);
274
- }
275
- }
276
- ifValidDragBottom(e, difference, fn) {
277
- const isReducingSize = difference.y > 0;
278
- const isValid = isReducingSize
279
- ? e.clientY < this.top + this.containerTop + this.height
280
- : e.clientY >= this.top + this.containerTop + this.height;
281
- if (isValid) {
282
- fn(difference);
283
- }
284
- }
285
- ifValidDragLeft(e, difference, fn) {
286
- const isReducingSize = difference.x < 0;
287
- const isValid = isReducingSize
288
- ? e.clientX - this.containerLeft > this.left
289
- : e.clientX - this.containerLeft <= this.left;
290
- if (isValid) {
291
- fn(difference);
292
- }
293
- }
294
- ifValidDragRight(e, difference, fn) {
295
- const isReducingSize = difference.x > 0;
296
- const isValid = isReducingSize
297
- ? e.clientX < this.left + this.containerLeft + this.width
298
- : e.clientX >= this.left + this.containerLeft + this.width;
299
- if (isValid) {
300
- fn(difference);
301
- }
302
- }
303
- handleDragTop(difference) {
304
- const initialHeight = this.height;
305
- this.height = this.toBoundedValue(this.height + difference.y, this.minHeight || 0, this.maxHeight);
306
- const heightDifference = this.height - initialHeight;
307
- this.top -= heightDifference;
308
- }
309
- handleDragBottom(difference) {
310
- this.height = this.toBoundedValue(this.height - difference.y, this.minHeight || 0, this.maxHeight);
311
- }
312
- handleDragLeft(difference) {
313
- const initialWidth = this.width;
314
- this.width = this.toBoundedValue(this.width + difference.x, this.minWidth || 0, this.maxWidth);
315
- const widthDifference = this.width - initialWidth;
316
- this.left -= widthDifference;
317
- }
318
- handleDragRight(difference) {
319
- this.width = this.toBoundedValue(this.width - difference.x, this.minWidth || 0, this.maxWidth);
320
- }
321
- setStartPosition(e, location) {
322
- e.stopPropagation();
323
- e.preventDefault();
324
- this.lastPointerPosition = { x: e.clientX, y: e.clientY };
325
- this.dragStartLocation = location;
326
- }
327
- getSlottedElement() {
328
- var _a, _b, _c;
329
- if (this.contentSelector != null) {
330
- return (((_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(this.contentSelector)) ||
331
- this.hostElement.querySelector(this.contentSelector) ||
332
- undefined);
333
- }
334
- else {
335
- const contentSlot = ((_b = this.hostElement.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('slot')) || undefined;
336
- if (((_c = contentSlot === null || contentSlot === void 0 ? void 0 : contentSlot.assignedElements) === null || _c === void 0 ? void 0 : _c.call(contentSlot).length) || 0 > 0) {
337
- return contentSlot === null || contentSlot === void 0 ? void 0 : contentSlot.assignedElements()[0];
338
- }
339
- }
340
- }
341
- getMinBounds() {
342
- const boundedMinHeight = this.minHeight != null ? this.height - this.minHeight : this.height;
343
- const boundedMinWidth = this.minWidth != null ? this.width - this.minWidth : this.width;
344
- return {
345
- x: boundedMinWidth,
346
- y: boundedMinHeight,
347
- };
348
- }
349
- fromComputedStyle(value, base) {
350
- const parsed = parseFloat(value);
351
- if (isNaN(parsed) || parsed <= 0) {
352
- return undefined;
353
- }
354
- else if (value.includes('%')) {
355
- return (parsed / 100) * base;
356
- }
357
- else {
358
- return parsed;
359
- }
360
- }
361
- toBoundedValue(value, min, max) {
362
- return Math.max(Math.min(value, max !== null && max !== void 0 ? max : value), min);
363
- }
364
- getSiblingMinWidth(base) {
365
- var _a;
366
- const sibling = this.horizontalSiblingSelector != null
367
- ? document.querySelector(this.horizontalSiblingSelector)
368
- : undefined;
369
- if (typeof window !== 'undefined' && sibling) {
370
- const siblingComputedStyles = window.getComputedStyle(sibling);
371
- return (_a = this.fromComputedStyle(siblingComputedStyles.minWidth, base)) !== null && _a !== void 0 ? _a : 0;
372
- }
373
- return 0;
374
- }
375
- getSiblingMinHeight(base) {
376
- var _a;
377
- const sibling = this.verticalSiblingSelector != null
378
- ? document.querySelector(this.verticalSiblingSelector)
379
- : undefined;
380
- if (typeof window !== 'undefined' && sibling) {
381
- const siblingComputedStyles = window.getComputedStyle(sibling);
382
- return (_a = this.fromComputedStyle(siblingComputedStyles.minHeight, base)) !== null && _a !== void 0 ? _a : 0;
383
- }
384
- return 0;
385
- }
386
- emitResizeStart(location) {
387
- readDOM(() => {
388
- this.resizeStart.emit(this.computeResizeEventDetails(location));
389
- });
390
- }
391
- emitResizeEnd(location) {
392
- readDOM(() => {
393
- this.resizeEnd.emit(this.computeResizeEventDetails(location));
394
- });
395
- }
396
- computeResizeEventDetails(location) {
397
- var _a, _b, _c, _d, _e;
398
- const parentBounds = this.parentSelector != null
399
- ? (_a = document.querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
400
- : undefined;
401
- return {
402
- location,
403
- width: this.width,
404
- height: this.height,
405
- widthPercentage: this.width /
406
- ((_c = (_b = this.maxWidth) !== null && _b !== void 0 ? _b : parentBounds === null || parentBounds === void 0 ? void 0 : parentBounds.width) !== null && _c !== void 0 ? _c : window.innerWidth),
407
- heightPercentage: this.height /
408
- ((_e = (_d = this.maxHeight) !== null && _d !== void 0 ? _d : parentBounds === null || parentBounds === void 0 ? void 0 : parentBounds.height) !== null && _e !== void 0 ? _e : window.innerHeight),
409
- };
410
- }
411
- static get is() { return "vertex-resizable"; }
412
- static get encapsulation() { return "shadow"; }
413
- static get originalStyleUrls() {
414
- return {
415
- "$": ["resizable.css"]
416
- };
417
- }
418
- static get styleUrls() {
419
- return {
420
- "$": ["resizable.css"]
421
- };
422
- }
423
- static get properties() {
424
- return {
425
- "horizontalDirection": {
426
- "type": "string",
427
- "mutable": false,
428
- "complexType": {
429
- "original": "HorizontalDragDirection",
430
- "resolved": "\"both\" | \"left\" | \"none\" | \"right\"",
431
- "references": {
432
- "HorizontalDragDirection": {
433
- "location": "local"
76
+ this.resizeObserver.observe(this.hostElement);
77
+ }
78
+ disconnectedCallback() {
79
+ this.dimensionsComputed = false;
80
+ window.removeEventListener('resize', this.recomputeDimensions);
81
+ this.mutationObserver.disconnect();
82
+ this.resizeObserver.disconnect();
83
+ }
84
+ connectedCallback() {
85
+ this.computeDimensions();
86
+ window.addEventListener('resize', this.recomputeDimensions);
87
+ this.mutationObserver.observe(this.hostElement, {
88
+ attributes: true,
89
+ attributeFilter: ['class'],
90
+ });
91
+ if (this.parentSelector != null) {
92
+ const parent = document.querySelector(this.parentSelector);
93
+ if (parent != null) {
94
+ this.resizeObserver.observe(parent);
434
95
  }
435
- }
436
- },
437
- "required": false,
438
- "optional": false,
439
- "docs": {
440
- "tags": [],
441
- "text": "The horizontal direction that this component can be resized in.\n\nSupports `left`, `right`, `both`, or `none`, and defaults to `both`."
442
- },
443
- "attribute": "horizontal-direction",
444
- "reflect": false,
445
- "defaultValue": "'both'"
446
- },
447
- "verticalDirection": {
448
- "type": "string",
449
- "mutable": false,
450
- "complexType": {
451
- "original": "VerticalDragDirection",
452
- "resolved": "\"both\" | \"bottom\" | \"none\" | \"top\"",
453
- "references": {
454
- "VerticalDragDirection": {
455
- "location": "local"
96
+ }
97
+ this.resizeObserver.observe(this.hostElement);
98
+ }
99
+ render() {
100
+ const width = this.width < 0 || this.horizontalDirection === 'none'
101
+ ? '100%'
102
+ : `${this.width}px`;
103
+ const height = this.height < 0 || this.verticalDirection === 'none'
104
+ ? '100%'
105
+ : `${this.height}px`;
106
+ return (h(Host, { key: 'df1cfd4b5cff53a97e023bd28b38a895c231d698', style: {
107
+ width,
108
+ height,
109
+ left: this.position === 'relative' ? `${this.left}px` : undefined,
110
+ top: this.position === 'relative' ? `${this.top}px` : undefined,
111
+ } }, h("div", { key: '98db17c90104701e449ad69b501da48f8e45828a', class: classNames('container', {
112
+ hidden: this.width <= 0 && this.height <= 0,
113
+ }) }, h("div", { key: '1315d54ec1e08bad9a9518093b18f829a6905f0e', class: classNames('shadow', `hovered-location-${this.dragStartLocation || this.hoveredLocation}`) }), h("div", { key: '214344a03339451443a232c5b27dfbbe9a606db0', class: classNames('handle', 'left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'left'), onPointerEnter: () => this.handlePointerEnter('left'), onPointerLeave: () => this.handlePointerLeave('left') }), h("div", { key: '1d115a65f83ceb9b9ed042e456b228f7fb5f27ab', class: classNames('handle', 'right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'right'), onPointerEnter: () => this.handlePointerEnter('right'), onPointerLeave: () => this.handlePointerLeave('right') }), h("div", { key: '2498a3983eb1421ab05ca91b85188a5d2f2e54cd', class: classNames('handle', 'top-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top'), onPointerEnter: () => this.handlePointerEnter('top'), onPointerLeave: () => this.handlePointerLeave('top') }), h("div", { key: 'dfcd9fabf34fdc0ffd03ad473113a89990ff2bb3', class: classNames('handle', 'bottom-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom'), onPointerEnter: () => this.handlePointerEnter('bottom'), onPointerLeave: () => this.handlePointerLeave('bottom') }), h("div", { key: 'fec489510c12be6dd41a482daace2bed04d6f7fe', class: classNames('handle', 'bottom-right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom-right'), onPointerEnter: () => this.handlePointerEnter('bottom-right'), onPointerLeave: () => this.handlePointerLeave('bottom-right') }), h("div", { key: 'cefd4f2534559032ed262ccab9d3bd022b0f7bd5', class: classNames('handle', 'bottom-left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'bottom-left'), onPointerEnter: () => this.handlePointerEnter('bottom-left'), onPointerLeave: () => this.handlePointerLeave('bottom-left') }), h("div", { key: '5a890cb805443ca20252b851ac1e593f440c2337', class: classNames('handle', 'top-right-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top-right'), onPointerEnter: () => this.handlePointerEnter('top-right'), onPointerLeave: () => this.handlePointerLeave('top-right') }), h("div", { key: '6d9eb463dc5e53399547139ac8048f31fb016d93', class: classNames('handle', 'top-left-handle', `horizontal-direction-${this.horizontalDirection}`, `vertical-direction-${this.verticalDirection}`), onPointerDown: (e) => this.handlePointerDown(e, 'top-left'), onPointerEnter: () => this.handlePointerEnter('top-left'), onPointerLeave: () => this.handlePointerLeave('top-left') }), h("slot", { key: '78a828ad95fe83e09adf708380b769aeabf8f553' }))));
114
+ }
115
+ /**
116
+ * @private
117
+ *
118
+ * Used for internals or testing.
119
+ */
120
+ async updateDimensions(bounds, isRecompute = false) {
121
+ var _a, _b;
122
+ const { host, slotted, parent, minWidth, maxWidth, minHeight, maxHeight } = bounds;
123
+ // Calculate the horizontal bounds of the component, where baseMaxWidth is the
124
+ // maximum width of the container and this.maxWidth is the maximum width of the
125
+ // component when taking siblings into account
126
+ const baseMaxWidth = this.fromComputedStyle(maxWidth, (parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width);
127
+ this.maxWidth =
128
+ baseMaxWidth != null
129
+ ? baseMaxWidth -
130
+ this.getSiblingMinWidth((parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width)
131
+ : undefined;
132
+ this.minWidth = this.fromComputedStyle(minWidth, (parent === null || parent === void 0 ? void 0 : parent.width) || host.width || slotted.width);
133
+ // Calculate the vertical bounds of the component, where baseMaxHeight is the
134
+ // maximum height of the container and this.maxHeight is the maximum height of
135
+ // the component when taking siblings into account
136
+ const baseMaxHeight = this.fromComputedStyle(maxHeight, (parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height);
137
+ this.maxHeight =
138
+ baseMaxHeight != null
139
+ ? baseMaxHeight -
140
+ this.getSiblingMinHeight((parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height)
141
+ : undefined;
142
+ this.minHeight = this.fromComputedStyle(minHeight, (parent === null || parent === void 0 ? void 0 : parent.height) || host.height || slotted.height);
143
+ // Initialize the component's height and width if it was previously hidden
144
+ if (!isRecompute || this.height <= 0) {
145
+ const initialWidth = this.maxWidth != null && this.initialHorizontalScale != null
146
+ ? this.maxWidth * this.initialHorizontalScale
147
+ : this.minWidth;
148
+ const initialHeight = this.maxHeight != null && this.initialVerticalScale != null
149
+ ? this.maxHeight * this.initialVerticalScale
150
+ : this.minHeight;
151
+ this.width = initialWidth || slotted.width || this.width;
152
+ this.height = initialHeight || slotted.height || this.height;
153
+ }
154
+ else {
155
+ this.height = this.toBoundedValue(this.height, this.minHeight || 0, this.maxHeight);
156
+ this.width = this.toBoundedValue(this.width, this.minWidth || 0, this.maxWidth);
157
+ }
158
+ this.containerTop = (_a = parent === null || parent === void 0 ? void 0 : parent.top) !== null && _a !== void 0 ? _a : host.top;
159
+ this.containerLeft = (_b = parent === null || parent === void 0 ? void 0 : parent.left) !== null && _b !== void 0 ? _b : host.left;
160
+ // this.left and this.top are only used internally, and in the case of absolute positioning, we only update
161
+ // the width/height, so we want to reset left & top to 0 to take into consideration the difference between
162
+ // it's parent container to the left/top position.
163
+ this.top =
164
+ baseMaxHeight != null &&
165
+ this.initializeWithOffset &&
166
+ this.position !== 'absolute'
167
+ ? baseMaxHeight - this.height
168
+ : 0;
169
+ this.left =
170
+ baseMaxWidth != null &&
171
+ this.initializeWithOffset &&
172
+ this.position !== 'absolute'
173
+ ? baseMaxWidth - this.width
174
+ : 0;
175
+ }
176
+ computeDimensions() {
177
+ readDOM(() => {
178
+ var _a;
179
+ const slotted = this.getSlottedElement();
180
+ if (typeof window !== 'undefined' && slotted != null) {
181
+ const computedStyles = window.getComputedStyle(this.hostElement);
182
+ this.updateDimensions({
183
+ host: this.hostElement.getBoundingClientRect(),
184
+ slotted: slotted.getBoundingClientRect(),
185
+ parent: this.parentSelector != null
186
+ ? (_a = document
187
+ .querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
188
+ : undefined,
189
+ minWidth: computedStyles.minWidth,
190
+ maxWidth: computedStyles.maxWidth,
191
+ minHeight: computedStyles.minHeight,
192
+ maxHeight: computedStyles.maxHeight,
193
+ });
194
+ this.dimensionsComputed = true;
456
195
  }
457
- }
458
- },
459
- "required": false,
460
- "optional": false,
461
- "docs": {
462
- "tags": [],
463
- "text": "The vertical direction that this component can be resized in.\n\nSupports `top`, `bottom`, `both`, or `none`, and defaults to `both`."
464
- },
465
- "attribute": "vertical-direction",
466
- "reflect": false,
467
- "defaultValue": "'both'"
468
- },
469
- "initialHorizontalScale": {
470
- "type": "number",
471
- "mutable": false,
472
- "complexType": {
473
- "original": "number",
474
- "resolved": "number | undefined",
475
- "references": {}
476
- },
477
- "required": false,
478
- "optional": true,
479
- "docs": {
480
- "tags": [],
481
- "text": "The initial horizontal scale for this component. This value will be\nmultiplied by the range between max width and min width (if provided)\nto determine the starting width of this resizable container.\n\nIf not provided, this will default to the minimum width\n(or component with if that is not provided)."
482
- },
483
- "attribute": "initial-horizontal-scale",
484
- "reflect": false
485
- },
486
- "initialVerticalScale": {
487
- "type": "number",
488
- "mutable": false,
489
- "complexType": {
490
- "original": "number",
491
- "resolved": "number | undefined",
492
- "references": {}
493
- },
494
- "required": false,
495
- "optional": true,
496
- "docs": {
497
- "tags": [],
498
- "text": "The initial vertical scale for this component. This value will be\nmultiplied by the range between max height and min height (if provided)\nto determine the starting height of this resizable container.\n\nIf not provided, this will default to the minimum height\n(or component with if that is not provided)."
499
- },
500
- "attribute": "initial-vertical-scale",
501
- "reflect": false
502
- },
503
- "initializeWithOffset": {
504
- "type": "boolean",
505
- "mutable": false,
506
- "complexType": {
507
- "original": "boolean",
508
- "resolved": "boolean",
509
- "references": {}
510
- },
511
- "required": false,
512
- "optional": false,
513
- "docs": {
514
- "tags": [],
515
- "text": "Indicates whether this resizable should set its `top` property to the\ndifference between its initial height and max height, and its `left`\nproperty to the difference between its initial width and max width.\n\nSetting this is useful when using the `verticalDirection` of `top`\nor `horizontalDirection` of `left`, and positioning it to the\nbottom of the parent container or right of the parent container\nrespectively."
516
- },
517
- "attribute": "initialize-with-offset",
518
- "reflect": false,
519
- "defaultValue": "false"
520
- },
521
- "parentSelector": {
522
- "type": "string",
523
- "mutable": false,
524
- "complexType": {
525
- "original": "string",
526
- "resolved": "string | undefined",
527
- "references": {}
528
- },
529
- "required": false,
530
- "optional": true,
531
- "docs": {
532
- "tags": [],
533
- "text": "A CSS selector for the parent element of this component.\n\nProviding this selector allows for computation of percentage-based\nminimum and maximum heights and widths relative to a parent element."
534
- },
535
- "attribute": "parent-selector",
536
- "reflect": false
537
- },
538
- "verticalSiblingSelector": {
539
- "type": "string",
540
- "mutable": false,
541
- "complexType": {
542
- "original": "string",
543
- "resolved": "string | undefined",
544
- "references": {}
545
- },
546
- "required": false,
547
- "optional": true,
548
- "docs": {
549
- "tags": [],
550
- "text": "A CSS selector for a vertically constraining sibling element.\n\nProviding this selector will constrain the max height of this resizable\nbased on the minimum height of the sibling."
551
- },
552
- "attribute": "vertical-sibling-selector",
553
- "reflect": false
554
- },
555
- "horizontalSiblingSelector": {
556
- "type": "string",
557
- "mutable": false,
558
- "complexType": {
559
- "original": "string",
560
- "resolved": "string | undefined",
561
- "references": {}
562
- },
563
- "required": false,
564
- "optional": true,
565
- "docs": {
566
- "tags": [],
567
- "text": "A CSS selector for a horizontally constraining sibling element.\n\nProviding this selector will constrain the max width of this resizable\nbased on the minimum width of the sibling."
568
- },
569
- "attribute": "horizontal-sibling-selector",
570
- "reflect": false
571
- },
572
- "contentSelector": {
573
- "type": "string",
574
- "mutable": false,
575
- "complexType": {
576
- "original": "string",
577
- "resolved": "string | undefined",
578
- "references": {}
579
- },
580
- "required": false,
581
- "optional": true,
582
- "docs": {
583
- "tags": [],
584
- "text": "A CSS selector for the child element of this component.\n\nProviding this selector allows for retrieval of the slotted element\nwithout using the `HTMLSlotElement.assignedElements` experimental API."
585
- },
586
- "attribute": "content-selector",
587
- "reflect": false
588
- },
589
- "position": {
590
- "type": "string",
591
- "mutable": false,
592
- "complexType": {
593
- "original": "'relative' | 'absolute'",
594
- "resolved": "\"absolute\" | \"relative\"",
595
- "references": {}
596
- },
597
- "required": false,
598
- "optional": false,
599
- "docs": {
600
- "tags": [],
601
- "text": "A prop to tell the component that it is absolutely positioned.\n\nIf this prop is passed, it is expected that this component is anchored, and would only be\ndraggable in one direction. It could have adverse affects if it is positioned absolutely, but then\ndragged in the opposite position from it's anchor point."
602
- },
603
- "attribute": "position",
604
- "reflect": false,
605
- "defaultValue": "'relative'"
606
- },
607
- "dimensionsComputed": {
608
- "type": "boolean",
609
- "mutable": true,
610
- "complexType": {
611
- "original": "boolean",
612
- "resolved": "boolean",
613
- "references": {}
614
- },
615
- "required": false,
616
- "optional": false,
617
- "docs": {
618
- "tags": [],
619
- "text": "Indicates whether the component has computed its initial dimensions.\nThis can be used to hide a resizable element that has both a `min-width` or `min-height`\nand an initial horizontal or vertical scale factor prior to the actual initial width\nor height being computed."
620
- },
621
- "attribute": "dimensions-computed",
622
- "reflect": true,
623
- "defaultValue": "false"
624
- }
625
- };
626
- }
627
- static get states() {
628
- return {
629
- "width": {},
630
- "minWidth": {},
631
- "maxWidth": {},
632
- "height": {},
633
- "minHeight": {},
634
- "maxHeight": {},
635
- "left": {},
636
- "top": {},
637
- "hoveredLocation": {},
638
- "dragStartLocation": {}
639
- };
640
- }
641
- static get events() {
642
- return [{
643
- "method": "resizeStart",
644
- "name": "resizeStart",
645
- "bubbles": true,
646
- "cancelable": true,
647
- "composed": true,
648
- "docs": {
649
- "tags": [],
650
- "text": "An event that is emitted whenever a `pointerdown` occurs on a handle for this element.\nThis event will contain the `DragStartLocation` of the handle, as well as the current\nwidth and height of the element as pixel values and percentages."
651
- },
652
- "complexType": {
653
- "original": "ResizeEventDetails",
654
- "resolved": "ResizeEventDetails",
655
- "references": {
656
- "ResizeEventDetails": {
657
- "location": "local"
196
+ });
197
+ }
198
+ recomputeDimensions() {
199
+ if (this.resizeTimeout != null) {
200
+ clearTimeout(this.resizeTimeout);
201
+ this.resizeTimeout = undefined;
202
+ }
203
+ this.resizeTimeout = setTimeout(() => {
204
+ this.resizeTimeout = undefined;
205
+ readDOM(() => {
206
+ var _a;
207
+ const slotted = this.getSlottedElement();
208
+ if (typeof window !== 'undefined' && slotted != null) {
209
+ const computedStyles = window.getComputedStyle(this.hostElement);
210
+ this.updateDimensions({
211
+ host: this.hostElement.getBoundingClientRect(),
212
+ slotted: slotted.getBoundingClientRect(),
213
+ parent: this.parentSelector != null
214
+ ? (_a = document
215
+ .querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
216
+ : undefined,
217
+ minWidth: computedStyles.minWidth,
218
+ maxWidth: computedStyles.maxWidth,
219
+ minHeight: computedStyles.minHeight,
220
+ maxHeight: computedStyles.maxHeight,
221
+ }, true);
222
+ }
223
+ });
224
+ }, WINDOW_RESIZE_DEBOUNCE_THRESHOLD);
225
+ }
226
+ handlePointerEnter(location) {
227
+ this.hoveredLocation = location;
228
+ }
229
+ handlePointerLeave(location) {
230
+ if (location === this.hoveredLocation) {
231
+ this.hoveredLocation = undefined;
232
+ }
233
+ }
234
+ handlePointerDown(e, location) {
235
+ this.setStartPosition(e, location);
236
+ this.emitResizeStart(location);
237
+ window.addEventListener('pointermove', this.handleDrag);
238
+ window.addEventListener('pointerup', this.handleWindowPointerUp);
239
+ }
240
+ handleDrag(e) {
241
+ if (this.lastPointerPosition != null) {
242
+ const difference = {
243
+ x: this.lastPointerPosition.x - e.clientX,
244
+ y: this.lastPointerPosition.y - e.clientY,
245
+ };
246
+ this.lastPointerPosition = { x: e.clientX, y: e.clientY };
247
+ switch (this.dragStartLocation) {
248
+ case 'bottom':
249
+ this.ifValidDragBottom(e, difference, this.handleDragBottom);
250
+ break;
251
+ case 'top':
252
+ this.ifValidDragTop(e, difference, this.handleDragTop);
253
+ break;
254
+ case 'right':
255
+ this.ifValidDragRight(e, difference, this.handleDragRight);
256
+ break;
257
+ case 'left':
258
+ this.ifValidDragLeft(e, difference, this.handleDragLeft);
259
+ break;
260
+ case 'bottom-right':
261
+ this.ifValidDragBottom(e, difference, this.handleDragBottom);
262
+ this.ifValidDragRight(e, difference, this.handleDragRight);
263
+ break;
264
+ case 'bottom-left':
265
+ this.ifValidDragBottom(e, difference, this.handleDragBottom);
266
+ this.ifValidDragLeft(e, difference, this.handleDragLeft);
267
+ break;
268
+ case 'top-right':
269
+ this.ifValidDragTop(e, difference, this.handleDragTop);
270
+ this.ifValidDragRight(e, difference, this.handleDragRight);
271
+ break;
272
+ case 'top-left':
273
+ this.ifValidDragTop(e, difference, this.handleDragTop);
274
+ this.ifValidDragLeft(e, difference, this.handleDragLeft);
275
+ break;
658
276
  }
659
- }
660
277
  }
661
- }, {
662
- "method": "resizeEnd",
663
- "name": "resizeEnd",
664
- "bubbles": true,
665
- "cancelable": true,
666
- "composed": true,
667
- "docs": {
668
- "tags": [],
669
- "text": "An event that is emitted whenever a `pointerup` occurs after a `resizeStart` occurs.\nThis event will contain the `DragStartLocation` of the handle, as well as the current\nwidth and height of the element as pixel values and percentages."
670
- },
671
- "complexType": {
672
- "original": "ResizeEventDetails",
673
- "resolved": "ResizeEventDetails",
674
- "references": {
675
- "ResizeEventDetails": {
676
- "location": "local"
278
+ }
279
+ handleWindowPointerUp() {
280
+ if (this.dragStartLocation != null) {
281
+ this.emitResizeEnd(this.dragStartLocation);
282
+ }
283
+ this.lastPointerPosition = undefined;
284
+ this.dragStartLocation = undefined;
285
+ window.removeEventListener('pointermove', this.handleDrag);
286
+ window.removeEventListener('pointerup', this.handleWindowPointerUp);
287
+ }
288
+ ifValidDragTop(e, difference, fn) {
289
+ const isReducingSize = difference.y < 0;
290
+ const isValid = isReducingSize
291
+ ? e.clientY - this.containerTop > this.top
292
+ : e.clientY - this.containerTop <= this.top;
293
+ if (isValid) {
294
+ fn(difference);
295
+ }
296
+ }
297
+ ifValidDragBottom(e, difference, fn) {
298
+ const isReducingSize = difference.y > 0;
299
+ const isValid = isReducingSize
300
+ ? e.clientY < this.top + this.containerTop + this.height
301
+ : e.clientY >= this.top + this.containerTop + this.height;
302
+ if (isValid) {
303
+ fn(difference);
304
+ }
305
+ }
306
+ ifValidDragLeft(e, difference, fn) {
307
+ const isReducingSize = difference.x < 0;
308
+ const isValid = isReducingSize
309
+ ? e.clientX - this.containerLeft > this.left
310
+ : e.clientX - this.containerLeft <= this.left;
311
+ if (isValid) {
312
+ fn(difference);
313
+ }
314
+ }
315
+ ifValidDragRight(e, difference, fn) {
316
+ const isReducingSize = difference.x > 0;
317
+ const isValid = isReducingSize
318
+ ? e.clientX < this.left + this.containerLeft + this.width
319
+ : e.clientX >= this.left + this.containerLeft + this.width;
320
+ if (isValid) {
321
+ fn(difference);
322
+ }
323
+ }
324
+ handleDragTop(difference) {
325
+ const initialHeight = this.height;
326
+ this.height = this.toBoundedValue(this.height + difference.y, this.minHeight || 0, this.maxHeight);
327
+ const heightDifference = this.height - initialHeight;
328
+ this.top -= heightDifference;
329
+ }
330
+ handleDragBottom(difference) {
331
+ this.height = this.toBoundedValue(this.height - difference.y, this.minHeight || 0, this.maxHeight);
332
+ }
333
+ handleDragLeft(difference) {
334
+ const initialWidth = this.width;
335
+ this.width = this.toBoundedValue(this.width + difference.x, this.minWidth || 0, this.maxWidth);
336
+ const widthDifference = this.width - initialWidth;
337
+ this.left -= widthDifference;
338
+ }
339
+ handleDragRight(difference) {
340
+ this.width = this.toBoundedValue(this.width - difference.x, this.minWidth || 0, this.maxWidth);
341
+ }
342
+ setStartPosition(e, location) {
343
+ e.stopPropagation();
344
+ e.preventDefault();
345
+ this.lastPointerPosition = { x: e.clientX, y: e.clientY };
346
+ this.dragStartLocation = location;
347
+ }
348
+ getSlottedElement() {
349
+ var _a, _b, _c;
350
+ if (this.contentSelector != null) {
351
+ return (((_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(this.contentSelector)) ||
352
+ this.hostElement.querySelector(this.contentSelector) ||
353
+ undefined);
354
+ }
355
+ else {
356
+ const contentSlot = ((_b = this.hostElement.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('slot')) || undefined;
357
+ if (((_c = contentSlot === null || contentSlot === void 0 ? void 0 : contentSlot.assignedElements) === null || _c === void 0 ? void 0 : _c.call(contentSlot).length) || 0 > 0) {
358
+ return contentSlot === null || contentSlot === void 0 ? void 0 : contentSlot.assignedElements()[0];
677
359
  }
678
- }
679
360
  }
680
- }];
681
- }
682
- static get methods() {
683
- return {
684
- "updateDimensions": {
685
- "complexType": {
686
- "signature": "(bounds: ResizableBoundsUpdate, isRecompute?: boolean) => Promise<void>",
687
- "parameters": [{
688
- "tags": [],
689
- "text": ""
690
- }, {
691
- "tags": [],
692
- "text": ""
693
- }],
694
- "references": {
695
- "Promise": {
696
- "location": "global"
361
+ }
362
+ getMinBounds() {
363
+ const boundedMinHeight = this.minHeight != null ? this.height - this.minHeight : this.height;
364
+ const boundedMinWidth = this.minWidth != null ? this.width - this.minWidth : this.width;
365
+ return {
366
+ x: boundedMinWidth,
367
+ y: boundedMinHeight,
368
+ };
369
+ }
370
+ fromComputedStyle(value, base) {
371
+ const parsed = parseFloat(value);
372
+ if (isNaN(parsed) || parsed <= 0) {
373
+ return undefined;
374
+ }
375
+ else if (value.includes('%')) {
376
+ return (parsed / 100) * base;
377
+ }
378
+ else {
379
+ return parsed;
380
+ }
381
+ }
382
+ toBoundedValue(value, min, max) {
383
+ return Math.max(Math.min(value, max !== null && max !== void 0 ? max : value), min);
384
+ }
385
+ getSiblingMinWidth(base) {
386
+ var _a;
387
+ const sibling = this.horizontalSiblingSelector != null
388
+ ? document.querySelector(this.horizontalSiblingSelector)
389
+ : undefined;
390
+ if (typeof window !== 'undefined' && sibling) {
391
+ const siblingComputedStyles = window.getComputedStyle(sibling);
392
+ return (_a = this.fromComputedStyle(siblingComputedStyles.minWidth, base)) !== null && _a !== void 0 ? _a : 0;
393
+ }
394
+ return 0;
395
+ }
396
+ getSiblingMinHeight(base) {
397
+ var _a;
398
+ const sibling = this.verticalSiblingSelector != null
399
+ ? document.querySelector(this.verticalSiblingSelector)
400
+ : undefined;
401
+ if (typeof window !== 'undefined' && sibling) {
402
+ const siblingComputedStyles = window.getComputedStyle(sibling);
403
+ return (_a = this.fromComputedStyle(siblingComputedStyles.minHeight, base)) !== null && _a !== void 0 ? _a : 0;
404
+ }
405
+ return 0;
406
+ }
407
+ emitResizeStart(location) {
408
+ readDOM(() => {
409
+ this.resizeStart.emit(this.computeResizeEventDetails(location));
410
+ });
411
+ }
412
+ emitResizeEnd(location) {
413
+ readDOM(() => {
414
+ this.resizeEnd.emit(this.computeResizeEventDetails(location));
415
+ });
416
+ }
417
+ computeResizeEventDetails(location) {
418
+ var _a, _b, _c, _d, _e;
419
+ const parentBounds = this.parentSelector != null
420
+ ? (_a = document.querySelector(this.parentSelector)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()
421
+ : undefined;
422
+ return {
423
+ location,
424
+ width: this.width,
425
+ height: this.height,
426
+ widthPercentage: this.width /
427
+ ((_c = (_b = this.maxWidth) !== null && _b !== void 0 ? _b : parentBounds === null || parentBounds === void 0 ? void 0 : parentBounds.width) !== null && _c !== void 0 ? _c : window.innerWidth),
428
+ heightPercentage: this.height /
429
+ ((_e = (_d = this.maxHeight) !== null && _d !== void 0 ? _d : parentBounds === null || parentBounds === void 0 ? void 0 : parentBounds.height) !== null && _e !== void 0 ? _e : window.innerHeight),
430
+ };
431
+ }
432
+ static get is() { return "vertex-resizable"; }
433
+ static get encapsulation() { return "shadow"; }
434
+ static get originalStyleUrls() {
435
+ return {
436
+ "$": ["resizable.css"]
437
+ };
438
+ }
439
+ static get styleUrls() {
440
+ return {
441
+ "$": ["resizable.css"]
442
+ };
443
+ }
444
+ static get properties() {
445
+ return {
446
+ "horizontalDirection": {
447
+ "type": "string",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "HorizontalDragDirection",
451
+ "resolved": "\"both\" | \"left\" | \"none\" | \"right\"",
452
+ "references": {
453
+ "HorizontalDragDirection": {
454
+ "location": "local",
455
+ "path": "/home/runner/work/vertex-web-ui/vertex-web-ui/packages/ui/src/components/resizable/resizable.tsx",
456
+ "id": "src/components/resizable/resizable.tsx::HorizontalDragDirection"
457
+ }
458
+ }
459
+ },
460
+ "required": false,
461
+ "optional": false,
462
+ "docs": {
463
+ "tags": [],
464
+ "text": "The horizontal direction that this component can be resized in.\n\nSupports `left`, `right`, `both`, or `none`, and defaults to `both`."
465
+ },
466
+ "getter": false,
467
+ "setter": false,
468
+ "reflect": false,
469
+ "attribute": "horizontal-direction",
470
+ "defaultValue": "'both'"
471
+ },
472
+ "verticalDirection": {
473
+ "type": "string",
474
+ "mutable": false,
475
+ "complexType": {
476
+ "original": "VerticalDragDirection",
477
+ "resolved": "\"both\" | \"bottom\" | \"none\" | \"top\"",
478
+ "references": {
479
+ "VerticalDragDirection": {
480
+ "location": "local",
481
+ "path": "/home/runner/work/vertex-web-ui/vertex-web-ui/packages/ui/src/components/resizable/resizable.tsx",
482
+ "id": "src/components/resizable/resizable.tsx::VerticalDragDirection"
483
+ }
484
+ }
485
+ },
486
+ "required": false,
487
+ "optional": false,
488
+ "docs": {
489
+ "tags": [],
490
+ "text": "The vertical direction that this component can be resized in.\n\nSupports `top`, `bottom`, `both`, or `none`, and defaults to `both`."
491
+ },
492
+ "getter": false,
493
+ "setter": false,
494
+ "reflect": false,
495
+ "attribute": "vertical-direction",
496
+ "defaultValue": "'both'"
497
+ },
498
+ "initialHorizontalScale": {
499
+ "type": "number",
500
+ "mutable": false,
501
+ "complexType": {
502
+ "original": "number",
503
+ "resolved": "number | undefined",
504
+ "references": {}
505
+ },
506
+ "required": false,
507
+ "optional": true,
508
+ "docs": {
509
+ "tags": [],
510
+ "text": "The initial horizontal scale for this component. This value will be\nmultiplied by the range between max width and min width (if provided)\nto determine the starting width of this resizable container.\n\nIf not provided, this will default to the minimum width\n(or component with if that is not provided)."
511
+ },
512
+ "getter": false,
513
+ "setter": false,
514
+ "reflect": false,
515
+ "attribute": "initial-horizontal-scale"
516
+ },
517
+ "initialVerticalScale": {
518
+ "type": "number",
519
+ "mutable": false,
520
+ "complexType": {
521
+ "original": "number",
522
+ "resolved": "number | undefined",
523
+ "references": {}
524
+ },
525
+ "required": false,
526
+ "optional": true,
527
+ "docs": {
528
+ "tags": [],
529
+ "text": "The initial vertical scale for this component. This value will be\nmultiplied by the range between max height and min height (if provided)\nto determine the starting height of this resizable container.\n\nIf not provided, this will default to the minimum height\n(or component with if that is not provided)."
530
+ },
531
+ "getter": false,
532
+ "setter": false,
533
+ "reflect": false,
534
+ "attribute": "initial-vertical-scale"
535
+ },
536
+ "initializeWithOffset": {
537
+ "type": "boolean",
538
+ "mutable": false,
539
+ "complexType": {
540
+ "original": "boolean",
541
+ "resolved": "boolean",
542
+ "references": {}
543
+ },
544
+ "required": false,
545
+ "optional": false,
546
+ "docs": {
547
+ "tags": [],
548
+ "text": "Indicates whether this resizable should set its `top` property to the\ndifference between its initial height and max height, and its `left`\nproperty to the difference between its initial width and max width.\n\nSetting this is useful when using the `verticalDirection` of `top`\nor `horizontalDirection` of `left`, and positioning it to the\nbottom of the parent container or right of the parent container\nrespectively."
549
+ },
550
+ "getter": false,
551
+ "setter": false,
552
+ "reflect": false,
553
+ "attribute": "initialize-with-offset",
554
+ "defaultValue": "false"
555
+ },
556
+ "parentSelector": {
557
+ "type": "string",
558
+ "mutable": false,
559
+ "complexType": {
560
+ "original": "string",
561
+ "resolved": "string | undefined",
562
+ "references": {}
563
+ },
564
+ "required": false,
565
+ "optional": true,
566
+ "docs": {
567
+ "tags": [],
568
+ "text": "A CSS selector for the parent element of this component.\n\nProviding this selector allows for computation of percentage-based\nminimum and maximum heights and widths relative to a parent element."
569
+ },
570
+ "getter": false,
571
+ "setter": false,
572
+ "reflect": false,
573
+ "attribute": "parent-selector"
574
+ },
575
+ "verticalSiblingSelector": {
576
+ "type": "string",
577
+ "mutable": false,
578
+ "complexType": {
579
+ "original": "string",
580
+ "resolved": "string | undefined",
581
+ "references": {}
582
+ },
583
+ "required": false,
584
+ "optional": true,
585
+ "docs": {
586
+ "tags": [],
587
+ "text": "A CSS selector for a vertically constraining sibling element.\n\nProviding this selector will constrain the max height of this resizable\nbased on the minimum height of the sibling."
588
+ },
589
+ "getter": false,
590
+ "setter": false,
591
+ "reflect": false,
592
+ "attribute": "vertical-sibling-selector"
593
+ },
594
+ "horizontalSiblingSelector": {
595
+ "type": "string",
596
+ "mutable": false,
597
+ "complexType": {
598
+ "original": "string",
599
+ "resolved": "string | undefined",
600
+ "references": {}
601
+ },
602
+ "required": false,
603
+ "optional": true,
604
+ "docs": {
605
+ "tags": [],
606
+ "text": "A CSS selector for a horizontally constraining sibling element.\n\nProviding this selector will constrain the max width of this resizable\nbased on the minimum width of the sibling."
607
+ },
608
+ "getter": false,
609
+ "setter": false,
610
+ "reflect": false,
611
+ "attribute": "horizontal-sibling-selector"
697
612
  },
698
- "ResizableBoundsUpdate": {
699
- "location": "local"
613
+ "contentSelector": {
614
+ "type": "string",
615
+ "mutable": false,
616
+ "complexType": {
617
+ "original": "string",
618
+ "resolved": "string | undefined",
619
+ "references": {}
620
+ },
621
+ "required": false,
622
+ "optional": true,
623
+ "docs": {
624
+ "tags": [],
625
+ "text": "A CSS selector for the child element of this component.\n\nProviding this selector allows for retrieval of the slotted element\nwithout using the `HTMLSlotElement.assignedElements` experimental API."
626
+ },
627
+ "getter": false,
628
+ "setter": false,
629
+ "reflect": false,
630
+ "attribute": "content-selector"
631
+ },
632
+ "position": {
633
+ "type": "string",
634
+ "mutable": false,
635
+ "complexType": {
636
+ "original": "'relative' | 'absolute'",
637
+ "resolved": "\"absolute\" | \"relative\"",
638
+ "references": {}
639
+ },
640
+ "required": false,
641
+ "optional": false,
642
+ "docs": {
643
+ "tags": [],
644
+ "text": "A prop to tell the component that it is absolutely positioned.\n\nIf this prop is passed, it is expected that this component is anchored, and would only be\ndraggable in one direction. It could have adverse affects if it is positioned absolutely, but then\ndragged in the opposite position from it's anchor point."
645
+ },
646
+ "getter": false,
647
+ "setter": false,
648
+ "reflect": false,
649
+ "attribute": "position",
650
+ "defaultValue": "'relative'"
651
+ },
652
+ "dimensionsComputed": {
653
+ "type": "boolean",
654
+ "mutable": true,
655
+ "complexType": {
656
+ "original": "boolean",
657
+ "resolved": "boolean",
658
+ "references": {}
659
+ },
660
+ "required": false,
661
+ "optional": false,
662
+ "docs": {
663
+ "tags": [],
664
+ "text": "Indicates whether the component has computed its initial dimensions.\nThis can be used to hide a resizable element that has both a `min-width` or `min-height`\nand an initial horizontal or vertical scale factor prior to the actual initial width\nor height being computed."
665
+ },
666
+ "getter": false,
667
+ "setter": false,
668
+ "reflect": true,
669
+ "attribute": "dimensions-computed",
670
+ "defaultValue": "false"
700
671
  }
701
- },
702
- "return": "Promise<void>"
703
- },
704
- "docs": {
705
- "text": "",
706
- "tags": [{
707
- "name": "private",
708
- "text": "Used for internals or testing."
709
- }]
710
- }
711
- }
712
- };
713
- }
714
- static get elementRef() { return "hostElement"; }
672
+ };
673
+ }
674
+ static get states() {
675
+ return {
676
+ "width": {},
677
+ "minWidth": {},
678
+ "maxWidth": {},
679
+ "height": {},
680
+ "minHeight": {},
681
+ "maxHeight": {},
682
+ "left": {},
683
+ "top": {},
684
+ "hoveredLocation": {},
685
+ "dragStartLocation": {}
686
+ };
687
+ }
688
+ static get events() {
689
+ return [{
690
+ "method": "resizeStart",
691
+ "name": "resizeStart",
692
+ "bubbles": true,
693
+ "cancelable": true,
694
+ "composed": true,
695
+ "docs": {
696
+ "tags": [],
697
+ "text": "An event that is emitted whenever a `pointerdown` occurs on a handle for this element.\nThis event will contain the `DragStartLocation` of the handle, as well as the current\nwidth and height of the element as pixel values and percentages."
698
+ },
699
+ "complexType": {
700
+ "original": "ResizeEventDetails",
701
+ "resolved": "ResizeEventDetails",
702
+ "references": {
703
+ "ResizeEventDetails": {
704
+ "location": "local",
705
+ "path": "/home/runner/work/vertex-web-ui/vertex-web-ui/packages/ui/src/components/resizable/resizable.tsx",
706
+ "id": "src/components/resizable/resizable.tsx::ResizeEventDetails"
707
+ }
708
+ }
709
+ }
710
+ }, {
711
+ "method": "resizeEnd",
712
+ "name": "resizeEnd",
713
+ "bubbles": true,
714
+ "cancelable": true,
715
+ "composed": true,
716
+ "docs": {
717
+ "tags": [],
718
+ "text": "An event that is emitted whenever a `pointerup` occurs after a `resizeStart` occurs.\nThis event will contain the `DragStartLocation` of the handle, as well as the current\nwidth and height of the element as pixel values and percentages."
719
+ },
720
+ "complexType": {
721
+ "original": "ResizeEventDetails",
722
+ "resolved": "ResizeEventDetails",
723
+ "references": {
724
+ "ResizeEventDetails": {
725
+ "location": "local",
726
+ "path": "/home/runner/work/vertex-web-ui/vertex-web-ui/packages/ui/src/components/resizable/resizable.tsx",
727
+ "id": "src/components/resizable/resizable.tsx::ResizeEventDetails"
728
+ }
729
+ }
730
+ }
731
+ }];
732
+ }
733
+ static get methods() {
734
+ return {
735
+ "updateDimensions": {
736
+ "complexType": {
737
+ "signature": "(bounds: ResizableBoundsUpdate, isRecompute?: boolean) => Promise<void>",
738
+ "parameters": [{
739
+ "name": "bounds",
740
+ "type": "ResizableBoundsUpdate",
741
+ "docs": ""
742
+ }, {
743
+ "name": "isRecompute",
744
+ "type": "boolean",
745
+ "docs": ""
746
+ }],
747
+ "references": {
748
+ "Promise": {
749
+ "location": "global",
750
+ "id": "global::Promise"
751
+ },
752
+ "ResizableBoundsUpdate": {
753
+ "location": "local",
754
+ "path": "/home/runner/work/vertex-web-ui/vertex-web-ui/packages/ui/src/components/resizable/resizable.tsx",
755
+ "id": "src/components/resizable/resizable.tsx::ResizableBoundsUpdate"
756
+ }
757
+ },
758
+ "return": "Promise<void>"
759
+ },
760
+ "docs": {
761
+ "text": "",
762
+ "tags": [{
763
+ "name": "private",
764
+ "text": "Used for internals or testing."
765
+ }]
766
+ }
767
+ }
768
+ };
769
+ }
770
+ static get elementRef() { return "hostElement"; }
715
771
  }