@emuanalytics/flow-rdf-ui 4.2.1 → 4.3.1

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 (411) hide show
  1. package/README.md +58 -0
  2. package/THIRD_PARTY_NOTICES.md +220 -0
  3. package/dist/components/alert/alert.component.mjs +13 -10
  4. package/dist/components/animation/animation.component.mjs +3 -2
  5. package/dist/components/autocomplete/autocomplete.component.mjs +21 -20
  6. package/dist/components/avatar/avatar.component.mjs +10 -12
  7. package/dist/components/badge/badge.component.mjs +1 -0
  8. package/dist/components/base-control/base-control.component.mjs +3 -0
  9. package/dist/components/breadcrumb/breadcrumb.component.mjs +3 -0
  10. package/dist/components/breadcrumb-item/breadcrumb-item.component.mjs +15 -14
  11. package/dist/components/busy-overlay/busy-overlay.component.mjs +3 -0
  12. package/dist/components/button/button.component.mjs +7 -3
  13. package/dist/components/button/button.styles.mjs +5 -5
  14. package/dist/components/button-group/button-group.component.mjs +1 -0
  15. package/dist/components/calendar/calendar.component.mjs +29 -6
  16. package/dist/components/card/card.component.mjs +5 -4
  17. package/dist/components/carousel/carousel.component.mjs +45 -42
  18. package/dist/components/carousel-item/carousel-item.component.mjs +2 -0
  19. package/dist/components/chart/chart.component.mjs +5 -4
  20. package/dist/components/chart/chartjs-plugins/luxon.adapter.mjs +78 -0
  21. package/dist/components/chart/chartjs-plugins/plugin.flow-ui-colors.mjs +1 -1
  22. package/dist/components/chart/chartjs-support.mjs +2 -0
  23. package/dist/components/checkbox/checkbox.component.mjs +21 -18
  24. package/dist/components/checkbox-group/checkbox-group.component.mjs +3 -0
  25. package/dist/components/color-mapper/color-mapper.component.mjs +27 -6
  26. package/dist/components/color-picker/color-picker.component.mjs +79 -71
  27. package/dist/components/color-picker/color-picker.styles.mjs +4 -2
  28. package/dist/components/color-stop/color-stop.component.mjs +19 -2
  29. package/dist/components/date-time-picker/date-time-picker.component.mjs +35 -29
  30. package/dist/components/details/details.component.mjs +3 -0
  31. package/dist/components/diagram/diagram-panel.styles.mjs +44 -0
  32. package/dist/components/diagram/diagram-tokens.styles.mjs +148 -0
  33. package/dist/components/diagram/diagram.component.mjs +355 -0
  34. package/dist/components/diagram/diagram.mjs +5 -0
  35. package/dist/components/diagram/diagram.styles.mjs +95 -0
  36. package/dist/components/diagram-background/diagram-background.component.mjs +163 -0
  37. package/dist/components/diagram-background/diagram-background.mjs +5 -0
  38. package/dist/components/diagram-background/diagram-background.styles.mjs +58 -0
  39. package/dist/components/diagram-base-edge/diagram-base-edge.component.mjs +326 -0
  40. package/dist/components/diagram-base-edge/diagram-base-edge.mjs +5 -0
  41. package/dist/components/diagram-base-edge/diagram-base-edge.styles.mjs +147 -0
  42. package/dist/components/diagram-base-node/diagram-base-node.component.mjs +84 -0
  43. package/dist/components/diagram-base-node/diagram-base-node.mjs +5 -0
  44. package/dist/components/diagram-base-node/diagram-base-node.styles.mjs +37 -0
  45. package/dist/components/diagram-edge/diagram-edge.component.mjs +56 -0
  46. package/dist/components/diagram-edge/diagram-edge.mjs +5 -0
  47. package/dist/components/diagram-edge/diagram-edge.styles.mjs +37 -0
  48. package/dist/components/diagram-edge-label/diagram-edge-label.component.mjs +202 -0
  49. package/dist/components/diagram-edge-label/diagram-edge-label.mjs +5 -0
  50. package/dist/components/diagram-edge-label/diagram-edge-label.styles.mjs +54 -0
  51. package/dist/components/diagram-marker/diagram-marker.component.mjs +84 -0
  52. package/dist/components/diagram-marker/diagram-marker.mjs +5 -0
  53. package/dist/components/diagram-marker/diagram-marker.styles.mjs +9 -0
  54. package/dist/components/diagram-minimap/diagram-minimap.component.mjs +298 -0
  55. package/dist/components/diagram-minimap/diagram-minimap.mjs +5 -0
  56. package/dist/components/diagram-minimap/diagram-minimap.styles.mjs +83 -0
  57. package/dist/components/diagram-node/diagram-node-template.styles.mjs +36 -0
  58. package/dist/components/diagram-node/diagram-node.component.mjs +183 -0
  59. package/dist/components/diagram-node/diagram-node.mjs +6 -0
  60. package/dist/components/diagram-node/diagram-node.styles.mjs +29 -0
  61. package/dist/components/diagram-palette-item/diagram-palette-item.component.mjs +168 -0
  62. package/dist/components/diagram-palette-item/diagram-palette-item.mjs +5 -0
  63. package/dist/components/diagram-palette-item/diagram-palette-item.styles.mjs +20 -0
  64. package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.component.mjs +245 -0
  65. package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.mjs +6 -0
  66. package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.styles.mjs +41 -0
  67. package/dist/components/diagram-port/diagram-port.component.mjs +273 -0
  68. package/dist/components/diagram-port/diagram-port.mjs +5 -0
  69. package/dist/components/diagram-port/diagram-port.styles.mjs +116 -0
  70. package/dist/components/diagram-resize-adornment/diagram-resize-adornment.component.mjs +124 -0
  71. package/dist/components/diagram-resize-adornment/diagram-resize-adornment.mjs +5 -0
  72. package/dist/components/diagram-resize-adornment/diagram-resize-adornment.styles.mjs +136 -0
  73. package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.component.mjs +125 -0
  74. package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.mjs +5 -0
  75. package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.styles.mjs +65 -0
  76. package/dist/components/diagram-zoom-controls/diagram-zoom-controls.component.mjs +158 -0
  77. package/dist/components/diagram-zoom-controls/diagram-zoom-controls.mjs +5 -0
  78. package/dist/components/diagram-zoom-controls/diagram-zoom-controls.styles.mjs +68 -0
  79. package/dist/components/dialog/dialog.component.mjs +5 -1
  80. package/dist/components/divider/divider.component.mjs +1 -0
  81. package/dist/components/drawer/drawer.component.mjs +22 -19
  82. package/dist/components/dropdown/dropdown.component.mjs +2 -1
  83. package/dist/components/form-group/form-group.component.mjs +1 -0
  84. package/dist/components/gauge/gauge.component.mjs +10 -2
  85. package/dist/components/icon/icon.component.mjs +1 -0
  86. package/dist/components/icon/library.mjs +7 -4
  87. package/dist/components/icon/library.system.mjs +2 -0
  88. package/dist/components/icon-button/icon-button.component.mjs +5 -0
  89. package/dist/components/input/input.component.mjs +21 -11
  90. package/dist/components/list/list.component.mjs +1 -0
  91. package/dist/components/list-item/list-item.component.mjs +34 -17
  92. package/dist/components/map/map.component.mjs +3 -0
  93. package/dist/components/map/map.styles.mjs +10 -0
  94. package/dist/components/menu/menu.component.mjs +1 -0
  95. package/dist/components/menu-item/menu-item.component.mjs +3 -0
  96. package/dist/components/menu-label/menu-label.component.mjs +1 -0
  97. package/dist/components/mutation-observer/mutation-observer.component.mjs +5 -6
  98. package/dist/components/option/option.component.mjs +2 -1
  99. package/dist/components/panel/panel.component.mjs +85 -1
  100. package/dist/components/panel/panel.styles.mjs +29 -0
  101. package/dist/components/panel-header/panel-header.component.mjs +14 -8
  102. package/dist/components/popup/popup.component.mjs +12 -11
  103. package/dist/components/progress-bar/progress-bar.component.mjs +3 -2
  104. package/dist/components/progress-ring/progress-ring.component.mjs +1 -0
  105. package/dist/components/query-builder/converters/javascript-filter-converter.mjs +0 -4
  106. package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +0 -4
  107. package/dist/components/query-builder/query-builder.component.mjs +42 -15
  108. package/dist/components/radio/radio.component.mjs +10 -7
  109. package/dist/components/radio-group/radio-group.component.mjs +4 -1
  110. package/dist/components/range/range.component.mjs +4 -0
  111. package/dist/components/resize-observer/resize-observer.component.mjs +2 -1
  112. package/dist/components/scroll-view/scroll-view.component.mjs +1 -0
  113. package/dist/components/scroll-view/scroll-view.styles.mjs +20 -7
  114. package/dist/components/select/select.component.mjs +19 -21
  115. package/dist/components/split-view/split-view-layout-registry.mjs +44 -0
  116. package/dist/components/split-view/split-view-layout.mjs +607 -0
  117. package/dist/components/split-view/split-view.component.mjs +502 -468
  118. package/dist/components/split-view/split-view.styles.mjs +25 -0
  119. package/dist/components/split-view-divider/split-view-divider.component.mjs +2 -53
  120. package/dist/components/split-view-divider/split-view-divider.styles.mjs +28 -16
  121. package/dist/components/split-view-pane/split-view-pane.component.mjs +197 -18
  122. package/dist/components/split-view-pane/split-view-pane.styles.mjs +52 -0
  123. package/dist/components/split-view-toggle-button/split-view-toggle-button.component.mjs +5 -0
  124. package/dist/components/split-view-toggle-button/split-view-toggle-button.styles.mjs +3 -3
  125. package/dist/components/stepper/stepper.component.mjs +3 -2
  126. package/dist/components/stepper-panel/stepper-panel.component.mjs +4 -3
  127. package/dist/components/switch/switch.component.mjs +9 -8
  128. package/dist/components/tab/tab.component.mjs +21 -17
  129. package/dist/components/tab-group/tab-group.component.mjs +218 -44
  130. package/dist/components/tab-group/tab-group.styles.mjs +44 -0
  131. package/dist/components/tab-panel/tab-panel.component.mjs +1 -0
  132. package/dist/components/tag/tag.component.mjs +13 -12
  133. package/dist/components/textarea/textarea.component.mjs +11 -4
  134. package/dist/components/timer/ticker.mjs +7 -0
  135. package/dist/components/timer/timer.component.mjs +44 -3
  136. package/dist/components/timer/timer.styles.mjs +6 -2
  137. package/dist/components/tool-button/tool-button.component.mjs +4 -0
  138. package/dist/components/tool-button-group/tool-button-group.component.mjs +3 -0
  139. package/dist/components/tooltip/tooltip.component.mjs +3 -0
  140. package/dist/components/tree/tree.component.mjs +5 -2
  141. package/dist/components/tree-item/tree-item.component.mjs +5 -0
  142. package/dist/components/visually-hidden/visually-hidden.component.mjs +1 -0
  143. package/dist/custom-elements.json +7890 -1741
  144. package/dist/diagram/api/diagram-api-base.mjs +16 -0
  145. package/dist/diagram/api/diagram-api.mjs +399 -0
  146. package/dist/diagram/api/diagram-clipboard-api.mjs +52 -0
  147. package/dist/diagram/api/diagram-groups-api.mjs +46 -0
  148. package/dist/diagram/api/diagram-model-api.mjs +447 -0
  149. package/dist/diagram/api/diagram-nodes-api.mjs +61 -0
  150. package/dist/diagram/api/diagram-selection-api.mjs +56 -0
  151. package/dist/diagram/api/diagram-viewport-api.mjs +169 -0
  152. package/dist/diagram/api/emit-with-measurement-option.mjs +21 -0
  153. package/dist/diagram/input/box-selection-controller.mjs +104 -0
  154. package/dist/diagram/input/context-menu-controller.mjs +196 -0
  155. package/dist/diagram/input/cursor-position-tracker-controller.mjs +18 -0
  156. package/dist/diagram/input/input-controller.mjs +31 -0
  157. package/dist/diagram/input/keyboard-actions/moving-action.mjs +27 -0
  158. package/dist/diagram/input/keyboard-actions/panning-action.mjs +27 -0
  159. package/dist/diagram/input/keyboard-actions/paste-action.mjs +17 -0
  160. package/dist/diagram/input/keyboard-actions/zoom-action.mjs +30 -0
  161. package/dist/diagram/input/keyboard-inputs-controller.mjs +121 -0
  162. package/dist/diagram/input/linking-controller.mjs +127 -0
  163. package/dist/diagram/input/linking-events.mjs +61 -0
  164. package/dist/diagram/input/manual-linking.mjs +101 -0
  165. package/dist/diagram/input/mobile-box-selection-controller.mjs +133 -0
  166. package/dist/diagram/input/mobile-panning-controller.mjs +114 -0
  167. package/dist/diagram/input/mobile-zooming-controller.mjs +110 -0
  168. package/dist/diagram/input/object-selection-controller.mjs +152 -0
  169. package/dist/diagram/input/palette-drop-controller.mjs +92 -0
  170. package/dist/diagram/input/panning-controller.mjs +147 -0
  171. package/dist/diagram/input/pointer-move-selection-controller.mjs +191 -0
  172. package/dist/diagram/input/relinking-gesture.mjs +182 -0
  173. package/dist/diagram/input/resize-controller.mjs +122 -0
  174. package/dist/diagram/input/rotate-controller.mjs +126 -0
  175. package/dist/diagram/input/zooming-wheel-controller.mjs +55 -0
  176. package/dist/diagram/minimap/minimap-calculations.mjs +83 -0
  177. package/dist/diagram/minimap/minimap-navigation-controller.mjs +150 -0
  178. package/dist/diagram/minimap/minimap-node-cache.mjs +19 -0
  179. package/dist/diagram/minimap/minimap-strategies.mjs +44 -0
  180. package/dist/diagram/model/diagram-model-adapter.mjs +97 -0
  181. package/dist/diagram/model/initialize-model.mjs +31 -0
  182. package/dist/diagram/model/strip-runtime-properties.mjs +30 -0
  183. package/dist/diagram/runtime/attribute-converters.mjs +11 -0
  184. package/dist/diagram/runtime/batched-resize-observer.mjs +168 -0
  185. package/dist/diagram/runtime/box-selection-provider.mjs +9 -0
  186. package/dist/diagram/runtime/context.mjs +132 -0
  187. package/dist/diagram/runtime/contexts.mjs +8 -0
  188. package/dist/diagram/runtime/cursor-position-tracker.mjs +20 -0
  189. package/dist/diagram/runtime/default-edge-templates.mjs +21 -0
  190. package/dist/diagram/runtime/default-node-templates.mjs +20 -0
  191. package/dist/diagram/runtime/diagram-reference.mjs +126 -0
  192. package/dist/diagram/runtime/diagram-runtime.mjs +214 -0
  193. package/dist/diagram/runtime/dom-input-events-router.mjs +88 -0
  194. package/dist/diagram/runtime/environment.mjs +59 -0
  195. package/dist/diagram/runtime/event-bridge.mjs +31 -0
  196. package/dist/diagram/runtime/flow-offset.mjs +45 -0
  197. package/dist/diagram/runtime/group-highlighted.mjs +25 -0
  198. package/dist/diagram/runtime/hidden.mjs +147 -0
  199. package/dist/diagram/runtime/lit-renderer.mjs +33 -0
  200. package/dist/diagram/runtime/marker-registry.mjs +108 -0
  201. package/dist/diagram/runtime/middlewares.mjs +14 -0
  202. package/dist/diagram/runtime/model-owner.mjs +11 -0
  203. package/dist/diagram/runtime/node-selected.mjs +25 -0
  204. package/dist/diagram/runtime/observable.mjs +205 -0
  205. package/dist/diagram/runtime/palette-drag.mjs +56 -0
  206. package/dist/diagram/runtime/port-hover.mjs +27 -0
  207. package/dist/diagram/runtime/port-registry.mjs +87 -0
  208. package/dist/diagram/runtime/resize-processor.mjs +207 -0
  209. package/dist/diagram/runtime/template-resolver.mjs +98 -0
  210. package/dist/diagram/runtime/touch-events-state.mjs +52 -0
  211. package/dist/diagram/utilities.mjs +27 -0
  212. package/dist/diagram-core/action-state-manager/action-state-manager.mjs +238 -0
  213. package/dist/diagram-core/batch-processor/batch-processor.mjs +144 -0
  214. package/dist/diagram-core/command-handler/command-handler.mjs +62 -0
  215. package/dist/diagram-core/command-handler/commands/add-to-group.mjs +32 -0
  216. package/dist/diagram-core/command-handler/commands/add-update-delete.mjs +196 -0
  217. package/dist/diagram-core/command-handler/commands/centering.mjs +73 -0
  218. package/dist/diagram-core/command-handler/commands/copy-paste.mjs +223 -0
  219. package/dist/diagram-core/command-handler/commands/cut.mjs +9 -0
  220. package/dist/diagram-core/command-handler/commands/delete-selection.mjs +32 -0
  221. package/dist/diagram-core/command-handler/commands/detach-on-node-delete.mjs +77 -0
  222. package/dist/diagram-core/command-handler/commands/highlight-group.mjs +45 -0
  223. package/dist/diagram-core/command-handler/commands/index.mjs +88 -0
  224. package/dist/diagram-core/command-handler/commands/init.mjs +11 -0
  225. package/dist/diagram-core/command-handler/commands/linking/cancel-linking.mjs +26 -0
  226. package/dist/diagram-core/command-handler/commands/linking/finish-linking-to-position.mjs +33 -0
  227. package/dist/diagram-core/command-handler/commands/linking/finish-linking.mjs +108 -0
  228. package/dist/diagram-core/command-handler/commands/linking/finish-relinking.mjs +91 -0
  229. package/dist/diagram-core/command-handler/commands/linking/linking-gesture.mjs +13 -0
  230. package/dist/diagram-core/command-handler/commands/linking/move-temporary-edge.mjs +98 -0
  231. package/dist/diagram-core/command-handler/commands/linking/start-linking-from-position.mjs +23 -0
  232. package/dist/diagram-core/command-handler/commands/linking/start-linking.mjs +47 -0
  233. package/dist/diagram-core/command-handler/commands/linking/start-relinking.mjs +51 -0
  234. package/dist/diagram-core/command-handler/commands/linking/utils.mjs +103 -0
  235. package/dist/diagram-core/command-handler/commands/move-nodes-lifecycle.mjs +14 -0
  236. package/dist/diagram-core/command-handler/commands/move-viewport.mjs +48 -0
  237. package/dist/diagram-core/command-handler/commands/move.mjs +90 -0
  238. package/dist/diagram-core/command-handler/commands/remove-from-group.mjs +22 -0
  239. package/dist/diagram-core/command-handler/commands/resize-node-lifecycle.mjs +14 -0
  240. package/dist/diagram-core/command-handler/commands/resize-node.mjs +214 -0
  241. package/dist/diagram-core/command-handler/commands/rotate-node-lifecycle.mjs +14 -0
  242. package/dist/diagram-core/command-handler/commands/rotate-node.mjs +53 -0
  243. package/dist/diagram-core/command-handler/commands/selection.mjs +69 -0
  244. package/dist/diagram-core/command-handler/commands/z-order.mjs +125 -0
  245. package/dist/diagram-core/command-handler/commands/zoom-to-fit.mjs +118 -0
  246. package/dist/diagram-core/command-handler/commands/zoom.mjs +26 -0
  247. package/dist/diagram-core/edge-routing-manager/edge-routing-manager.mjs +253 -0
  248. package/dist/diagram-core/edge-routing-manager/resolve-label-position.mjs +13 -0
  249. package/dist/diagram-core/edge-routing-manager/routings/bezier/bezier-routing.mjs +73 -0
  250. package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-path.mjs +24 -0
  251. package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-point-at-distance.mjs +37 -0
  252. package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-point-on-path.mjs +33 -0
  253. package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-points.mjs +31 -0
  254. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-path.mjs +56 -0
  255. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-point-at-distance.mjs +12 -0
  256. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-point-on-path.mjs +38 -0
  257. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-points.mjs +26 -0
  258. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/orthogonal-routing.mjs +69 -0
  259. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/get-offset-point.mjs +14 -0
  260. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-bottom.mjs +104 -0
  261. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-left.mjs +91 -0
  262. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-right.mjs +88 -0
  263. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-top.mjs +168 -0
  264. package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints.mjs +23 -0
  265. package/dist/diagram-core/edge-routing-manager/routings/polyline/compute-polyline-point-at-distance.mjs +12 -0
  266. package/dist/diagram-core/edge-routing-manager/routings/polyline/compute-polyline-point-on-path.mjs +41 -0
  267. package/dist/diagram-core/edge-routing-manager/routings/polyline/polyline-routing.mjs +81 -0
  268. package/dist/diagram-core/edge-routing-manager/utils/linear-segment-utils.mjs +27 -0
  269. package/dist/diagram-core/edge-routing-manager/utils/normalize-distance.mjs +6 -0
  270. package/dist/diagram-core/event-manager/event-manager.mjs +164 -0
  271. package/dist/diagram-core/flow-config/default-flow-config.mjs +143 -0
  272. package/dist/diagram-core/flow-core.mjs +541 -0
  273. package/dist/diagram-core/input-events/handlers/box-selection/box-selection.handler.mjs +69 -0
  274. package/dist/diagram-core/input-events/handlers/cancel-interaction/cancel-interaction.handler.mjs +9 -0
  275. package/dist/diagram-core/input-events/handlers/copy/copy.handler.mjs +9 -0
  276. package/dist/diagram-core/input-events/handlers/cut/cut.handler.mjs +9 -0
  277. package/dist/diagram-core/input-events/handlers/delete-selection/delete-selection.handler.mjs +9 -0
  278. package/dist/diagram-core/input-events/handlers/event-handler.mjs +29 -0
  279. package/dist/diagram-core/input-events/handlers/keyboard-move-selection/keyboard-move-selection.handler.mjs +130 -0
  280. package/dist/diagram-core/input-events/handlers/keyboard-panning/keyboard-panning.handler.mjs +31 -0
  281. package/dist/diagram-core/input-events/handlers/linking/linking.handler.mjs +77 -0
  282. package/dist/diagram-core/input-events/handlers/movable-selection.mjs +26 -0
  283. package/dist/diagram-core/input-events/handlers/palette-drop/palette-drop.handler.mjs +20 -0
  284. package/dist/diagram-core/input-events/handlers/panning/panning-handler-factory.mjs +8 -0
  285. package/dist/diagram-core/input-events/handlers/panning/panning.handler.mjs +41 -0
  286. package/dist/diagram-core/input-events/handlers/panning/virtualized-panning.handler.mjs +77 -0
  287. package/dist/diagram-core/input-events/handlers/paste/paste.handler.mjs +17 -0
  288. package/dist/diagram-core/input-events/handlers/pointer-move-selection/pointer-move-selection.handler.mjs +220 -0
  289. package/dist/diagram-core/input-events/handlers/redo/redo.handler.mjs +14 -0
  290. package/dist/diagram-core/input-events/handlers/relinking/relinking.handler.mjs +62 -0
  291. package/dist/diagram-core/input-events/handlers/resize/resize.handler.mjs +174 -0
  292. package/dist/diagram-core/input-events/handlers/rotate/rotate.handler.mjs +107 -0
  293. package/dist/diagram-core/input-events/handlers/select/select.handler.mjs +42 -0
  294. package/dist/diagram-core/input-events/handlers/select-all/select-all.handler.mjs +10 -0
  295. package/dist/diagram-core/input-events/handlers/undo/undo.handler.mjs +14 -0
  296. package/dist/diagram-core/input-events/handlers/wheel-panning/wheel-panning.handler.mjs +25 -0
  297. package/dist/diagram-core/input-events/handlers/zooming/zooming.handler.mjs +28 -0
  298. package/dist/diagram-core/input-events/input-events.router.mjs +75 -0
  299. package/dist/diagram-core/interaction-coordinator/interaction-coordinator.mjs +75 -0
  300. package/dist/diagram-core/label-batch-processor/label-batch-processor.mjs +19 -0
  301. package/dist/diagram-core/math/angle-between-points/angle-between-points.mjs +5 -0
  302. package/dist/diagram-core/math/angle-to-side/angle-to-side.mjs +27 -0
  303. package/dist/diagram-core/math/calculate-edge-panning-force/calculate-edge-panning-force.mjs +34 -0
  304. package/dist/diagram-core/math/clamp/clamp.mjs +5 -0
  305. package/dist/diagram-core/math/distance-between-points/distance-between-points.mjs +5 -0
  306. package/dist/diagram-core/math/ng-diagram-math.mjs +25 -0
  307. package/dist/diagram-core/math/normalize-angle/normalize-angle.mjs +5 -0
  308. package/dist/diagram-core/math/snap-angle/snap-angle.mjs +43 -0
  309. package/dist/diagram-core/math/snap-number/snap-number.mjs +3 -0
  310. package/dist/diagram-core/math/snap-point/snap-point.mjs +8 -0
  311. package/dist/diagram-core/math/subtract-points/subtract-points.mjs +5 -0
  312. package/dist/diagram-core/measurement-tracker/measurement-tracker.mjs +182 -0
  313. package/dist/diagram-core/middleware-manager/middleware-executor.mjs +246 -0
  314. package/dist/diagram-core/middleware-manager/middleware-manager.mjs +93 -0
  315. package/dist/diagram-core/middleware-manager/middlewares/edges-routing/edges-routing.mjs +149 -0
  316. package/dist/diagram-core/middleware-manager/middlewares/edges-routing/get-edge-points.mjs +93 -0
  317. package/dist/diagram-core/middleware-manager/middlewares/edges-routing/get-source-target-positions.mjs +90 -0
  318. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/clipboard-paste.emitter.mjs +34 -0
  319. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/diagram-init.emitter.mjs +190 -0
  320. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-draw-ended.emitter.mjs +51 -0
  321. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-drawn.emitter.mjs +35 -0
  322. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-relink.emitter.mjs +58 -0
  323. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/group-membership-changed.emitter.mjs +49 -0
  324. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-drag-lifecycle.emitter.mjs +54 -0
  325. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-resize-lifecycle.emitter.mjs +44 -0
  326. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-rotate-lifecycle.emitter.mjs +44 -0
  327. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/palette-item-dropped.emitter.mjs +26 -0
  328. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-changed.emitter.mjs +61 -0
  329. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-gesture-ended.emitter.mjs +32 -0
  330. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-moved.emitter.mjs +57 -0
  331. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-removed.emitter.mjs +40 -0
  332. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-rotated.emitter.mjs +33 -0
  333. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/size-changed.emitter.mjs +33 -0
  334. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/viewport-changed.emitter.mjs +19 -0
  335. package/dist/diagram-core/middleware-manager/middlewares/event-emitter/event-emitter.middleware.mjs +69 -0
  336. package/dist/diagram-core/middleware-manager/middlewares/hidden-computation/hidden-computation.mjs +66 -0
  337. package/dist/diagram-core/middleware-manager/middlewares/internal-id-assignment/internal-id-assignment.mjs +24 -0
  338. package/dist/diagram-core/middleware-manager/middlewares/logger/logger.mjs +18 -0
  339. package/dist/diagram-core/middleware-manager/middlewares/measured-bounds-assignment/is-node-fully-measured.mjs +20 -0
  340. package/dist/diagram-core/middleware-manager/middlewares/measured-bounds-assignment/measured-bounds-assignment.mjs +59 -0
  341. package/dist/diagram-core/middleware-manager/middlewares/measurement-tracking/measurement-tracking.middleware.mjs +55 -0
  342. package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/assign-edges-z-index.mjs +12 -0
  343. package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/assign-node-z-index.mjs +61 -0
  344. package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/create-group-children-map.mjs +14 -0
  345. package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/initialize-z-index.mjs +30 -0
  346. package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/sort-children.mjs +36 -0
  347. package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/z-index-assignment.mjs +240 -0
  348. package/dist/diagram-core/middleware-manager/pass-settlement.mjs +68 -0
  349. package/dist/diagram-core/model-lookup/model-lookup.mjs +394 -0
  350. package/dist/diagram-core/port-batch-processor/port-batch-processor.mjs +20 -0
  351. package/dist/diagram-core/render-strategy/base-render-strategy.mjs +26 -0
  352. package/dist/diagram-core/render-strategy/direct/direct-render-strategy.mjs +33 -0
  353. package/dist/diagram-core/render-strategy/render-performance-logger.mjs +42 -0
  354. package/dist/diagram-core/render-strategy/virtualized/idle-render-scheduler.mjs +43 -0
  355. package/dist/diagram-core/render-strategy/virtualized/result-cache.mjs +63 -0
  356. package/dist/diagram-core/render-strategy/virtualized/viewport-utils.mjs +40 -0
  357. package/dist/diagram-core/render-strategy/virtualized/virtualized-render-strategy.mjs +91 -0
  358. package/dist/diagram-core/render-strategy/virtualized/visible-elements-resolver.mjs +120 -0
  359. package/dist/diagram-core/render-strategy/virtualized/zoom-tracker.mjs +38 -0
  360. package/dist/diagram-core/set.polyfill.mjs +24 -0
  361. package/dist/diagram-core/shortcut-manager/default-shortcuts.mjs +99 -0
  362. package/dist/diagram-core/shortcut-manager/shortcut-manager.mjs +140 -0
  363. package/dist/diagram-core/spatial-hash/collision-detection.mjs +74 -0
  364. package/dist/diagram-core/spatial-hash/spatial-hash.mjs +161 -0
  365. package/dist/diagram-core/spatial-hash/utils.mjs +92 -0
  366. package/dist/diagram-core/transaction-manager/transaction-context.mjs +40 -0
  367. package/dist/diagram-core/transaction-manager/transaction-manager.mjs +94 -0
  368. package/dist/diagram-core/transaction-manager/transaction.mjs +179 -0
  369. package/dist/diagram-core/types/edge.interface.mjs +3 -0
  370. package/dist/diagram-core/types/node.interface.mjs +3 -0
  371. package/dist/diagram-core/types/utils.mjs +3 -0
  372. package/dist/diagram-core/updater/init-updater/init-state.mjs +356 -0
  373. package/dist/diagram-core/updater/init-updater/init-updater.mjs +275 -0
  374. package/dist/diagram-core/updater/init-updater/late-arrival-queue.mjs +71 -0
  375. package/dist/diagram-core/updater/init-updater/stability-detector.mjs +63 -0
  376. package/dist/diagram-core/updater/internal-updater/internal-updater.mjs +166 -0
  377. package/dist/diagram-core/utils/change-generation.mjs +13 -0
  378. package/dist/diagram-core/utils/compute-floating-edge-side.mjs +35 -0
  379. package/dist/diagram-core/utils/constants.mjs +3 -0
  380. package/dist/diagram-core/utils/dangling-edges.mjs +89 -0
  381. package/dist/diagram-core/utils/deep-merge.mjs +22 -0
  382. package/dist/diagram-core/utils/dimensions.mjs +52 -0
  383. package/dist/diagram-core/utils/get-node-border-intersection.mjs +99 -0
  384. package/dist/diagram-core/utils/get-port-flow-position.mjs +55 -0
  385. package/dist/diagram-core/utils/group-size.mjs +32 -0
  386. package/dist/diagram-core/utils/is-group.mjs +5 -0
  387. package/dist/diagram-core/utils/measurement-validation.mjs +11 -0
  388. package/dist/diagram-core/utils/object-properties.mjs +22 -0
  389. package/dist/diagram-core/utils/rects-points-sizes.mjs +148 -0
  390. package/dist/diagram-core/utils/relinking.mjs +6 -0
  391. package/dist/diagram-core/utils/semaphore.mjs +43 -0
  392. package/dist/diagram-core/utils/snap-node-position.mjs +11 -0
  393. package/dist/diagram-core/utils/sort-nodes-by-z-index.mjs +22 -0
  394. package/dist/diagram-core/visibility/effective-visibility.mjs +28 -0
  395. package/dist/diagram-core/visibility/template-visibility-registry.mjs +87 -0
  396. package/dist/index.d.mts +13296 -3667
  397. package/dist/index.d.ts +13296 -3667
  398. package/dist/index.mjs +34 -0
  399. package/dist/internal/content-size.mjs +14 -0
  400. package/dist/internal/custom-boolean-converter.mjs +18 -0
  401. package/dist/internal/flow-ui-rdf-element.mjs +57 -5
  402. package/dist/internal/form.mjs +1 -1
  403. package/dist/internal/on-off-converter.mjs +21 -0
  404. package/dist/package.json.mjs +1 -1
  405. package/dist/utilities/register-components.mjs +77 -142
  406. package/dist/vscode.html-custom-data.json +426 -156
  407. package/package.json +35 -40
  408. package/themes/dark.css +7 -5
  409. package/themes/dark.styles.js +7 -5
  410. package/themes/light.css +7 -5
  411. package/themes/light.styles.js +7 -5
