@emuanalytics/flow-rdf-ui 4.2.1 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -0
- package/THIRD_PARTY_NOTICES.md +220 -0
- package/dist/components/alert/alert.component.mjs +13 -10
- package/dist/components/animation/animation.component.mjs +3 -2
- package/dist/components/autocomplete/autocomplete.component.mjs +21 -20
- package/dist/components/avatar/avatar.component.mjs +10 -12
- package/dist/components/badge/badge.component.mjs +1 -0
- package/dist/components/base-control/base-control.component.mjs +3 -0
- package/dist/components/breadcrumb/breadcrumb.component.mjs +3 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.mjs +15 -14
- package/dist/components/busy-overlay/busy-overlay.component.mjs +3 -0
- package/dist/components/button/button.component.mjs +7 -3
- package/dist/components/button/button.styles.mjs +5 -5
- package/dist/components/button-group/button-group.component.mjs +1 -0
- package/dist/components/calendar/calendar.component.mjs +29 -6
- package/dist/components/card/card.component.mjs +5 -4
- package/dist/components/carousel/carousel.component.mjs +45 -42
- package/dist/components/carousel-item/carousel-item.component.mjs +2 -0
- package/dist/components/chart/chart.component.mjs +5 -4
- package/dist/components/chart/chartjs-plugins/luxon.adapter.mjs +78 -0
- package/dist/components/chart/chartjs-plugins/plugin.flow-ui-colors.mjs +1 -1
- package/dist/components/chart/chartjs-support.mjs +2 -0
- package/dist/components/checkbox/checkbox.component.mjs +21 -18
- package/dist/components/checkbox-group/checkbox-group.component.mjs +3 -0
- package/dist/components/color-mapper/color-mapper.component.mjs +27 -6
- package/dist/components/color-picker/color-picker.component.mjs +79 -71
- package/dist/components/color-picker/color-picker.styles.mjs +4 -2
- package/dist/components/color-stop/color-stop.component.mjs +19 -2
- package/dist/components/date-time-picker/date-time-picker.component.mjs +35 -29
- package/dist/components/details/details.component.mjs +3 -0
- package/dist/components/diagram/diagram-panel.styles.mjs +44 -0
- package/dist/components/diagram/diagram-tokens.styles.mjs +148 -0
- package/dist/components/diagram/diagram.component.mjs +355 -0
- package/dist/components/diagram/diagram.mjs +5 -0
- package/dist/components/diagram/diagram.styles.mjs +95 -0
- package/dist/components/diagram-background/diagram-background.component.mjs +163 -0
- package/dist/components/diagram-background/diagram-background.mjs +5 -0
- package/dist/components/diagram-background/diagram-background.styles.mjs +58 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.component.mjs +326 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.mjs +5 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.styles.mjs +147 -0
- package/dist/components/diagram-base-node/diagram-base-node.component.mjs +84 -0
- package/dist/components/diagram-base-node/diagram-base-node.mjs +5 -0
- package/dist/components/diagram-base-node/diagram-base-node.styles.mjs +37 -0
- package/dist/components/diagram-edge/diagram-edge.component.mjs +56 -0
- package/dist/components/diagram-edge/diagram-edge.mjs +5 -0
- package/dist/components/diagram-edge/diagram-edge.styles.mjs +37 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.component.mjs +202 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.mjs +5 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.styles.mjs +54 -0
- package/dist/components/diagram-marker/diagram-marker.component.mjs +84 -0
- package/dist/components/diagram-marker/diagram-marker.mjs +5 -0
- package/dist/components/diagram-marker/diagram-marker.styles.mjs +9 -0
- package/dist/components/diagram-minimap/diagram-minimap.component.mjs +298 -0
- package/dist/components/diagram-minimap/diagram-minimap.mjs +5 -0
- package/dist/components/diagram-minimap/diagram-minimap.styles.mjs +83 -0
- package/dist/components/diagram-node/diagram-node-template.styles.mjs +36 -0
- package/dist/components/diagram-node/diagram-node.component.mjs +183 -0
- package/dist/components/diagram-node/diagram-node.mjs +6 -0
- package/dist/components/diagram-node/diagram-node.styles.mjs +29 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.component.mjs +168 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.mjs +5 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.styles.mjs +20 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.component.mjs +245 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.mjs +6 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.styles.mjs +41 -0
- package/dist/components/diagram-port/diagram-port.component.mjs +273 -0
- package/dist/components/diagram-port/diagram-port.mjs +5 -0
- package/dist/components/diagram-port/diagram-port.styles.mjs +116 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.component.mjs +124 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.mjs +5 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.styles.mjs +136 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.component.mjs +125 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.mjs +5 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.styles.mjs +65 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.component.mjs +158 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.mjs +5 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.styles.mjs +68 -0
- package/dist/components/dialog/dialog.component.mjs +5 -1
- package/dist/components/divider/divider.component.mjs +1 -0
- package/dist/components/drawer/drawer.component.mjs +22 -19
- package/dist/components/dropdown/dropdown.component.mjs +2 -1
- package/dist/components/form-group/form-group.component.mjs +1 -0
- package/dist/components/gauge/gauge.component.mjs +10 -2
- package/dist/components/icon/icon.component.mjs +1 -0
- package/dist/components/icon/library.mjs +7 -4
- package/dist/components/icon/library.system.mjs +2 -0
- package/dist/components/icon-button/icon-button.component.mjs +5 -0
- package/dist/components/input/input.component.mjs +21 -11
- package/dist/components/list/list.component.mjs +1 -0
- package/dist/components/list-item/list-item.component.mjs +34 -17
- package/dist/components/map/map.component.mjs +3 -0
- package/dist/components/map/map.styles.mjs +10 -0
- package/dist/components/menu/menu.component.mjs +1 -0
- package/dist/components/menu-item/menu-item.component.mjs +3 -0
- package/dist/components/menu-label/menu-label.component.mjs +1 -0
- package/dist/components/mutation-observer/mutation-observer.component.mjs +5 -6
- package/dist/components/option/option.component.mjs +2 -1
- package/dist/components/panel/panel.component.mjs +85 -1
- package/dist/components/panel/panel.styles.mjs +29 -0
- package/dist/components/panel-header/panel-header.component.mjs +14 -8
- package/dist/components/popup/popup.component.mjs +12 -11
- package/dist/components/progress-bar/progress-bar.component.mjs +3 -2
- package/dist/components/progress-ring/progress-ring.component.mjs +1 -0
- package/dist/components/query-builder/converters/javascript-filter-converter.mjs +0 -4
- package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +0 -4
- package/dist/components/query-builder/query-builder.component.mjs +42 -15
- package/dist/components/radio/radio.component.mjs +10 -7
- package/dist/components/radio-group/radio-group.component.mjs +4 -1
- package/dist/components/range/range.component.mjs +4 -0
- package/dist/components/resize-observer/resize-observer.component.mjs +2 -1
- package/dist/components/scroll-view/scroll-view.component.mjs +1 -0
- package/dist/components/scroll-view/scroll-view.styles.mjs +20 -7
- package/dist/components/select/select.component.mjs +19 -21
- package/dist/components/split-view/split-view-layout-registry.mjs +44 -0
- package/dist/components/split-view/split-view-layout.mjs +607 -0
- package/dist/components/split-view/split-view.component.mjs +502 -468
- package/dist/components/split-view/split-view.styles.mjs +25 -0
- package/dist/components/split-view-divider/split-view-divider.component.mjs +2 -53
- package/dist/components/split-view-divider/split-view-divider.styles.mjs +28 -16
- package/dist/components/split-view-pane/split-view-pane.component.mjs +197 -18
- package/dist/components/split-view-pane/split-view-pane.styles.mjs +52 -0
- package/dist/components/split-view-toggle-button/split-view-toggle-button.component.mjs +5 -0
- package/dist/components/split-view-toggle-button/split-view-toggle-button.styles.mjs +3 -3
- package/dist/components/stepper/stepper.component.mjs +3 -2
- package/dist/components/stepper-panel/stepper-panel.component.mjs +4 -3
- package/dist/components/switch/switch.component.mjs +9 -8
- package/dist/components/tab/tab.component.mjs +21 -17
- package/dist/components/tab-group/tab-group.component.mjs +218 -44
- package/dist/components/tab-group/tab-group.styles.mjs +44 -0
- package/dist/components/tab-panel/tab-panel.component.mjs +1 -0
- package/dist/components/tag/tag.component.mjs +13 -12
- package/dist/components/textarea/textarea.component.mjs +11 -4
- package/dist/components/timer/ticker.mjs +7 -0
- package/dist/components/timer/timer.component.mjs +44 -3
- package/dist/components/timer/timer.styles.mjs +6 -2
- package/dist/components/tool-button/tool-button.component.mjs +4 -0
- package/dist/components/tool-button-group/tool-button-group.component.mjs +3 -0
- package/dist/components/tooltip/tooltip.component.mjs +3 -0
- package/dist/components/tree/tree.component.mjs +5 -2
- package/dist/components/tree-item/tree-item.component.mjs +5 -0
- package/dist/components/visually-hidden/visually-hidden.component.mjs +1 -0
- package/dist/custom-elements.json +7890 -1741
- package/dist/diagram/api/diagram-api-base.mjs +16 -0
- package/dist/diagram/api/diagram-api.mjs +399 -0
- package/dist/diagram/api/diagram-clipboard-api.mjs +52 -0
- package/dist/diagram/api/diagram-groups-api.mjs +46 -0
- package/dist/diagram/api/diagram-model-api.mjs +447 -0
- package/dist/diagram/api/diagram-nodes-api.mjs +61 -0
- package/dist/diagram/api/diagram-selection-api.mjs +56 -0
- package/dist/diagram/api/diagram-viewport-api.mjs +169 -0
- package/dist/diagram/api/emit-with-measurement-option.mjs +21 -0
- package/dist/diagram/input/box-selection-controller.mjs +104 -0
- package/dist/diagram/input/context-menu-controller.mjs +196 -0
- package/dist/diagram/input/cursor-position-tracker-controller.mjs +18 -0
- package/dist/diagram/input/input-controller.mjs +31 -0
- package/dist/diagram/input/keyboard-actions/moving-action.mjs +27 -0
- package/dist/diagram/input/keyboard-actions/panning-action.mjs +27 -0
- package/dist/diagram/input/keyboard-actions/paste-action.mjs +17 -0
- package/dist/diagram/input/keyboard-actions/zoom-action.mjs +30 -0
- package/dist/diagram/input/keyboard-inputs-controller.mjs +121 -0
- package/dist/diagram/input/linking-controller.mjs +127 -0
- package/dist/diagram/input/linking-events.mjs +61 -0
- package/dist/diagram/input/manual-linking.mjs +101 -0
- package/dist/diagram/input/mobile-box-selection-controller.mjs +133 -0
- package/dist/diagram/input/mobile-panning-controller.mjs +114 -0
- package/dist/diagram/input/mobile-zooming-controller.mjs +110 -0
- package/dist/diagram/input/object-selection-controller.mjs +152 -0
- package/dist/diagram/input/palette-drop-controller.mjs +92 -0
- package/dist/diagram/input/panning-controller.mjs +147 -0
- package/dist/diagram/input/pointer-move-selection-controller.mjs +191 -0
- package/dist/diagram/input/relinking-gesture.mjs +182 -0
- package/dist/diagram/input/resize-controller.mjs +122 -0
- package/dist/diagram/input/rotate-controller.mjs +126 -0
- package/dist/diagram/input/zooming-wheel-controller.mjs +55 -0
- package/dist/diagram/minimap/minimap-calculations.mjs +83 -0
- package/dist/diagram/minimap/minimap-navigation-controller.mjs +150 -0
- package/dist/diagram/minimap/minimap-node-cache.mjs +19 -0
- package/dist/diagram/minimap/minimap-strategies.mjs +44 -0
- package/dist/diagram/model/diagram-model-adapter.mjs +97 -0
- package/dist/diagram/model/initialize-model.mjs +31 -0
- package/dist/diagram/model/strip-runtime-properties.mjs +30 -0
- package/dist/diagram/runtime/attribute-converters.mjs +11 -0
- package/dist/diagram/runtime/batched-resize-observer.mjs +168 -0
- package/dist/diagram/runtime/box-selection-provider.mjs +9 -0
- package/dist/diagram/runtime/context.mjs +132 -0
- package/dist/diagram/runtime/contexts.mjs +8 -0
- package/dist/diagram/runtime/cursor-position-tracker.mjs +20 -0
- package/dist/diagram/runtime/default-edge-templates.mjs +21 -0
- package/dist/diagram/runtime/default-node-templates.mjs +20 -0
- package/dist/diagram/runtime/diagram-reference.mjs +126 -0
- package/dist/diagram/runtime/diagram-runtime.mjs +214 -0
- package/dist/diagram/runtime/dom-input-events-router.mjs +88 -0
- package/dist/diagram/runtime/environment.mjs +59 -0
- package/dist/diagram/runtime/event-bridge.mjs +31 -0
- package/dist/diagram/runtime/flow-offset.mjs +45 -0
- package/dist/diagram/runtime/group-highlighted.mjs +25 -0
- package/dist/diagram/runtime/hidden.mjs +147 -0
- package/dist/diagram/runtime/lit-renderer.mjs +33 -0
- package/dist/diagram/runtime/marker-registry.mjs +108 -0
- package/dist/diagram/runtime/middlewares.mjs +14 -0
- package/dist/diagram/runtime/model-owner.mjs +11 -0
- package/dist/diagram/runtime/node-selected.mjs +25 -0
- package/dist/diagram/runtime/observable.mjs +205 -0
- package/dist/diagram/runtime/palette-drag.mjs +56 -0
- package/dist/diagram/runtime/port-hover.mjs +27 -0
- package/dist/diagram/runtime/port-registry.mjs +87 -0
- package/dist/diagram/runtime/resize-processor.mjs +207 -0
- package/dist/diagram/runtime/template-resolver.mjs +98 -0
- package/dist/diagram/runtime/touch-events-state.mjs +52 -0
- package/dist/diagram/utilities.mjs +27 -0
- package/dist/diagram-core/action-state-manager/action-state-manager.mjs +238 -0
- package/dist/diagram-core/batch-processor/batch-processor.mjs +144 -0
- package/dist/diagram-core/command-handler/command-handler.mjs +62 -0
- package/dist/diagram-core/command-handler/commands/add-to-group.mjs +32 -0
- package/dist/diagram-core/command-handler/commands/add-update-delete.mjs +196 -0
- package/dist/diagram-core/command-handler/commands/centering.mjs +73 -0
- package/dist/diagram-core/command-handler/commands/copy-paste.mjs +223 -0
- package/dist/diagram-core/command-handler/commands/cut.mjs +9 -0
- package/dist/diagram-core/command-handler/commands/delete-selection.mjs +32 -0
- package/dist/diagram-core/command-handler/commands/detach-on-node-delete.mjs +77 -0
- package/dist/diagram-core/command-handler/commands/highlight-group.mjs +45 -0
- package/dist/diagram-core/command-handler/commands/index.mjs +88 -0
- package/dist/diagram-core/command-handler/commands/init.mjs +11 -0
- package/dist/diagram-core/command-handler/commands/linking/cancel-linking.mjs +26 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-linking-to-position.mjs +33 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-linking.mjs +108 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-relinking.mjs +91 -0
- package/dist/diagram-core/command-handler/commands/linking/linking-gesture.mjs +13 -0
- package/dist/diagram-core/command-handler/commands/linking/move-temporary-edge.mjs +98 -0
- package/dist/diagram-core/command-handler/commands/linking/start-linking-from-position.mjs +23 -0
- package/dist/diagram-core/command-handler/commands/linking/start-linking.mjs +47 -0
- package/dist/diagram-core/command-handler/commands/linking/start-relinking.mjs +51 -0
- package/dist/diagram-core/command-handler/commands/linking/utils.mjs +103 -0
- package/dist/diagram-core/command-handler/commands/move-nodes-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/move-viewport.mjs +48 -0
- package/dist/diagram-core/command-handler/commands/move.mjs +90 -0
- package/dist/diagram-core/command-handler/commands/remove-from-group.mjs +22 -0
- package/dist/diagram-core/command-handler/commands/resize-node-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/resize-node.mjs +214 -0
- package/dist/diagram-core/command-handler/commands/rotate-node-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/rotate-node.mjs +53 -0
- package/dist/diagram-core/command-handler/commands/selection.mjs +69 -0
- package/dist/diagram-core/command-handler/commands/z-order.mjs +125 -0
- package/dist/diagram-core/command-handler/commands/zoom-to-fit.mjs +118 -0
- package/dist/diagram-core/command-handler/commands/zoom.mjs +26 -0
- package/dist/diagram-core/edge-routing-manager/edge-routing-manager.mjs +253 -0
- package/dist/diagram-core/edge-routing-manager/resolve-label-position.mjs +13 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/bezier-routing.mjs +73 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-path.mjs +24 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-point-at-distance.mjs +37 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-point-on-path.mjs +33 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-points.mjs +31 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-path.mjs +56 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-point-at-distance.mjs +12 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-point-on-path.mjs +38 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-points.mjs +26 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/orthogonal-routing.mjs +69 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/get-offset-point.mjs +14 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-bottom.mjs +104 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-left.mjs +91 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-right.mjs +88 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-top.mjs +168 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints.mjs +23 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/compute-polyline-point-at-distance.mjs +12 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/compute-polyline-point-on-path.mjs +41 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/polyline-routing.mjs +81 -0
- package/dist/diagram-core/edge-routing-manager/utils/linear-segment-utils.mjs +27 -0
- package/dist/diagram-core/edge-routing-manager/utils/normalize-distance.mjs +6 -0
- package/dist/diagram-core/event-manager/event-manager.mjs +164 -0
- package/dist/diagram-core/flow-config/default-flow-config.mjs +143 -0
- package/dist/diagram-core/flow-core.mjs +541 -0
- package/dist/diagram-core/input-events/handlers/box-selection/box-selection.handler.mjs +69 -0
- package/dist/diagram-core/input-events/handlers/cancel-interaction/cancel-interaction.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/copy/copy.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/cut/cut.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/delete-selection/delete-selection.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/event-handler.mjs +29 -0
- package/dist/diagram-core/input-events/handlers/keyboard-move-selection/keyboard-move-selection.handler.mjs +130 -0
- package/dist/diagram-core/input-events/handlers/keyboard-panning/keyboard-panning.handler.mjs +31 -0
- package/dist/diagram-core/input-events/handlers/linking/linking.handler.mjs +77 -0
- package/dist/diagram-core/input-events/handlers/movable-selection.mjs +26 -0
- package/dist/diagram-core/input-events/handlers/palette-drop/palette-drop.handler.mjs +20 -0
- package/dist/diagram-core/input-events/handlers/panning/panning-handler-factory.mjs +8 -0
- package/dist/diagram-core/input-events/handlers/panning/panning.handler.mjs +41 -0
- package/dist/diagram-core/input-events/handlers/panning/virtualized-panning.handler.mjs +77 -0
- package/dist/diagram-core/input-events/handlers/paste/paste.handler.mjs +17 -0
- package/dist/diagram-core/input-events/handlers/pointer-move-selection/pointer-move-selection.handler.mjs +220 -0
- package/dist/diagram-core/input-events/handlers/redo/redo.handler.mjs +14 -0
- package/dist/diagram-core/input-events/handlers/relinking/relinking.handler.mjs +62 -0
- package/dist/diagram-core/input-events/handlers/resize/resize.handler.mjs +174 -0
- package/dist/diagram-core/input-events/handlers/rotate/rotate.handler.mjs +107 -0
- package/dist/diagram-core/input-events/handlers/select/select.handler.mjs +42 -0
- package/dist/diagram-core/input-events/handlers/select-all/select-all.handler.mjs +10 -0
- package/dist/diagram-core/input-events/handlers/undo/undo.handler.mjs +14 -0
- package/dist/diagram-core/input-events/handlers/wheel-panning/wheel-panning.handler.mjs +25 -0
- package/dist/diagram-core/input-events/handlers/zooming/zooming.handler.mjs +28 -0
- package/dist/diagram-core/input-events/input-events.router.mjs +75 -0
- package/dist/diagram-core/interaction-coordinator/interaction-coordinator.mjs +75 -0
- package/dist/diagram-core/label-batch-processor/label-batch-processor.mjs +19 -0
- package/dist/diagram-core/math/angle-between-points/angle-between-points.mjs +5 -0
- package/dist/diagram-core/math/angle-to-side/angle-to-side.mjs +27 -0
- package/dist/diagram-core/math/calculate-edge-panning-force/calculate-edge-panning-force.mjs +34 -0
- package/dist/diagram-core/math/clamp/clamp.mjs +5 -0
- package/dist/diagram-core/math/distance-between-points/distance-between-points.mjs +5 -0
- package/dist/diagram-core/math/ng-diagram-math.mjs +25 -0
- package/dist/diagram-core/math/normalize-angle/normalize-angle.mjs +5 -0
- package/dist/diagram-core/math/snap-angle/snap-angle.mjs +43 -0
- package/dist/diagram-core/math/snap-number/snap-number.mjs +3 -0
- package/dist/diagram-core/math/snap-point/snap-point.mjs +8 -0
- package/dist/diagram-core/math/subtract-points/subtract-points.mjs +5 -0
- package/dist/diagram-core/measurement-tracker/measurement-tracker.mjs +182 -0
- package/dist/diagram-core/middleware-manager/middleware-executor.mjs +246 -0
- package/dist/diagram-core/middleware-manager/middleware-manager.mjs +93 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/edges-routing.mjs +149 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/get-edge-points.mjs +93 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/get-source-target-positions.mjs +90 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/clipboard-paste.emitter.mjs +34 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/diagram-init.emitter.mjs +190 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-draw-ended.emitter.mjs +51 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-drawn.emitter.mjs +35 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-relink.emitter.mjs +58 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/group-membership-changed.emitter.mjs +49 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-drag-lifecycle.emitter.mjs +54 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-resize-lifecycle.emitter.mjs +44 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-rotate-lifecycle.emitter.mjs +44 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/palette-item-dropped.emitter.mjs +26 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-changed.emitter.mjs +61 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-gesture-ended.emitter.mjs +32 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-moved.emitter.mjs +57 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-removed.emitter.mjs +40 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-rotated.emitter.mjs +33 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/size-changed.emitter.mjs +33 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/viewport-changed.emitter.mjs +19 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/event-emitter.middleware.mjs +69 -0
- package/dist/diagram-core/middleware-manager/middlewares/hidden-computation/hidden-computation.mjs +66 -0
- package/dist/diagram-core/middleware-manager/middlewares/internal-id-assignment/internal-id-assignment.mjs +24 -0
- package/dist/diagram-core/middleware-manager/middlewares/logger/logger.mjs +18 -0
- package/dist/diagram-core/middleware-manager/middlewares/measured-bounds-assignment/is-node-fully-measured.mjs +20 -0
- package/dist/diagram-core/middleware-manager/middlewares/measured-bounds-assignment/measured-bounds-assignment.mjs +59 -0
- package/dist/diagram-core/middleware-manager/middlewares/measurement-tracking/measurement-tracking.middleware.mjs +55 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/assign-edges-z-index.mjs +12 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/assign-node-z-index.mjs +61 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/create-group-children-map.mjs +14 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/initialize-z-index.mjs +30 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/sort-children.mjs +36 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/z-index-assignment.mjs +240 -0
- package/dist/diagram-core/middleware-manager/pass-settlement.mjs +68 -0
- package/dist/diagram-core/model-lookup/model-lookup.mjs +394 -0
- package/dist/diagram-core/port-batch-processor/port-batch-processor.mjs +20 -0
- package/dist/diagram-core/render-strategy/base-render-strategy.mjs +26 -0
- package/dist/diagram-core/render-strategy/direct/direct-render-strategy.mjs +33 -0
- package/dist/diagram-core/render-strategy/render-performance-logger.mjs +42 -0
- package/dist/diagram-core/render-strategy/virtualized/idle-render-scheduler.mjs +43 -0
- package/dist/diagram-core/render-strategy/virtualized/result-cache.mjs +63 -0
- package/dist/diagram-core/render-strategy/virtualized/viewport-utils.mjs +40 -0
- package/dist/diagram-core/render-strategy/virtualized/virtualized-render-strategy.mjs +91 -0
- package/dist/diagram-core/render-strategy/virtualized/visible-elements-resolver.mjs +120 -0
- package/dist/diagram-core/render-strategy/virtualized/zoom-tracker.mjs +38 -0
- package/dist/diagram-core/set.polyfill.mjs +24 -0
- package/dist/diagram-core/shortcut-manager/default-shortcuts.mjs +99 -0
- package/dist/diagram-core/shortcut-manager/shortcut-manager.mjs +140 -0
- package/dist/diagram-core/spatial-hash/collision-detection.mjs +74 -0
- package/dist/diagram-core/spatial-hash/spatial-hash.mjs +161 -0
- package/dist/diagram-core/spatial-hash/utils.mjs +92 -0
- package/dist/diagram-core/transaction-manager/transaction-context.mjs +40 -0
- package/dist/diagram-core/transaction-manager/transaction-manager.mjs +94 -0
- package/dist/diagram-core/transaction-manager/transaction.mjs +179 -0
- package/dist/diagram-core/types/edge.interface.mjs +3 -0
- package/dist/diagram-core/types/node.interface.mjs +3 -0
- package/dist/diagram-core/types/utils.mjs +3 -0
- package/dist/diagram-core/updater/init-updater/init-state.mjs +356 -0
- package/dist/diagram-core/updater/init-updater/init-updater.mjs +275 -0
- package/dist/diagram-core/updater/init-updater/late-arrival-queue.mjs +71 -0
- package/dist/diagram-core/updater/init-updater/stability-detector.mjs +63 -0
- package/dist/diagram-core/updater/internal-updater/internal-updater.mjs +166 -0
- package/dist/diagram-core/utils/change-generation.mjs +13 -0
- package/dist/diagram-core/utils/compute-floating-edge-side.mjs +35 -0
- package/dist/diagram-core/utils/constants.mjs +3 -0
- package/dist/diagram-core/utils/dangling-edges.mjs +89 -0
- package/dist/diagram-core/utils/deep-merge.mjs +22 -0
- package/dist/diagram-core/utils/dimensions.mjs +52 -0
- package/dist/diagram-core/utils/get-node-border-intersection.mjs +99 -0
- package/dist/diagram-core/utils/get-port-flow-position.mjs +55 -0
- package/dist/diagram-core/utils/group-size.mjs +32 -0
- package/dist/diagram-core/utils/is-group.mjs +5 -0
- package/dist/diagram-core/utils/measurement-validation.mjs +11 -0
- package/dist/diagram-core/utils/object-properties.mjs +22 -0
- package/dist/diagram-core/utils/rects-points-sizes.mjs +148 -0
- package/dist/diagram-core/utils/relinking.mjs +6 -0
- package/dist/diagram-core/utils/semaphore.mjs +43 -0
- package/dist/diagram-core/utils/snap-node-position.mjs +11 -0
- package/dist/diagram-core/utils/sort-nodes-by-z-index.mjs +22 -0
- package/dist/diagram-core/visibility/effective-visibility.mjs +28 -0
- package/dist/diagram-core/visibility/template-visibility-registry.mjs +87 -0
- package/dist/index.d.mts +13296 -3667
- package/dist/index.d.ts +13296 -3667
- package/dist/index.mjs +34 -0
- package/dist/internal/content-size.mjs +14 -0
- package/dist/internal/custom-boolean-converter.mjs +18 -0
- package/dist/internal/flow-ui-rdf-element.mjs +57 -5
- package/dist/internal/form.mjs +1 -1
- package/dist/internal/on-off-converter.mjs +21 -0
- package/dist/package.json.mjs +1 -1
- package/dist/utilities/register-components.mjs +77 -142
- package/dist/vscode.html-custom-data.json +426 -156
- package/package.json +35 -40
- package/themes/dark.css +7 -5
- package/themes/dark.styles.js +7 -5
- package/themes/light.css +7 -5
- package/themes/light.styles.js +7 -5
|
@@ -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;
|
|
@@ -341,6 +345,13 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
341
345
|
}).startOf("month")
|
|
342
346
|
);
|
|
343
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* The month and year selects change the month shown, not the value, and open and close inside the calendar, so their
|
|
350
|
+
* input, show and hide events go no further (they would reach a date time picker as its own).
|
|
351
|
+
*/
|
|
352
|
+
stopHeaderSelectEvent(ev) {
|
|
353
|
+
ev.stopPropagation();
|
|
354
|
+
}
|
|
344
355
|
handleTimeChange(ev) {
|
|
345
356
|
ev.stopPropagation();
|
|
346
357
|
if (!this._selectedDate) {
|
|
@@ -426,8 +437,8 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
426
437
|
@click=${() => this.stepDisplayDate({ month: -1 })}
|
|
427
438
|
></flow-ui-icon-button>
|
|
428
439
|
${isFirst ? this.headerSelectsTemplate(monthsShort) : html`
|
|
429
|
-
|
|
430
|
-
|
|
440
|
+
<span class="calendar__header-month">${monthsShort[month.month - 1]} ${month.year}</span>
|
|
441
|
+
`}
|
|
431
442
|
<flow-ui-icon-button
|
|
432
443
|
class=${classMap({ "calendar__header-button--hidden": !isLast })}
|
|
433
444
|
?disabled=${!!last && this._displayDate >= last}
|
|
@@ -445,7 +456,12 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
445
456
|
sync="width"
|
|
446
457
|
class="calendar__month-select calendar__header-select"
|
|
447
458
|
value=${this._displayDate.month}
|
|
459
|
+
@flow-ui-input=${this.stopHeaderSelectEvent}
|
|
448
460
|
@flow-ui-change=${this.handleHeaderSelectChange}
|
|
461
|
+
@flow-ui-show=${this.stopHeaderSelectEvent}
|
|
462
|
+
@flow-ui-after-show=${this.stopHeaderSelectEvent}
|
|
463
|
+
@flow-ui-hide=${this.stopHeaderSelectEvent}
|
|
464
|
+
@flow-ui-after-hide=${this.stopHeaderSelectEvent}
|
|
449
465
|
>
|
|
450
466
|
${monthsShort.map(
|
|
451
467
|
(month, index) => html`
|
|
@@ -458,7 +474,12 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
458
474
|
sync="width"
|
|
459
475
|
class="calendar__year-select calendar__header-select"
|
|
460
476
|
value=${this._displayDate.year}
|
|
477
|
+
@flow-ui-input=${this.stopHeaderSelectEvent}
|
|
461
478
|
@flow-ui-change=${this.handleHeaderSelectChange}
|
|
479
|
+
@flow-ui-show=${this.stopHeaderSelectEvent}
|
|
480
|
+
@flow-ui-after-show=${this.stopHeaderSelectEvent}
|
|
481
|
+
@flow-ui-hide=${this.stopHeaderSelectEvent}
|
|
482
|
+
@flow-ui-after-hide=${this.stopHeaderSelectEvent}
|
|
462
483
|
>
|
|
463
484
|
${this.yearOptions().map(
|
|
464
485
|
(year) => html`
|
|
@@ -660,16 +681,18 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
660
681
|
})}
|
|
661
682
|
>
|
|
662
683
|
${showCalendar ? html`
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
684
|
+
<div class="calendar__months">
|
|
685
|
+
${Array.from({ length: this.monthCount }, (_, index) => this.monthTemplate(index))}
|
|
686
|
+
</div>
|
|
687
|
+
` : nothing}
|
|
667
688
|
${showTime ? this.timeTemplate() : nothing}
|
|
668
689
|
</div>
|
|
669
690
|
`;
|
|
670
691
|
}
|
|
671
692
|
}
|
|
693
|
+
FlowUiCalendar.tagName = "flow-ui-calendar";
|
|
672
694
|
FlowUiCalendar.styles = styles;
|
|
695
|
+
FlowUiCalendar.dependencies = [FlowUiIconButton, FlowUiInput, FlowUiOption, FlowUiSelect];
|
|
673
696
|
__decorateClass([
|
|
674
697
|
query(".calendar__month-select")
|
|
675
698
|
], FlowUiCalendar.prototype, "_monthSelect", 2);
|
|
@@ -35,16 +35,17 @@ class FlowUiCard extends FlowRdfElement {
|
|
|
35
35
|
title=""
|
|
36
36
|
>
|
|
37
37
|
${hasHeader ? html`
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
<header part="header" class="card__header">
|
|
39
|
+
<span part="title" class="card__title"><slot name="title">${this.title}</slot></span>
|
|
40
|
+
</header>
|
|
41
|
+
` : nothing}
|
|
42
42
|
|
|
43
43
|
<slot part="body" class="card__body"></slot>
|
|
44
44
|
</div>
|
|
45
45
|
`;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
FlowUiCard.tagName = "flow-ui-card";
|
|
48
49
|
FlowUiCard.styles = styles;
|
|
49
50
|
__decorateClass([
|
|
50
51
|
property({ reflect: true })
|
|
@@ -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';
|
|
@@ -284,69 +285,71 @@ class FlowUiCarousel extends FlowRdfElement {
|
|
|
284
285
|
</div>
|
|
285
286
|
|
|
286
287
|
${this.navigation ? html`
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
<div part="navigation" class="carousel__navigation">
|
|
289
|
+
<button
|
|
290
|
+
part="navigation-button navigation-button--previous"
|
|
291
|
+
class="${classMap({
|
|
291
292
|
"carousel__navigation-button": true,
|
|
292
293
|
"carousel__navigation-button--previous": true,
|
|
293
294
|
"carousel__navigation-button--disabled": !prevEnabled
|
|
294
295
|
})}"
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
296
|
+
aria-label="${this.localize.term("previousSlide")}"
|
|
297
|
+
aria-controls="scroll-container"
|
|
298
|
+
aria-disabled="${prevEnabled ? "false" : "true"}"
|
|
299
|
+
@click=${prevEnabled ? () => this.previous() : null}
|
|
300
|
+
>
|
|
301
|
+
<slot name="previous-icon">
|
|
302
|
+
<flow-ui-icon library="system" name="${isLtr ? "chevron-left" : "chevron-right"}"></flow-ui-icon>
|
|
303
|
+
</slot>
|
|
304
|
+
</button>
|
|
304
305
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
<button
|
|
307
|
+
part="navigation-button navigation-button--next"
|
|
308
|
+
class=${classMap({
|
|
308
309
|
"carousel__navigation-button": true,
|
|
309
310
|
"carousel__navigation-button--next": true,
|
|
310
311
|
"carousel__navigation-button--disabled": !nextEnabled
|
|
311
312
|
})}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
313
|
+
aria-label="${this.localize.term("nextSlide")}"
|
|
314
|
+
aria-controls="scroll-container"
|
|
315
|
+
aria-disabled="${nextEnabled ? "false" : "true"}"
|
|
316
|
+
@click=${nextEnabled ? () => this.next() : null}
|
|
317
|
+
>
|
|
318
|
+
<slot name="next-icon">
|
|
319
|
+
<flow-ui-icon library="system" name="${isLtr ? "chevron-right" : "chevron-left"}"></flow-ui-icon>
|
|
320
|
+
</slot>
|
|
321
|
+
</button>
|
|
322
|
+
</div>
|
|
323
|
+
` : ""}
|
|
323
324
|
${this.pagination ? html`
|
|
324
|
-
|
|
325
|
-
|
|
325
|
+
<div part="pagination" role="tablist" class="carousel__pagination" aria-controls="scroll-container">
|
|
326
|
+
${map(range(pagesCount), (index) => {
|
|
326
327
|
const isActive = index === currentPage;
|
|
327
328
|
return html`
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
<button
|
|
330
|
+
part="pagination-item ${isActive ? "pagination-item--active" : ""}"
|
|
331
|
+
class="${classMap({
|
|
331
332
|
"carousel__pagination-item": true,
|
|
332
333
|
"carousel__pagination-item--active": isActive
|
|
333
334
|
})}"
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
335
|
+
role="tab"
|
|
336
|
+
aria-selected="${isActive ? "true" : "false"}"
|
|
337
|
+
aria-label="${this.localize.term("goToSlide", index + 1, pagesCount)}"
|
|
338
|
+
tabindex=${isActive ? "0" : "-1"}
|
|
339
|
+
@click=${() => this.goToSlide(index * slidesPerPage)}
|
|
340
|
+
@keydown=${this.handleKeyDown}
|
|
341
|
+
></button>
|
|
342
|
+
`;
|
|
342
343
|
})}
|
|
343
|
-
|
|
344
|
-
|
|
344
|
+
</div>
|
|
345
|
+
` : ""}
|
|
345
346
|
</div>
|
|
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);
|
|
@@ -10,6 +10,7 @@ class FlowUiCarouselItem extends FlowRdfElement {
|
|
|
10
10
|
connectedCallback() {
|
|
11
11
|
super.connectedCallback();
|
|
12
12
|
this.setAttribute("role", "group");
|
|
13
|
+
this.setAttribute("aria-roledescription", "slide");
|
|
13
14
|
}
|
|
14
15
|
render() {
|
|
15
16
|
return html`
|
|
@@ -17,6 +18,7 @@ class FlowUiCarouselItem extends FlowRdfElement {
|
|
|
17
18
|
`;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
21
|
+
FlowUiCarouselItem.tagName = "flow-ui-carousel-item";
|
|
20
22
|
FlowUiCarouselItem.styles = styles;
|
|
21
23
|
|
|
22
24
|
export { FlowUiCarouselItem as default };
|
|
@@ -62,10 +62,10 @@ class FlowUiChart extends FlowRdfElement {
|
|
|
62
62
|
return html`
|
|
63
63
|
<div part="base" class="chart" title="">
|
|
64
64
|
${hasHeader ? html`
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
<header part="header" class="chart__header">
|
|
66
|
+
<span part="title" class="chart__title"><slot name="title">${this.title}</slot></span>
|
|
67
|
+
</header>
|
|
68
|
+
` : nothing}
|
|
69
69
|
|
|
70
70
|
<div class="chart_container">
|
|
71
71
|
<canvas ${ref(this._chartRef)}></canvas>
|
|
@@ -74,6 +74,7 @@ class FlowUiChart extends FlowRdfElement {
|
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
FlowUiChart.tagName = "flow-ui-chart";
|
|
77
78
|
FlowUiChart.styles = styles;
|
|
78
79
|
__decorateClass([
|
|
79
80
|
property({ reflect: true })
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { _adapters } from 'chart.js';
|
|
2
|
+
import { isNumber } from 'chart.js/helpers';
|
|
3
|
+
import { DateTime } from 'luxon';
|
|
4
|
+
|
|
5
|
+
const FORMATS = {
|
|
6
|
+
datetime: DateTime.DATETIME_MED_WITH_SECONDS,
|
|
7
|
+
millisecond: "h:mm:ss.SSS a",
|
|
8
|
+
second: DateTime.TIME_WITH_SECONDS,
|
|
9
|
+
minute: DateTime.TIME_SIMPLE,
|
|
10
|
+
hour: { hour: "numeric" },
|
|
11
|
+
day: { day: "numeric", month: "short" },
|
|
12
|
+
week: "DD",
|
|
13
|
+
month: { month: "short", year: "numeric" },
|
|
14
|
+
quarter: "'Q'q - yyyy",
|
|
15
|
+
year: { year: "numeric" }
|
|
16
|
+
};
|
|
17
|
+
function create(time, options) {
|
|
18
|
+
return DateTime.fromMillis(time, options);
|
|
19
|
+
}
|
|
20
|
+
function registerLuxonDateAdapter() {
|
|
21
|
+
_adapters._date.override({
|
|
22
|
+
// _id: 'luxon', // DEBUG
|
|
23
|
+
init(chartOptions) {
|
|
24
|
+
if (!this.options.locale) {
|
|
25
|
+
this.options.locale = chartOptions.locale;
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
formats: function() {
|
|
29
|
+
return FORMATS;
|
|
30
|
+
},
|
|
31
|
+
parse: function(value, format) {
|
|
32
|
+
const options = this.options;
|
|
33
|
+
const type = typeof value;
|
|
34
|
+
if (value === null || type === "undefined") {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
if (typeof value === "number") {
|
|
38
|
+
value = create(value);
|
|
39
|
+
} else if (typeof value === "string") {
|
|
40
|
+
if (typeof format === "string") {
|
|
41
|
+
value = DateTime.fromFormat(value, format, options);
|
|
42
|
+
} else {
|
|
43
|
+
value = DateTime.fromISO(value, options);
|
|
44
|
+
}
|
|
45
|
+
} else if (value instanceof Date) {
|
|
46
|
+
value = DateTime.fromJSDate(value, options);
|
|
47
|
+
} else if (typeof value === "object" && !(value instanceof DateTime)) {
|
|
48
|
+
value = DateTime.fromObject(value, options);
|
|
49
|
+
}
|
|
50
|
+
return value instanceof DateTime && value.isValid ? value.valueOf() : null;
|
|
51
|
+
},
|
|
52
|
+
format: function(time, format) {
|
|
53
|
+
const datetime = create(time, this.options);
|
|
54
|
+
return typeof format === "string" ? datetime.toFormat(format) : datetime.toLocaleString(format);
|
|
55
|
+
},
|
|
56
|
+
add: function(time, amount, unit) {
|
|
57
|
+
const args = {};
|
|
58
|
+
args[unit] = amount;
|
|
59
|
+
return create(time).plus(args).valueOf();
|
|
60
|
+
},
|
|
61
|
+
diff: function(max, min, unit) {
|
|
62
|
+
return create(max).diff(create(min)).as(unit).valueOf();
|
|
63
|
+
},
|
|
64
|
+
startOf: function(time, unit, weekday) {
|
|
65
|
+
if (unit === "isoWeek" && isNumber(weekday)) {
|
|
66
|
+
weekday = Math.trunc(Math.min(Math.max(0, weekday), 6));
|
|
67
|
+
const dateTime = create(time);
|
|
68
|
+
return dateTime.minus({ days: (dateTime.weekday - weekday + 7) % 7 }).startOf("day").valueOf();
|
|
69
|
+
}
|
|
70
|
+
return unit ? create(time).startOf(unit).valueOf() : time;
|
|
71
|
+
},
|
|
72
|
+
endOf: function(time, unit) {
|
|
73
|
+
return create(time).endOf(unit).valueOf();
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { registerLuxonDateAdapter };
|
|
@@ -10,7 +10,7 @@ function getBackgroundColor(i, palette) {
|
|
|
10
10
|
function colorizeDefaultDataset(dataset, i, palette) {
|
|
11
11
|
dataset.borderColor = getBorderColor(i, palette);
|
|
12
12
|
dataset.backgroundColor = getBackgroundColor(i, palette);
|
|
13
|
-
return
|
|
13
|
+
return i + 1;
|
|
14
14
|
}
|
|
15
15
|
function colorizeDoughnutDataset(dataset, i, palette) {
|
|
16
16
|
dataset.backgroundColor = dataset.data.map(() => getBorderColor(i++, palette));
|
|
@@ -3,6 +3,7 @@ export { Chart as ChartJs } from 'chart.js';
|
|
|
3
3
|
import { MatrixController, MatrixElement } from 'chartjs-chart-matrix';
|
|
4
4
|
import AnnotationPlugin from 'chartjs-plugin-annotation';
|
|
5
5
|
import Interpolate from './chartjs-plugins/interaction.interpolate.mjs';
|
|
6
|
+
import { registerLuxonDateAdapter } from './chartjs-plugins/luxon.adapter.mjs';
|
|
6
7
|
import FlowUiColorsPlugin from './chartjs-plugins/plugin.flow-ui-colors.mjs';
|
|
7
8
|
import CursorPositioner from './chartjs-plugins/positioner.cursor.mjs';
|
|
8
9
|
import SymlogAxis from './chartjs-plugins/symlog.scale.mjs';
|
|
@@ -34,6 +35,7 @@ function initializeChartJs() {
|
|
|
34
35
|
MatrixController,
|
|
35
36
|
MatrixElement
|
|
36
37
|
);
|
|
38
|
+
registerLuxonDateAdapter();
|
|
37
39
|
Tooltip.positioners.cursor = CursorPositioner;
|
|
38
40
|
Interaction.modes.interpolate = Interpolate;
|
|
39
41
|
Chart.defaults.animation = false;
|
|
@@ -9,6 +9,7 @@ import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
9
9
|
import { FormControlController } from '../../internal/form.mjs';
|
|
10
10
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
11
11
|
import { watch } from '../../internal/watch.mjs';
|
|
12
|
+
import FlowUiIcon from '../icon/icon.component.mjs';
|
|
12
13
|
import styles from './checkbox.styles.mjs';
|
|
13
14
|
|
|
14
15
|
var __defProp = Object.defineProperty;
|
|
@@ -161,33 +162,35 @@ class FlowUiCheckbox extends FlowRdfFormControl {
|
|
|
161
162
|
class="checkbox__control"
|
|
162
163
|
>
|
|
163
164
|
${this.checked ? html`
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
165
|
+
<flow-ui-icon
|
|
166
|
+
part="checked-icon"
|
|
167
|
+
class="checkbox__checked-icon"
|
|
168
|
+
library="system"
|
|
169
|
+
name="check"
|
|
170
|
+
></flow-ui-icon>
|
|
171
|
+
` : ""}
|
|
171
172
|
${!this.checked && this.indeterminate ? html`
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
173
|
+
<flow-ui-icon
|
|
174
|
+
part="indeterminate-icon"
|
|
175
|
+
class="checkbox__indeterminate-icon"
|
|
176
|
+
library="system"
|
|
177
|
+
name="indeterminate"
|
|
178
|
+
></flow-ui-icon>
|
|
179
|
+
` : ""}
|
|
179
180
|
</span>
|
|
180
181
|
|
|
181
182
|
${this.hasSlotController.test("[default]") ? html`
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
<div part="label" class="checkbox__label">
|
|
184
|
+
<slot></slot>
|
|
185
|
+
</div>
|
|
186
|
+
` : nothing}
|
|
186
187
|
</label>
|
|
187
188
|
`;
|
|
188
189
|
}
|
|
189
190
|
}
|
|
191
|
+
FlowUiCheckbox.tagName = "flow-ui-checkbox";
|
|
190
192
|
FlowUiCheckbox.styles = styles;
|
|
193
|
+
FlowUiCheckbox.dependencies = [FlowUiIcon];
|
|
191
194
|
__decorateClass([
|
|
192
195
|
query('input[type="checkbox"]')
|
|
193
196
|
], FlowUiCheckbox.prototype, "input", 2);
|
|
@@ -6,6 +6,7 @@ import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
6
6
|
import { FormControlController, customErrorValidityState, valueMissingValidityState, validValidityState } from '../../internal/form.mjs';
|
|
7
7
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
8
8
|
import { watch } from '../../internal/watch.mjs';
|
|
9
|
+
import FlowUiDivider from '../divider/divider.component.mjs';
|
|
9
10
|
import styles from './checkbox-group.styles.mjs';
|
|
10
11
|
import { isNil } from '../../internal/type-checks.mjs';
|
|
11
12
|
|
|
@@ -239,7 +240,9 @@ class FlowUiCheckboxGroup extends FlowRdfFormControl {
|
|
|
239
240
|
`;
|
|
240
241
|
}
|
|
241
242
|
}
|
|
243
|
+
FlowUiCheckboxGroup.tagName = "flow-ui-checkbox-group";
|
|
242
244
|
FlowUiCheckboxGroup.styles = styles;
|
|
245
|
+
FlowUiCheckboxGroup.dependencies = [FlowUiDivider];
|
|
243
246
|
__decorateClass([
|
|
244
247
|
query("slot:not([name])")
|
|
245
248
|
], FlowUiCheckboxGroup.prototype, "defaultSlot", 2);
|
|
@@ -8,6 +8,15 @@ import { boolean } from '../../internal/boolean.mjs';
|
|
|
8
8
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
9
9
|
import { throttle } from '../../internal/throttle.mjs';
|
|
10
10
|
import { watch } from '../../internal/watch.mjs';
|
|
11
|
+
import FlowUiColorPicker from '../color-picker/color-picker.component.mjs';
|
|
12
|
+
import FlowUiColorStop from '../color-stop/color-stop.component.mjs';
|
|
13
|
+
import FlowUiDialog from '../dialog/dialog.component.mjs';
|
|
14
|
+
import FlowUiRadioGroup from '../radio-group/radio-group.component.mjs';
|
|
15
|
+
import FlowUiSelect from '../select/select.component.mjs';
|
|
16
|
+
import FlowUiButton from '../button/button.component.mjs';
|
|
17
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
18
|
+
import FlowUiOption from '../option/option.component.mjs';
|
|
19
|
+
import FlowUiRadio from '../radio/radio.component.mjs';
|
|
11
20
|
|
|
12
21
|
var __defProp = Object.defineProperty;
|
|
13
22
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -141,12 +150,12 @@ class FlowUiColorMapper extends FlowRdfElement {
|
|
|
141
150
|
)}
|
|
142
151
|
</flow-ui-select>
|
|
143
152
|
${this.hasSlotController.test("info") ? html`
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
<flow-ui-icon-button
|
|
154
|
+
library="system"
|
|
155
|
+
name="info-circle"
|
|
156
|
+
@click=${() => this.infoDialog.show()}
|
|
157
|
+
></flow-ui-icon-button>
|
|
158
|
+
` : nothing}
|
|
150
159
|
`;
|
|
151
160
|
}
|
|
152
161
|
// Color stops for 'data-driven' mode
|
|
@@ -225,7 +234,19 @@ class FlowUiColorMapper extends FlowRdfElement {
|
|
|
225
234
|
`;
|
|
226
235
|
}
|
|
227
236
|
}
|
|
237
|
+
FlowUiColorMapper.tagName = "flow-ui-color-mapper";
|
|
228
238
|
FlowUiColorMapper.styles = styles;
|
|
239
|
+
FlowUiColorMapper.dependencies = [
|
|
240
|
+
FlowUiButton,
|
|
241
|
+
FlowUiColorPicker,
|
|
242
|
+
FlowUiColorStop,
|
|
243
|
+
FlowUiDialog,
|
|
244
|
+
FlowUiIconButton,
|
|
245
|
+
FlowUiOption,
|
|
246
|
+
FlowUiRadio,
|
|
247
|
+
FlowUiRadioGroup,
|
|
248
|
+
FlowUiSelect
|
|
249
|
+
];
|
|
229
250
|
__decorateClass([
|
|
230
251
|
query("#mode-radio-group")
|
|
231
252
|
], FlowUiColorMapper.prototype, "modeRadioGroup", 2);
|