@emuanalytics/flow-rdf-ui 4.2.1 → 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 +3 -4
- 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 +4 -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 +7002 -867
- 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 +13406 -3796
- package/dist/index.d.ts +13406 -3796
- 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 +369 -96
- 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
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { state, query, property } from 'lit/decorators.js';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
4
5
|
import { boolean } from '../../internal/boolean.mjs';
|
|
6
|
+
import { dispatchContentResize, isRendered } from '../../internal/content-size.mjs';
|
|
5
7
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
6
8
|
import { scrollIntoView } from '../../internal/scroll.mjs';
|
|
7
9
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
8
10
|
import { watch } from '../../internal/watch.mjs';
|
|
9
11
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
12
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
13
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
10
14
|
import styles from './tab-group.styles.mjs';
|
|
11
15
|
|
|
12
16
|
var __defProp = Object.defineProperty;
|
|
@@ -20,6 +24,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
20
24
|
__defProp(target, key, result);
|
|
21
25
|
return result;
|
|
22
26
|
};
|
|
27
|
+
const BODY_ANIMATION_TIMEOUT = 1500;
|
|
23
28
|
class FlowUiTabGroup extends FlowRdfElement {
|
|
24
29
|
constructor() {
|
|
25
30
|
super(...arguments);
|
|
@@ -27,15 +32,20 @@ class FlowUiTabGroup extends FlowRdfElement {
|
|
|
27
32
|
this.hasSlotController = new HasSlotController(this, "nav-accessories-start", "nav-accessories-end");
|
|
28
33
|
this.tabs = [];
|
|
29
34
|
this.panels = [];
|
|
35
|
+
this.bodyState = "open";
|
|
36
|
+
/** Whether the split view of the tab group's pane is animating the panes' sizes. */
|
|
37
|
+
this.animating = false;
|
|
30
38
|
this.hasScrollControls = false;
|
|
31
39
|
this.placement = "top";
|
|
32
40
|
this.activation = "auto";
|
|
33
41
|
this.noScrollControls = false;
|
|
42
|
+
this.closed = false;
|
|
34
43
|
}
|
|
35
44
|
connectedCallback() {
|
|
36
45
|
super.connectedCallback();
|
|
37
46
|
this.noScrollControls = boolean(this.noScrollControls, true);
|
|
38
47
|
this.controlSplitView = boolean(this.controlSplitView, true);
|
|
48
|
+
this.closed = boolean(this.closed, true);
|
|
39
49
|
this.resizeObserver = new ResizeObserver(() => {
|
|
40
50
|
this.repositionIndicator();
|
|
41
51
|
this.updateScrollControls();
|
|
@@ -56,16 +66,150 @@ class FlowUiTabGroup extends FlowRdfElement {
|
|
|
56
66
|
}
|
|
57
67
|
}
|
|
58
68
|
});
|
|
69
|
+
this.bodyObserver = new ResizeObserver((entries) => {
|
|
70
|
+
const size = this.axisSize(entries[entries.length - 1].target);
|
|
71
|
+
if (this.bodyState === "open" && !this.closed && size > 0) {
|
|
72
|
+
this.openBodySize = size;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
59
75
|
this.updateComplete.then(() => {
|
|
60
76
|
this.syncTabsAndPanels();
|
|
61
77
|
this.setActiveTab(this.tabs.find((el) => el.active) ?? this.tabs[0], { emitEvents: false });
|
|
62
78
|
this.mutationObserver.observe(this, { attributes: true, childList: true, subtree: true });
|
|
63
79
|
this.resizeObserver.observe(this.nav);
|
|
80
|
+
if (this.bodyWrapper) {
|
|
81
|
+
this.bodyObserver?.observe(this.bodyWrapper);
|
|
82
|
+
}
|
|
64
83
|
});
|
|
65
84
|
}
|
|
66
85
|
disconnectedCallback() {
|
|
67
86
|
this.mutationObserver.disconnect();
|
|
68
87
|
this.resizeObserver.unobserve(this.nav);
|
|
88
|
+
this.bodyObserver?.disconnect();
|
|
89
|
+
this.watchContentSize(false);
|
|
90
|
+
this.animating = false;
|
|
91
|
+
if (this.bodyState === "closing" || this.bodyState === "opening") {
|
|
92
|
+
this.settleBody();
|
|
93
|
+
}
|
|
94
|
+
super.disconnectedCallback();
|
|
95
|
+
}
|
|
96
|
+
willUpdate(changed) {
|
|
97
|
+
super.willUpdate(changed);
|
|
98
|
+
if (changed.has("closed")) {
|
|
99
|
+
this.startBodyChange();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
updated(changed) {
|
|
103
|
+
super.updated(changed);
|
|
104
|
+
if (changed.has("placement")) {
|
|
105
|
+
this.observeContent();
|
|
106
|
+
} else if (this.contentObserver && changed.has("closed")) {
|
|
107
|
+
dispatchContentResize(this);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Lay the tab group out at its natural (max-content) size, all of it (`open`) or only its tab bar (`closed`)
|
|
112
|
+
* whatever its `closed` state, until called with `false`. The change is synchronous and undone before the next
|
|
113
|
+
* rendering, so a content-sized split-view pane can measure the tab group without anything being painted or
|
|
114
|
+
* observed.
|
|
115
|
+
*
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
setContentMeasuring(mode) {
|
|
119
|
+
const base = this.tabGroup;
|
|
120
|
+
base?.classList.toggle("tab-group--measuring", mode !== false);
|
|
121
|
+
base?.classList.toggle("tab-group--measuring-open", mode === "open");
|
|
122
|
+
base?.classList.toggle("tab-group--measuring-closed", mode === "closed");
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Start or stop dispatching the internal `flow-ui-content-resize` event when the tab group's natural size may have
|
|
126
|
+
* changed (its tab bar, header, footer or tab panels resized, or `closed` or `placement` changed). Used by a
|
|
127
|
+
* content-sized split-view pane.
|
|
128
|
+
*
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
watchContentSize(watch2) {
|
|
132
|
+
if (!watch2) {
|
|
133
|
+
this.contentObserver?.disconnect();
|
|
134
|
+
this.contentObserver = void 0;
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (!this.contentObserver) {
|
|
138
|
+
this.contentObserver = new ResizeObserver(() => dispatchContentResize(this));
|
|
139
|
+
this.observeContent();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Called by a split-view pane when its split view starts and stops animating the panes' sizes. A tab group that
|
|
144
|
+
* closes while the split view animates keeps its header, body and footer, inert, until the animation ends.
|
|
145
|
+
*
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
setAnimating(animating) {
|
|
149
|
+
this.animating = animating;
|
|
150
|
+
if (!animating && (this.bodyState === "closing" || this.bodyState === "opening")) {
|
|
151
|
+
this.settleBody();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
observeContent() {
|
|
155
|
+
const observer = this.contentObserver;
|
|
156
|
+
if (!observer) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
observer.disconnect();
|
|
160
|
+
const slotted = (name) => this.shadowRoot?.querySelector(`slot[name="${name}"]`)?.assignedElements() ?? [];
|
|
161
|
+
for (const element of [
|
|
162
|
+
...this.navContainer ? [this.navContainer] : [],
|
|
163
|
+
...slotted("header"),
|
|
164
|
+
...slotted("footer"),
|
|
165
|
+
...this.body?.assignedElements() ?? []
|
|
166
|
+
]) {
|
|
167
|
+
observer.observe(element);
|
|
168
|
+
}
|
|
169
|
+
dispatchContentResize(this);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* `closed` changed: hide or show the header, body and footer. While the tab group's pane animates (or may be about
|
|
173
|
+
* to: its split view can start animating after the pane has passed its state on), they keep their open size, and
|
|
174
|
+
* are inert while closing, until the animation ends. Anywhere else (standalone, not rendered, the first rendering)
|
|
175
|
+
* they change at once.
|
|
176
|
+
*/
|
|
177
|
+
startBodyChange() {
|
|
178
|
+
const animated = this.hasUpdated && (this.animating || isRendered(this) && !!this.parentElement?.closest("flow-ui-split-view-pane"));
|
|
179
|
+
if (!animated) {
|
|
180
|
+
this.settleBody();
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (this.closed) {
|
|
184
|
+
this.bodyState = "closing";
|
|
185
|
+
} else if (this.openBodySize !== void 0) {
|
|
186
|
+
this.bodyState = "opening";
|
|
187
|
+
} else {
|
|
188
|
+
this.settleBody();
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
cancelAnimationFrame(this.bodyFrame ?? 0);
|
|
192
|
+
clearTimeout(this.bodyTimer);
|
|
193
|
+
this.bodyFrame = requestAnimationFrame(() => {
|
|
194
|
+
this.bodyFrame = void 0;
|
|
195
|
+
if (!this.animating) {
|
|
196
|
+
this.settleBody();
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
this.bodyTimer = setTimeout(() => this.settleBody(), BODY_ANIMATION_TIMEOUT);
|
|
200
|
+
}
|
|
201
|
+
/** The header, body and footer stop keeping their open size: hidden if closed, following the tab group if open. */
|
|
202
|
+
settleBody() {
|
|
203
|
+
cancelAnimationFrame(this.bodyFrame ?? 0);
|
|
204
|
+
clearTimeout(this.bodyTimer);
|
|
205
|
+
this.bodyFrame = void 0;
|
|
206
|
+
this.bodyTimer = void 0;
|
|
207
|
+
this.bodyState = this.closed ? "closed" : "open";
|
|
208
|
+
}
|
|
209
|
+
/** An element's size across the tab bar: its width for tabs at the start or end, its height for top or bottom. */
|
|
210
|
+
axisSize(element) {
|
|
211
|
+
const rect = element.getBoundingClientRect();
|
|
212
|
+
return this.isHorizontal() ? rect.height : rect.width;
|
|
69
213
|
}
|
|
70
214
|
getAllTabs(options = { includeDisabled: true }) {
|
|
71
215
|
let slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
@@ -286,6 +430,10 @@ class FlowUiTabGroup extends FlowRdfElement {
|
|
|
286
430
|
this.indicator.style.display = "none";
|
|
287
431
|
}
|
|
288
432
|
}
|
|
433
|
+
handleBodySlotChange() {
|
|
434
|
+
this.syncTabsAndPanels();
|
|
435
|
+
this.observeContent();
|
|
436
|
+
}
|
|
289
437
|
/** Shows the specified tab panel. */
|
|
290
438
|
show(panel) {
|
|
291
439
|
const tab = this.tabs.find((el) => el.panel === panel);
|
|
@@ -305,7 +453,9 @@ class FlowUiTabGroup extends FlowRdfElement {
|
|
|
305
453
|
"tab-group--start": this.placement === "start",
|
|
306
454
|
"tab-group--end": this.placement === "end",
|
|
307
455
|
"tab-group--rtl": this.localize.dir() === "rtl",
|
|
308
|
-
"tab-group--has-scroll-controls": this.hasScrollControls
|
|
456
|
+
"tab-group--has-scroll-controls": this.hasScrollControls,
|
|
457
|
+
"tab-group--closed": this.bodyState === "closed",
|
|
458
|
+
"tab-group--frozen": this.bodyState === "closing" || this.bodyState === "opening"
|
|
309
459
|
})}
|
|
310
460
|
@click=${this.handleClick}
|
|
311
461
|
@keydown=${this.handleKeyDown}
|
|
@@ -365,16 +515,27 @@ class FlowUiTabGroup extends FlowRdfElement {
|
|
|
365
515
|
` : ""}
|
|
366
516
|
</div>
|
|
367
517
|
|
|
368
|
-
<div
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
518
|
+
<div
|
|
519
|
+
class="tab-group__body-wrapper"
|
|
520
|
+
style=${styleMap({
|
|
521
|
+
"--frozen-size": this.bodyState === "closing" || this.bodyState === "opening" ? `${this.openBodySize ?? 0}px` : void 0
|
|
522
|
+
})}
|
|
523
|
+
?inert=${this.bodyState === "closing"}
|
|
524
|
+
>
|
|
525
|
+
<slot name="header" part="header" class="tab-group__header" @slotchange=${this.observeContent}></slot>
|
|
526
|
+
<slot part="body" class="tab-group__body" @slotchange=${this.handleBodySlotChange}></slot>
|
|
527
|
+
<slot name="footer" part="footer" class="tab-group__footer" @slotchange=${this.observeContent}></slot>
|
|
372
528
|
</div>
|
|
373
529
|
</div>
|
|
374
530
|
`;
|
|
375
531
|
}
|
|
376
532
|
}
|
|
533
|
+
FlowUiTabGroup.tagName = "flow-ui-tab-group";
|
|
377
534
|
FlowUiTabGroup.styles = styles;
|
|
535
|
+
FlowUiTabGroup.dependencies = [FlowUiDivider, FlowUiIconButton];
|
|
536
|
+
__decorateClass([
|
|
537
|
+
state()
|
|
538
|
+
], FlowUiTabGroup.prototype, "bodyState", 2);
|
|
378
539
|
__decorateClass([
|
|
379
540
|
query(".tab-group")
|
|
380
541
|
], FlowUiTabGroup.prototype, "tabGroup", 2);
|
|
@@ -387,6 +548,12 @@ __decorateClass([
|
|
|
387
548
|
__decorateClass([
|
|
388
549
|
query(".tab-group__indicator")
|
|
389
550
|
], FlowUiTabGroup.prototype, "indicator", 2);
|
|
551
|
+
__decorateClass([
|
|
552
|
+
query(".tab-group__body-wrapper")
|
|
553
|
+
], FlowUiTabGroup.prototype, "bodyWrapper", 2);
|
|
554
|
+
__decorateClass([
|
|
555
|
+
query(".tab-group__nav-container")
|
|
556
|
+
], FlowUiTabGroup.prototype, "navContainer", 2);
|
|
390
557
|
__decorateClass([
|
|
391
558
|
state()
|
|
392
559
|
], FlowUiTabGroup.prototype, "hasScrollControls", 2);
|
|
@@ -402,6 +569,9 @@ __decorateClass([
|
|
|
402
569
|
__decorateClass([
|
|
403
570
|
property({ type: Boolean, attribute: "control-split-view" })
|
|
404
571
|
], FlowUiTabGroup.prototype, "controlSplitView", 2);
|
|
572
|
+
__decorateClass([
|
|
573
|
+
property({ type: Boolean, reflect: true })
|
|
574
|
+
], FlowUiTabGroup.prototype, "closed", 2);
|
|
405
575
|
__decorateClass([
|
|
406
576
|
watch("noScrollControls", { waitUntilFirstUpdate: true })
|
|
407
577
|
], FlowUiTabGroup.prototype, "updateScrollControls", 1);
|
|
@@ -91,6 +91,50 @@ const styles = css`
|
|
|
91
91
|
width: var(--flow-ui-spacing-x-large);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/* Closed: the tab bar only */
|
|
95
|
+
.tab-group--closed .tab-group__body-wrapper {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
* Closed: the track and active tab indicator would sit beside the split view's divider and double it, so they are
|
|
101
|
+
* transparent (keeping their space, so the closed size doesn't change)
|
|
102
|
+
*/
|
|
103
|
+
.tab-group--closed {
|
|
104
|
+
--track-color: transparent;
|
|
105
|
+
--indicator-color: transparent;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/*
|
|
109
|
+
* Closing and opening in an animating split-view pane: the header, body and footer keep their open size (set in
|
|
110
|
+
* --frozen-size), and the tab group clips them rather than squeezing them
|
|
111
|
+
*/
|
|
112
|
+
.tab-group--frozen:not(.tab-group--measuring) .tab-group__body-wrapper {
|
|
113
|
+
flex: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.tab-group--frozen.tab-group--start:not(.tab-group--measuring) .tab-group__body-wrapper,
|
|
117
|
+
.tab-group--frozen.tab-group--end:not(.tab-group--measuring) .tab-group__body-wrapper {
|
|
118
|
+
width: var(--frozen-size);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.tab-group--frozen.tab-group--top:not(.tab-group--measuring) .tab-group__body-wrapper,
|
|
122
|
+
.tab-group--frozen.tab-group--bottom:not(.tab-group--measuring) .tab-group__body-wrapper {
|
|
123
|
+
height: var(--frozen-size);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/*
|
|
127
|
+
* Measuring pass for a content-sized split-view pane (setContentMeasuring()): lay out in the state being measured,
|
|
128
|
+
* at the natural size. Added and removed synchronously, so it is never painted.
|
|
129
|
+
*/
|
|
130
|
+
.tab-group--measuring-open .tab-group__body-wrapper {
|
|
131
|
+
display: flex;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.tab-group--measuring-closed .tab-group__body-wrapper {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
94
138
|
/* Make tab panels take up full height */
|
|
95
139
|
::slotted(flow-ui-tab-panel) {
|
|
96
140
|
height: 100%;
|
|
@@ -76,8 +76,9 @@ class FlowUiTag extends FlowRdfElement {
|
|
|
76
76
|
`;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
+
FlowUiTag.tagName = "flow-ui-tag";
|
|
79
80
|
FlowUiTag.styles = styles;
|
|
80
|
-
FlowUiTag.dependencies =
|
|
81
|
+
FlowUiTag.dependencies = [FlowUiIconButton];
|
|
81
82
|
__decorateClass([
|
|
82
83
|
property({ reflect: true })
|
|
83
84
|
], FlowUiTag.prototype, "variant", 2);
|
|
@@ -38,8 +38,15 @@ class Ticker {
|
|
|
38
38
|
this.nextUpdateAt = DateTime.fromMillis(0);
|
|
39
39
|
this.notifySubscribers(this.currentDateTime, "major");
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Set the zone that ticks are expressed in (an IANA zone name, or `undefined` for the local zone).
|
|
43
|
+
*
|
|
44
|
+
* The current date/time is re-expressed in the new zone (the same instant), so the next tick of the same instant
|
|
45
|
+
* isn't treated as a change, and `stop()` notifies the current date/time in the new zone.
|
|
46
|
+
*/
|
|
41
47
|
setZone(zone) {
|
|
42
48
|
this.zone = zone;
|
|
49
|
+
this.currentDateTime = this.currentDateTime.setZone(zone ?? "local");
|
|
43
50
|
}
|
|
44
51
|
setTickInterval(tickInterval) {
|
|
45
52
|
this.tickInterval = tickInterval;
|
|
@@ -8,6 +8,11 @@ import { parseDuration, floorDateTime, ceilDateTime } from '../../internal/datet
|
|
|
8
8
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
9
9
|
import { isStringFull } from '../../internal/type-checks.mjs';
|
|
10
10
|
import { watch } from '../../internal/watch.mjs';
|
|
11
|
+
import FlowUiCalendar from '../calendar/calendar.component.mjs';
|
|
12
|
+
import FlowUiDropdown from '../dropdown/dropdown.component.mjs';
|
|
13
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
14
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
15
|
+
import FlowUiTooltip from '../tooltip/tooltip.component.mjs';
|
|
11
16
|
import { Ticker } from './ticker.mjs';
|
|
12
17
|
import styles from './timer.styles.mjs';
|
|
13
18
|
import { debounce } from '@emuanalytics/flow-rdf-core/utils';
|
|
@@ -51,7 +56,7 @@ class FlowUiTimer extends FlowRdfElement {
|
|
|
51
56
|
super.connectedCallback();
|
|
52
57
|
this.hideZone = boolean(this.hideZone, true);
|
|
53
58
|
this.running = boolean(this.running, true);
|
|
54
|
-
this.ticker = new Ticker({ second: 5 },
|
|
59
|
+
this.ticker = new Ticker({ second: 5 }, this.zone);
|
|
55
60
|
this.tickerSubscription = this.ticker.subscribe((dateTime, tickType) => {
|
|
56
61
|
if (tickType === "major") {
|
|
57
62
|
this.value = dateTime;
|
|
@@ -70,6 +75,24 @@ class FlowUiTimer extends FlowRdfElement {
|
|
|
70
75
|
updateDisplayValue() {
|
|
71
76
|
this.setDisplayDateTime(this.value);
|
|
72
77
|
}
|
|
78
|
+
updateTimezone() {
|
|
79
|
+
this.ticker.setZone(this.zone);
|
|
80
|
+
if (!this.hasUpdated) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const calendarZoneUpdate = this.updateComplete.then(() => this.calendar.updateComplete);
|
|
84
|
+
this.calendarZoneUpdate = calendarZoneUpdate;
|
|
85
|
+
void calendarZoneUpdate.finally(() => {
|
|
86
|
+
if (this.calendarZoneUpdate === calendarZoneUpdate) {
|
|
87
|
+
this.calendarZoneUpdate = void 0;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
const dateTime = DateTime.fromISO(this.value ?? "", { setZone: true }).setZone(this.zone ?? "local");
|
|
91
|
+
if (dateTime.isValid) {
|
|
92
|
+
this.value = dateTime.toISO();
|
|
93
|
+
this.emit("flow-ui-change");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
73
96
|
updateParsedSteps() {
|
|
74
97
|
this.minorStepDuration = parseDuration(this.minorStep) ?? { second: 5 };
|
|
75
98
|
this.majorStepDuration = parseDuration(this.majorStep) ?? { minute: 1 };
|
|
@@ -85,8 +108,12 @@ class FlowUiTimer extends FlowRdfElement {
|
|
|
85
108
|
this.ticker.stop();
|
|
86
109
|
}
|
|
87
110
|
}
|
|
111
|
+
/** The timezone, or `undefined` (the local zone) when it isn't set. */
|
|
112
|
+
get zone() {
|
|
113
|
+
return isStringFull(this.timezone) ? this.timezone : void 0;
|
|
114
|
+
}
|
|
88
115
|
setDisplayDateTime(dateTime) {
|
|
89
|
-
const zone =
|
|
116
|
+
const zone = this.zone;
|
|
90
117
|
const locale = isStringFull(this.locale) ? this.locale : void 0;
|
|
91
118
|
this._displayDateTime = DateTime.fromISO(dateTime, { zone, locale });
|
|
92
119
|
}
|
|
@@ -94,9 +121,17 @@ class FlowUiTimer extends FlowRdfElement {
|
|
|
94
121
|
if (event.key === "Enter") ;
|
|
95
122
|
event.stopPropagation();
|
|
96
123
|
}
|
|
124
|
+
handleCalendarInput(event) {
|
|
125
|
+
if (this.calendarZoneUpdate) {
|
|
126
|
+
event.stopPropagation();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
97
129
|
handleCalendarChange(event) {
|
|
98
130
|
event.stopPropagation();
|
|
99
|
-
|
|
131
|
+
if (this.calendarZoneUpdate) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const zone = this.zone;
|
|
100
135
|
const locale = isStringFull(this.locale) ? this.locale : void 0;
|
|
101
136
|
const calendarDateTime = DateTime.fromISO(this.calendar.value, { zone, locale });
|
|
102
137
|
if (!this._displayDateTime.startOf("day").equals(calendarDateTime.startOf("day"))) {
|
|
@@ -193,6 +228,7 @@ class FlowUiTimer extends FlowRdfElement {
|
|
|
193
228
|
value=${this.value}
|
|
194
229
|
timezone=${ifDefined(this.timezone)}
|
|
195
230
|
locale=${ifDefined(this.locale)}
|
|
231
|
+
@flow-ui-input=${this.handleCalendarInput}
|
|
196
232
|
@flow-ui-change=${this.handleCalendarChange}
|
|
197
233
|
></flow-ui-calendar>
|
|
198
234
|
`}
|
|
@@ -235,7 +271,9 @@ class FlowUiTimer extends FlowRdfElement {
|
|
|
235
271
|
`;
|
|
236
272
|
}
|
|
237
273
|
}
|
|
274
|
+
FlowUiTimer.tagName = "flow-ui-timer";
|
|
238
275
|
FlowUiTimer.styles = styles;
|
|
276
|
+
FlowUiTimer.dependencies = [FlowUiCalendar, FlowUiDropdown, FlowUiIcon, FlowUiIconButton, FlowUiTooltip];
|
|
239
277
|
__decorateClass([
|
|
240
278
|
query(".timer__dropdown")
|
|
241
279
|
], FlowUiTimer.prototype, "dropdown", 2);
|
|
@@ -287,6 +325,9 @@ __decorateClass([
|
|
|
287
325
|
__decorateClass([
|
|
288
326
|
watch(["value", "timezone", "locale"])
|
|
289
327
|
], FlowUiTimer.prototype, "updateDisplayValue", 1);
|
|
328
|
+
__decorateClass([
|
|
329
|
+
watch("timezone")
|
|
330
|
+
], FlowUiTimer.prototype, "updateTimezone", 1);
|
|
290
331
|
__decorateClass([
|
|
291
332
|
watch(["majorStep", "minorStep"])
|
|
292
333
|
], FlowUiTimer.prototype, "updateParsedSteps", 1);
|
|
@@ -30,7 +30,10 @@ const styles = css`
|
|
|
30
30
|
grid-template-columns: max-content 1fr max-content max-content;
|
|
31
31
|
|
|
32
32
|
align-items: start;
|
|
33
|
-
|
|
33
|
+
/* 16px at a 14px root, in rem so that it scales with the rem-based font sizes and the lines don't overlap at larger
|
|
34
|
+
root font sizes. It's tighter than the time's font size, which keeps the top of the time level with the clock
|
|
35
|
+
icon. */
|
|
36
|
+
line-height: calc(16rem / 14);
|
|
34
37
|
cursor: pointer;
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -58,7 +61,8 @@ const styles = css`
|
|
|
58
61
|
display: flex;
|
|
59
62
|
flex-direction: column;
|
|
60
63
|
align-items: start;
|
|
61
|
-
|
|
64
|
+
/* Room for the widest time, so that the layout doesn't shift as the time changes (84px at a 14px root) */
|
|
65
|
+
min-width: 6rem;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
.timer__time {
|
|
@@ -6,6 +6,8 @@ import { boolean } from '../../internal/boolean.mjs';
|
|
|
6
6
|
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
7
7
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
8
8
|
import { watch } from '../../internal/watch.mjs';
|
|
9
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
10
|
+
import FlowUiTooltip from '../tooltip/tooltip.component.mjs';
|
|
9
11
|
import styles from './tool-button.styles.mjs';
|
|
10
12
|
|
|
11
13
|
var __defProp = Object.defineProperty;
|
|
@@ -149,7 +151,9 @@ class FlowUiToolButton extends FlowRdfElement {
|
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
}
|
|
154
|
+
FlowUiToolButton.tagName = "flow-ui-tool-button";
|
|
152
155
|
FlowUiToolButton.styles = styles;
|
|
156
|
+
FlowUiToolButton.dependencies = [FlowUiIcon, FlowUiTooltip];
|
|
153
157
|
__decorateClass([
|
|
154
158
|
query(".button")
|
|
155
159
|
], FlowUiToolButton.prototype, "input", 2);
|
|
@@ -6,6 +6,7 @@ import { ensureArray } from '../../internal/ensure-array.mjs';
|
|
|
6
6
|
import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
7
7
|
import { FormControlController, customErrorValidityState, validValidityState } from '../../internal/form.mjs';
|
|
8
8
|
import { watch } from '../../internal/watch.mjs';
|
|
9
|
+
import FlowUiButtonGroup from '../button-group/button-group.component.mjs';
|
|
9
10
|
import styles from './tool-button-group.styles.mjs';
|
|
10
11
|
|
|
11
12
|
var __defProp = Object.defineProperty;
|
|
@@ -283,7 +284,9 @@ class FlowUiToolButtonGroup extends FlowRdfFormControl {
|
|
|
283
284
|
`;
|
|
284
285
|
}
|
|
285
286
|
}
|
|
287
|
+
FlowUiToolButtonGroup.tagName = "flow-ui-tool-button-group";
|
|
286
288
|
FlowUiToolButtonGroup.styles = styles;
|
|
289
|
+
FlowUiToolButtonGroup.dependencies = [FlowUiButtonGroup];
|
|
287
290
|
__decorateClass([
|
|
288
291
|
query(".radio-group__validation-input")
|
|
289
292
|
], FlowUiToolButtonGroup.prototype, "validationInput", 2);
|
|
@@ -8,6 +8,7 @@ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
8
8
|
import { watch } from '../../internal/watch.mjs';
|
|
9
9
|
import { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.mjs';
|
|
10
10
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
11
|
+
import FlowUiPopup from '../popup/popup.component.mjs';
|
|
11
12
|
import styles from './tooltip.styles.mjs';
|
|
12
13
|
|
|
13
14
|
var __defProp = Object.defineProperty;
|
|
@@ -198,7 +199,9 @@ class FlowUiTooltip extends FlowRdfElement {
|
|
|
198
199
|
`;
|
|
199
200
|
}
|
|
200
201
|
}
|
|
202
|
+
FlowUiTooltip.tagName = "flow-ui-tooltip";
|
|
201
203
|
FlowUiTooltip.styles = styles;
|
|
204
|
+
FlowUiTooltip.dependencies = [FlowUiPopup];
|
|
202
205
|
__decorateClass([
|
|
203
206
|
query("slot:not([name])")
|
|
204
207
|
], FlowUiTooltip.prototype, "defaultSlot", 2);
|
|
@@ -9,6 +9,9 @@ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
9
9
|
import { watch } from '../../internal/watch.mjs';
|
|
10
10
|
import { setDefaultAnimation, getAnimation } from '../../utilities/animation-registry.mjs';
|
|
11
11
|
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
12
|
+
import FlowUiCheckbox from '../checkbox/checkbox.component.mjs';
|
|
13
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
14
|
+
import FlowUiProgressRing from '../progress-ring/progress-ring.component.mjs';
|
|
12
15
|
import styles from './tree-item.styles.mjs';
|
|
13
16
|
|
|
14
17
|
var __defProp = Object.defineProperty;
|
|
@@ -244,7 +247,9 @@ const _FlowUiTreeItem = class _FlowUiTreeItem extends FlowRdfElement {
|
|
|
244
247
|
`;
|
|
245
248
|
}
|
|
246
249
|
};
|
|
250
|
+
_FlowUiTreeItem.tagName = "flow-ui-tree-item";
|
|
247
251
|
_FlowUiTreeItem.styles = styles;
|
|
252
|
+
_FlowUiTreeItem.dependencies = [FlowUiCheckbox, FlowUiIcon, FlowUiProgressRing];
|
|
248
253
|
__decorateClass([
|
|
249
254
|
state()
|
|
250
255
|
], _FlowUiTreeItem.prototype, "indeterminate", 2);
|