@@ -12,6 +12,12 @@ import { FormControlController } from '../../internal/form.mjs';
12
12
  import { clamp } from '../../internal/math.mjs';
13
13
  import { watch } from '../../internal/watch.mjs';
14
14
  import { LocalizeController } from '../../utilities/localize.mjs';
15
+ import FlowUiDropdown from '../dropdown/dropdown.component.mjs';
16
+ import FlowUiInput from '../input/input.component.mjs';
17
+ import FlowUiButton from '../button/button.component.mjs';
18
+ import FlowUiButtonGroup from '../button-group/button-group.component.mjs';
19
+ import FlowUiIcon from '../icon/icon.component.mjs';
20
+ import FlowUiVisuallyHidden from '../visually-hidden/visually-hidden.component.mjs';
15
21
  import styles from './color-picker.styles.mjs';
16
22
 
17
23
  var __defProp = Object.defineProperty;
@@ -574,10 +580,10 @@ class FlowUiColorPicker extends FlowRdfFormControl {
574
580
  tabindex=${this.inline ? "0" : "-1"}
575
581
  >
576
582
  ${this.inline ? html`
577
- <flow-ui-visually-hidden id="label">
578
- <slot name="label">${this.label}</slot>
579
- </flow-ui-visually-hidden>
580
- ` : null}
583
+ <flow-ui-visually-hidden id="label">
584
+ <slot name="label">${this.label}</slot>
585
+ </flow-ui-visually-hidden>
586
+ ` : null}
581
587
 
582
588
  <div
583
589
  part="grid"
@@ -630,39 +636,39 @@ class FlowUiColorPicker extends FlowRdfFormControl {
630
636
  </div>
631
637
 
632
638
  ${this.opacity ? html`
633
- <div
634
- part="slider opacity-slider"
635
- class="color-picker__alpha color-picker__slider color-picker__transparent-bg"
636
- @pointerdown="${this.handleAlphaDrag}"
637
- @touchmove=${this.handleTouchMove}
638
- >
639
639
  <div
640
- class="color-picker__alpha-gradient"
641
- style=${styleMap({
640
+ part="slider opacity-slider"
641
+ class="color-picker__alpha color-picker__slider color-picker__transparent-bg"
642
+ @pointerdown="${this.handleAlphaDrag}"
643
+ @touchmove=${this.handleTouchMove}
644
+ >
645
+ <div
646
+ class="color-picker__alpha-gradient"
647
+ style=${styleMap({
642
648
  backgroundImage: `linear-gradient(
643
649
  to right,
644
650
  ${this.getHexString(this.hue, this.saturation, this.brightness, 0)} 0%
645
651
  ${this.getHexString(this.hue, this.saturation, this.brightness, 100)} 100%
646
652
  )`
647
653
  })}
648
- ></div>
649
- <span
650
- part="slider-handle opacity-slider-handle"
651
- class="color-picker__slider-handle"
652
- style=${styleMap({
654
+ ></div>
655
+ <span
656
+ part="slider-handle opacity-slider-handle"
657
+ class="color-picker__slider-handle"
658
+ style=${styleMap({
653
659
  left: `${this.alpha}%`
654
660
  })}
655
- role="slider"
656
- aria-label="alpha"
657
- aria-orientation="horizontal"
658
- aria-valuemin="0"
659
- aria-valuemax="100"
660
- aria-valuenow=${Math.round(this.alpha)}
661
- tabindex=${ifDefined(this.disabled ? void 0 : "0")}
662
- @keydown=${this.handleAlphaKeyDown}
663
- ></span>
664
- </div>
665
- ` : ""}
661
+ role="slider"
662
+ aria-label="alpha"
663
+ aria-orientation="horizontal"
664
+ aria-valuemin="0"
665
+ aria-valuemax="100"
666
+ aria-valuenow=${Math.round(this.alpha)}
667
+ tabindex=${ifDefined(this.disabled ? void 0 : "0")}
668
+ @keydown=${this.handleAlphaKeyDown}
669
+ ></span>
670
+ </div>
671
+ ` : ""}
666
672
  </div>
667
673
 
668
674
  <button
@@ -700,74 +706,74 @@ class FlowUiColorPicker extends FlowRdfFormControl {
700
706
 
701
707
  <flow-ui-button-group>
702
708
  ${!this.noFormatToggle ? html`
703
- <flow-ui-button
704
- part="format-button"
705
- aria-label=${this.localize.term("toggleColorFormat")}
706
- exportparts="
709
+ <flow-ui-button
710
+ part="format-button"
711
+ aria-label=${this.localize.term("toggleColorFormat")}
712
+ exportparts="
707
713
  base:format-button__base,
708
714
  prefix:format-button__prefix,
709
715
  label:format-button__label,
710
716
  suffix:format-button__suffix,
711
717
  caret:format-button__caret
712
718
  "
713
- @click=${this.handleFormatToggle}
714
- @flow-ui-blur=${this.stopNestedEventPropagation}
715
- @flow-ui-focus=${this.stopNestedEventPropagation}
716
- >
717
- ${this.setLetterCase(this.format)}
718
- </flow-ui-button>
719
- ` : ""}
719
+ @click=${this.handleFormatToggle}
720
+ @flow-ui-blur=${this.stopNestedEventPropagation}
721
+ @flow-ui-focus=${this.stopNestedEventPropagation}
722
+ >
723
+ ${this.setLetterCase(this.format)}
724
+ </flow-ui-button>
725
+ ` : ""}
720
726
  ${hasEyeDropper ? html`
721
- <flow-ui-button
722
- part="eye-dropper-button"
723
- exportparts="
727
+ <flow-ui-button
728
+ part="eye-dropper-button"
729
+ exportparts="
724
730
  base:eye-dropper-button__base,
725
731
  prefix:eye-dropper-button__prefix,
726
732
  label:eye-dropper-button__label,
727
733
  suffix:eye-dropper-button__suffix,
728
734
  caret:eye-dropper-button__caret
729
735
  "
730
- @click=${this.handleEyeDropper}
731
- @flow-ui-blur=${this.stopNestedEventPropagation}
732
- @flow-ui-focus=${this.stopNestedEventPropagation}
733
- >
734
- <flow-ui-icon
735
- library="system"
736
- name="eyedropper"
737
- label=${this.localize.term("selectAColorFromTheScreen")}
738
- ></flow-ui-icon>
739
- </flow-ui-button>
740
- ` : ""}
736
+ @click=${this.handleEyeDropper}
737
+ @flow-ui-blur=${this.stopNestedEventPropagation}
738
+ @flow-ui-focus=${this.stopNestedEventPropagation}
739
+ >
740
+ <flow-ui-icon
741
+ library="system"
742
+ name="eyedropper"
743
+ label=${this.localize.term("selectAColorFromTheScreen")}
744
+ ></flow-ui-icon>
745
+ </flow-ui-button>
746
+ ` : ""}
741
747
  </flow-ui-button-group>
742
748
  </div>
743
749
 
744
750
  ${swatches.length > 0 ? html`
745
- <div part="swatches" class="color-picker__swatches">
746
- ${swatches.map((swatch) => {
751
+ <div part="swatches" class="color-picker__swatches">
752
+ ${swatches.map((swatch) => {
747
753
  const parsedColor = this.parseColor(swatch);
748
754
  if (!parsedColor) {
749
755
  console.error(`Unable to parse swatch color: "${swatch}"`, this);
750
756
  return "";
751
757
  }
752
758
  return html`
753
- <div
754
- part="swatch"
755
- class="color-picker__swatch color-picker__transparent-bg"
756
- tabindex=${ifDefined(this.disabled ? void 0 : "0")}
757
- role="button"
758
- aria-label=${swatch}
759
- @click=${() => this.selectSwatch(swatch)}
760
- @keydown=${(event) => !this.disabled && event.key === "Enter" && this.setColor(parsedColor.hexa)}
761
- >
762
759
  <div
763
- class="color-picker__swatch-color"
764
- style=${styleMap({ backgroundColor: parsedColor.hexa })}
765
- ></div>
766
- </div>
767
- `;
760
+ part="swatch"
761
+ class="color-picker__swatch color-picker__transparent-bg"
762
+ tabindex=${ifDefined(this.disabled ? void 0 : "0")}
763
+ role="button"
764
+ aria-label=${swatch}
765
+ @click=${() => this.selectSwatch(swatch)}
766
+ @keydown=${(event) => event.key === "Enter" && this.selectSwatch(swatch)}
767
+ >
768
+ <div
769
+ class="color-picker__swatch-color"
770
+ style=${styleMap({ backgroundColor: parsedColor.hexa })}
771
+ ></div>
772
+ </div>
773
+ `;
768
774
  })}
769
- </div>
770
- ` : ""}
775
+ </div>
776
+ ` : ""}
771
777
  </div>
772
778
  `;
773
779
  if (this.inline) {
@@ -812,7 +818,9 @@ class FlowUiColorPicker extends FlowRdfFormControl {
812
818
  `;
813
819
  }
814
820
  }
821
+ FlowUiColorPicker.tagName = "flow-ui-color-picker";
815
822
  FlowUiColorPicker.styles = styles;
823
+ FlowUiColorPicker.dependencies = [FlowUiButton, FlowUiButtonGroup, FlowUiDropdown, FlowUiIcon, FlowUiInput, FlowUiVisuallyHidden];
816
824
  __decorateClass([
817
825
  query('[part~="base"]')
818
826
  ], FlowUiColorPicker.prototype, "base", 2);
@@ -38,7 +38,8 @@ const styles = css`
38
38
  .color-picker__grid {
39
39
  position: relative;
40
40
  height: var(--grid-height);
41
- background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),
41
+ background-image:
42
+ linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),
42
43
  linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
43
44
  border-top-left-radius: var(--flow-ui-border-radius-medium);
44
45
  border-top-right-radius: var(--flow-ui-border-radius-medium);
@@ -240,7 +241,8 @@ const styles = css`
240
241
  }
