@emuanalytics/flow-rdf-ui 4.2.0 → 4.3.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.
- package/README.md +58 -0
- package/THIRD_PARTY_NOTICES.md +220 -0
- package/dist/components/alert/alert.component.mjs +3 -0
- package/dist/components/animation/animation.component.mjs +1 -0
- package/dist/components/autocomplete/autocomplete.component.mjs +38 -14
- package/dist/components/avatar/avatar.component.mjs +3 -0
- package/dist/components/badge/badge.component.mjs +1 -0
- package/dist/components/base-control/base-control.component.mjs +3 -0
- package/dist/components/breadcrumb/breadcrumb.component.mjs +3 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.mjs +1 -0
- package/dist/components/busy-overlay/busy-overlay.component.mjs +3 -0
- package/dist/components/button/button.component.mjs +4 -0
- package/dist/components/button-group/button-group.component.mjs +1 -0
- package/dist/components/calendar/calendar.component.mjs +6 -0
- package/dist/components/card/card.component.mjs +1 -0
- package/dist/components/carousel/carousel.component.mjs +3 -0
- package/dist/components/carousel-item/carousel-item.component.mjs +1 -0
- package/dist/components/chart/chart.component.mjs +1 -0
- package/dist/components/chart/chartjs-plugins/luxon.adapter.mjs +78 -0
- package/dist/components/chart/chartjs-support.mjs +2 -0
- package/dist/components/checkbox/checkbox.component.mjs +3 -0
- package/dist/components/checkbox-group/checkbox-group.component.mjs +3 -0
- package/dist/components/color-mapper/color-mapper.component.mjs +21 -0
- package/dist/components/color-picker/color-picker.component.mjs +8 -0
- package/dist/components/color-stop/color-stop.component.mjs +17 -0
- package/dist/components/date-time-picker/date-time-picker.component.mjs +6 -0
- package/dist/components/details/details.component.mjs +3 -0
- package/dist/components/diagram/diagram-panel.styles.mjs +44 -0
- package/dist/components/diagram/diagram-tokens.styles.mjs +148 -0
- package/dist/components/diagram/diagram.component.mjs +355 -0
- package/dist/components/diagram/diagram.mjs +5 -0
- package/dist/components/diagram/diagram.styles.mjs +95 -0
- package/dist/components/diagram-background/diagram-background.component.mjs +163 -0
- package/dist/components/diagram-background/diagram-background.mjs +5 -0
- package/dist/components/diagram-background/diagram-background.styles.mjs +58 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.component.mjs +326 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.mjs +5 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.styles.mjs +147 -0
- package/dist/components/diagram-base-node/diagram-base-node.component.mjs +84 -0
- package/dist/components/diagram-base-node/diagram-base-node.mjs +5 -0
- package/dist/components/diagram-base-node/diagram-base-node.styles.mjs +37 -0
- package/dist/components/diagram-edge/diagram-edge.component.mjs +56 -0
- package/dist/components/diagram-edge/diagram-edge.mjs +5 -0
- package/dist/components/diagram-edge/diagram-edge.styles.mjs +37 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.component.mjs +202 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.mjs +5 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.styles.mjs +54 -0
- package/dist/components/diagram-marker/diagram-marker.component.mjs +84 -0
- package/dist/components/diagram-marker/diagram-marker.mjs +5 -0
- package/dist/components/diagram-marker/diagram-marker.styles.mjs +9 -0
- package/dist/components/diagram-minimap/diagram-minimap.component.mjs +298 -0
- package/dist/components/diagram-minimap/diagram-minimap.mjs +5 -0
- package/dist/components/diagram-minimap/diagram-minimap.styles.mjs +83 -0
- package/dist/components/diagram-node/diagram-node-template.styles.mjs +36 -0
- package/dist/components/diagram-node/diagram-node.component.mjs +183 -0
- package/dist/components/diagram-node/diagram-node.mjs +6 -0
- package/dist/components/diagram-node/diagram-node.styles.mjs +29 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.component.mjs +168 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.mjs +5 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.styles.mjs +20 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.component.mjs +245 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.mjs +6 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.styles.mjs +41 -0
- package/dist/components/diagram-port/diagram-port.component.mjs +273 -0
- package/dist/components/diagram-port/diagram-port.mjs +5 -0
- package/dist/components/diagram-port/diagram-port.styles.mjs +116 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.component.mjs +124 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.mjs +5 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.styles.mjs +136 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.component.mjs +125 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.mjs +5 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.styles.mjs +65 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.component.mjs +158 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.mjs +5 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.styles.mjs +66 -0
- package/dist/components/dialog/dialog.component.mjs +4 -0
- package/dist/components/divider/divider.component.mjs +1 -0
- package/dist/components/drawer/drawer.component.mjs +3 -0
- package/dist/components/dropdown/dropdown.component.mjs +2 -1
- package/dist/components/form-group/form-group.component.mjs +1 -0
- package/dist/components/gauge/gauge.component.mjs +6 -0
- package/dist/components/icon/icon.component.mjs +1 -0
- package/dist/components/icon/library.system.mjs +2 -0
- package/dist/components/icon-button/icon-button.component.mjs +5 -0
- package/dist/components/input/input.component.mjs +5 -0
- package/dist/components/list/list.component.mjs +1 -0
- package/dist/components/list-item/list-item.component.mjs +17 -0
- package/dist/components/map/map.component.mjs +3 -0
- package/dist/components/map/map.styles.mjs +10 -0
- package/dist/components/menu/menu.component.mjs +1 -0
- package/dist/components/menu-item/menu-item.component.mjs +3 -0
- package/dist/components/menu-label/menu-label.component.mjs +1 -0
- package/dist/components/mutation-observer/mutation-observer.component.mjs +1 -0
- package/dist/components/option/option.component.mjs +2 -1
- package/dist/components/panel/panel.component.mjs +85 -1
- package/dist/components/panel/panel.styles.mjs +29 -0
- package/dist/components/panel-header/panel-header.component.mjs +3 -0
- package/dist/components/popup/popup.component.mjs +1 -0
- package/dist/components/progress-bar/progress-bar.component.mjs +1 -0
- package/dist/components/progress-ring/progress-ring.component.mjs +1 -0
- package/dist/components/query-builder/query-builder.component.mjs +27 -0
- package/dist/components/radio/radio.component.mjs +3 -0
- package/dist/components/radio-group/radio-group.component.mjs +3 -0
- package/dist/components/range/range.component.mjs +9 -0
- package/dist/components/resize-observer/resize-observer.component.mjs +1 -0
- package/dist/components/scroll-view/scroll-view.component.mjs +1 -0
- package/dist/components/select/select.component.mjs +3 -5
- package/dist/components/split-view/split-view-layout-registry.mjs +44 -0
- package/dist/components/split-view/split-view-layout.mjs +607 -0
- package/dist/components/split-view/split-view.component.mjs +502 -468
- package/dist/components/split-view/split-view.styles.mjs +25 -0
- package/dist/components/split-view-divider/split-view-divider.component.mjs +2 -53
- package/dist/components/split-view-divider/split-view-divider.styles.mjs +28 -16
- package/dist/components/split-view-pane/split-view-pane.component.mjs +197 -18
- package/dist/components/split-view-pane/split-view-pane.styles.mjs +52 -0
- package/dist/components/split-view-toggle-button/split-view-toggle-button.component.mjs +5 -0
- package/dist/components/stepper/stepper.component.mjs +1 -0
- package/dist/components/stepper-panel/stepper-panel.component.mjs +1 -0
- package/dist/components/switch/switch.component.mjs +3 -0
- package/dist/components/tab/tab.component.mjs +4 -0
- package/dist/components/tab-group/tab-group.component.mjs +176 -6
- package/dist/components/tab-group/tab-group.styles.mjs +44 -0
- package/dist/components/tab-panel/tab-panel.component.mjs +1 -0
- package/dist/components/tag/tag.component.mjs +2 -1
- package/dist/components/textarea/textarea.component.mjs +1 -0
- package/dist/components/timer/ticker.mjs +7 -0
- package/dist/components/timer/timer.component.mjs +44 -3
- package/dist/components/timer/timer.styles.mjs +6 -2
- package/dist/components/tool-button/tool-button.component.mjs +4 -0
- package/dist/components/tool-button-group/tool-button-group.component.mjs +3 -0
- package/dist/components/tooltip/tooltip.component.mjs +3 -0
- package/dist/components/tree/tree.component.mjs +1 -0
- package/dist/components/tree-item/tree-item.component.mjs +5 -0
- package/dist/components/visually-hidden/visually-hidden.component.mjs +1 -0
- package/dist/custom-elements.json +11803 -5676
- package/dist/diagram/api/diagram-api-base.mjs +16 -0
- package/dist/diagram/api/diagram-api.mjs +399 -0
- package/dist/diagram/api/diagram-clipboard-api.mjs +52 -0
- package/dist/diagram/api/diagram-groups-api.mjs +46 -0
- package/dist/diagram/api/diagram-model-api.mjs +447 -0
- package/dist/diagram/api/diagram-nodes-api.mjs +61 -0
- package/dist/diagram/api/diagram-selection-api.mjs +56 -0
- package/dist/diagram/api/diagram-viewport-api.mjs +169 -0
- package/dist/diagram/api/emit-with-measurement-option.mjs +21 -0
- package/dist/diagram/input/box-selection-controller.mjs +104 -0
- package/dist/diagram/input/context-menu-controller.mjs +196 -0
- package/dist/diagram/input/cursor-position-tracker-controller.mjs +18 -0
- package/dist/diagram/input/input-controller.mjs +31 -0
- package/dist/diagram/input/keyboard-actions/moving-action.mjs +27 -0
- package/dist/diagram/input/keyboard-actions/panning-action.mjs +27 -0
- package/dist/diagram/input/keyboard-actions/paste-action.mjs +17 -0
- package/dist/diagram/input/keyboard-actions/zoom-action.mjs +30 -0
- package/dist/diagram/input/keyboard-inputs-controller.mjs +121 -0
- package/dist/diagram/input/linking-controller.mjs +127 -0
- package/dist/diagram/input/linking-events.mjs +61 -0
- package/dist/diagram/input/manual-linking.mjs +101 -0
- package/dist/diagram/input/mobile-box-selection-controller.mjs +133 -0
- package/dist/diagram/input/mobile-panning-controller.mjs +114 -0
- package/dist/diagram/input/mobile-zooming-controller.mjs +110 -0
- package/dist/diagram/input/object-selection-controller.mjs +152 -0
- package/dist/diagram/input/palette-drop-controller.mjs +92 -0
- package/dist/diagram/input/panning-controller.mjs +147 -0
- package/dist/diagram/input/pointer-move-selection-controller.mjs +191 -0
- package/dist/diagram/input/relinking-gesture.mjs +182 -0
- package/dist/diagram/input/resize-controller.mjs +122 -0
- package/dist/diagram/input/rotate-controller.mjs +126 -0
- package/dist/diagram/input/zooming-wheel-controller.mjs +55 -0
- package/dist/diagram/minimap/minimap-calculations.mjs +83 -0
- package/dist/diagram/minimap/minimap-navigation-controller.mjs +150 -0
- package/dist/diagram/minimap/minimap-node-cache.mjs +19 -0
- package/dist/diagram/minimap/minimap-strategies.mjs +44 -0
- package/dist/diagram/model/diagram-model-adapter.mjs +97 -0
- package/dist/diagram/model/initialize-model.mjs +31 -0
- package/dist/diagram/model/strip-runtime-properties.mjs +30 -0
- package/dist/diagram/runtime/attribute-converters.mjs +11 -0
- package/dist/diagram/runtime/batched-resize-observer.mjs +168 -0
- package/dist/diagram/runtime/box-selection-provider.mjs +9 -0
- package/dist/diagram/runtime/context.mjs +132 -0
- package/dist/diagram/runtime/contexts.mjs +8 -0
- package/dist/diagram/runtime/cursor-position-tracker.mjs +20 -0
- package/dist/diagram/runtime/default-edge-templates.mjs +21 -0
- package/dist/diagram/runtime/default-node-templates.mjs +20 -0
- package/dist/diagram/runtime/diagram-reference.mjs +126 -0
- package/dist/diagram/runtime/diagram-runtime.mjs +214 -0
- package/dist/diagram/runtime/dom-input-events-router.mjs +88 -0
- package/dist/diagram/runtime/environment.mjs +59 -0
- package/dist/diagram/runtime/event-bridge.mjs +31 -0
- package/dist/diagram/runtime/flow-offset.mjs +45 -0
- package/dist/diagram/runtime/group-highlighted.mjs +25 -0
- package/dist/diagram/runtime/hidden.mjs +147 -0
- package/dist/diagram/runtime/lit-renderer.mjs +33 -0
- package/dist/diagram/runtime/marker-registry.mjs +108 -0
- package/dist/diagram/runtime/middlewares.mjs +14 -0
- package/dist/diagram/runtime/model-owner.mjs +11 -0
- package/dist/diagram/runtime/node-selected.mjs +25 -0
- package/dist/diagram/runtime/observable.mjs +205 -0
- package/dist/diagram/runtime/palette-drag.mjs +56 -0
- package/dist/diagram/runtime/port-hover.mjs +27 -0
- package/dist/diagram/runtime/port-registry.mjs +87 -0
- package/dist/diagram/runtime/resize-processor.mjs +207 -0
- package/dist/diagram/runtime/template-resolver.mjs +98 -0
- package/dist/diagram/runtime/touch-events-state.mjs +52 -0
- package/dist/diagram/utilities.mjs +27 -0
- package/dist/diagram-core/action-state-manager/action-state-manager.mjs +238 -0
- package/dist/diagram-core/batch-processor/batch-processor.mjs +144 -0
- package/dist/diagram-core/command-handler/command-handler.mjs +62 -0
- package/dist/diagram-core/command-handler/commands/add-to-group.mjs +32 -0
- package/dist/diagram-core/command-handler/commands/add-update-delete.mjs +196 -0
- package/dist/diagram-core/command-handler/commands/centering.mjs +73 -0
- package/dist/diagram-core/command-handler/commands/copy-paste.mjs +223 -0
- package/dist/diagram-core/command-handler/commands/cut.mjs +9 -0
- package/dist/diagram-core/command-handler/commands/delete-selection.mjs +32 -0
- package/dist/diagram-core/command-handler/commands/detach-on-node-delete.mjs +77 -0
- package/dist/diagram-core/command-handler/commands/highlight-group.mjs +45 -0
- package/dist/diagram-core/command-handler/commands/index.mjs +88 -0
- package/dist/diagram-core/command-handler/commands/init.mjs +11 -0
- package/dist/diagram-core/command-handler/commands/linking/cancel-linking.mjs +26 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-linking-to-position.mjs +33 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-linking.mjs +108 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-relinking.mjs +91 -0
- package/dist/diagram-core/command-handler/commands/linking/linking-gesture.mjs +13 -0
- package/dist/diagram-core/command-handler/commands/linking/move-temporary-edge.mjs +98 -0
- package/dist/diagram-core/command-handler/commands/linking/start-linking-from-position.mjs +23 -0
- package/dist/diagram-core/command-handler/commands/linking/start-linking.mjs +47 -0
- package/dist/diagram-core/command-handler/commands/linking/start-relinking.mjs +51 -0
- package/dist/diagram-core/command-handler/commands/linking/utils.mjs +103 -0
- package/dist/diagram-core/command-handler/commands/move-nodes-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/move-viewport.mjs +48 -0
- package/dist/diagram-core/command-handler/commands/move.mjs +90 -0
- package/dist/diagram-core/command-handler/commands/remove-from-group.mjs +22 -0
- package/dist/diagram-core/command-handler/commands/resize-node-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/resize-node.mjs +214 -0
- package/dist/diagram-core/command-handler/commands/rotate-node-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/rotate-node.mjs +53 -0
- package/dist/diagram-core/command-handler/commands/selection.mjs +69 -0
- package/dist/diagram-core/command-handler/commands/z-order.mjs +125 -0
- package/dist/diagram-core/command-handler/commands/zoom-to-fit.mjs +118 -0
- package/dist/diagram-core/command-handler/commands/zoom.mjs +26 -0
- package/dist/diagram-core/edge-routing-manager/edge-routing-manager.mjs +253 -0
- package/dist/diagram-core/edge-routing-manager/resolve-label-position.mjs +13 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/bezier-routing.mjs +73 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-path.mjs +24 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-point-at-distance.mjs +37 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-point-on-path.mjs +33 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-points.mjs +31 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-path.mjs +56 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-point-at-distance.mjs +12 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-point-on-path.mjs +38 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-points.mjs +26 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/orthogonal-routing.mjs +69 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/get-offset-point.mjs +14 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-bottom.mjs +104 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-left.mjs +91 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-right.mjs +88 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-top.mjs +168 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints.mjs +23 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/compute-polyline-point-at-distance.mjs +12 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/compute-polyline-point-on-path.mjs +41 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/polyline-routing.mjs +81 -0
- package/dist/diagram-core/edge-routing-manager/utils/linear-segment-utils.mjs +27 -0
- package/dist/diagram-core/edge-routing-manager/utils/normalize-distance.mjs +6 -0
- package/dist/diagram-core/event-manager/event-manager.mjs +164 -0
- package/dist/diagram-core/flow-config/default-flow-config.mjs +143 -0
- package/dist/diagram-core/flow-core.mjs +541 -0
- package/dist/diagram-core/input-events/handlers/box-selection/box-selection.handler.mjs +69 -0
- package/dist/diagram-core/input-events/handlers/cancel-interaction/cancel-interaction.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/copy/copy.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/cut/cut.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/delete-selection/delete-selection.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/event-handler.mjs +29 -0
- package/dist/diagram-core/input-events/handlers/keyboard-move-selection/keyboard-move-selection.handler.mjs +130 -0
- package/dist/diagram-core/input-events/handlers/keyboard-panning/keyboard-panning.handler.mjs +31 -0
- package/dist/diagram-core/input-events/handlers/linking/linking.handler.mjs +77 -0
- package/dist/diagram-core/input-events/handlers/movable-selection.mjs +26 -0
- package/dist/diagram-core/input-events/handlers/palette-drop/palette-drop.handler.mjs +20 -0
- package/dist/diagram-core/input-events/handlers/panning/panning-handler-factory.mjs +8 -0
- package/dist/diagram-core/input-events/handlers/panning/panning.handler.mjs +41 -0
- package/dist/diagram-core/input-events/handlers/panning/virtualized-panning.handler.mjs +77 -0
- package/dist/diagram-core/input-events/handlers/paste/paste.handler.mjs +17 -0
- package/dist/diagram-core/input-events/handlers/pointer-move-selection/pointer-move-selection.handler.mjs +220 -0
- package/dist/diagram-core/input-events/handlers/redo/redo.handler.mjs +14 -0
- package/dist/diagram-core/input-events/handlers/relinking/relinking.handler.mjs +62 -0
- package/dist/diagram-core/input-events/handlers/resize/resize.handler.mjs +174 -0
- package/dist/diagram-core/input-events/handlers/rotate/rotate.handler.mjs +107 -0
- package/dist/diagram-core/input-events/handlers/select/select.handler.mjs +42 -0
- package/dist/diagram-core/input-events/handlers/select-all/select-all.handler.mjs +10 -0
- package/dist/diagram-core/input-events/handlers/undo/undo.handler.mjs +14 -0
- package/dist/diagram-core/input-events/handlers/wheel-panning/wheel-panning.handler.mjs +25 -0
- package/dist/diagram-core/input-events/handlers/zooming/zooming.handler.mjs +28 -0
- package/dist/diagram-core/input-events/input-events.router.mjs +75 -0
- package/dist/diagram-core/interaction-coordinator/interaction-coordinator.mjs +75 -0
- package/dist/diagram-core/label-batch-processor/label-batch-processor.mjs +19 -0
- package/dist/diagram-core/math/angle-between-points/angle-between-points.mjs +5 -0
- package/dist/diagram-core/math/angle-to-side/angle-to-side.mjs +27 -0
- package/dist/diagram-core/math/calculate-edge-panning-force/calculate-edge-panning-force.mjs +34 -0
- package/dist/diagram-core/math/clamp/clamp.mjs +5 -0
- package/dist/diagram-core/math/distance-between-points/distance-between-points.mjs +5 -0
- package/dist/diagram-core/math/ng-diagram-math.mjs +25 -0
- package/dist/diagram-core/math/normalize-angle/normalize-angle.mjs +5 -0
- package/dist/diagram-core/math/snap-angle/snap-angle.mjs +43 -0
- package/dist/diagram-core/math/snap-number/snap-number.mjs +3 -0
- package/dist/diagram-core/math/snap-point/snap-point.mjs +8 -0
- package/dist/diagram-core/math/subtract-points/subtract-points.mjs +5 -0
- package/dist/diagram-core/measurement-tracker/measurement-tracker.mjs +182 -0
- package/dist/diagram-core/middleware-manager/middleware-executor.mjs +246 -0
- package/dist/diagram-core/middleware-manager/middleware-manager.mjs +93 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/edges-routing.mjs +149 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/get-edge-points.mjs +93 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/get-source-target-positions.mjs +90 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/clipboard-paste.emitter.mjs +34 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/diagram-init.emitter.mjs +190 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-draw-ended.emitter.mjs +51 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-drawn.emitter.mjs +35 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-relink.emitter.mjs +58 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/group-membership-changed.emitter.mjs +49 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-drag-lifecycle.emitter.mjs +54 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-resize-lifecycle.emitter.mjs +44 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-rotate-lifecycle.emitter.mjs +44 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/palette-item-dropped.emitter.mjs +26 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-changed.emitter.mjs +61 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-gesture-ended.emitter.mjs +32 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-moved.emitter.mjs +57 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-removed.emitter.mjs +40 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-rotated.emitter.mjs +33 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/size-changed.emitter.mjs +33 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/viewport-changed.emitter.mjs +19 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/event-emitter.middleware.mjs +69 -0
- package/dist/diagram-core/middleware-manager/middlewares/hidden-computation/hidden-computation.mjs +66 -0
- package/dist/diagram-core/middleware-manager/middlewares/internal-id-assignment/internal-id-assignment.mjs +24 -0
- package/dist/diagram-core/middleware-manager/middlewares/logger/logger.mjs +18 -0
- package/dist/diagram-core/middleware-manager/middlewares/measured-bounds-assignment/is-node-fully-measured.mjs +20 -0
- package/dist/diagram-core/middleware-manager/middlewares/measured-bounds-assignment/measured-bounds-assignment.mjs +59 -0
- package/dist/diagram-core/middleware-manager/middlewares/measurement-tracking/measurement-tracking.middleware.mjs +55 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/assign-edges-z-index.mjs +12 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/assign-node-z-index.mjs +61 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/create-group-children-map.mjs +14 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/initialize-z-index.mjs +30 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/sort-children.mjs +36 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/z-index-assignment.mjs +240 -0
- package/dist/diagram-core/middleware-manager/pass-settlement.mjs +68 -0
- package/dist/diagram-core/model-lookup/model-lookup.mjs +394 -0
- package/dist/diagram-core/port-batch-processor/port-batch-processor.mjs +20 -0
- package/dist/diagram-core/render-strategy/base-render-strategy.mjs +26 -0
- package/dist/diagram-core/render-strategy/direct/direct-render-strategy.mjs +33 -0
- package/dist/diagram-core/render-strategy/render-performance-logger.mjs +42 -0
- package/dist/diagram-core/render-strategy/virtualized/idle-render-scheduler.mjs +43 -0
- package/dist/diagram-core/render-strategy/virtualized/result-cache.mjs +63 -0
- package/dist/diagram-core/render-strategy/virtualized/viewport-utils.mjs +40 -0
- package/dist/diagram-core/render-strategy/virtualized/virtualized-render-strategy.mjs +91 -0
- package/dist/diagram-core/render-strategy/virtualized/visible-elements-resolver.mjs +120 -0
- package/dist/diagram-core/render-strategy/virtualized/zoom-tracker.mjs +38 -0
- package/dist/diagram-core/set.polyfill.mjs +24 -0
- package/dist/diagram-core/shortcut-manager/default-shortcuts.mjs +99 -0
- package/dist/diagram-core/shortcut-manager/shortcut-manager.mjs +140 -0
- package/dist/diagram-core/spatial-hash/collision-detection.mjs +74 -0
- package/dist/diagram-core/spatial-hash/spatial-hash.mjs +161 -0
- package/dist/diagram-core/spatial-hash/utils.mjs +92 -0
- package/dist/diagram-core/transaction-manager/transaction-context.mjs +40 -0
- package/dist/diagram-core/transaction-manager/transaction-manager.mjs +94 -0
- package/dist/diagram-core/transaction-manager/transaction.mjs +179 -0
- package/dist/diagram-core/types/edge.interface.mjs +3 -0
- package/dist/diagram-core/types/node.interface.mjs +3 -0
- package/dist/diagram-core/types/utils.mjs +3 -0
- package/dist/diagram-core/updater/init-updater/init-state.mjs +356 -0
- package/dist/diagram-core/updater/init-updater/init-updater.mjs +275 -0
- package/dist/diagram-core/updater/init-updater/late-arrival-queue.mjs +71 -0
- package/dist/diagram-core/updater/init-updater/stability-detector.mjs +63 -0
- package/dist/diagram-core/updater/internal-updater/internal-updater.mjs +166 -0
- package/dist/diagram-core/utils/change-generation.mjs +13 -0
- package/dist/diagram-core/utils/compute-floating-edge-side.mjs +35 -0
- package/dist/diagram-core/utils/constants.mjs +3 -0
- package/dist/diagram-core/utils/dangling-edges.mjs +89 -0
- package/dist/diagram-core/utils/deep-merge.mjs +22 -0
- package/dist/diagram-core/utils/dimensions.mjs +52 -0
- package/dist/diagram-core/utils/get-node-border-intersection.mjs +99 -0
- package/dist/diagram-core/utils/get-port-flow-position.mjs +55 -0
- package/dist/diagram-core/utils/group-size.mjs +32 -0
- package/dist/diagram-core/utils/is-group.mjs +5 -0
- package/dist/diagram-core/utils/measurement-validation.mjs +11 -0
- package/dist/diagram-core/utils/object-properties.mjs +22 -0
- package/dist/diagram-core/utils/rects-points-sizes.mjs +148 -0
- package/dist/diagram-core/utils/relinking.mjs +6 -0
- package/dist/diagram-core/utils/semaphore.mjs +43 -0
- package/dist/diagram-core/utils/snap-node-position.mjs +11 -0
- package/dist/diagram-core/utils/sort-nodes-by-z-index.mjs +22 -0
- package/dist/diagram-core/visibility/effective-visibility.mjs +28 -0
- package/dist/diagram-core/visibility/template-visibility-registry.mjs +87 -0
- package/dist/index.d.mts +13416 -3794
- package/dist/index.d.ts +13416 -3794
- package/dist/index.mjs +34 -0
- package/dist/internal/content-size.mjs +14 -0
- package/dist/internal/custom-boolean-converter.mjs +18 -0
- package/dist/internal/flow-ui-rdf-element.mjs +57 -5
- package/dist/package.json.mjs +1 -1
- package/dist/utilities/register-components.mjs +77 -142
- package/dist/vscode.html-custom-data.json +460 -187
- package/package.json +16 -8
- package/themes/dark.css +2 -0
- package/themes/dark.styles.js +2 -0
- package/themes/light.css +2 -0
- package/themes/light.styles.js +2 -0
|
@@ -5,6 +5,7 @@ import { boolean } from '../../internal/boolean.mjs';
|
|
|
5
5
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
6
6
|
import { getTextContent } from '../../internal/slot.mjs';
|
|
7
7
|
import { watch } from '../../internal/watch.mjs';
|
|
8
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
8
9
|
import styles from './menu-item.styles.mjs';
|
|
9
10
|
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
@@ -115,7 +116,9 @@ class FlowUiMenuItem extends FlowRdfElement {
|
|
|
115
116
|
`;
|
|
116
117
|
}
|
|
117
118
|
}
|
|
119
|
+
FlowUiMenuItem.tagName = "flow-ui-menu-item";
|
|
118
120
|
FlowUiMenuItem.styles = styles;
|
|
121
|
+
FlowUiMenuItem.dependencies = [FlowUiIcon];
|
|
119
122
|
__decorateClass([
|
|
120
123
|
query("slot:not([name])")
|
|
121
124
|
], FlowUiMenuItem.prototype, "defaultSlot", 2);
|
|
@@ -116,8 +116,9 @@ class FlowUiOption extends FlowRdfElement {
|
|
|
116
116
|
`;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
+
FlowUiOption.tagName = "flow-ui-option";
|
|
119
120
|
FlowUiOption.styles = styles;
|
|
120
|
-
FlowUiOption.dependencies =
|
|
121
|
+
FlowUiOption.dependencies = [FlowUiIcon];
|
|
121
122
|
__decorateClass([
|
|
122
123
|
query(".option__label")
|
|
123
124
|
], FlowUiOption.prototype, "defaultSlot", 2);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
|
-
import { queryAssignedElements, property } from 'lit/decorators.js';
|
|
2
|
+
import { queryAssignedElements, query, property } from 'lit/decorators.js';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { boolean } from '../../internal/boolean.mjs';
|
|
5
|
+
import { dispatchContentResize } from '../../internal/content-size.mjs';
|
|
5
6
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
6
7
|
import styles from './panel.styles.mjs';
|
|
7
8
|
|
|
@@ -30,8 +31,18 @@ class FlowUiPanel extends FlowRdfElement {
|
|
|
30
31
|
this.padding = boolean(this.padding, true);
|
|
31
32
|
}
|
|
32
33
|
disconnectedCallback() {
|
|
34
|
+
this.watchContentSize(false);
|
|
33
35
|
super.disconnectedCallback();
|
|
34
36
|
}
|
|
37
|
+
updated(changed) {
|
|
38
|
+
super.updated(changed);
|
|
39
|
+
if (changed.has("closed")) {
|
|
40
|
+
this.syncHeaders();
|
|
41
|
+
}
|
|
42
|
+
if (this.contentObserver && (changed.has("closed") || changed.has("scrollable") || changed.has("padding"))) {
|
|
43
|
+
dispatchContentResize(this);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
35
46
|
/** Open the panel */
|
|
36
47
|
async expand(emitEvent = true) {
|
|
37
48
|
if (this.closed) {
|
|
@@ -50,8 +61,67 @@ class FlowUiPanel extends FlowRdfElement {
|
|
|
50
61
|
}
|
|
51
62
|
}
|
|
52
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Lay the panel out at its natural (max-content) size, with its body shown (`open`) or hidden (`closed`) whatever
|
|
66
|
+
* its `closed` state, until called with `false`. The change is synchronous and undone before the next rendering, so
|
|
67
|
+
* a content-sized split-view pane can measure the panel without anything being painted or observed.
|
|
68
|
+
*
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
setContentMeasuring(mode) {
|
|
72
|
+
const panel = this.panelElement;
|
|
73
|
+
panel?.classList.toggle("panel--measuring", mode !== false);
|
|
74
|
+
panel?.classList.toggle("panel--measuring-open", mode === "open");
|
|
75
|
+
panel?.classList.toggle("panel--measuring-closed", mode === "closed");
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Start or stop dispatching the internal `flow-ui-content-resize` event when the panel's natural size may have
|
|
79
|
+
* changed (its header or content resized, or `closed`, `scrollable` or `padding` changed). Used by a content-sized
|
|
80
|
+
* split-view pane.
|
|
81
|
+
*
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
watchContentSize(watch) {
|
|
85
|
+
if (!watch) {
|
|
86
|
+
this.contentObserver?.disconnect();
|
|
87
|
+
this.contentObserver = void 0;
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (!this.contentObserver) {
|
|
91
|
+
this.contentObserver = new ResizeObserver(() => dispatchContentResize(this));
|
|
92
|
+
this.observeContent();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
observeContent() {
|
|
96
|
+
const observer = this.contentObserver;
|
|
97
|
+
if (!observer) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
observer.disconnect();
|
|
101
|
+
for (const element of [
|
|
102
|
+
...this.headerSlot?.assignedElements() ?? [],
|
|
103
|
+
...this.bodySlot?.assignedElements() ?? [],
|
|
104
|
+
...this.scrollable && this.bodyElement ? [this.bodyElement] : []
|
|
105
|
+
]) {
|
|
106
|
+
observer.observe(element);
|
|
107
|
+
}
|
|
108
|
+
dispatchContentResize(this);
|
|
109
|
+
}
|
|
110
|
+
/** Pass the panel's state to the panel headers in the `header` slot (a property set: no events, idempotent). */
|
|
111
|
+
syncHeaders() {
|
|
112
|
+
for (const header of this.headerSlot?.assignedElements() ?? []) {
|
|
113
|
+
if (header.localName === "flow-ui-panel-header") {
|
|
114
|
+
header.closed = this.closed;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
handleHeaderSlotChange() {
|
|
119
|
+
this.syncHeaders();
|
|
120
|
+
this.observeContent();
|
|
121
|
+
}
|
|
53
122
|
handleSlotChange() {
|
|
54
123
|
this.requestUpdate();
|
|
124
|
+
this.observeContent();
|
|
55
125
|
}
|
|
56
126
|
render() {
|
|
57
127
|
return html`
|
|
@@ -69,6 +139,7 @@ class FlowUiPanel extends FlowRdfElement {
|
|
|
69
139
|
class="panel__header"
|
|
70
140
|
@flow-ui-expand=${() => this.expand(false)}
|
|
71
141
|
@flow-ui-collapse=${() => this.collapse(false)}
|
|
142
|
+
@slotchange=${this.handleHeaderSlotChange}
|
|
72
143
|
></slot>
|
|
73
144
|
|
|
74
145
|
<div class="panel__body-wrapper">
|
|
@@ -80,10 +151,23 @@ class FlowUiPanel extends FlowRdfElement {
|
|
|
80
151
|
`;
|
|
81
152
|
}
|
|
82
153
|
}
|
|
154
|
+
FlowUiPanel.tagName = "flow-ui-panel";
|
|
83
155
|
FlowUiPanel.styles = styles;
|
|
84
156
|
__decorateClass([
|
|
85
157
|
queryAssignedElements({ selector: ".flow-ui-form-control[borders], :has(>.flow-ui-form-control[borders])" })
|
|
86
158
|
], FlowUiPanel.prototype, "formElements", 2);
|
|
159
|
+
__decorateClass([
|
|
160
|
+
query(".panel")
|
|
161
|
+
], FlowUiPanel.prototype, "panelElement", 2);
|
|
162
|
+
__decorateClass([
|
|
163
|
+
query(".panel__body")
|
|
164
|
+
], FlowUiPanel.prototype, "bodyElement", 2);
|
|
165
|
+
__decorateClass([
|
|
166
|
+
query('slot[name="header"]')
|
|
167
|
+
], FlowUiPanel.prototype, "headerSlot", 2);
|
|
168
|
+
__decorateClass([
|
|
169
|
+
query("slot:not([name])")
|
|
170
|
+
], FlowUiPanel.prototype, "bodySlot", 2);
|
|
87
171
|
__decorateClass([
|
|
88
172
|
property({ type: Boolean, reflect: true })
|
|
89
173
|
], FlowUiPanel.prototype, "closed", 2);
|
|
@@ -46,6 +46,35 @@ const styles = css`
|
|
|
46
46
|
height: 100%;
|
|
47
47
|
overflow-y: hidden;
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
/* Closed: the header only */
|
|
51
|
+
.panel--closed .panel__body-wrapper {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* Measuring pass for a content-sized split-view pane (setContentMeasuring()): lay out at the natural size, in the
|
|
57
|
+
* state being measured. Added and removed synchronously, so it is never painted.
|
|
58
|
+
*/
|
|
59
|
+
.panel--measuring {
|
|
60
|
+
height: max-content;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.panel--measuring .panel__body-wrapper {
|
|
64
|
+
flex: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.panel--measuring:not(.panel--scrollable) .panel__body {
|
|
68
|
+
height: auto;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.panel--measuring-open .panel__body-wrapper {
|
|
72
|
+
display: block;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.panel--measuring-closed .panel__body-wrapper {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
49
78
|
`;
|
|
50
79
|
|
|
51
80
|
export { styles as default };
|
|
@@ -5,6 +5,7 @@ import { boolean } from '../../internal/boolean.mjs';
|
|
|
5
5
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
6
6
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
7
7
|
import styles from './panel-header.styles.mjs';
|
|
8
|
+
import FlowUiSplitViewToggleButton from '../split-view-toggle-button/split-view-toggle-button.component.mjs';
|
|
8
9
|
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
10
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -119,7 +120,9 @@ class FlowUiPanelHeader extends FlowRdfElement {
|
|
|
119
120
|
`;
|
|
120
121
|
}
|
|
121
122
|
}
|
|
123
|
+
FlowUiPanelHeader.tagName = "flow-ui-panel-header";
|
|
122
124
|
FlowUiPanelHeader.styles = styles;
|
|
125
|
+
FlowUiPanelHeader.dependencies = [FlowUiSplitViewToggleButton];
|
|
123
126
|
__decorateClass([
|
|
124
127
|
query(".panel-header")
|
|
125
128
|
], FlowUiPanelHeader.prototype, "header", 2);
|
|
@@ -8,6 +8,17 @@ import FlowRdfElement, { FlowRdfFormControl } from '../../internal/flow-ui-rdf-e
|
|
|
8
8
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
9
9
|
import { isNil, isFunction, isDefined, isUndefined } from '../../internal/type-checks.mjs';
|
|
10
10
|
import { watch } from '../../internal/watch.mjs';
|
|
11
|
+
import FlowUiSelect from '../select/select.component.mjs';
|
|
12
|
+
import FlowUiToolButtonGroup from '../tool-button-group/tool-button-group.component.mjs';
|
|
13
|
+
import FlowUiDateTimePicker from '../date-time-picker/date-time-picker.component.mjs';
|
|
14
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
15
|
+
import FlowUiDropdown from '../dropdown/dropdown.component.mjs';
|
|
16
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
17
|
+
import FlowUiInput from '../input/input.component.mjs';
|
|
18
|
+
import FlowUiMenu from '../menu/menu.component.mjs';
|
|
19
|
+
import FlowUiMenuItem from '../menu-item/menu-item.component.mjs';
|
|
20
|
+
import FlowUiOption from '../option/option.component.mjs';
|
|
21
|
+
import FlowUiToolButton from '../tool-button/tool-button.component.mjs';
|
|
11
22
|
import { defaultStringTemplate, defaultNumberTemplate, defaultDateTimeTemplate, defaultDateTemplate, defaultTimeTemplate, defaultSelectTemplate } from './default-value-templates.mjs';
|
|
12
23
|
import styles from './query-builder.styles.mjs';
|
|
13
24
|
|
|
@@ -484,7 +495,23 @@ const _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
|
|
|
484
495
|
`;
|
|
485
496
|
}
|
|
486
497
|
};
|
|
498
|
+
_FlowUiQueryBuilder.tagName = "flow-ui-query-builder";
|
|
487
499
|
_FlowUiQueryBuilder.styles = styles;
|
|
500
|
+
// Annotated because the list includes this class itself
|
|
501
|
+
_FlowUiQueryBuilder.dependencies = [
|
|
502
|
+
FlowUiDateTimePicker,
|
|
503
|
+
FlowUiDivider,
|
|
504
|
+
FlowUiDropdown,
|
|
505
|
+
FlowUiIconButton,
|
|
506
|
+
FlowUiInput,
|
|
507
|
+
FlowUiMenu,
|
|
508
|
+
FlowUiMenuItem,
|
|
509
|
+
FlowUiOption,
|
|
510
|
+
_FlowUiQueryBuilder,
|
|
511
|
+
FlowUiSelect,
|
|
512
|
+
FlowUiToolButton,
|
|
513
|
+
FlowUiToolButtonGroup
|
|
514
|
+
];
|
|
488
515
|
_FlowUiQueryBuilder.fieldDefinitions = /* @__PURE__ */ new Map();
|
|
489
516
|
__decorateClass([
|
|
490
517
|
state()
|
|
@@ -4,6 +4,7 @@ import { classMap } from 'lit/directives/class-map.js';
|
|
|
4
4
|
import { boolean } from '../../internal/boolean.mjs';
|
|
5
5
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
6
6
|
import { watch } from '../../internal/watch.mjs';
|
|
7
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
7
8
|
import styles from './radio.styles.mjs';
|
|
8
9
|
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
@@ -112,7 +113,9 @@ class FlowUiRadio extends FlowRdfElement {
|
|
|
112
113
|
`;
|
|
113
114
|
}
|
|
114
115
|
}
|
|
116
|
+
FlowUiRadio.tagName = "flow-ui-radio";
|
|
115
117
|
FlowUiRadio.styles = styles;
|
|
118
|
+
FlowUiRadio.dependencies = [FlowUiIcon];
|
|
116
119
|
__decorateClass([
|
|
117
120
|
state()
|
|
118
121
|
], FlowUiRadio.prototype, "checked", 2);
|
|
@@ -6,6 +6,7 @@ import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
6
6
|
import { FormControlController, customErrorValidityState, valueMissingValidityState, validValidityState } from '../../internal/form.mjs';
|
|
7
7
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
8
8
|
import { watch } from '../../internal/watch.mjs';
|
|
9
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
9
10
|
import styles from './radio-group.styles.mjs';
|
|
10
11
|
|
|
11
12
|
var __defProp = Object.defineProperty;
|
|
@@ -263,7 +264,9 @@ class FlowUiRadioGroup extends FlowRdfFormControl {
|
|
|
263
264
|
`;
|
|
264
265
|
}
|
|
265
266
|
}
|
|
267
|
+
FlowUiRadioGroup.tagName = "flow-ui-radio-group";
|
|
266
268
|
FlowUiRadioGroup.styles = styles;
|
|
269
|
+
FlowUiRadioGroup.dependencies = [FlowUiDivider];
|
|
267
270
|
__decorateClass([
|
|
268
271
|
query("slot:not([name])")
|
|
269
272
|
], FlowUiRadioGroup.prototype, "defaultSlot", 2);
|
|
@@ -12,6 +12,8 @@ import { HasSlotController } from '../../internal/slot.mjs';
|
|
|
12
12
|
import { isNumber } from '../../internal/type-checks.mjs';
|
|
13
13
|
import { watch } from '../../internal/watch.mjs';
|
|
14
14
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
15
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
16
|
+
import FlowUiInput from '../input/input.component.mjs';
|
|
15
17
|
import styles from './range.styles.mjs';
|
|
16
18
|
|
|
17
19
|
var __defProp = Object.defineProperty;
|
|
@@ -79,6 +81,11 @@ class FlowUiRange extends FlowRdfFormControl {
|
|
|
79
81
|
super.disconnectedCallback();
|
|
80
82
|
this.resizeObserver.unobserve(this.input);
|
|
81
83
|
}
|
|
84
|
+
willUpdate(changedProperties) {
|
|
85
|
+
if (changedProperties.has("value") && !isNumber(this.value)) {
|
|
86
|
+
this.value = clamp(this.defaultValue, this.min, this.max);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
82
89
|
handleRangeChange(event) {
|
|
83
90
|
event.stopPropagation();
|
|
84
91
|
this.emit("flow-ui-change");
|
|
@@ -281,7 +288,9 @@ class FlowUiRange extends FlowRdfFormControl {
|
|
|
281
288
|
`;
|
|
282
289
|
}
|
|
283
290
|
}
|
|
291
|
+
FlowUiRange.tagName = "flow-ui-range";
|
|
284
292
|
FlowUiRange.styles = styles;
|
|
293
|
+
FlowUiRange.dependencies = [FlowUiDivider, FlowUiInput];
|
|
285
294
|
__decorateClass([
|
|
286
295
|
query(".range__control")
|
|
287
296
|
], FlowUiRange.prototype, "input", 2);
|
|
@@ -18,6 +18,7 @@ import { LocalizeController } from '../../utilities/localize.mjs';
|
|
|
18
18
|
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
19
19
|
import FlowUiPopup from '../popup/popup.component.mjs';
|
|
20
20
|
import FlowUiTag from '../tag/tag.component.mjs';
|
|
21
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
21
22
|
import styles from './select.styles.mjs';
|
|
22
23
|
|
|
23
24
|
var __defProp = Object.defineProperty;
|
|
@@ -685,12 +686,9 @@ class FlowUiSelect extends FlowRdfFormControl {
|
|
|
685
686
|
`;
|
|
686
687
|
}
|
|
687
688
|
}
|
|
689
|
+
FlowUiSelect.tagName = "flow-ui-select";
|
|
688
690
|
FlowUiSelect.styles = styles;
|
|
689
|
-
FlowUiSelect.dependencies =
|
|
690
|
-
"flow-icon": FlowUiIcon,
|
|
691
|
-
"flow-popup": FlowUiPopup,
|
|
692
|
-
"flow-tag": FlowUiTag
|
|
693
|
-
};
|
|
691
|
+
FlowUiSelect.dependencies = [FlowUiDivider, FlowUiIcon, FlowUiPopup, FlowUiTag];
|
|
694
692
|
__decorateClass([
|
|
695
693
|
query(".select")
|
|
696
694
|
], FlowUiSelect.prototype, "popup", 2);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const REGISTRY_VERSION = 1;
|
|
2
|
+
const REGISTRY_KEY = Symbol.for("@emuanalytics/flow-rdf-ui/split-view-layout-registry");
|
|
3
|
+
let privateRegistry;
|
|
4
|
+
function registry() {
|
|
5
|
+
const global = globalThis;
|
|
6
|
+
const shared = global[REGISTRY_KEY] ?? (global[REGISTRY_KEY] = { version: REGISTRY_VERSION, entries: /* @__PURE__ */ new Map() });
|
|
7
|
+
if (shared.version === REGISTRY_VERSION) {
|
|
8
|
+
return shared;
|
|
9
|
+
}
|
|
10
|
+
return privateRegistry ?? (privateRegistry = { version: REGISTRY_VERSION, entries: /* @__PURE__ */ new Map() });
|
|
11
|
+
}
|
|
12
|
+
function entry(id) {
|
|
13
|
+
const entries = registry().entries;
|
|
14
|
+
let found = entries.get(id);
|
|
15
|
+
if (!found) {
|
|
16
|
+
found = { memory: {}, views: /* @__PURE__ */ new Set() };
|
|
17
|
+
entries.set(id, found);
|
|
18
|
+
}
|
|
19
|
+
return found;
|
|
20
|
+
}
|
|
21
|
+
function joinLayoutRegistry(id, view) {
|
|
22
|
+
const { views } = entry(id);
|
|
23
|
+
if (views.has(view)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (views.size > 0) {
|
|
27
|
+
console.warn(
|
|
28
|
+
`flow-ui-split-view: more than one split view on the page has the id "${id}". They share one pane layout memory, and the latest change to a pane wins. Give each split view a unique id.`
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
views.add(view);
|
|
32
|
+
}
|
|
33
|
+
function leaveLayoutRegistry(id, view) {
|
|
34
|
+
registry().entries.get(id)?.views.delete(view);
|
|
35
|
+
}
|
|
36
|
+
function rememberedLayout(id) {
|
|
37
|
+
return registry().entries.get(id)?.memory ?? {};
|
|
38
|
+
}
|
|
39
|
+
function storeLayout(id, memory) {
|
|
40
|
+
const found = entry(id);
|
|
41
|
+
found.memory = { ...found.memory, ...memory };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { joinLayoutRegistry, leaveLayoutRegistry, rememberedLayout, storeLayout };
|