@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.
- package/README.md +58 -0
- package/THIRD_PARTY_NOTICES.md +220 -0
- package/dist/components/alert/alert.component.mjs +13 -10
- package/dist/components/animation/animation.component.mjs +3 -2
- package/dist/components/autocomplete/autocomplete.component.mjs +21 -20
- package/dist/components/avatar/avatar.component.mjs +10 -12
- 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 +15 -14
- package/dist/components/busy-overlay/busy-overlay.component.mjs +3 -0
- package/dist/components/button/button.component.mjs +7 -3
- package/dist/components/button/button.styles.mjs +5 -5
- package/dist/components/button-group/button-group.component.mjs +1 -0
- package/dist/components/calendar/calendar.component.mjs +29 -6
- package/dist/components/card/card.component.mjs +5 -4
- package/dist/components/carousel/carousel.component.mjs +45 -42
- package/dist/components/carousel-item/carousel-item.component.mjs +2 -0
- package/dist/components/chart/chart.component.mjs +5 -4
- package/dist/components/chart/chartjs-plugins/luxon.adapter.mjs +78 -0
- package/dist/components/chart/chartjs-plugins/plugin.flow-ui-colors.mjs +1 -1
- package/dist/components/chart/chartjs-support.mjs +2 -0
- package/dist/components/checkbox/checkbox.component.mjs +21 -18
- package/dist/components/checkbox-group/checkbox-group.component.mjs +3 -0
- package/dist/components/color-mapper/color-mapper.component.mjs +27 -6
- package/dist/components/color-picker/color-picker.component.mjs +79 -71
- package/dist/components/color-picker/color-picker.styles.mjs +4 -2
- package/dist/components/color-stop/color-stop.component.mjs +19 -2
- package/dist/components/date-time-picker/date-time-picker.component.mjs +35 -29
- 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 +68 -0
- package/dist/components/dialog/dialog.component.mjs +5 -1
- package/dist/components/divider/divider.component.mjs +1 -0
- package/dist/components/drawer/drawer.component.mjs +22 -19
- 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 +10 -2
- package/dist/components/icon/icon.component.mjs +1 -0
- package/dist/components/icon/library.mjs +7 -4
- 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 +21 -11
- package/dist/components/list/list.component.mjs +1 -0
- package/dist/components/list-item/list-item.component.mjs +34 -17
- 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 +5 -6
- 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 +14 -8
- package/dist/components/popup/popup.component.mjs +12 -11
- package/dist/components/progress-bar/progress-bar.component.mjs +3 -2
- package/dist/components/progress-ring/progress-ring.component.mjs +1 -0
- package/dist/components/query-builder/converters/javascript-filter-converter.mjs +0 -4
- package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +0 -4
- package/dist/components/query-builder/query-builder.component.mjs +42 -15
- package/dist/components/radio/radio.component.mjs +10 -7
- package/dist/components/radio-group/radio-group.component.mjs +4 -1
- package/dist/components/range/range.component.mjs +4 -0
- package/dist/components/resize-observer/resize-observer.component.mjs +2 -1
- package/dist/components/scroll-view/scroll-view.component.mjs +1 -0
- package/dist/components/scroll-view/scroll-view.styles.mjs +20 -7
- package/dist/components/select/select.component.mjs +19 -21
- 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/split-view-toggle-button/split-view-toggle-button.styles.mjs +3 -3
- package/dist/components/stepper/stepper.component.mjs +3 -2
- package/dist/components/stepper-panel/stepper-panel.component.mjs +4 -3
- package/dist/components/switch/switch.component.mjs +9 -8
- package/dist/components/tab/tab.component.mjs +21 -17
- package/dist/components/tab-group/tab-group.component.mjs +218 -44
- 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 +13 -12
- package/dist/components/textarea/textarea.component.mjs +11 -4
- 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 +5 -2
- 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 +7890 -1741
- 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 +13296 -3667
- package/dist/index.d.ts +13296 -3667
- 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/internal/form.mjs +1 -1
- package/dist/internal/on-off-converter.mjs +21 -0
- package/dist/package.json.mjs +1 -1
- package/dist/utilities/register-components.mjs +77 -142
- package/dist/vscode.html-custom-data.json +426 -156
- package/package.json +35 -40
- package/themes/dark.css +7 -5
- package/themes/dark.styles.js +7 -5
- package/themes/light.css +7 -5
- package/themes/light.styles.js +7 -5
|
@@ -6,6 +6,9 @@ import { boolean } from '../../internal/boolean.mjs';
|
|
|
6
6
|
import { waitForEvent } from '../../internal/event.mjs';
|
|
7
7
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
8
8
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
9
|
+
import FlowUiTooltip from '../tooltip/tooltip.component.mjs';
|
|
10
|
+
import FlowUiButton from '../button/button.component.mjs';
|
|
11
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
9
12
|
import styles from './icon-button.styles.mjs';
|
|
10
13
|
|
|
11
14
|
var __defProp = Object.defineProperty;
|
|
@@ -183,7 +186,9 @@ class FlowUiIconButton extends FlowRdfElement {
|
|
|
183
186
|
}
|
|
184
187
|
}
|
|
185
188
|
}
|
|
189
|
+
FlowUiIconButton.tagName = "flow-ui-icon-button";
|
|
186
190
|
FlowUiIconButton.styles = styles;
|
|
191
|
+
FlowUiIconButton.dependencies = [FlowUiButton, FlowUiIcon, FlowUiTooltip];
|
|
187
192
|
__decorateClass([
|
|
188
193
|
query(".icon-button")
|
|
189
194
|
], FlowUiIconButton.prototype, "button", 2);
|
|
@@ -8,10 +8,14 @@ import { boolean } from '../../internal/boolean.mjs';
|
|
|
8
8
|
import { defaultValue } from '../../internal/default-value.mjs';
|
|
9
9
|
import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
10
10
|
import { FormControlController } from '../../internal/form.mjs';
|
|
11
|
+
import onOffConverter from '../../internal/on-off-converter.mjs';
|
|
11
12
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
12
13
|
import { isStringFull, isNil, isNumber, isNumeric, isNumberLike } from '../../internal/type-checks.mjs';
|
|
13
14
|
import { watch } from '../../internal/watch.mjs';
|
|
14
15
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
16
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
17
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
18
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
15
19
|
import styles from './input.styles.mjs';
|
|
16
20
|
|
|
17
21
|
var __defProp = Object.defineProperty;
|
|
@@ -218,7 +222,11 @@ class FlowUiInput extends FlowRdfFormControl {
|
|
|
218
222
|
}
|
|
219
223
|
/** Replaces a range of text with a new string. */
|
|
220
224
|
setRangeText(replacement, start, end, selectMode) {
|
|
221
|
-
|
|
225
|
+
if (start === void 0 || end === void 0) {
|
|
226
|
+
this.input.setRangeText(replacement);
|
|
227
|
+
} else {
|
|
228
|
+
this.input.setRangeText(replacement, start, end, selectMode);
|
|
229
|
+
}
|
|
222
230
|
if (this.value !== this.input.value) {
|
|
223
231
|
this.value = this.fromDisplayValue(this.input.value);
|
|
224
232
|
}
|
|
@@ -364,7 +372,7 @@ class FlowUiInput extends FlowRdfFormControl {
|
|
|
364
372
|
.value=${live(this.toDisplayValue(this.value))}
|
|
365
373
|
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
366
374
|
autocomplete=${ifDefined(this.autocomplete)}
|
|
367
|
-
autocorrect=${ifDefined(this.autocorrect)}
|
|
375
|
+
autocorrect=${ifDefined(onOffConverter.toAttribute(this.autocorrect))}
|
|
368
376
|
?autofocus=${this.autofocus}
|
|
369
377
|
spellcheck=${this.spellcheck}
|
|
370
378
|
pattern=${ifDefined(this.pattern)}
|
|
@@ -408,14 +416,14 @@ class FlowUiInput extends FlowRdfFormControl {
|
|
|
408
416
|
tabindex="-1"
|
|
409
417
|
>
|
|
410
418
|
${this.passwordVisible ? html`
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
+
<slot name="show-password-icon">
|
|
420
|
+
<flow-ui-icon name="eye-slash" library="system"></flow-ui-icon>
|
|
421
|
+
</slot>
|
|
422
|
+
` : html`
|
|
423
|
+
<slot name="hide-password-icon">
|
|
424
|
+
<flow-ui-icon name="eye" library="system"></flow-ui-icon>
|
|
425
|
+
</slot>
|
|
426
|
+
`}
|
|
419
427
|
</button>
|
|
420
428
|
` : ""}
|
|
421
429
|
|
|
@@ -455,7 +463,9 @@ class FlowUiInput extends FlowRdfFormControl {
|
|
|
455
463
|
`;
|
|
456
464
|
}
|
|
457
465
|
}
|
|
466
|
+
FlowUiInput.tagName = "flow-ui-input";
|
|
458
467
|
FlowUiInput.styles = styles;
|
|
468
|
+
FlowUiInput.dependencies = [FlowUiDivider, FlowUiIcon, FlowUiIconButton];
|
|
459
469
|
__decorateClass([
|
|
460
470
|
state()
|
|
461
471
|
], FlowUiInput.prototype, "_numberFormatter", 2);
|
|
@@ -547,7 +557,7 @@ __decorateClass([
|
|
|
547
557
|
property()
|
|
548
558
|
], FlowUiInput.prototype, "autocapitalize", 2);
|
|
549
559
|
__decorateClass([
|
|
550
|
-
property()
|
|
560
|
+
property({ converter: onOffConverter })
|
|
551
561
|
], FlowUiInput.prototype, "autocorrect", 2);
|
|
552
562
|
__decorateClass([
|
|
553
563
|
property()
|
|
@@ -5,6 +5,13 @@ 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 { watch } from '../../internal/watch.mjs';
|
|
8
|
+
import FlowUiInput from '../input/input.component.mjs';
|
|
9
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
10
|
+
import FlowUiDropdown from '../dropdown/dropdown.component.mjs';
|
|
11
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
12
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
13
|
+
import FlowUiMenu from '../menu/menu.component.mjs';
|
|
14
|
+
import FlowUiMenuItem from '../menu-item/menu-item.component.mjs';
|
|
8
15
|
import styles from './list-item.styles.mjs';
|
|
9
16
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
10
17
|
|
|
@@ -151,17 +158,17 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
151
158
|
></flow-ui-icon-button>
|
|
152
159
|
<flow-ui-menu @flow-ui-select=${this.handleMenuSelect}>
|
|
153
160
|
${this.editable ? html`
|
|
154
|
-
|
|
155
|
-
|
|
161
|
+
<flow-ui-menu-item value="edit">${this.editMenuName}</flow-ui-menu-item>
|
|
162
|
+
` : nothing}
|
|
156
163
|
${this.removable ? html`
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
<flow-ui-menu-item value="remove">Delete</flow-ui-menu-item>
|
|
165
|
+
` : nothing}
|
|
159
166
|
${hasCustomMenuDivider ? html`
|
|
160
|
-
|
|
161
|
-
|
|
167
|
+
<flow-ui-divider></flow-ui-divider>
|
|
168
|
+
` : nothing}
|
|
162
169
|
${this.hasSlotController.test("menu") ? html`
|
|
163
|
-
|
|
164
|
-
|
|
170
|
+
<slot name="menu"></slot>
|
|
171
|
+
` : nothing}
|
|
165
172
|
</flow-ui-menu>
|
|
166
173
|
<slot name="menu"></slot>
|
|
167
174
|
</flow-ui-dropdown>
|
|
@@ -185,15 +192,15 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
185
192
|
})}
|
|
186
193
|
>
|
|
187
194
|
${this.reorder ? html`
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
<flow-ui-icon
|
|
196
|
+
part="reorder-icon"
|
|
197
|
+
name="bars"
|
|
198
|
+
library="system"
|
|
199
|
+
class="list-item__reorder-icon"
|
|
200
|
+
@pointerdown=${this.handleReorderPointerDown}
|
|
201
|
+
@pointerup=${this.handleReorderPointerUp}
|
|
202
|
+
></flow-ui-icon>
|
|
203
|
+
` : nothing}
|
|
197
204
|
<slot name="prefix" part="prefix" class="list-item__prefix"></slot>
|
|
198
205
|
|
|
199
206
|
<flow-ui-input
|
|
@@ -215,7 +222,17 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
215
222
|
`;
|
|
216
223
|
}
|
|
217
224
|
}
|
|
225
|
+
FlowUiListItem.tagName = "flow-ui-list-item";
|
|
218
226
|
FlowUiListItem.styles = styles;
|
|
227
|
+
FlowUiListItem.dependencies = [
|
|
228
|
+
FlowUiDivider,
|
|
229
|
+
FlowUiDropdown,
|
|
230
|
+
FlowUiIcon,
|
|
231
|
+
FlowUiIconButton,
|
|
232
|
+
FlowUiInput,
|
|
233
|
+
FlowUiMenu,
|
|
234
|
+
FlowUiMenuItem
|
|
235
|
+
];
|
|
219
236
|
__decorateClass([
|
|
220
237
|
state()
|
|
221
238
|
], FlowUiListItem.prototype, "hasFocus", 2);
|
|
@@ -5,6 +5,7 @@ import { classMap } from 'lit/directives/class-map.js';
|
|
|
5
5
|
import { boolean } from '../../internal/boolean.mjs';
|
|
6
6
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
7
7
|
import { watch } from '../../internal/watch.mjs';
|
|
8
|
+
import FlowUiProgressBar from '../progress-bar/progress-bar.component.mjs';
|
|
8
9
|
import styles from './map.styles.mjs';
|
|
9
10
|
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
@@ -165,7 +166,9 @@ class FlowUiMap extends FlowRdfElement {
|
|
|
165
166
|
`;
|
|
166
167
|
}
|
|
167
168
|
}
|
|
169
|
+
FlowUiMap.tagName = "flow-ui-map";
|
|
168
170
|
FlowUiMap.styles = styles;
|
|
171
|
+
FlowUiMap.dependencies = [FlowUiProgressBar];
|
|
169
172
|
__decorateClass([
|
|
170
173
|
state()
|
|
171
174
|
], FlowUiMap.prototype, "_mapLoading", 2);
|
|
@@ -25,6 +25,16 @@ const styles = css`
|
|
|
25
25
|
inset: 0;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/*
|
|
29
|
+
* Fixed: the MapLibre container fills the viewport, so it is not resized when the map element is, and is clipped to
|
|
30
|
+
* the map element (paint and hit testing). The clip is on the container, not on .map or the host, so that popups
|
|
31
|
+
* hoisted from the controls in the overlay are not clipped at the map's edges. The container must stay fixed:
|
|
32
|
+
* !important beats MapLibre's own position: relative.
|
|
33
|
+
*/
|
|
34
|
+
.map--fixed .map__container {
|
|
35
|
+
clip-path: inset(0);
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
.map--fixed ::slotted(.maplibregl-map) {
|
|
29
39
|
position: fixed !important;
|
|
30
40
|
inset: var(--flow-ui-map-inset, 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);
|
|
@@ -74,7 +74,9 @@ class FlowUiMutationObserver extends FlowRdfElement {
|
|
|
74
74
|
}
|
|
75
75
|
handleChange() {
|
|
76
76
|
this.stopObserver();
|
|
77
|
-
this.
|
|
77
|
+
if (!this.disabled) {
|
|
78
|
+
this.startObserver();
|
|
79
|
+
}
|
|
78
80
|
}
|
|
79
81
|
render() {
|
|
80
82
|
return html`
|
|
@@ -82,6 +84,7 @@ class FlowUiMutationObserver extends FlowRdfElement {
|
|
|
82
84
|
`;
|
|
83
85
|
}
|
|
84
86
|
}
|
|
87
|
+
FlowUiMutationObserver.tagName = "flow-ui-mutation-observer";
|
|
85
88
|
FlowUiMutationObserver.styles = styles;
|
|
86
89
|
__decorateClass([
|
|
87
90
|
property({ reflect: true })
|
|
@@ -105,11 +108,7 @@ __decorateClass([
|
|
|
105
108
|
watch("disabled")
|
|
106
109
|
], FlowUiMutationObserver.prototype, "handleDisabledChange", 1);
|
|
107
110
|
__decorateClass([
|
|
108
|
-
watch("attr", { waitUntilFirstUpdate: true })
|
|
109
|
-
watch("attr-old-value", { waitUntilFirstUpdate: true }),
|
|
110
|
-
watch("char-data", { waitUntilFirstUpdate: true }),
|
|
111
|
-
watch("char-data-old-value", { waitUntilFirstUpdate: true }),
|
|
112
|
-
watch("childList", { waitUntilFirstUpdate: true })
|
|
111
|
+
watch(["attr", "attrOldValue", "charData", "charDataOldValue", "childList"], { waitUntilFirstUpdate: true })
|
|
113
112
|
], FlowUiMutationObserver.prototype, "handleChange", 1);
|
|
114
113
|
|
|
115
114
|
export { FlowUiMutationObserver as default };
|
|
@@ -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;
|
|
@@ -50,6 +51,7 @@ class FlowUiPanelHeader extends FlowRdfElement {
|
|
|
50
51
|
if (this.fixed) {
|
|
51
52
|
return;
|
|
52
53
|
}
|
|
54
|
+
const wasClosed = this.closed;
|
|
53
55
|
if (event.key === "Enter" || event.key === " ") {
|
|
54
56
|
event.preventDefault();
|
|
55
57
|
this.closed = !this.closed;
|
|
@@ -62,7 +64,9 @@ class FlowUiPanelHeader extends FlowRdfElement {
|
|
|
62
64
|
event.preventDefault();
|
|
63
65
|
this.closed = false;
|
|
64
66
|
}
|
|
65
|
-
|
|
67
|
+
if (this.closed !== wasClosed) {
|
|
68
|
+
this.emit(this.closed ? "flow-ui-collapse" : "flow-ui-expand");
|
|
69
|
+
}
|
|
66
70
|
}
|
|
67
71
|
handleExpandCollapse() {
|
|
68
72
|
this.closed = this.toggleButton.closed;
|
|
@@ -108,18 +112,20 @@ class FlowUiPanelHeader extends FlowRdfElement {
|
|
|
108
112
|
@keydown=${this.handleHeaderKeyDown}
|
|
109
113
|
></slot>
|
|
110
114
|
${this.fixed ? nothing : html`
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
<flow-ui-split-view-toggle-button
|
|
116
|
+
class="panel-header__toggle-button"
|
|
117
|
+
position="top"
|
|
118
|
+
?closed=${this.closed}
|
|
119
|
+
@click=${this.handleToggleClick}
|
|
120
|
+
></flow-ui-split-view-toggle-button>
|
|
121
|
+
`}
|
|
118
122
|
</div>
|
|
119
123
|
`;
|
|
120
124
|
}
|
|
121
125
|
}
|
|
126
|
+
FlowUiPanelHeader.tagName = "flow-ui-panel-header";
|
|
122
127
|
FlowUiPanelHeader.styles = styles;
|
|
128
|
+
FlowUiPanelHeader.dependencies = [FlowUiSplitViewToggleButton];
|
|
123
129
|
__decorateClass([
|
|
124
130
|
query(".panel-header")
|
|
125
131
|
], FlowUiPanelHeader.prototype, "header", 2);
|
|
@@ -46,14 +46,14 @@ class FlowUiPopup extends FlowRdfElement {
|
|
|
46
46
|
const anchorRect = this.anchorEl.getBoundingClientRect();
|
|
47
47
|
const popupRect = this.popup.getBoundingClientRect();
|
|
48
48
|
const isVertical = this.placement.includes("top") || this.placement.includes("bottom");
|
|
49
|
-
let topLeftX
|
|
50
|
-
let topLeftY
|
|
51
|
-
let topRightX
|
|
52
|
-
let topRightY
|
|
53
|
-
let bottomLeftX
|
|
54
|
-
let bottomLeftY
|
|
55
|
-
let bottomRightX
|
|
56
|
-
let bottomRightY
|
|
49
|
+
let topLeftX;
|
|
50
|
+
let topLeftY;
|
|
51
|
+
let topRightX;
|
|
52
|
+
let topRightY;
|
|
53
|
+
let bottomLeftX;
|
|
54
|
+
let bottomLeftY;
|
|
55
|
+
let bottomRightX;
|
|
56
|
+
let bottomRightY;
|
|
57
57
|
if (isVertical) {
|
|
58
58
|
if (anchorRect.top < popupRect.top) {
|
|
59
59
|
topLeftX = anchorRect.left;
|
|
@@ -274,7 +274,7 @@ class FlowUiPopup extends FlowRdfElement {
|
|
|
274
274
|
let top = "";
|
|
275
275
|
let right = "";
|
|
276
276
|
let bottom = "";
|
|
277
|
-
let left
|
|
277
|
+
let left;
|
|
278
278
|
if (this.arrowPlacement === "start") {
|
|
279
279
|
const value = typeof arrowX === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
280
280
|
top = typeof arrowY === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
|
|
@@ -327,12 +327,13 @@ class FlowUiPopup extends FlowRdfElement {
|
|
|
327
327
|
>
|
|
328
328
|
<slot></slot>
|
|
329
329
|
${this.arrow ? html`
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
<div part="arrow" class="popup__arrow" role="presentation"></div>
|
|
331
|
+
` : ""}
|
|
332
332
|
</div>
|
|
333
333
|
`;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
+
FlowUiPopup.tagName = "flow-ui-popup";
|
|
336
337
|
FlowUiPopup.styles = [componentStyles, styles];
|
|
337
338
|
__decorateClass([
|
|
338
339
|
query(".popup")
|
|
@@ -47,12 +47,13 @@ class FlowUiProgressBar extends FlowRdfElement {
|
|
|
47
47
|
</div>
|
|
48
48
|
<div class="progress-bar__label-container">
|
|
49
49
|
${!this.indeterminate ? html`
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
<slot part="label" class="progress-bar__label"></slot>
|
|
51
|
+
` : ""}
|
|
52
52
|
</div>
|
|
53
53
|
`;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
FlowUiProgressBar.tagName = "flow-ui-progress-bar";
|
|
56
57
|
FlowUiProgressBar.styles = styles;
|
|
57
58
|
__decorateClass([
|
|
58
59
|
property()
|
|
@@ -41,10 +41,6 @@ function rulesetToJavascript(rule, config, options) {
|
|
|
41
41
|
console.warn(`JavascriptFilterConverter: Skipping nil field '${rule.field}' in rule (non-nullable)`, rule);
|
|
42
42
|
return void 0;
|
|
43
43
|
}
|
|
44
|
-
let fieldName = rule.field;
|
|
45
|
-
if (options?.renameFields && fieldName in options.renameFields) {
|
|
46
|
-
fieldName = options.renameFields[fieldName];
|
|
47
|
-
}
|
|
48
44
|
return predicateFromRule(rule, config, options);
|
|
49
45
|
} else if (isRuleSet(rule)) {
|
|
50
46
|
const condition = rule.condition === "and" ? " && " : " || ";
|
|
@@ -20,10 +20,6 @@ function mapLayerFilterFromRuleSet(rule, config, options) {
|
|
|
20
20
|
console.warn(`mapLayerFilterConverter: Skipping nil field '${rule.field}' in rule (non-nullable)`, rule);
|
|
21
21
|
return void 0;
|
|
22
22
|
}
|
|
23
|
-
let fieldName = rule.field;
|
|
24
|
-
if (options?.renameFields && fieldName in options.renameFields) {
|
|
25
|
-
fieldName = options.renameFields[fieldName];
|
|
26
|
-
}
|
|
27
23
|
return predicateFromRule(rule, config, options);
|
|
28
24
|
} else if (isRuleSet(rule)) {
|
|
29
25
|
const condition = rule.condition === "and" ? " && " : " || ";
|