241
242
 
242
243
  .color-picker__transparent-bg {
243
- background-image: linear-gradient(45deg, var(--flow-ui-color-neutral-300) 25%, transparent 25%),
244
+ background-image:
245
+ linear-gradient(45deg, var(--flow-ui-color-neutral-300) 25%, transparent 25%),
244
246
  linear-gradient(45deg, transparent 75%, var(--flow-ui-color-neutral-300) 75%),
245
247
  linear-gradient(45deg, transparent 75%, var(--flow-ui-color-neutral-300) 75%),
246
248
  linear-gradient(45deg, var(--flow-ui-color-neutral-300) 25%, transparent 25%);
@@ -7,6 +7,13 @@ import { boolean } from '../../internal/boolean.mjs';
7
7
  import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
8
8
  import { FormControlController, validValidityState, customErrorValidityState } from '../../internal/form.mjs';
9
9
  import { isNumber, isNumeric } from '../../internal/type-checks.mjs';
10
+ import FlowUiColorPicker from '../color-picker/color-picker.component.mjs';
11
+ import FlowUiToolButtonGroup from '../tool-button-group/tool-button-group.component.mjs';
12
+ import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
13
+ import FlowUiInput from '../input/input.component.mjs';
14
+ import FlowUiOption from '../option/option.component.mjs';
15
+ import FlowUiSelect from '../select/select.component.mjs';
16
+ import FlowUiToolButton from '../tool-button/tool-button.component.mjs';
10
17
  import styles from './color-stop.styles.mjs';
11
18
 
12
19
  var __defProp = Object.defineProperty;
@@ -156,8 +163,8 @@ class FlowUiColorStop extends FlowRdfFormControl {
156
163
  size=${this.size}
157
164
  >
158
165
  ${options.units && html`
159
- <span slot="suffix">${options.units}</span>
160
- `}
166
+ <span slot="suffix">${options.units}</span>
167
+ `}
161
168
  </flow-ui-input>
162
169
  `;
163
170
  }
@@ -248,7 +255,17 @@ class FlowUiColorStop extends FlowRdfFormControl {
248
255
  `;
249
256
  }
250
257
  }
258
+ FlowUiColorStop.tagName = "flow-ui-color-stop";
251
259
  FlowUiColorStop.styles = styles;
260
+ FlowUiColorStop.dependencies = [
261
+ FlowUiColorPicker,
262
+ FlowUiIconButton,
263
+ FlowUiInput,
264
+ FlowUiOption,
265
+ FlowUiSelect,
266
+ FlowUiToolButton,
267
+ FlowUiToolButtonGroup
268
+ ];
252
269
  __decorateClass([
253
270
  query(".color-stop__input")
254
271
  ], FlowUiColorStop.prototype, "input", 2);
@@ -15,6 +15,10 @@ import { isStringFull } from '../../internal/type-checks.mjs';
15
15
  import { watch } from '../../internal/watch.mjs';
16
16
  import { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.mjs';
17
17
  import { LocalizeController } from '../../utilities/localize.mjs';
18
+ import FlowUiCalendar from '../calendar/calendar.component.mjs';
19
+ import FlowUiPopup from '../popup/popup.component.mjs';
20
+ import FlowUiDivider from '../divider/divider.component.mjs';
21
+ import FlowUiIcon from '../icon/icon.component.mjs';
18
22
  import styles from './date-time-picker.styles.mjs';
19
23
 
20
24
  var __defProp = Object.defineProperty;
@@ -486,20 +490,20 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
486
490
  />
487
491
 
488
492
  ${hasClearIcon ? html`
489
- <button
490
- part="clear-button"
491
- class="datepicker__clear"
492
- type="button"
493
- aria-label=${this.localize.term("clearEntry")}
494
- @mousedown=${this.handleClearMouseDown}
495
- @click=${this.handleClearClick}
496
- tabindex="-1"
497
- >
498
- <slot name="clear-icon">
499
- <flow-ui-icon name="x-circle-fill" library="system"></flow-ui-icon>
500
- </slot>
501
- </button>
502
- ` : ""}
493
+ <button
494
+ part="clear-button"
495
+ class="datepicker__clear"
496
+ type="button"
497
+ aria-label=${this.localize.term("clearEntry")}
498
+ @mousedown=${this.handleClearMouseDown}
499
+ @click=${this.handleClearClick}
500
+ tabindex="-1"
501
+ >
502
+ <slot name="clear-icon">
503
+ <flow-ui-icon name="x-circle-fill" library="system"></flow-ui-icon>
504
+ </slot>
505
+ </button>
506
+ ` : ""}
503
507
 
504
508
  <slot name="mode-icon" part="mode-icon" class="datepicker__mode-icon">
505
509
  <flow-ui-icon
@@ -511,21 +515,21 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
511
515
 
512
516
  <div part="calendar-container" class="datepicker__calendar-container" tabindex="-1">
513
517
  ${this.open ? html`
514
- <flow-ui-calendar
515
- value=${this.value}
516
- display-mode=${this.displayMode}
517
- ?range=${this.range}
518
- min=${ifDefined(this.min)}
519
- max=${ifDefined(this.max)}
520
- max-range=${ifDefined(this.maxRange)}
521
- size=${this.size}
522
- months=${this.months}
523
- timezone=${ifDefined(this.timezone)}
524
- locale=${ifDefined(this.locale)}
525
- @flow-ui-input=${this.handleCalendarInput}
526
- @flow-ui-change=${this.handleCalendarChange}
527
- ></flow-ui-calendar>
528
- ` : nothing}
518
+ <flow-ui-calendar
519
+ value=${this.value}
520
+ display-mode=${this.displayMode}
521
+ ?range=${this.range}
522
+ min=${ifDefined(this.min)}
523
+ max=${ifDefined(this.max)}
524
+ max-range=${ifDefined(this.maxRange)}
525
+ size=${this.size}
526
+ months=${this.months}
527
+ timezone=${ifDefined(this.timezone)}
528
+ locale=${ifDefined(this.locale)}
529
+ @flow-ui-input=${this.handleCalendarInput}
530
+ @flow-ui-change=${this.handleCalendarChange}
531
+ ></flow-ui-calendar>
532
+ ` : nothing}
529
533
  </div>
530
534
  </flow-ui-popup>
531
535
  </div>
@@ -535,7 +539,9 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
535
539
  `;
536
540
  }
