@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
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Flo.w RDF UI
|
|
2
|
+
|
|
3
|
+
`@emuanalytics/flow-rdf-ui` is the Flo.w RDF web component library (`flow-ui-*` elements), with its themes and icons.
|
|
4
|
+
See the [Flo.w documentation](https://developer.emu-analytics.net/docsv4/) for how to use it.
|
|
5
|
+
|
|
6
|
+
## Storybook
|
|
7
|
+
|
|
8
|
+
The component stories are published as a static Storybook at <https://developer.emu-analytics.net/storybook/>.
|
|
9
|
+
|
|
10
|
+
To run Storybook locally on <http://localhost:6006>:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
pnpm storybook # in this package
|
|
14
|
+
pnpm storybook-ui # or from the repo root
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Deploying the static Storybook
|
|
18
|
+
|
|
19
|
+
The site is hosted in the `developer.emu-analytics.net` S3 bucket (region `us-east-1`) under the `storybook/` prefix.
|
|
20
|
+
There is no pipeline for it: deploy from your machine.
|
|
21
|
+
|
|
22
|
+
1. **Build the libraries.** Storybook imports `flow-rdf-core` from its `dist/`, and the stories need the icons, themes
|
|
23
|
+
and animations that the flow-rdf-ui build generates. From the repo root:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
pnpm install
|
|
27
|
+
pnpm turbo run build --filter=@emuanalytics/flow-rdf-ui
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
2. **Build the static Storybook** into `storybook-static/` (gitignored):
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
pnpm --filter @emuanalytics/flow-rdf-ui build-storybook
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
3. **Deploy it:**
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
pnpm --filter @emuanalytics/flow-rdf-ui deploy-storybook
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
`scripts/deploy-storybook.ts` syncs `storybook-static/` to `s3://developer.emu-analytics.net/storybook`. It makes
|
|
43
|
+
every file `public-read` with a content type based on its extension, and it **deletes** anything under the prefix
|
|
44
|
+
that isn't in the local build, so always deploy a complete build.
|
|
45
|
+
|
|
46
|
+
4. **Invalidate the CloudFront cache.** The site is served through CloudFront distribution `E1RK7JOWMYCCXB`, which
|
|
47
|
+
caches files under `/storybook/` for up to 24 hours:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
aws cloudfront create-invalidation --distribution-id E1RK7JOWMYCCXB --paths '/storybook/*'
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The deploy uses the AWS SDK's default credentials: `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, or an `AWS_PROFILE`
|
|
54
|
+
from `~/.aws`. For example, `AWS_PROFILE=<profile> pnpm --filter @emuanalytics/flow-rdf-ui deploy-storybook`. The
|
|
55
|
+
credentials need to list, put (including setting the object ACL) and delete objects in the bucket.
|
|
56
|
+
|
|
57
|
+
The script prints `Done` on success or `Failed - <reason>` on failure, and it exits with status 0 in both cases.
|
|
58
|
+
Check the last line of its output.
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
`@emuanalytics/flow-rdf-ui` includes code from the following third-party project.
|
|
4
|
+
|
|
5
|
+
## ngDiagram
|
|
6
|
+
|
|
7
|
+
- Project: ngDiagram, https://github.com/synergycodes/ng-diagram (https://www.ngdiagram.dev/)
|
|
8
|
+
- Version: 1.4.0 (commit `ca7b1af2`)
|
|
9
|
+
- Copyright 2025 Synergia Pro Sp. z o.o.
|
|
10
|
+
- License: Apache License, Version 2.0 (full text below)
|
|
11
|
+
|
|
12
|
+
The diagram engine in `dist/diagram-core` is compiled from an unmodified copy of ngDiagram's framework-agnostic core
|
|
13
|
+
(`src/diagram-core` in the source repository). The `flow-ui-diagram*` web components and the diagram runtime in
|
|
14
|
+
`dist/diagram` and `dist/components/diagram*` are modified from ngDiagram's Angular library: they re-implement its
|
|
15
|
+
components, directives and services as Lit web components. Each modified source file carries a
|
|
16
|
+
"Modified from ngDiagram" notice.
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
Apache License
|
|
20
|
+
Version 2.0, January 2004
|
|
21
|
+
http://www.apache.org/licenses/
|
|
22
|
+
|
|
23
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
24
|
+
|
|
25
|
+
1. Definitions.
|
|
26
|
+
|
|
27
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
28
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
29
|
+
|
|
30
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
31
|
+
the copyright owner that is granting the License.
|
|
32
|
+
|
|
33
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
34
|
+
other entities that control, are controlled by, or are under common
|
|
35
|
+
control with that entity. For the purposes of this definition,
|
|
36
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
37
|
+
direction or management of such entity, whether by contract or
|
|
38
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
39
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
40
|
+
|
|
41
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
42
|
+
exercising permissions granted by this License.
|
|
43
|
+
|
|
44
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
45
|
+
including but not limited to software source code, documentation
|
|
46
|
+
source, and configuration files.
|
|
47
|
+
|
|
48
|
+
"Object" form shall mean any form resulting from mechanical
|
|
49
|
+
transformation or translation of a Source form, including but
|
|
50
|
+
not limited to compiled object code, generated documentation,
|
|
51
|
+
and conversions to other media types.
|
|
52
|
+
|
|
53
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
54
|
+
Object form, made available under the License, as indicated by a
|
|
55
|
+
copyright notice that is included in or attached to the work
|
|
56
|
+
(an example is provided in the Appendix below).
|
|
57
|
+
|
|
58
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
59
|
+
form, that is based on (or derived from) the Work and for which the
|
|
60
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
61
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
62
|
+
of this License, Derivative Works shall not include works that remain
|
|
63
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
64
|
+
the Work and Derivative Works thereof.
|
|
65
|
+
|
|
66
|
+
"Contribution" shall mean any work of authorship, including
|
|
67
|
+
the original version of the Work and any modifications or additions
|
|
68
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
69
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
70
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
71
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
72
|
+
means any form of electronic, verbal, or written communication sent
|
|
73
|
+
to the Licensor or its representatives, including but not limited to
|
|
74
|
+
communication on electronic mailing lists, source code control systems,
|
|
75
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
76
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
77
|
+
excluding communication that is conspicuously marked or otherwise
|
|
78
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
79
|
+
|
|
80
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
81
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
82
|
+
subsequently incorporated within the Work.
|
|
83
|
+
|
|
84
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
85
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
86
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
87
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
88
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
89
|
+
Work and such Derivative Works in Source or Object form.
|
|
90
|
+
|
|
91
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
92
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
93
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
94
|
+
(except as stated in this section) patent license to make, have made,
|
|
95
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
96
|
+
where such license applies only to those patent claims licensable
|
|
97
|
+
by such Contributor that are necessarily infringed by their
|
|
98
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
99
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
100
|
+
institute patent litigation against any entity (including a
|
|
101
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
102
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
103
|
+
or contributory patent infringement, then any patent licenses
|
|
104
|
+
granted to You under this License for that Work shall terminate
|
|
105
|
+
as of the date such litigation is filed.
|
|
106
|
+
|
|
107
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
108
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
109
|
+
modifications, and in Source or Object form, provided that You
|
|
110
|
+
meet the following conditions:
|
|
111
|
+
|
|
112
|
+
(a) You must give any other recipients of the Work or
|
|
113
|
+
Derivative Works a copy of this License; and
|
|
114
|
+
|
|
115
|
+
(b) You must cause any modified files to carry prominent notices
|
|
116
|
+
stating that You changed the files; and
|
|
117
|
+
|
|
118
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
119
|
+
that You distribute, all copyright, patent, trademark, and
|
|
120
|
+
attribution notices from the Source form of the Work,
|
|
121
|
+
excluding those notices that do not pertain to any part of
|
|
122
|
+
the Derivative Works; and
|
|
123
|
+
|
|
124
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
125
|
+
distribution, then any Derivative Works that You distribute must
|
|
126
|
+
include a readable copy of the attribution notices contained
|
|
127
|
+
within such NOTICE file, excluding those notices that do not
|
|
128
|
+
pertain to any part of the Derivative Works, in at least one
|
|
129
|
+
of the following places: within a NOTICE text file distributed
|
|
130
|
+
as part of the Derivative Works; within the Source form or
|
|
131
|
+
documentation, if provided along with the Derivative Works; or,
|
|
132
|
+
within a display generated by the Derivative Works, if and
|
|
133
|
+
wherever such third-party notices normally appear. The contents
|
|
134
|
+
of the NOTICE file are for informational purposes only and
|
|
135
|
+
do not modify the License. You may add Your own attribution
|
|
136
|
+
notices within Derivative Works that You distribute, alongside
|
|
137
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
138
|
+
that such additional attribution notices cannot be construed
|
|
139
|
+
as modifying the License.
|
|
140
|
+
|
|
141
|
+
You may add Your own copyright statement to Your modifications and
|
|
142
|
+
may provide additional or different license terms and conditions
|
|
143
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
144
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
145
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
146
|
+
the conditions stated in this License.
|
|
147
|
+
|
|
148
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
149
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
150
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
151
|
+
this License, without any additional terms or conditions.
|
|
152
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
153
|
+
the terms of any separate license agreement you may have executed
|
|
154
|
+
with Licensor regarding such Contributions.
|
|
155
|
+
|
|
156
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
157
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
158
|
+
except as required for reasonable and customary use in describing the
|
|
159
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
160
|
+
|
|
161
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
162
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
163
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
164
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
165
|
+
implied, including, without limitation, any warranties or conditions
|
|
166
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
167
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
168
|
+
appropriateness of using or redistributing the Work and assume any
|
|
169
|
+
risks associated with Your exercise of permissions under this License.
|
|
170
|
+
|
|
171
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
172
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
173
|
+
unless required by applicable law (such as deliberate and grossly
|
|
174
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
175
|
+
liable to You for damages, including any direct, indirect, special,
|
|
176
|
+
incidental, or consequential damages of any character arising as a
|
|
177
|
+
result of this License or out of the use or inability to use the
|
|
178
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
179
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
180
|
+
other commercial damages or losses), even if such Contributor
|
|
181
|
+
has been advised of the possibility of such damages.
|
|
182
|
+
|
|
183
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
184
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
185
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
186
|
+
or other liability obligations and/or rights consistent with this
|
|
187
|
+
License. However, in accepting such obligations, You may act only
|
|
188
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
189
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
190
|
+
defend, and hold each Contributor harmless for any liability
|
|
191
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
192
|
+
of your accepting any such warranty or additional liability.
|
|
193
|
+
|
|
194
|
+
END OF TERMS AND CONDITIONS
|
|
195
|
+
|
|
196
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
197
|
+
|
|
198
|
+
To apply the Apache License to your work, attach the following
|
|
199
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
200
|
+
replaced with your own identifying information. (Don't include
|
|
201
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
202
|
+
comment syntax for the file format. We also recommend that a
|
|
203
|
+
file or class name and description of purpose be included on the
|
|
204
|
+
same "printed page" as the copyright notice for easier
|
|
205
|
+
identification within third-party archives.
|
|
206
|
+
|
|
207
|
+
Copyright 2025 Synergia Pro Sp. z o.o.
|
|
208
|
+
|
|
209
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
210
|
+
you may not use this file except in compliance with the License.
|
|
211
|
+
You may obtain a copy of the License at
|
|
212
|
+
|
|
213
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
214
|
+
|
|
215
|
+
Unless required by applicable law or agreed to in writing, software
|
|
216
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
217
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
218
|
+
See the License for the specific language governing permissions and
|
|
219
|
+
limitations under the License.
|
|
220
|
+
```
|
|
@@ -9,6 +9,7 @@ import { HasSlotController } from '../../internal/slot.mjs';
|
|
|
9
9
|
import { watch } from '../../internal/watch.mjs';
|
|
10
10
|
import { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.mjs';
|
|
11
11
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
12
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
12
13
|
import styles from './alert.styles.mjs';
|
|
13
14
|
|
|
14
15
|
var __defProp = Object.defineProperty;
|
|
@@ -162,7 +163,9 @@ class FlowUiAlert extends FlowRdfElement {
|
|
|
162
163
|
`;
|
|
163
164
|
}
|
|
164
165
|
}
|
|
166
|
+
FlowUiAlert.tagName = "flow-ui-alert";
|
|
165
167
|
FlowUiAlert.styles = styles;
|
|
168
|
+
FlowUiAlert.dependencies = [FlowUiIconButton];
|
|
166
169
|
__decorateClass([
|
|
167
170
|
query('[part~="base"]')
|
|
168
171
|
], FlowUiAlert.prototype, "base", 2);
|
|
@@ -11,6 +11,7 @@ import { LocalizeController as LocalizeController$1 } from '../../internal/local
|
|
|
11
11
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
12
12
|
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
13
13
|
import FlowUiPopup from '../popup/popup.component.mjs';
|
|
14
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
14
15
|
import styles from './autocomplete.styles.mjs';
|
|
15
16
|
import { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.mjs';
|
|
16
17
|
import { stopAnimations, animateTo } from '../../internal/animate.mjs';
|
|
@@ -38,6 +39,8 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
38
39
|
this.mouseDownAt = 0;
|
|
39
40
|
this.pendingChangeEvent = false;
|
|
40
41
|
this.pendingInputEvent = false;
|
|
42
|
+
/** @internal When true, the next value change leaves the input text as the user typed it */
|
|
43
|
+
this.pendingKeepInputText = false;
|
|
41
44
|
this.hasOptions = false;
|
|
42
45
|
/** @internal True while the user is typing to filter (input text has diverged from the committed value). */
|
|
43
46
|
this.inputChanged = false;
|
|
@@ -206,16 +209,17 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
206
209
|
*
|
|
207
210
|
* @param value - The value to set.
|
|
208
211
|
* @param emitChangeEvent - A change event will be emitted if true.
|
|
212
|
+
* @param keepInputText - The input text is not re-synced from {@link displayWith} if true.
|
|
209
213
|
*/
|
|
210
214
|
setValue(value, options) {
|
|
211
215
|
this.pendingChangeEvent = options?.emitChangeEvent ?? false;
|
|
212
216
|
this.pendingInputEvent = options?.emitInputEvent ?? false;
|
|
217
|
+
this.pendingKeepInputText = options?.keepInputText ?? false;
|
|
213
218
|
this.value = value;
|
|
214
219
|
}
|
|
215
220
|
updateDebounceDelay() {
|
|
216
221
|
this.debouncedInput = debounce(
|
|
217
|
-
(
|
|
218
|
-
this.inputText = inputText;
|
|
222
|
+
() => {
|
|
219
223
|
this.emit("flow-ui-input");
|
|
220
224
|
},
|
|
221
225
|
this.debounceDelay,
|
|
@@ -226,10 +230,14 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
226
230
|
handleInput(event) {
|
|
227
231
|
event.stopPropagation();
|
|
228
232
|
this.inputChanged = true;
|
|
233
|
+
if (this.clearable && isStringFull(this.value)) {
|
|
234
|
+
this.setValue("", { emitChangeEvent: true, keepInputText: true });
|
|
235
|
+
}
|
|
229
236
|
if (this.open) {
|
|
230
237
|
this.highlightCurrentOption();
|
|
231
238
|
}
|
|
232
|
-
this.
|
|
239
|
+
this.inputText = this.input.value;
|
|
240
|
+
this.debouncedInput();
|
|
233
241
|
}
|
|
234
242
|
/** @internal Handle the `flow-ui-change` event from the input box */
|
|
235
243
|
handleInputChange(event) {
|
|
@@ -265,11 +273,27 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
265
273
|
const target = event.target;
|
|
266
274
|
const option = target.closest("flow-ui-option");
|
|
267
275
|
if (option && !option.disabled) {
|
|
276
|
+
await this.commitOption(option);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* @internal
|
|
281
|
+
* Commits an option picked by the user and closes the control. Re-picking the already selected
|
|
282
|
+
* option (e.g. after the input text was edited away) commits no new value, so no change event
|
|
283
|
+
* fires; the input text is re-synced from {@link displayWith} instead.
|
|
284
|
+
*/
|
|
285
|
+
async commitOption(option) {
|
|
286
|
+
if (option.value !== this.value) {
|
|
268
287
|
this.setValue(option.value, { emitChangeEvent: true });
|
|
269
288
|
this.input.focus();
|
|
270
289
|
await waitForEvent(this, "flow-ui-change");
|
|
271
|
-
|
|
290
|
+
} else {
|
|
291
|
+
this.inputChanged = false;
|
|
292
|
+
this.setSelectedOption(option);
|
|
293
|
+
this.input.focus();
|
|
294
|
+
await this.syncDisplayValue();
|
|
272
295
|
}
|
|
296
|
+
this.blur();
|
|
273
297
|
}
|
|
274
298
|
/** @internal */
|
|
275
299
|
async handleKeyDown(event) {
|
|
@@ -306,11 +330,8 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
306
330
|
event.preventDefault();
|
|
307
331
|
event.stopPropagation();
|
|
308
332
|
if (this.currentOption && !this.currentOption.disabled) {
|
|
309
|
-
this.
|
|
310
|
-
this.setValue(this.currentOption.value, { emitChangeEvent: true });
|
|
333
|
+
await this.commitOption(this.currentOption);
|
|
311
334
|
}
|
|
312
|
-
await waitForEvent(this, "flow-ui-change");
|
|
313
|
-
this.blur();
|
|
314
335
|
}
|
|
315
336
|
}
|
|
316
337
|
/** @internal Add event listeners to the document when the dropdown is opened. */
|
|
@@ -370,14 +391,19 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
370
391
|
* Syncs the {@link displayValue} by applying {@link displayWith} based on the current {@link value}.
|
|
371
392
|
*/
|
|
372
393
|
async syncDisplayValue() {
|
|
394
|
+
this.debouncedInput?.cancel();
|
|
373
395
|
await this.updateComplete.then(async () => {
|
|
374
396
|
this.inputText = await Promise.resolve(this.displayWith(this.value)) ?? "";
|
|
375
397
|
});
|
|
376
398
|
}
|
|
377
399
|
async handleValueChange(oldValue, value) {
|
|
378
400
|
if (value !== oldValue) {
|
|
379
|
-
this.
|
|
380
|
-
|
|
401
|
+
if (this.pendingKeepInputText) {
|
|
402
|
+
this.pendingKeepInputText = false;
|
|
403
|
+
} else {
|
|
404
|
+
this.inputChanged = false;
|
|
405
|
+
await this.syncDisplayValue();
|
|
406
|
+
}
|
|
381
407
|
const options = this.getAllOptions();
|
|
382
408
|
this.assignOptionIds(options);
|
|
383
409
|
this.setSelectedOption(null);
|
|
@@ -633,11 +659,9 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
633
659
|
`;
|
|
634
660
|
}
|
|
635
661
|
}
|
|
662
|
+
FlowUiAutocomplete.tagName = "flow-ui-autocomplete";
|
|
636
663
|
FlowUiAutocomplete.styles = styles;
|
|
637
|
-
FlowUiAutocomplete.dependencies =
|
|
638
|
-
"flow-ui-popup": FlowUiPopup,
|
|
639
|
-
"flow-ui-icon": FlowUiIcon
|
|
640
|
-
};
|
|
664
|
+
FlowUiAutocomplete.dependencies = [FlowUiDivider, FlowUiIcon, FlowUiPopup];
|
|
641
665
|
__decorateClass([
|
|
642
666
|
property({ reflect: true })
|
|
643
667
|
], FlowUiAutocomplete.prototype, "size", 2);
|
|
@@ -3,6 +3,7 @@ import { state, property } from 'lit/decorators.js';
|
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
5
5
|
import { watch } from '../../internal/watch.mjs';
|
|
6
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
6
7
|
import styles from './avatar.styles.mjs';
|
|
7
8
|
|
|
8
9
|
var __defProp = Object.defineProperty;
|
|
@@ -69,7 +70,9 @@ class FlowUiAvatar extends FlowRdfElement {
|
|
|
69
70
|
`;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
73
|
+
FlowUiAvatar.tagName = "flow-ui-avatar";
|
|
72
74
|
FlowUiAvatar.styles = styles;
|
|
75
|
+
FlowUiAvatar.dependencies = [FlowUiIcon];
|
|
73
76
|
__decorateClass([
|
|
74
77
|
state()
|
|
75
78
|
], FlowUiAvatar.prototype, "hasError", 2);
|
|
@@ -6,6 +6,7 @@ import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
6
6
|
import { FormControlController } 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 './base-control.styles.mjs';
|
|
10
11
|
|
|
11
12
|
var __defProp = Object.defineProperty;
|
|
@@ -144,7 +145,9 @@ class FlowUiBaseControl extends FlowRdfFormControl {
|
|
|
144
145
|
`;
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
FlowUiBaseControl.tagName = "flow-ui-base-control";
|
|
147
149
|
FlowUiBaseControl.styles = styles;
|
|
150
|
+
FlowUiBaseControl.dependencies = [FlowUiDivider];
|
|
148
151
|
__decorateClass([
|
|
149
152
|
query(".input__control")
|
|
150
153
|
], FlowUiBaseControl.prototype, "input", 2);
|
|
@@ -2,6 +2,7 @@ import { html } from 'lit';
|
|
|
2
2
|
import { query, property } from 'lit/decorators.js';
|
|
3
3
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
4
4
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
5
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
5
6
|
import styles from './breadcrumb.styles.mjs';
|
|
6
7
|
|
|
7
8
|
var __defProp = Object.defineProperty;
|
|
@@ -68,7 +69,9 @@ class FlowUiBreadcrumb extends FlowRdfElement {
|
|
|
68
69
|
`;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
72
|
+
FlowUiBreadcrumb.tagName = "flow-ui-breadcrumb";
|
|
71
73
|
FlowUiBreadcrumb.styles = styles;
|
|
74
|
+
FlowUiBreadcrumb.dependencies = [FlowUiIcon];
|
|
72
75
|
__decorateClass([
|
|
73
76
|
query("slot")
|
|
74
77
|
], FlowUiBreadcrumb.prototype, "defaultSlot", 2);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
2
|
import { property } from 'lit/decorators.js';
|
|
3
3
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
4
|
+
import FlowUiProgressRing from '../progress-ring/progress-ring.component.mjs';
|
|
4
5
|
import styles from './busy-overlay.styles.mjs';
|
|
5
6
|
import { boolean } from '../../internal/boolean.mjs';
|
|
6
7
|
|
|
@@ -39,7 +40,9 @@ class FlowUiBusyOverlay extends FlowRdfElement {
|
|
|
39
40
|
`;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
43
|
+
FlowUiBusyOverlay.tagName = "flow-ui-busy-overlay";
|
|
42
44
|
FlowUiBusyOverlay.styles = styles;
|
|
45
|
+
FlowUiBusyOverlay.dependencies = [FlowUiProgressRing];
|
|
43
46
|
__decorateClass([
|
|
44
47
|
property({ reflect: true, type: Boolean })
|
|
45
48
|
], FlowUiBusyOverlay.prototype, "busy", 2);
|
|
@@ -8,6 +8,8 @@ import { FormControlController, validValidityState } from '../../internal/form.m
|
|
|
8
8
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
9
9
|
import { watch } from '../../internal/watch.mjs';
|
|
10
10
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
11
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
12
|
+
import FlowUiProgressRing from '../progress-ring/progress-ring.component.mjs';
|
|
11
13
|
import buttonStyles from './button.styles.mjs';
|
|
12
14
|
|
|
13
15
|
var __defProp = Object.defineProperty;
|
|
@@ -230,7 +232,9 @@ class FlowUiButton extends FlowRdfFormControl {
|
|
|
230
232
|
`;
|
|
231
233
|
}
|
|
232
234
|
}
|
|
235
|
+
FlowUiButton.tagName = "flow-ui-button";
|
|
233
236
|
FlowUiButton.styles = buttonStyles;
|
|
237
|
+
FlowUiButton.dependencies = [FlowUiIcon, FlowUiProgressRing];
|
|
234
238
|
__decorateClass([
|
|
235
239
|
query(".button")
|
|
236
240
|
], FlowUiButton.prototype, "button", 2);
|
|
@@ -8,6 +8,10 @@ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
8
8
|
import { isStringFull, isDefined } from '../../internal/type-checks.mjs';
|
|
9
9
|
import { watch } from '../../internal/watch.mjs';
|
|
10
10
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
11
|
+
import FlowUiInput from '../input/input.component.mjs';
|
|
12
|
+
import FlowUiSelect from '../select/select.component.mjs';
|
|
13
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
14
|
+
import FlowUiOption from '../option/option.component.mjs';
|
|
11
15
|
import styles from './calendar.styles.mjs';
|
|
12
16
|
|
|
13
17
|
var __defProp = Object.defineProperty;
|
|
@@ -669,7 +673,9 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
669
673
|
`;
|
|
670
674
|
}
|
|
671
675
|
}
|
|
676
|
+
FlowUiCalendar.tagName = "flow-ui-calendar";
|
|
672
677
|
FlowUiCalendar.styles = styles;
|
|
678
|
+
FlowUiCalendar.dependencies = [FlowUiIconButton, FlowUiInput, FlowUiOption, FlowUiSelect];
|
|
673
679
|
__decorateClass([
|
|
674
680
|
query(".calendar__month-select")
|
|
675
681
|
], FlowUiCalendar.prototype, "_monthSelect", 2);
|
|
@@ -10,6 +10,7 @@ import { clamp } from '../../internal/math.mjs';
|
|
|
10
10
|
import { watch } from '../../internal/watch.mjs';
|
|
11
11
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
12
12
|
import FlowUiCarouselItem from '../carousel-item/carousel-item.component.mjs';
|
|
13
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
13
14
|
import { AutoplayController } from './autoplay-controller.mjs';
|
|
14
15
|
import styles from './carousel.styles.mjs';
|
|
15
16
|
import { ScrollController } from './scroll-controller.mjs';
|
|
@@ -346,7 +347,9 @@ class FlowUiCarousel extends FlowRdfElement {
|
|
|
346
347
|
`;
|
|
347
348
|
}
|
|
348
349
|
}
|
|
350
|
+
FlowUiCarousel.tagName = "flow-ui-carousel";
|
|
349
351
|
FlowUiCarousel.styles = styles;
|
|
352
|
+
FlowUiCarousel.dependencies = [FlowUiIcon];
|
|
350
353
|
__decorateClass([
|
|
351
354
|
property({ type: Boolean, reflect: true })
|
|
352
355
|
], FlowUiCarousel.prototype, "loop", 2);
|