537
541
  }
542
+ FlowUiDateTimePicker.tagName = "flow-ui-date-time-picker";
538
543
  FlowUiDateTimePicker.styles = styles;
544
+ FlowUiDateTimePicker.dependencies = [FlowUiCalendar, FlowUiDivider, FlowUiIcon, FlowUiPopup];
539
545
  __decorateClass([
540
546
  query(".datepicker")
541
547
  ], FlowUiDateTimePicker.prototype, "popup", 2);
@@ -8,6 +8,7 @@ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
8
8
  import { watch } from '../../internal/watch.mjs';
9
9
  import { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.mjs';
10
10
  import { LocalizeController } from '../../utilities/localize.mjs';
11
+ import FlowUiIcon from '../icon/icon.component.mjs';
11
12
  import styles from './details.styles.mjs';
12
13
 
13
14
  var __defProp = Object.defineProperty;
@@ -151,7 +152,9 @@ class FlowUiDetails extends FlowRdfElement {
151
152
  `;
152
153
  }
153
154
  }
155
+ FlowUiDetails.tagName = "flow-ui-details";
154
156
  FlowUiDetails.styles = styles;
157
+ FlowUiDetails.dependencies = [FlowUiIcon];
155
158
  __decorateClass([
156
159
  query(".details")
157
160
  ], FlowUiDetails.prototype, "details", 2);
@@ -0,0 +1,44 @@
1
+ import { css } from 'lit';
2
+
3
+ const panelStyles = css`
4
+ :host([position]) {
5
+ position: absolute;
6
+ z-index: 10;
7
+ pointer-events: auto;
8
+ }
9
+
10
+ :host([position='bottom-right']) {
11
+ bottom: var(--flow-ui-diagram-minimap-margin);
12
+ right: var(--flow-ui-diagram-minimap-margin);
13
+ }
14
+
15
+ :host([position='bottom-left']) {
16
+ bottom: var(--flow-ui-diagram-minimap-margin);
17
+ left: var(--flow-ui-diagram-minimap-margin);
18
+ }
19
+
20
+ :host([position='top-right']) {
21
+ top: var(--flow-ui-diagram-minimap-margin);
22
+ right: var(--flow-ui-diagram-minimap-margin);
23
+ }
24
+
25
+ :host([position='top-left']) {
26
+ top: var(--flow-ui-diagram-minimap-margin);
27
+ left: var(--flow-ui-diagram-minimap-margin);
28
+ }
29
+
30
+ .panel {
31
+ overflow: hidden;
32
+ box-sizing: border-box;
33
+ border-radius: var(--flow-ui-diagram-minimap-border-radius);
34
+ padding: var(--flow-ui-diagram-minimap-padding);
35
+ background-color: var(--flow-ui-diagram-minimap-background);
36
+ box-shadow: 0 8px 16px -4px var(--flow-ui-diagram-minimap-shadow-color);
37
+ border: 1px solid var(--flow-ui-diagram-minimap-border-color);
38
+ display: flex;
39
+ flex-direction: column;
40
+ gap: var(--flow-ui-diagram-minimap-padding);
41
+ }
42
+ `;
43
+
44
+ export { panelStyles as default };
@@ -0,0 +1,148 @@
1
+ import { css } from 'lit';
2
+
3
+ const diagramTokenDeclarations = css`
4
+ /* Semantic colors */
5
+ --flow-ui-diagram-accent-color: var(--flow-ui-color-primary-500);
6
+ --flow-ui-diagram-accent-color-subtle: color-mix(in srgb, var(--flow-ui-color-primary-500) 40%, transparent);
7
+ --flow-ui-diagram-text-color: var(--flow-ui-color-text);
8
+ --flow-ui-diagram-shadow-color: rgb(0 0 0 / 20%);
9
+ --flow-ui-diagram-ui-background-color: var(--flow-ui-color-background);
10
+ --flow-ui-diagram-ui-border-color: var(--flow-ui-color-neutral-300);
11
+ --flow-ui-diagram-transform-box-color: var(--flow-ui-color-primary-600);
12
+
13
+ /* Diagram */
14
+ --flow-ui-diagram-background-color: var(--flow-ui-color-neutral-50);
15
+
16
+ /* Nodes */
17
+ --flow-ui-diagram-node-background-color: var(--flow-ui-color-background);
18
+ --flow-ui-diagram-node-color: var(--flow-ui-diagram-text-color);
19
+ --flow-ui-diagram-node-border-color: var(--flow-ui-color-neutral-400);
20
+ --flow-ui-diagram-node-border-color-hover: var(--flow-ui-diagram-accent-color);
21
+ --flow-ui-diagram-node-border-radius: var(--flow-ui-border-radius-x-large, 0.75rem);
22
+ --flow-ui-diagram-node-border-size: 0.0625rem;
23
+ --flow-ui-diagram-node-padding: 0.5rem;
24
+ --flow-ui-diagram-selected-node-box-shadow: 0 0 0 0.25rem var(--flow-ui-diagram-accent-color-subtle);
25
+
26
+ /* Groups */
27
+ --flow-ui-diagram-group-border-color: var(--flow-ui-color-neutral-500);
28
+ --flow-ui-diagram-group-border-color-hover: var(--flow-ui-color-neutral-600);
29
+ --flow-ui-diagram-group-border-color-highlight: var(--flow-ui-diagram-accent-color);
30
+ --flow-ui-diagram-group-box-shadow-color-highlight: color-mix(
31
+ in srgb,
32
+ var(--flow-ui-color-primary-500) 50%,
33
+ transparent
34
+ );
35
+ --flow-ui-diagram-group-background-color-highlight: var(--flow-ui-color-neutral-300);
36
+ --flow-ui-diagram-group-border-radius: var(--flow-ui-diagram-node-border-radius);
37
+ --flow-ui-diagram-group-highlight-size: 1.25rem;
38
+
39
+ /* Rotate handle */
40
+ --flow-ui-diagram-rotate-handle-size: 2rem;
41
+ --flow-ui-diagram-rotate-handle-distance: 2rem;
42
+ --flow-ui-diagram-rotate-handle-background-color: var(--flow-ui-color-neutral-500);
43
+ --flow-ui-diagram-rotate-handle-background-color-hover: var(--flow-ui-color-neutral-600);
44
+ --flow-ui-diagram-rotate-handle-background-color-active: var(--flow-ui-color-neutral-700);
45
+ --flow-ui-diagram-rotate-handle-xy: calc(-0.7071 * var(--flow-ui-diagram-rotate-handle-distance));
46
+ --flow-ui-diagram-rotate-handle-top: var(--flow-ui-diagram-rotate-handle-xy);
47
+ --flow-ui-diagram-rotate-handle-right: var(--flow-ui-diagram-rotate-handle-xy);
48
+
49
+ /* Resize adornment */
50
+ --flow-ui-diagram-resize-line-border-width: 0.0625rem;
51
+ --flow-ui-diagram-resize-line-border-style: solid;
52
+ --flow-ui-diagram-resize-line-border-color: var(--flow-ui-diagram-transform-box-color);
53
+ --flow-ui-diagram-resize-handle-size: 0.375rem;
54
+ --flow-ui-diagram-resize-handle-background-color: var(--flow-ui-diagram-ui-background-color);
55
+ --flow-ui-diagram-resize-handle-border-size: 0.0625rem;
56
+ --flow-ui-diagram-resize-handle-border-style: solid;
57
+ --flow-ui-diagram-resize-handle-border-color: var(--flow-ui-diagram-transform-box-color);
58
+ --flow-ui-diagram-resize-handle-border-radius: 0;
59
+
60
+ /* Relink handles */
61
+ --flow-ui-diagram-relink-handle-size: 0.75rem;
62
+ --flow-ui-diagram-relink-handle-fill: var(--flow-ui-diagram-ui-background-color);
63
+ --flow-ui-diagram-relink-handle-fill-hover: var(--flow-ui-diagram-ui-background-color);
64
+ --flow-ui-diagram-relink-handle-fill-drag: var(--flow-ui-diagram-accent-color);
65
+ --flow-ui-diagram-relink-handle-stroke: var(--flow-ui-diagram-accent-color);
66
+ --flow-ui-diagram-relink-handle-stroke-hover: var(--flow-ui-diagram-accent-color);
67
+ --flow-ui-diagram-relink-handle-stroke-drag: var(--flow-ui-diagram-accent-color);
68
+ --flow-ui-diagram-relink-handle-stroke-width: 0.1875rem;
69
+ --flow-ui-diagram-relink-handle-halo-size: 0.25rem;
70
+ --flow-ui-diagram-relink-handle-halo-color-hover: var(--flow-ui-diagram-accent-color-subtle);
71
+ --flow-ui-diagram-relink-handle-halo-color-drag: var(--flow-ui-diagram-accent-color-subtle);
72
+
73
+ /* Ports */
74
+ --flow-ui-diagram-port-size: 0.25rem;
75
+ --flow-ui-diagram-port-background-color: var(--flow-ui-diagram-ui-background-color);
76
+ --flow-ui-diagram-port-border-color: var(--flow-ui-color-neutral-500);
77
+ --flow-ui-diagram-port-border-size: 0.125rem;
78
+ --flow-ui-diagram-port-border-radius: 50%;
79
+ --flow-ui-diagram-port-background-color-hover: var(--flow-ui-diagram-accent-color);
80
+ --flow-ui-diagram-port-border-color-hover: var(--flow-ui-diagram-ui-background-color);
81
+ --flow-ui-diagram-port-border-size-hover: 0.25rem;
82
+
83
+ /* Edges */
84
+ --flow-ui-diagram-edge-stroke: var(--flow-ui-color-neutral-500);
85
+ --flow-ui-diagram-edge-stroke-hover: var(--flow-ui-color-neutral-700);
86
+ --flow-ui-diagram-edge-stroke-selected: var(--flow-ui-diagram-accent-color);
87
+
88
+ /* Edge labels */
89
+ --flow-ui-diagram-edge-label-background-color: var(--flow-ui-diagram-ui-background-color);
90
+ --flow-ui-diagram-edge-label-color: var(--flow-ui-diagram-text-color);
91
+ --flow-ui-diagram-edge-label-border-color: var(--flow-ui-color-neutral-500);
92
+
93
+ /* Box selection */
94
+ --flow-ui-diagram-box-selection-border-color: var(--flow-ui-diagram-accent-color);
95
+ --flow-ui-diagram-box-selection-border-size: 1px;
96
+ --flow-ui-diagram-box-selection-background: color-mix(in srgb, var(--flow-ui-color-primary-500) 12%, transparent);
97
+
98
+ /* Background */
99
+ --flow-ui-diagram-background-dot-color: var(--flow-ui-color-neutral-400);
100
+ --flow-ui-diagram-background-line-minor-color: var(--flow-ui-color-neutral-300);
101
+ --flow-ui-diagram-background-line-major-color: var(--flow-ui-color-neutral-400);
102
+ --flow-ui-diagram-background-line-minor-width: 0.5;
103
+ --flow-ui-diagram-background-line-major-width: 1;
104
+ --flow-ui-diagram-background-line-minor-opacity: 0.5;
105
+ --flow-ui-diagram-background-line-major-opacity: 0.6;
106
+
107
+ /* Minimap */
108
+ --flow-ui-diagram-minimap-background: var(--flow-ui-diagram-ui-background-color);
109
+ --flow-ui-diagram-minimap-border-color: var(--flow-ui-diagram-ui-border-color);
110
+ --flow-ui-diagram-minimap-shadow-color: var(--flow-ui-diagram-shadow-color);
111
+ --flow-ui-diagram-minimap-border-radius: var(--flow-ui-border-radius-x-large, 1rem);
112
+ --flow-ui-diagram-minimap-padding: 0.5rem;
113
+ --flow-ui-diagram-minimap-margin: 1rem;
114
+ --flow-ui-diagram-minimap-node-color: var(--flow-ui-color-neutral-400);
115
+ --flow-ui-diagram-minimap-node-opacity: 0.8;
116
+ --flow-ui-diagram-minimap-diagram-bounds-opacity: 0.3;
117
+ --flow-ui-diagram-minimap-diagram-bounds-color: var(--flow-ui-color-neutral-400);
118
+ --flow-ui-diagram-minimap-viewport-stroke-color: var(--flow-ui-color-neutral-500);
119
+ --flow-ui-diagram-minimap-viewport-stroke-width: 1;
120
+
121
+ /* Navigation buttons and zoom controls */
122
+ --flow-ui-diagram-nav-button-color: var(--flow-ui-color-neutral-600);
123
+ --flow-ui-diagram-nav-button-size: 1.25rem;
124
+ --flow-ui-diagram-nav-button-border-radius: var(--flow-ui-border-radius-large, 0.5rem);
125
+ --flow-ui-diagram-nav-button-padding: 0.6875rem;
126
+ --flow-ui-diagram-nav-button-background-color-hover: color-mix(
127
+ in srgb,
128
+ var(--flow-ui-color-neutral-1000) 5%,
129
+ transparent
130
+ );
131
+ --flow-ui-diagram-nav-button-color-active: var(--flow-ui-diagram-accent-color);
132
+ --flow-ui-diagram-nav-button-color-disabled: var(--flow-ui-color-neutral-400);
133
+ --flow-ui-diagram-zoom-controls-font-size: var(--flow-ui-font-size-small, 0.8125rem);
134
+ --flow-ui-diagram-zoom-controls-font-weight: var(--flow-ui-font-weight-semibold, 500);
135
+ --flow-ui-diagram-zoom-controls-color: var(--flow-ui-diagram-nav-button-color);
136
+ `;
137
+ const tokens = css`
138
+ :host {
139
+ ${diagramTokenDeclarations}
140
+ }
141
+ `;
142
+ const standaloneDiagramTokens = css`
143
+ :host([data-diagram-tokens]) {
144
+ ${diagramTokenDeclarations}
145
+ }
146
+ `;
147
+
148
+ export { tokens as default, diagramTokenDeclarations, standaloneDiagramTokens };