@foblex/flow 12.6.7 → 16.0.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/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +60 -0
- package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.mjs +38 -0
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.execution.mjs +23 -0
- package/esm2022/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.mjs +46 -0
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +48 -0
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +55 -0
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +32 -0
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +27 -0
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.execution.mjs +28 -0
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +50 -0
- package/esm2022/domain/f-canvas/update-scale/update-scale.execution.mjs +33 -0
- package/esm2022/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.mjs +38 -0
- package/esm2022/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.mjs +54 -0
- package/esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs +27 -0
- package/esm2022/domain/f-selection/clear-selection/clear-selection.execution.mjs +25 -0
- package/esm2022/domain/f-selection/get-selection/get-selection.execution.mjs +34 -0
- package/esm2022/domain/f-selection/select/select.execution.mjs +43 -0
- package/esm2022/domain/f-selection/select-all/select-all.execution.mjs +37 -0
- package/esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +34 -0
- package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +56 -0
- package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +66 -0
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +34 -0
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +42 -0
- package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +32 -0
- package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +49 -0
- package/esm2022/domain/get-flow-state/get-flow-state.execution.mjs +38 -0
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +30 -0
- package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +31 -0
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs +33 -0
- package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +75 -0
- package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +62 -0
- package/esm2022/domain/show-connections-after-calculations/show-connections-after-calculations.execution.mjs +25 -0
- package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +29 -0
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +56 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +58 -0
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.mjs +25 -0
- package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.mjs +29 -0
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +93 -0
- package/{esm2015/f-backgroud/f-background-base.js → esm2022/f-backgroud/f-background-base.mjs} +4 -4
- package/esm2022/f-backgroud/f-background.component.mjs +45 -0
- package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +104 -0
- package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +122 -0
- package/{esm2015/f-canvas/f-canvas-base.js → esm2022/f-canvas/f-canvas-base.mjs} +4 -4
- package/esm2022/f-canvas/f-canvas.component.mjs +86 -0
- package/esm2022/f-connection/common/f-connection-base.mjs +66 -0
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +70 -0
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +66 -0
- package/{esm2015/f-connection/common/f-drag-handle/f-connection-drag-handle.component.js → esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs} +7 -7
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +63 -0
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +59 -0
- package/{esm2015/f-connection/common/f-selection/f-connection-selection.component.js → esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs} +8 -8
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +171 -0
- package/esm2022/f-connection/f-connection-builder/f-connection-factory.mjs +34 -0
- package/{esm2015/f-connection/f-connection-center/f-connection-center.directive.js → esm2022/f-connection/f-connection-center/f-connection-center.directive.mjs} +4 -4
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +136 -0
- package/{esm2015/f-connection/f-marker/f-marker-base.js → esm2022/f-connection/f-marker/f-marker-base.mjs} +4 -4
- package/esm2022/f-connection/f-marker/f-marker.directive.mjs +58 -0
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +136 -0
- package/{esm2015/f-connectors/f-node-input/f-node-input-base.js → esm2022/f-connectors/f-node-input/f-node-input-base.mjs} +4 -4
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +87 -0
- package/{esm2015/f-connectors/f-node-outlet/f-node-outlet-base.js → esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs} +4 -4
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +71 -0
- package/{esm2015/f-connectors/f-node-output/f-node-output-base.js → esm2022/f-connectors/f-node-output/f-node-output-base.mjs} +4 -4
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +94 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +23 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs +35 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +42 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +54 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs +43 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +52 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +38 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +33 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +42 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs +31 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +61 -0
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.mjs +42 -0
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.mjs +26 -0
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +84 -0
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +34 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +49 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +63 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.mjs +43 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +58 -0
- package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.execution.mjs +32 -0
- package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.mjs +28 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +47 -0
- package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.mjs +35 -0
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +33 -0
- package/{esm2015/f-draggable/f-draggable-base.js → esm2022/f-draggable/f-draggable-base.mjs} +4 -4
- package/{esm2015/f-draggable/f-draggable-data-context.js → esm2022/f-draggable/f-draggable-data-context.mjs} +4 -4
- package/esm2022/f-draggable/f-draggable.directive.mjs +160 -0
- package/{esm2015/f-draggable/node/connection-base-drag-handler.js → esm2022/f-draggable/node/connection-base-drag-handler.mjs} +4 -4
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +17 -0
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +17 -0
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +21 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +84 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +43 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +69 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +69 -0
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +50 -0
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +58 -0
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +40 -0
- package/esm2022/f-draggable/node/node.drag-handler.mjs +33 -0
- package/esm2022/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.mjs +48 -0
- package/esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.mjs +48 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.mjs +24 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.mjs +33 -0
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs +30 -0
- package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +40 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +25 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +52 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +40 -0
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +88 -0
- package/esm2022/f-draggable/single-select/single-select.validator.mjs +26 -0
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +56 -0
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.validator.mjs +24 -0
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.execution.mjs +42 -0
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs +28 -0
- package/{esm2015/f-external-item/f-external-item-base.js → esm2022/f-external-item/f-external-item-base.mjs} +4 -4
- package/{esm2015/f-external-item/f-external-item.directive.js → esm2022/f-external-item/f-external-item.directive.mjs} +9 -9
- package/{esm2015/f-external-item/f-external-item.service.js → esm2022/f-external-item/f-external-item.service.mjs} +4 -4
- package/esm2022/f-flow/f-flow.component.mjs +118 -0
- package/{esm2015/f-flow.module.js → esm2022/f-flow.module.mjs} +5 -7
- package/{esm2015/f-line-alignment/f-line-alignment-base.js → esm2022/f-line-alignment/f-line-alignment-base.mjs} +4 -4
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +92 -0
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.mjs +41 -0
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +35 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +25 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.mjs +24 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.mjs +48 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.mjs +27 -0
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +66 -0
- package/{esm2015/f-minimap/f-minimap-flow.directive.js → esm2022/f-minimap/f-minimap-flow.directive.mjs} +10 -10
- package/{esm2015/f-minimap/f-minimap-view.directive.js → esm2022/f-minimap/f-minimap-view.directive.mjs} +8 -8
- package/esm2022/f-minimap/f-minimap.component.mjs +68 -0
- package/{esm2015/f-node/f-drag-handle/f-drag-handle.directive.js → esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs} +7 -7
- package/esm2022/f-node/f-group.directive.mjs +145 -0
- package/esm2022/f-node/f-node.directive.mjs +146 -0
- package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +43 -0
- package/{esm2015/f-node/f-rotate-handle/f-rotate-handle.directive.js → esm2022/f-node/f-rotate-handle/f-rotate-handle.directive.mjs} +5 -5
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.mjs +25 -0
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.mjs +24 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.mjs +37 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.mjs +30 -0
- package/{esm2015/f-selection-area/domain/selection-area.drag-handle.js → esm2022/f-selection-area/domain/selection-area.drag-handle.mjs} +4 -4
- package/{esm2015/f-selection-area/f-selection-area-base.js → esm2022/f-selection-area/f-selection-area-base.mjs} +4 -4
- package/esm2022/f-selection-area/f-selection-area.component.mjs +51 -0
- package/esm2022/f-storage/f-components-store.mjs +50 -0
- package/{esm2015/f-storage/f-transform-store.js → esm2022/f-storage/f-transform-store.mjs} +4 -4
- package/esm2022/f-zoom/f-zoom-base.mjs +97 -0
- package/esm2022/f-zoom/f-zoom.directive.mjs +59 -0
- package/esm2022/mixins/change-selection/change-selection.mjs +28 -0
- package/f-backgroud/f-background-base.d.ts +1 -1
- package/f-backgroud/f-background.component.d.ts +1 -1
- package/f-backgroud/f-circle-pattern/f-circle-pattern.component.d.ts +1 -1
- package/f-backgroud/f-rect-pattern/f-rect-pattern.component.d.ts +1 -1
- package/f-canvas/f-canvas-base.d.ts +1 -1
- package/f-canvas/f-canvas.component.d.ts +1 -1
- package/f-connection/common/f-connection-base.d.ts +1 -1
- package/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +1 -1
- package/f-connection/common/f-connection-text/f-connection-text.component.d.ts +1 -1
- package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +1 -1
- package/f-connection/common/f-gradient/f-connection-gradient.component.d.ts +1 -1
- package/f-connection/common/f-path/f-connection-path.component.d.ts +1 -1
- package/f-connection/common/f-selection/f-connection-selection.component.d.ts +1 -1
- package/f-connection/f-connection/f-connection.component.d.ts +1 -1
- package/f-connection/f-connection-center/f-connection-center.directive.d.ts +1 -1
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +1 -1
- package/f-connection/f-marker/f-marker-base.d.ts +1 -1
- package/f-connection/f-marker/f-marker.directive.d.ts +1 -1
- package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +1 -1
- package/f-connectors/f-node-input/f-node-input-base.d.ts +1 -1
- package/f-connectors/f-node-input/f-node-input.directive.d.ts +1 -1
- package/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +1 -1
- package/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +1 -1
- package/f-connectors/f-node-output/f-node-output-base.d.ts +1 -1
- package/f-connectors/f-node-output/f-node-output.directive.d.ts +1 -1
- package/f-draggable/f-draggable-base.d.ts +1 -1
- package/f-draggable/f-draggable.directive.d.ts +1 -1
- package/f-draggable/node/connection-base-drag-handler.d.ts +1 -1
- package/f-external-item/f-external-item-base.d.ts +1 -1
- package/f-external-item/f-external-item.directive.d.ts +1 -1
- package/f-flow/f-flow.component.d.ts +1 -1
- package/f-line-alignment/f-line-alignment-base.d.ts +1 -1
- package/f-line-alignment/f-line-alignment.component.d.ts +1 -1
- package/f-minimap/f-minimap-canvas.directive.d.ts +1 -1
- package/f-minimap/f-minimap-flow.directive.d.ts +1 -1
- package/f-minimap/f-minimap-view.directive.d.ts +1 -1
- package/f-minimap/f-minimap.component.d.ts +1 -1
- package/f-node/f-drag-handle/f-drag-handle.directive.d.ts +1 -1
- package/f-node/f-group.directive.d.ts +1 -1
- package/f-node/f-node.directive.d.ts +1 -1
- package/f-node/f-resize-handle/f-resize-handle.directive.d.ts +1 -1
- package/f-selection-area/f-selection-area-base.d.ts +1 -1
- package/f-selection-area/f-selection-area.component.d.ts +1 -1
- package/f-zoom/f-zoom.directive.d.ts +1 -1
- package/{fesm2015/foblex-flow.js → fesm2022/foblex-flow.mjs} +924 -1038
- package/fesm2022/foblex-flow.mjs.map +1 -0
- package/mixins/change-selection/change-selection.d.ts +1 -1
- package/mixins/change-visibility/change-visibility.d.ts +1 -1
- package/mixins/constructor.d.ts +2 -2
- package/package.json +15 -7
- package/bundles/foblex-flow.umd.js +0 -9815
- package/bundles/foblex-flow.umd.js.map +0 -1
- package/esm2015/domain/create-connection-markers/create-connection-markers.execution.js +0 -61
- package/esm2015/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.js +0 -39
- package/esm2015/domain/emit-transform-changes/emit-transform-changes.execution.js +0 -24
- package/esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.js +0 -48
- package/esm2015/domain/f-canvas/center-group-or-node/center-group-or-node.execution.js +0 -49
- package/esm2015/domain/f-canvas/fit-to-flow/fit-to-flow.execution.js +0 -56
- package/esm2015/domain/f-canvas/input-canvas-position/input-canvas-position.execution.js +0 -34
- package/esm2015/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.js +0 -29
- package/esm2015/domain/f-canvas/reset-scale/reset-scale.execution.js +0 -29
- package/esm2015/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.js +0 -51
- package/esm2015/domain/f-canvas/update-scale/update-scale.execution.js +0 -34
- package/esm2015/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.js +0 -39
- package/esm2015/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.js +0 -55
- package/esm2015/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.js +0 -28
- package/esm2015/domain/f-selection/clear-selection/clear-selection.execution.js +0 -26
- package/esm2015/domain/f-selection/get-selection/get-selection.execution.js +0 -35
- package/esm2015/domain/f-selection/select/select.execution.js +0 -44
- package/esm2015/domain/f-selection/select-all/select-all.execution.js +0 -38
- package/esm2015/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.js +0 -35
- package/esm2015/domain/get-can-be-selected-items/get-can-be-selected-items.execution.js +0 -57
- package/esm2015/domain/get-connection-line/get-connection-line.execution.js +0 -67
- package/esm2015/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.js +0 -35
- package/esm2015/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.js +0 -43
- package/esm2015/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.js +0 -33
- package/esm2015/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.js +0 -50
- package/esm2015/domain/get-flow-state/get-flow-state.execution.js +0 -39
- package/esm2015/domain/get-nodes-rect/get-nodes-rect.execution.js +0 -31
- package/esm2015/domain/get-position-in-flow/get-position-in-flow.execution.js +0 -32
- package/esm2015/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.js +0 -34
- package/esm2015/domain/is-connection-under-node/is-connection-under-node.execution.js +0 -76
- package/esm2015/domain/redraw-connections/redraw-connections.execution.js +0 -63
- package/esm2015/domain/show-connections-after-calculations/show-connections-after-calculations.execution.js +0 -26
- package/esm2015/domain/sort-item-layers/sort-item-layers.execution.js +0 -30
- package/esm2015/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.js +0 -57
- package/esm2015/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.js +0 -59
- package/esm2015/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.js +0 -26
- package/esm2015/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.js +0 -30
- package/esm2015/domain/update-item-and-children-layers/update-item-and-children-layers.execution.js +0 -94
- package/esm2015/f-backgroud/f-background.component.js +0 -53
- package/esm2015/f-backgroud/f-circle-pattern/f-circle-pattern.component.js +0 -104
- package/esm2015/f-backgroud/f-rect-pattern/f-rect-pattern.component.js +0 -122
- package/esm2015/f-canvas/f-canvas.component.js +0 -96
- package/esm2015/f-connection/common/f-connection-base.js +0 -68
- package/esm2015/f-connection/common/f-connection-text/f-connection-text-path.directive.js +0 -70
- package/esm2015/f-connection/common/f-connection-text/f-connection-text.component.js +0 -72
- package/esm2015/f-connection/common/f-gradient/f-connection-gradient.component.js +0 -69
- package/esm2015/f-connection/common/f-path/f-connection-path.component.js +0 -59
- package/esm2015/f-connection/f-connection/f-connection.component.js +0 -179
- package/esm2015/f-connection/f-connection-builder/f-connection-factory.js +0 -34
- package/esm2015/f-connection/f-connection-for-create/f-connection-for-create.component.js +0 -143
- package/esm2015/f-connection/f-marker/f-marker.directive.js +0 -58
- package/esm2015/f-connection/f-snap-connection/f-snap-connection.component.js +0 -143
- package/esm2015/f-connectors/f-node-input/f-node-input.directive.js +0 -87
- package/esm2015/f-connectors/f-node-outlet/f-node-outlet.directive.js +0 -71
- package/esm2015/f-connectors/f-node-output/f-node-output.directive.js +0 -94
- package/esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.js +0 -24
- package/esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.js +0 -25
- package/esm2015/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.js +0 -36
- package/esm2015/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.js +0 -44
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.js +0 -56
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.js +0 -25
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.js +0 -44
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.js +0 -53
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.js +0 -39
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.js +0 -34
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.js +0 -43
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.js +0 -32
- package/esm2015/f-draggable/connections/create-connection/create-connection.drag-handler.js +0 -63
- package/esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.js +0 -43
- package/esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.js +0 -27
- package/esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.js +0 -85
- package/esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.js +0 -35
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.js +0 -50
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.js +0 -25
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.js +0 -64
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.js +0 -44
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.js +0 -60
- package/esm2015/f-draggable/domain/get-node-padding/get-node-padding.execution.js +0 -33
- package/esm2015/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.js +0 -29
- package/esm2015/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.js +0 -48
- package/esm2015/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.js +0 -36
- package/esm2015/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.js +0 -34
- package/esm2015/f-draggable/f-draggable.directive.js +0 -165
- package/esm2015/f-draggable/node/connection-source.drag-handler.js +0 -17
- package/esm2015/f-draggable/node/connection-target.drag-handler.js +0 -17
- package/esm2015/f-draggable/node/connection.drag-handler.js +0 -21
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.js +0 -85
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.js +0 -44
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.js +0 -70
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.js +0 -70
- package/esm2015/f-draggable/node/node-move-finalize/node-move-finalize.execution.js +0 -54
- package/esm2015/f-draggable/node/node-move-finalize/node-move-finalize.validator.js +0 -25
- package/esm2015/f-draggable/node/node-move-preparation/node-move-preparation.execution.js +0 -60
- package/esm2015/f-draggable/node/node-move-preparation/node-move-preparation.validator.js +0 -41
- package/esm2015/f-draggable/node/node.drag-handler.js +0 -34
- package/esm2015/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.js +0 -49
- package/esm2015/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.js +0 -49
- package/esm2015/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.js +0 -25
- package/esm2015/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.js +0 -34
- package/esm2015/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.js +0 -31
- package/esm2015/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.js +0 -41
- package/esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.js +0 -27
- package/esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.js +0 -25
- package/esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.js +0 -53
- package/esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.js +0 -41
- package/esm2015/f-draggable/single-select/single-select.execution.js +0 -89
- package/esm2015/f-draggable/single-select/single-select.validator.js +0 -27
- package/esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.execution.js +0 -57
- package/esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.validator.js +0 -25
- package/esm2015/f-external-item/domain/external-item-preparation/external-item-preparation.execution.js +0 -43
- package/esm2015/f-external-item/domain/external-item-preparation/external-item-preparation.validator.js +0 -29
- package/esm2015/f-flow/f-flow.component.js +0 -125
- package/esm2015/f-line-alignment/f-line-alignment.component.js +0 -99
- package/esm2015/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.js +0 -42
- package/esm2015/f-minimap/domain/f-minimap.drag-handler.js +0 -37
- package/esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.js +0 -27
- package/esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.js +0 -25
- package/esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.js +0 -49
- package/esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.js +0 -28
- package/esm2015/f-minimap/f-minimap-canvas.directive.js +0 -66
- package/esm2015/f-minimap/f-minimap.component.js +0 -76
- package/esm2015/f-node/f-group.directive.js +0 -145
- package/esm2015/f-node/f-node.directive.js +0 -146
- package/esm2015/f-node/f-resize-handle/f-resize-handle.directive.js +0 -43
- package/esm2015/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.js +0 -27
- package/esm2015/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.js +0 -25
- package/esm2015/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.js +0 -38
- package/esm2015/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.js +0 -31
- package/esm2015/f-selection-area/f-selection-area.component.js +0 -57
- package/esm2015/f-storage/f-components-store.js +0 -52
- package/esm2015/f-zoom/f-zoom-base.js +0 -99
- package/esm2015/f-zoom/f-zoom.directive.js +0 -59
- package/esm2015/mixins/change-selection/change-selection.js +0 -30
- package/fesm2015/foblex-flow.js.map +0 -1
- /package/{esm2015/domain/constants.js → esm2022/domain/constants.mjs} +0 -0
- /package/{esm2015/domain/create-connection-markers/create-connection-markers-request.js → esm2022/domain/create-connection-markers/create-connection-markers-request.mjs} +0 -0
- /package/{esm2015/domain/create-connection-markers/index.js → esm2022/domain/create-connection-markers/index.mjs} +0 -0
- /package/{esm2015/domain/create-dom-element.js → esm2022/domain/create-dom-element.mjs} +0 -0
- /package/{esm2015/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.js → esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.mjs} +0 -0
- /package/{esm2015/domain/create-rounded-rect-from-element/index.js → esm2022/domain/create-rounded-rect-from-element/index.mjs} +0 -0
- /package/{esm2015/domain/emit-transform-changes/emit-transform-changes.request.js → esm2022/domain/emit-transform-changes/emit-transform-changes.request.mjs} +0 -0
- /package/{esm2015/domain/emit-transform-changes/index.js → esm2022/domain/emit-transform-changes/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.request.js → esm2022/domain/f-background/add-pattern-to-background/add-pattern-to-background.request.mjs} +0 -0
- /package/{esm2015/domain/f-background/add-pattern-to-background/index.js → esm2022/domain/f-background/add-pattern-to-background/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/index.js → esm2022/domain/f-background/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/providers.js → esm2022/domain/f-background/providers.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/center-group-or-node/center-group-or-node-request.js → esm2022/domain/f-canvas/center-group-or-node/center-group-or-node-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/center-group-or-node/index.js → esm2022/domain/f-canvas/center-group-or-node/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/fit-to-flow/fit-to-flow-request.js → esm2022/domain/f-canvas/fit-to-flow/fit-to-flow-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/fit-to-flow/index.js → esm2022/domain/f-canvas/fit-to-flow/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/index.js → esm2022/domain/f-canvas/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-position/index.js → esm2022/domain/f-canvas/input-canvas-position/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-position/input-canvas-position-request.js → esm2022/domain/f-canvas/input-canvas-position/input-canvas-position-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-scale/index.js → esm2022/domain/f-canvas/input-canvas-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.js → esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/providers.js → esm2022/domain/f-canvas/providers.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale/index.js → esm2022/domain/f-canvas/reset-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale/reset-scale-request.js → esm2022/domain/f-canvas/reset-scale/reset-scale-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale-and-center/index.js → esm2022/domain/f-canvas/reset-scale-and-center/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.js → esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/update-scale/index.js → esm2022/domain/f-canvas/update-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/update-scale/update-scale-request.js → esm2022/domain/f-canvas/update-scale/update-scale-request.mjs} +0 -0
- /package/{esm2015/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.js → esm2022/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.mjs} +0 -0
- /package/{esm2015/domain/f-connection/find-closest-input-using-snap-threshold/index.js → esm2022/domain/f-connection/find-closest-input-using-snap-threshold/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.js → esm2022/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-all-can-be-connected-input-positions/index.js → esm2022/domain/f-connection/get-all-can-be-connected-input-positions/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.js → esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-connector-with-rect/i-connector-with-rect.js → esm2022/domain/f-connection/get-connector-with-rect/i-connector-with-rect.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-connector-with-rect/index.js → esm2022/domain/f-connection/get-connector-with-rect/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/index.js → esm2022/domain/f-connection/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/providers.js → esm2022/domain/f-connection/providers.mjs} +0 -0
- /package/{esm2015/domain/f-selection/clear-selection/clear-selection.request.js → esm2022/domain/f-selection/clear-selection/clear-selection.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/clear-selection/index.js → esm2022/domain/f-selection/clear-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/get-selection/get-selection.request.js → esm2022/domain/f-selection/get-selection/get-selection.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/get-selection/index.js → esm2022/domain/f-selection/get-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/index.js → esm2022/domain/f-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/providers.js → esm2022/domain/f-selection/providers.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select/index.js → esm2022/domain/f-selection/select/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select/select.request.js → esm2022/domain/f-selection/select/select.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-all/index.js → esm2022/domain/f-selection/select-all/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-all/select-all.request.js → esm2022/domain/f-selection/select-all/select-all.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-and-update-node-layer/index.js → esm2022/domain/f-selection/select-and-update-node-layer/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.js → esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.mjs} +0 -0
- /package/{esm2015/domain/get-can-be-selected-items/get-can-be-selected-items-request.js → esm2022/domain/get-can-be-selected-items/get-can-be-selected-items-request.mjs} +0 -0
- /package/{esm2015/domain/get-can-be-selected-items/i-selectable-with-rect.js → esm2022/domain/get-can-be-selected-items/i-selectable-with-rect.mjs} +0 -0
- /package/{esm2015/domain/get-can-be-selected-items/index.js → esm2022/domain/get-can-be-selected-items/index.mjs} +0 -0
- /package/{esm2015/domain/get-connection-line/get-connection-line.request.js → esm2022/domain/get-connection-line/get-connection-line.request.mjs} +0 -0
- /package/{esm2015/domain/get-connection-line/index.js → esm2022/domain/get-connection-line/index.mjs} +0 -0
- /package/{esm2015/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.js → esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.mjs} +0 -0
- /package/{esm2015/domain/get-deep-children-nodes-and-groups/index.js → esm2022/domain/get-deep-children-nodes-and-groups/index.mjs} +0 -0
- /package/{esm2015/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.js → esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.mjs} +0 -0
- /package/{esm2015/domain/get-element-rect-in-flow/index.js → esm2022/domain/get-element-rect-in-flow/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.js → esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state-connections/index.js → esm2022/domain/get-flow-state/get-flow-state-connections/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.js → esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state-nodes/index.js → esm2022/domain/get-flow-state/get-flow-state-nodes/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state.request.js → esm2022/domain/get-flow-state/get-flow-state.request.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-connection.js → esm2022/domain/get-flow-state/i-f-flow-state-connection.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-connector.js → esm2022/domain/get-flow-state/i-f-flow-state-connector.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-node.js → esm2022/domain/get-flow-state/i-f-flow-state-node.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state.js → esm2022/domain/get-flow-state/i-f-flow-state.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/index.js → esm2022/domain/get-flow-state/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/providers.js → esm2022/domain/get-flow-state/providers.mjs} +0 -0
- /package/{esm2015/domain/get-nodes-rect/get-nodes-rect.request.js → esm2022/domain/get-nodes-rect/get-nodes-rect.request.mjs} +0 -0
- /package/{esm2015/domain/get-nodes-rect/index.js → esm2022/domain/get-nodes-rect/index.mjs} +0 -0
- /package/{esm2015/domain/get-position-in-flow/get-position-in-flow-request.js → esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs} +0 -0
- /package/{esm2015/domain/get-position-in-flow/index.js → esm2022/domain/get-position-in-flow/index.mjs} +0 -0
- /package/{esm2015/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.js → esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.mjs} +0 -0
- /package/{esm2015/domain/get-scaled-node-rects-with-flow-position/index.js → esm2022/domain/get-scaled-node-rects-with-flow-position/index.mjs} +0 -0
- /package/{esm2015/domain/i-map.js → esm2022/domain/i-map.mjs} +0 -0
- /package/{esm2015/domain/index.js → esm2022/domain/index.mjs} +0 -0
- /package/{esm2015/domain/is-connection-under-node/index.js → esm2022/domain/is-connection-under-node/index.mjs} +0 -0
- /package/{esm2015/domain/is-connection-under-node/is-connection-under-node.request.js → esm2022/domain/is-connection-under-node/is-connection-under-node.request.mjs} +0 -0
- /package/{esm2015/domain/providers.js → esm2022/domain/providers.mjs} +0 -0
- /package/{esm2015/domain/redraw-connections/index.js → esm2022/domain/redraw-connections/index.mjs} +0 -0
- /package/{esm2015/domain/redraw-connections/redraw-connections-request.js → esm2022/domain/redraw-connections/redraw-connections-request.mjs} +0 -0
- /package/{esm2015/domain/show-connections-after-calculations/index.js → esm2022/domain/show-connections-after-calculations/index.mjs} +0 -0
- /package/{esm2015/domain/show-connections-after-calculations/show-connections-after-calculations-request.js → esm2022/domain/show-connections-after-calculations/show-connections-after-calculations-request.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/index.js → esm2022/domain/sort-item-layers/index.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-item-layers.request.js → esm2022/domain/sort-item-layers/sort-item-layers.request.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-items-by-parent/index.js → esm2022/domain/sort-item-layers/sort-items-by-parent/index.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.js → esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-node-layers-by-groups/index.js → esm2022/domain/sort-item-layers/sort-node-layers-by-groups/index.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.request.js → esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.request.mjs} +0 -0
- /package/{esm2015/domain/subscribe-on-transform-changes/index.js → esm2022/domain/subscribe-on-transform-changes/index.mjs} +0 -0
- /package/{esm2015/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.js → esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/index.js → esm2022/domain/update-item-and-children-layers/index.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/move-front-elements-before-target-element/index.js → esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/index.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.request.js → esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.request.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/update-item-and-children-layers.request.js → esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.request.mjs} +0 -0
- /package/{esm2015/errors/conflict-error.js → esm2022/errors/conflict-error.mjs} +0 -0
- /package/{esm2015/errors/create-error-class.js → esm2022/errors/create-error-class.mjs} +0 -0
- /package/{esm2015/errors/errors.js → esm2022/errors/errors.mjs} +0 -0
- /package/{esm2015/errors/index.js → esm2022/errors/index.mjs} +0 -0
- /package/{esm2015/errors/not-found-error.js → esm2022/errors/not-found-error.mjs} +0 -0
- /package/{esm2015/f-backgroud/domain/i-f-background-pattern.js → esm2022/f-backgroud/domain/i-f-background-pattern.mjs} +0 -0
- /package/{esm2015/f-backgroud/domain/index.js → esm2022/f-backgroud/domain/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/f-circle-pattern/index.js → esm2022/f-backgroud/f-circle-pattern/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/f-rect-pattern/index.js → esm2022/f-backgroud/f-rect-pattern/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/index.js → esm2022/f-backgroud/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/providers.js → esm2022/f-backgroud/providers.mjs} +0 -0
- /package/{esm2015/f-canvas/domain/f-canvas-change.event.js → esm2022/f-canvas/domain/f-canvas-change.event.mjs} +0 -0
- /package/{esm2015/f-canvas/domain/index.js → esm2022/f-canvas/domain/index.mjs} +0 -0
- /package/{esm2015/f-canvas/index.js → esm2022/f-canvas/index.mjs} +0 -0
- /package/{esm2015/f-canvas/providers.js → esm2022/f-canvas/providers.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points-request.js → esm2022/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points-request.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points.handler.js → esm2022/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points.handler.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-center-between-points/index.js → esm2022/f-connection/common/domain/calculate-center-between-points/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-connection-center/calculate-connection-center-request.js → esm2022/f-connection/common/domain/calculate-connection-center/calculate-connection-center-request.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-connection-center/calculate-connection-center.handler.js → esm2022/f-connection/common/domain/calculate-connection-center/calculate-connection-center.handler.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-connection-center/index.js → esm2022/f-connection/common/domain/calculate-connection-center/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-bezier.path-builder.js → esm2022/f-connection/common/domain/f-bezier.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-segment.path-builder.js → esm2022/f-connection/common/domain/f-segment.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-straight.path-builder.js → esm2022/f-connection/common/domain/f-straight.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/index.js → esm2022/f-connection/common/domain/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/e-f-connection-behavior.js → esm2022/f-connection/common/e-f-connection-behavior.mjs} +0 -0
- /package/{esm2015/f-connection/common/e-f-connection-type.js → esm2022/f-connection/common/e-f-connection-type.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-identifiers.js → esm2022/f-connection/common/f-connection-identifiers.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-text/i-connection-text.js → esm2022/f-connection/common/f-connection-text/i-connection-text.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-text/index.js → esm2022/f-connection/common/f-connection-text/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection.injection-token.js → esm2022/f-connection/common/f-connection.injection-token.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-drag-handle/index.js → esm2022/f-connection/common/f-drag-handle/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-gradient/i-connection-gradient.js → esm2022/f-connection/common/f-gradient/i-connection-gradient.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-gradient/index.js → esm2022/f-connection/common/f-gradient/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/get-path-marker-id.js → esm2022/f-connection/common/f-path/get-path-marker-id.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/i-connection-path.js → esm2022/f-connection/common/f-path/i-connection-path.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/index.js → esm2022/f-connection/common/f-path/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-selection/index.js → esm2022/f-connection/common/f-selection/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-color.js → esm2022/f-connection/common/i-has-connection-color.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-from-to.js → esm2022/f-connection/common/i-has-connection-from-to.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-text.js → esm2022/f-connection/common/i-has-connection-text.mjs} +0 -0
- /package/{esm2015/f-connection/common/index.js → esm2022/f-connection/common/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection/index.js → esm2022/f-connection/f-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/f-connection-builders.js → esm2022/f-connection/f-connection-builder/f-connection-builders.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-builder-request.js → esm2022/f-connection/f-connection-builder/i-f-connection-builder-request.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-builder-response.js → esm2022/f-connection/f-connection-builder/i-f-connection-builder-response.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-builder.js → esm2022/f-connection/f-connection-builder/i-f-connection-builder.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-factory-request.js → esm2022/f-connection/f-connection-builder/i-f-connection-factory-request.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/index.js → esm2022/f-connection/f-connection-builder/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-center/index.js → esm2022/f-connection/f-connection-center/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-for-create/index.js → esm2022/f-connection/f-connection-for-create/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-marker/e-f-marker-type.js → esm2022/f-connection/f-marker/e-f-marker-type.mjs} +0 -0
- /package/{esm2015/f-connection/f-marker/index.js → esm2022/f-connection/f-marker/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-snap-connection/index.js → esm2022/f-connection/f-snap-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/index.js → esm2022/f-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/providers.js → esm2022/f-connection/providers.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.js → esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side.handler.js → esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side.handler.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/calculate-connector-connectable-side/index.js → esm2022/f-connectors/domain/calculate-connector-connectable-side/index.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/index.js → esm2022/f-connectors/domain/index.mjs} +0 -0
- /package/{esm2015/f-connectors/e-f-connectable-side.js → esm2022/f-connectors/e-f-connectable-side.mjs} +0 -0
- /package/{esm2015/f-connectors/f-connector-base.js → esm2022/f-connectors/f-connector-base.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-input/index.js → esm2022/f-connectors/f-node-input/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-outlet/index.js → esm2022/f-connectors/f-node-outlet/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-outlet/is-node-outlet.js → esm2022/f-connectors/f-node-outlet/is-node-outlet.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-output/index.js → esm2022/f-connectors/f-node-output/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-output/is-node-output.js → esm2022/f-connectors/f-node-output/is-node-output.mjs} +0 -0
- /package/{esm2015/f-connectors/index.js → esm2022/f-connectors/index.mjs} +0 -0
- /package/{esm2015/f-connectors/providers.js → esm2022/f-connectors/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.js → esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/index.js → esm2022/f-draggable/canvas/canvas-move-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/providers.js → esm2022/f-draggable/canvas/canvas-move-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.js → esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/index.js → esm2022/f-draggable/canvas/canvas-move-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/providers.js → esm2022/f-draggable/canvas/canvas-move-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas.drag-handler.js → esm2022/f-draggable/canvas/canvas.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/index.js → esm2022/f-draggable/canvas/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/providers.js → esm2022/f-draggable/canvas/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.js → esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-finalize/index.js → esm2022/f-draggable/connections/create-connection/create-connection-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/index.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/f-create-connection.event.js → esm2022/f-draggable/connections/create-connection/f-create-connection.event.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.js → esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.js → esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/index.js → esm2022/f-draggable/connections/create-connection/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.js → esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/get-input-under-pointer/index.js → esm2022/f-draggable/connections/get-input-under-pointer/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/index.js → esm2022/f-draggable/connections/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/providers.js → esm2022/f-draggable/connections/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/f-reassign-connection.event.js → esm2022/f-draggable/connections/reassign-connection/f-reassign-connection.event.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/index.js → esm2022/f-draggable/connections/reassign-connection/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.js → esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.js → esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.js → esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.js → esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-node-padding/get-node-padding.request.js → esm2022/f-draggable/domain/get-node-padding/get-node-padding.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-node-padding/index.js → esm2022/f-draggable/domain/get-node-padding/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.js → esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-normalized-node-rect/index.js → esm2022/f-draggable/domain/get-normalized-node-rect/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.request.js → esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-normalized-parent-node-rect/index.js → esm2022/f-draggable/domain/get-normalized-parent-node-rect/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.js → esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-parent-nodes/index.js → esm2022/f-draggable/domain/get-parent-nodes/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/index.js → esm2022/f-draggable/domain/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/is-array-has-parent-node/index.js → esm2022/f-draggable/domain/is-array-has-parent-node/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.js → esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/providers.js → esm2022/f-draggable/domain/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/f-selection-change-event.js → esm2022/f-draggable/f-selection-change-event.mjs} +0 -0
- /package/{esm2015/f-draggable/i-draggable-item.js → esm2022/f-draggable/i-draggable-item.mjs} +0 -0
- /package/{esm2015/f-draggable/i-f-drag-and-drop-plugin.js → esm2022/f-draggable/i-f-drag-and-drop-plugin.mjs} +0 -0
- /package/{esm2015/f-draggable/index.js → esm2022/f-draggable/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.request.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.request.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/i-node-move-restrictions.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/i-node-move-restrictions.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/index.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/index.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.request.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/index.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.request.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/index.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/index.js → esm2022/f-draggable/node/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/index.js → esm2022/f-draggable/node/node-move-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/node-move-finalize.request.js → esm2022/f-draggable/node/node-move-finalize/node-move-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/providers.js → esm2022/f-draggable/node/node-move-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/index.js → esm2022/f-draggable/node/node-move-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/node-move-preparation.request.js → esm2022/f-draggable/node/node-move-preparation/node-move-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/providers.js → esm2022/f-draggable/node/node-move-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-resize-by-child.drag-handler.js → esm2022/f-draggable/node/node-resize-by-child.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/node/providers.js → esm2022/f-draggable/node/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.js → esm2022/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-child-resize-restrictions/index.js → esm2022/f-draggable/node-resize/apply-child-resize-restrictions/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.request.js → esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-parent-resize-restrictions/index.js → esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.request.js → esm2022/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/calculate-changed-position/index.js → esm2022/f-draggable/node-resize/calculate-changed-position/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.request.js → esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/calculate-changed-size/index.js → esm2022/f-draggable/node-resize/calculate-changed-size/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.request.js → esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-node-resize-restrictions/i-node-resize-restrictions.js → esm2022/f-draggable/node-resize/get-node-resize-restrictions/i-node-resize-restrictions.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-node-resize-restrictions/index.js → esm2022/f-draggable/node-resize/get-node-resize-restrictions/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.request.js → esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-normalized-children-nodes-rect/index.js → esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/index.js → esm2022/f-draggable/node-resize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-finalize/index.js → esm2022/f-draggable/node-resize/node-resize-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.request.js → esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-finalize/providers.js → esm2022/f-draggable/node-resize/node-resize-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-preparation/index.js → esm2022/f-draggable/node-resize/node-resize-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.request.js → esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-preparation/providers.js → esm2022/f-draggable/node-resize/node-resize-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize.drag-handler.js → esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/providers.js → esm2022/f-draggable/node-resize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/resize-direction.js → esm2022/f-draggable/node-resize/resize-direction.mjs} +0 -0
- /package/{esm2015/f-draggable/providers.js → esm2022/f-draggable/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/index.js → esm2022/f-draggable/single-select/index.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/providers.js → esm2022/f-draggable/single-select/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/single-select.request.js → esm2022/f-draggable/single-select/single-select.request.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.request.js → esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.request.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-finalize/index.js → esm2022/f-external-item/domain/external-item-finalize/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-finalize/providers.js → esm2022/f-external-item/domain/external-item-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-preparation/external-item-preparation.request.js → esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.request.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-preparation/index.js → esm2022/f-external-item/domain/external-item-preparation/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-preparation/providers.js → esm2022/f-external-item/domain/external-item-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item.drag-handler.js → esm2022/f-external-item/domain/external-item.drag-handler.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/f-create-node.event.js → esm2022/f-external-item/domain/f-create-node.event.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/index.js → esm2022/f-external-item/domain/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/providers.js → esm2022/f-external-item/domain/providers.mjs} +0 -0
- /package/{esm2015/f-external-item/index.js → esm2022/f-external-item/index.mjs} +0 -0
- /package/{esm2015/f-external-item/is-external-item.js → esm2022/f-external-item/is-external-item.mjs} +0 -0
- /package/{esm2015/f-external-item/providers.js → esm2022/f-external-item/providers.mjs} +0 -0
- /package/{esm2015/f-flow/f-flow-base.js → esm2022/f-flow/f-flow-base.mjs} +0 -0
- /package/{esm2015/f-flow/index.js → esm2022/f-flow/index.mjs} +0 -0
- /package/{esm2015/f-flow/providers.js → esm2022/f-flow/providers.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-line-alignment-rect.js → esm2022/f-line-alignment/domain/i-line-alignment-rect.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-line-alignment-result.js → esm2022/f-line-alignment/domain/i-line-alignment-result.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-nearest-coordinate-result.js → esm2022/f-line-alignment/domain/i-nearest-coordinate-result.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/index.js → esm2022/f-line-alignment/domain/index.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/line-element.js → esm2022/f-line-alignment/domain/line-element.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/line-service.js → esm2022/f-line-alignment/domain/line-service.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/nearest-coordinate.js → esm2022/f-line-alignment/domain/nearest-coordinate.mjs} +0 -0
- /package/{esm2015/f-line-alignment/index.js → esm2022/f-line-alignment/index.mjs} +0 -0
- /package/{esm2015/f-line-alignment/providers.js → esm2022/f-line-alignment/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.js → esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/calculate-flow-point-from-minimap-point/index.js → esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/check-rect-is-finite.js → esm2022/f-minimap/domain/check-rect-is-finite.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/f-minimap-data.js → esm2022/f-minimap/domain/f-minimap-data.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/index.js → esm2022/f-minimap/domain/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/index.js → esm2022/f-minimap/domain/minimap-drag-finalize/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.js → esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/providers.js → esm2022/f-minimap/domain/minimap-drag-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/index.js → esm2022/f-minimap/domain/minimap-drag-preparation/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.js → esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/providers.js → esm2022/f-minimap/domain/minimap-drag-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/providers.js → esm2022/f-minimap/domain/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/index.js → esm2022/f-minimap/index.mjs} +0 -0
- /package/{esm2015/f-minimap/providers.js → esm2022/f-minimap/providers.mjs} +0 -0
- /package/{esm2015/f-node/domain/index.js → esm2022/f-node/domain/index.mjs} +0 -0
- /package/{esm2015/f-node/domain/is-group.js → esm2022/f-node/domain/is-group.mjs} +0 -0
- /package/{esm2015/f-node/domain/is-node.js → esm2022/f-node/domain/is-node.mjs} +0 -0
- /package/{esm2015/f-node/f-drag-handle/index.js → esm2022/f-node/f-drag-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/f-node-base.js → esm2022/f-node/f-node-base.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-handle/e-f-resize-handle-type.js → esm2022/f-node/f-resize-handle/e-f-resize-handle-type.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-handle/index.js → esm2022/f-node/f-resize-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-observer.js → esm2022/f-node/f-resize-observer.mjs} +0 -0
- /package/{esm2015/f-node/f-rotate-handle/index.js → esm2022/f-node/f-rotate-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/index.js → esm2022/f-node/index.mjs} +0 -0
- /package/{esm2015/f-node/providers.js → esm2022/f-node/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/index.js → esm2022/f-selection-area/domain/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/providers.js → esm2022/f-selection-area/domain/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-finalize/index.js → esm2022/f-selection-area/domain/selection-area-finalize/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-finalize/providers.js → esm2022/f-selection-area/domain/selection-area-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-finalize/selection-area-finalize.request.js → esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.request.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-preparation/index.js → esm2022/f-selection-area/domain/selection-area-preparation/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-preparation/providers.js → esm2022/f-selection-area/domain/selection-area-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.js → esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.mjs} +0 -0
- /package/{esm2015/f-selection-area/index.js → esm2022/f-selection-area/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/providers.js → esm2022/f-selection-area/providers.mjs} +0 -0
- /package/{esm2015/f-storage/index.js → esm2022/f-storage/index.mjs} +0 -0
- /package/{esm2015/f-zoom/index.js → esm2022/f-zoom/index.mjs} +0 -0
- /package/{esm2015/f-zoom/providers.js → esm2022/f-zoom/providers.mjs} +0 -0
- /package/{esm2015/foblex-flow.js → esm2022/foblex-flow.mjs} +0 -0
- /package/{esm2015/i-has-host-element.js → esm2022/i-has-host-element.mjs} +0 -0
- /package/{esm2015/i-has-state-changes.js → esm2022/i-has-state-changes.mjs} +0 -0
- /package/{esm2015/mixins/change-selection/i-can-change-selection.js → esm2022/mixins/change-selection/i-can-change-selection.mjs} +0 -0
- /package/{esm2015/mixins/change-selection/index.js → esm2022/mixins/change-selection/index.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/change-visibility.js → esm2022/mixins/change-visibility/change-visibility.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/i-can-change-visibility.js → esm2022/mixins/change-visibility/i-can-change-visibility.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/index.js → esm2022/mixins/change-visibility/index.mjs} +0 -0
- /package/{esm2015/mixins/constructor.js → esm2022/mixins/constructor.mjs} +0 -0
- /package/{esm2015/mixins/index.js → esm2022/mixins/index.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2022/public-api.mjs} +0 -0
- /package/{foblex-flow.d.ts → index.d.ts} +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { GetNormalizedChildrenNodesRectRequest } from './get-normalized-children-nodes-rect.request';
|
|
4
|
-
import { RectExtensions } from '@foblex/2d';
|
|
5
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
-
import { GetNodePaddingRequest, GetNormalizedNodeRectRequest } from '../../domain';
|
|
7
|
-
import { GetDeepChildrenNodesAndGroupsRequest } from '../../../domain';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@foblex/mediator";
|
|
10
|
-
let GetNormalizedChildrenNodesRectExecution = class GetNormalizedChildrenNodesRectExecution {
|
|
11
|
-
constructor(fMediator) {
|
|
12
|
-
this.fMediator = fMediator;
|
|
13
|
-
}
|
|
14
|
-
handle(request) {
|
|
15
|
-
const childNodeRect = RectExtensions.union(this.getChildrenNodes(request.fNode.fId).map((x) => this.normalizeRect(x)));
|
|
16
|
-
return childNodeRect ?
|
|
17
|
-
this.concatRectWithParentPadding(childNodeRect, this.getNodePadding(request.fNode, request.rect)) : null;
|
|
18
|
-
}
|
|
19
|
-
getChildrenNodes(fId) {
|
|
20
|
-
return this.fMediator.send(new GetDeepChildrenNodesAndGroupsRequest(fId));
|
|
21
|
-
}
|
|
22
|
-
normalizeRect(node) {
|
|
23
|
-
return this.fMediator.send(new GetNormalizedNodeRectRequest(node));
|
|
24
|
-
}
|
|
25
|
-
getNodePadding(node, rect) {
|
|
26
|
-
return this.fMediator.send(new GetNodePaddingRequest(node, rect));
|
|
27
|
-
}
|
|
28
|
-
concatRectWithParentPadding(rect, padding) {
|
|
29
|
-
return RectExtensions.initialize(rect.x - padding[0], rect.y - padding[1], rect.width + padding[0] + padding[2], rect.height + +padding[1] + padding[3]);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
GetNormalizedChildrenNodesRectExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GetNormalizedChildrenNodesRectExecution, deps: [{ token: i1.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
-
GetNormalizedChildrenNodesRectExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GetNormalizedChildrenNodesRectExecution });
|
|
34
|
-
GetNormalizedChildrenNodesRectExecution = __decorate([
|
|
35
|
-
FExecutionRegister(GetNormalizedChildrenNodesRectRequest)
|
|
36
|
-
], GetNormalizedChildrenNodesRectExecution);
|
|
37
|
-
export { GetNormalizedChildrenNodesRectExecution };
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GetNormalizedChildrenNodesRectExecution, decorators: [{
|
|
39
|
-
type: Injectable
|
|
40
|
-
}], ctorParameters: function () { return [{ type: i1.FMediator }]; } });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LW5vcm1h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VybiB0aGlzLmZNZWRpYXRvci5zZW5kPElSZWN0PihuZXcgR2V0Tm9ybWFsaXplZE5vZGVSZWN0UmVxdWVzdChub2RlKSk7XG4gIH1cblxuICBwcml2YXRlIGdldE5vZGVQYWRkaW5nKG5vZGU6IEZOb2RlQmFzZSwgcmVjdDogSVJlY3QpOiBbIG51bWJlciwgbnVtYmVyLCBudW1iZXIsIG51bWJlciBdIHtcbiAgICByZXR1cm4gdGhpcy5mTWVkaWF0b3Iuc2VuZDxbIG51bWJlciwgbnVtYmVyLCBudW1iZXIsIG51bWJlciBdPihuZXcgR2V0Tm9kZVBhZGRpbmdSZXF1ZXN0KG5vZGUsIHJlY3QpKTtcbiAgfVxuXG4gIHByaXZhdGUgY29uY2F0UmVjdFdpdGhQYXJlbnRQYWRkaW5nKHJlY3Q6IElSZWN0LCBwYWRkaW5nOiBbIG51bWJlciwgbnVtYmVyLCBudW1iZXIsIG51bWJlciBdKTogSVJlY3Qge1xuICAgIHJldHVybiBSZWN0RXh0ZW5zaW9ucy5pbml0aWFsaXplKFxuICAgICAgcmVjdC54IC0gcGFkZGluZ1swXSxcbiAgICAgIHJlY3QueSAtIHBhZGRpbmdbMV0sXG4gICAgICByZWN0LndpZHRoICsgcGFkZGluZ1swXSArIHBhZGRpbmdbMl0sXG4gICAgICByZWN0LmhlaWdodCArICsgcGFkZGluZ1sxXSArIHBhZGRpbmdbM11cbiAgICApO1xuICB9XG59XG4iXX0=
|
package/esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { NodeResizeFinalizeRequest } from './node-resize-finalize.request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../f-draggable-data-context";
|
|
7
|
-
let NodeResizeFinalizeExecution = class NodeResizeFinalizeExecution {
|
|
8
|
-
constructor(fDraggableDataContext) {
|
|
9
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
10
|
-
}
|
|
11
|
-
handle(request) {
|
|
12
|
-
this.fDraggableDataContext.draggableItems.forEach((x) => {
|
|
13
|
-
var _a;
|
|
14
|
-
(_a = x.complete) === null || _a === void 0 ? void 0 : _a.call(x);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
NodeResizeFinalizeExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizeFinalizeExecution, deps: [{ token: i1.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
-
NodeResizeFinalizeExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizeFinalizeExecution });
|
|
20
|
-
NodeResizeFinalizeExecution = __decorate([
|
|
21
|
-
FExecutionRegister(NodeResizeFinalizeRequest)
|
|
22
|
-
], NodeResizeFinalizeExecution);
|
|
23
|
-
export { NodeResizeFinalizeExecution };
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizeFinalizeExecution, decorators: [{
|
|
25
|
-
type: Injectable
|
|
26
|
-
}], ctorParameters: function () { return [{ type: i1.FDraggableDataContext }]; } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1yZXNpemUtZmluYWxpemUuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9ub2RlLXJlc2l6ZS9ub2RlLXJlc2l6ZS1maW5hbGl6ZS9ub2RlLXJlc2l6ZS1maW5hbGl6ZS5leGVjdXRpb24ud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udGV4dCB9IGZyb20gJy4uLy4uL2YtZHJhZ2dhYmxlLWRhdGEtY29udGV4dCc7XG5cbkBJbmplY3RhYmxlKClcbkBGRXhlY3V0aW9uUmVnaXN0ZXIoTm9kZVJlc2l6ZUZpbmFsaXplUmVxdWVzdClcbmV4cG9ydCBjbGFzcyBOb2RlUmVzaXplRmluYWxpemVFeGVjdXRpb24gaW1wbGVtZW50cyBJRXhlY3V0aW9uPE5vZGVSZXNpemVGaW5hbGl6ZVJlcXVlc3QsIHZvaWQ+IHtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIGZEcmFnZ2FibGVEYXRhQ29udGV4dDogRkRyYWdnYWJsZURhdGFDb250ZXh0LFxuICApIHtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGUocmVxdWVzdDogTm9kZVJlc2l6ZUZpbmFsaXplUmVxdWVzdCk6IHZvaWQge1xuICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0LmRyYWdnYWJsZUl0ZW1zLmZvckVhY2goKHgpID0+IHtcbiAgICAgIHguY29tcGxldGU/LigpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
package/esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { NodeResizeFinalizeRequest } from './node-resize-finalize.request';
|
|
4
|
-
import { FValidatorRegister } from '@foblex/mediator';
|
|
5
|
-
import { NodeResizeDragHandler } from '../node-resize.drag-handler';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../f-draggable-data-context";
|
|
8
|
-
let NodeResizeFinalizeValidator = class NodeResizeFinalizeValidator {
|
|
9
|
-
constructor(fDraggableDataContext) {
|
|
10
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
11
|
-
}
|
|
12
|
-
handle(request) {
|
|
13
|
-
return this.fDraggableDataContext.draggableItems.some((x) => x instanceof NodeResizeDragHandler);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
NodeResizeFinalizeValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizeFinalizeValidator, deps: [{ token: i1.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
-
NodeResizeFinalizeValidator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizeFinalizeValidator });
|
|
18
|
-
NodeResizeFinalizeValidator = __decorate([
|
|
19
|
-
FValidatorRegister(NodeResizeFinalizeRequest)
|
|
20
|
-
], NodeResizeFinalizeValidator);
|
|
21
|
-
export { NodeResizeFinalizeValidator };
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizeFinalizeValidator, decorators: [{
|
|
23
|
-
type: Injectable
|
|
24
|
-
}], ctorParameters: function () { return [{ type: i1.FDraggableDataContext }]; } });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1yZXNpemUtZmluYWxpemUudmFsaWRhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9ub2RlLXJlc2l6ZS9ub2RlLXJlc2l6ZS1maW5hbGl6ZS9ub2RlLXJlc2l6ZS1maW5hbGl6ZS52YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDM0UsT0FBTyxFQUFF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ZXInO1xuXG5ASW5qZWN0YWJsZSgpXG5ARlZhbGlkYXRvclJlZ2lzdGVyKE5vZGVSZXNpemVGaW5hbGl6ZVJlcXVlc3QpXG5leHBvcnQgY2xhc3MgTm9kZVJlc2l6ZUZpbmFsaXplVmFsaWRhdG9yIGltcGxlbWVudHMgSVZhbGlkYXRvcjxOb2RlUmVzaXplRmluYWxpemVSZXF1ZXN0PiB7XG5cbiAgY29uc3RydWN0b3IoXG4gICAgcHJpdmF0ZSBmRHJhZ2dhYmxlRGF0YUNvbnRleHQ6IEZEcmFnZ2FibGVEYXRhQ29udGV4dFxuICApIHtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGUocmVxdWVzdDogTm9kZVJlc2l6ZUZpbmFsaXplUmVxdWVzdCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5kcmFnZ2FibGVJdGVtcy5zb21lKCh4KSA9PlxuICAgICAgeCBpbnN0YW5jZW9mIE5vZGVSZXNpemVEcmFnSGFuZGxlclxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
package/esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { NodeResizePreparationRequest } from './node-resize-preparation.request';
|
|
4
|
-
import { Point } from '@foblex/2d';
|
|
5
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
-
import { SelectAndUpdateNodeLayerRequest, } from '../../../domain';
|
|
7
|
-
import { EFResizeHandleType } from '../../../f-node';
|
|
8
|
-
import { NodeResizeDragHandler } from '../node-resize.drag-handler';
|
|
9
|
-
import { getDataAttrValueFromClosestElementWithClass } from '@foblex/utils';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "../../../f-storage";
|
|
12
|
-
import * as i2 from "../../f-draggable-data-context";
|
|
13
|
-
import * as i3 from "@foblex/mediator";
|
|
14
|
-
let NodeResizePreparationExecution = class NodeResizePreparationExecution {
|
|
15
|
-
constructor(fComponentsStore, fDraggableDataContext, fMediator) {
|
|
16
|
-
this.fComponentsStore = fComponentsStore;
|
|
17
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
18
|
-
this.fMediator = fMediator;
|
|
19
|
-
}
|
|
20
|
-
get transform() {
|
|
21
|
-
return this.fComponentsStore.fCanvas.transform;
|
|
22
|
-
}
|
|
23
|
-
get flowHost() {
|
|
24
|
-
return this.fComponentsStore.fFlow.hostElement;
|
|
25
|
-
}
|
|
26
|
-
handle(request) {
|
|
27
|
-
this.selectAndUpdateNodeLayer(request.event.targetElement);
|
|
28
|
-
const handleType = getDataAttrValueFromClosestElementWithClass(request.event.targetElement, 'fResizeHandleType', '.f-resize-handle');
|
|
29
|
-
const itemsToDrag = [
|
|
30
|
-
new NodeResizeDragHandler(this.fMediator, this.getNode(request.event.targetElement), EFResizeHandleType[handleType])
|
|
31
|
-
];
|
|
32
|
-
this.fDraggableDataContext.onPointerDownScale = this.transform.scale;
|
|
33
|
-
this.fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition())
|
|
34
|
-
.elementTransform(this.flowHost).div(this.transform.scale);
|
|
35
|
-
this.fDraggableDataContext.draggableItems = itemsToDrag;
|
|
36
|
-
}
|
|
37
|
-
selectAndUpdateNodeLayer(targetElement) {
|
|
38
|
-
this.fMediator.send(new SelectAndUpdateNodeLayerRequest(this.getNode(targetElement)));
|
|
39
|
-
}
|
|
40
|
-
getNode(targetElement) {
|
|
41
|
-
return this.fComponentsStore.findNode(targetElement);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
NodeResizePreparationExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizePreparationExecution, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }, { token: i3.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
45
|
-
NodeResizePreparationExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizePreparationExecution });
|
|
46
|
-
NodeResizePreparationExecution = __decorate([
|
|
47
|
-
FExecutionRegister(NodeResizePreparationRequest)
|
|
48
|
-
], NodeResizePreparationExecution);
|
|
49
|
-
export { NodeResizePreparationExecution };
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizePreparationExecution, decorators: [{
|
|
51
|
-
type: Injectable
|
|
52
|
-
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }, { type: i3.FMediator }]; } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1yZXNpemUtcHJlcGFyYXRpb24uZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9ub2RlLXJlc2l6ZS9ub2RlLXJlc2l6ZS1wcmVwYXJhdGlvbi9ub2RlLXJlc2l6ZS1wcmVwYXJhdGlvbi5leGVjdXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDakYsT0FBTyxFQUFtQixLQUFLLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDcEQsT0FBTyxFQUFFLGtCQUFrQixFQUF5QixNQUFNLGtCQUFrQixDQUFDO0FBRzdFLE9BQU8sRUFDTCwrQkFBK0IsR0FDaEMsTUFBTSxpQkFBaUIsQ0FBQzt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lcXVlc3QuZXZlbnQudGFyZ2V0RWxlbWVudCksXG4gICAgICAgIEVGUmVzaXplSGFuZGxlVHlwZVsgaGFuZGxlVHlwZSBhcyBrZXlvZiB0eXBlb2YgRUZSZXNpemVIYW5kbGVUeXBlIF1cbiAgICAgIClcbiAgICBdO1xuXG4gICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQub25Qb2ludGVyRG93blNjYWxlID0gdGhpcy50cmFuc2Zvcm0uc2NhbGU7XG4gICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQub25Qb2ludGVyRG93blBvc2l0aW9uID0gUG9pbnQuZnJvbVBvaW50KHJlcXVlc3QuZXZlbnQuZ2V0UG9zaXRpb24oKSlcbiAgICAgIC5lbGVtZW50VHJhbnNmb3JtKHRoaXMuZmxvd0hvc3QpLmRpdih0aGlzLnRyYW5zZm9ybS5zY2FsZSk7XG4gICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQuZHJhZ2dhYmxlSXRlbXMgPSBpdGVtc1RvRHJhZztcbiAgfVxuXG4gIHByaXZhdGUgc2VsZWN0QW5kVXBkYXRlTm9kZUxheWVyKHRhcmdldEVsZW1lbnQ6IEhUTUxFbGVtZW50KSB7XG4gICAgdGhpcy5mTWVkaWF0b3Iuc2VuZChcbiAgICAgIG5ldyBTZWxlY3RBbmRVcGRhdGVOb2RlTGF5ZXJSZXF1ZXN0KHRoaXMuZ2V0Tm9kZSh0YXJnZXRFbGVtZW50KSlcbiAgICApO1xuICB9XG5cbiAgcHJpdmF0ZSBnZXROb2RlKHRhcmdldEVsZW1lbnQ6IEhUTUxFbGVtZW50KTogRk5vZGVCYXNlIHtcbiAgICByZXR1cm4gdGhpcy5mQ29tcG9uZW50c1N0b3JlLmZpbmROb2RlKHRhcmdldEVsZW1lbnQpITtcbiAgfVxufVxuIl19
|
package/esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { NodeResizePreparationRequest } from './node-resize-preparation.request';
|
|
4
|
-
import { FValidatorRegister } from '@foblex/mediator';
|
|
5
|
-
import { isClosestElementHasClass } from '@foblex/utils';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../../f-storage";
|
|
8
|
-
import * as i2 from "../../f-draggable-data-context";
|
|
9
|
-
let NodeResizePreparationValidator = class NodeResizePreparationValidator {
|
|
10
|
-
constructor(fComponentsStore, fDraggableDataContext) {
|
|
11
|
-
this.fComponentsStore = fComponentsStore;
|
|
12
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
13
|
-
}
|
|
14
|
-
handle(request) {
|
|
15
|
-
return this.isDragHandlesEmpty()
|
|
16
|
-
&& this.isDragHandleElement(request.event.targetElement)
|
|
17
|
-
&& this.isNodeCanBeDragged(this.getNode(request.event.targetElement));
|
|
18
|
-
}
|
|
19
|
-
isDragHandlesEmpty() {
|
|
20
|
-
return !this.fDraggableDataContext.draggableItems.length;
|
|
21
|
-
}
|
|
22
|
-
getNode(targetElement) {
|
|
23
|
-
return this.fComponentsStore.findNode(targetElement);
|
|
24
|
-
}
|
|
25
|
-
isNodeCanBeDragged(node) {
|
|
26
|
-
return !!node && !node.fDraggingDisabled;
|
|
27
|
-
}
|
|
28
|
-
isDragHandleElement(targetElement) {
|
|
29
|
-
return isClosestElementHasClass(targetElement, '.f-resize-handle');
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
NodeResizePreparationValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizePreparationValidator, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
-
NodeResizePreparationValidator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizePreparationValidator });
|
|
34
|
-
NodeResizePreparationValidator = __decorate([
|
|
35
|
-
FValidatorRegister(NodeResizePreparationRequest)
|
|
36
|
-
], NodeResizePreparationValidator);
|
|
37
|
-
export { NodeResizePreparationValidator };
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NodeResizePreparationValidator, decorators: [{
|
|
39
|
-
type: Injectable
|
|
40
|
-
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }]; } });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1yZXNpemUtcHJlcGFyYXRpb24udmFsaWRhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9ub2RlLXJlc2l6ZS9ub2RlLXJlc2l6ZS1wcmVwYXJhdGlvbi9ub2RlLXJlc2l6ZS1wcmVwYXJhdGlvbi52YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDakYsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFJbEUsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0lBSTVDLDhCQUE4QixTQUE5Qiw4QkFBOEI7SUFFekMsWUFDVSxnQkFBa0MsRUFDbEMscUJBQTRDO1FBRDVDLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBa0I7UUFDbEMsMEJBQXFCLEdBQXJCLHFCQUFxQixDQUF1QjtJQUV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AgJiYgdGhpcy5pc0RyYWdIYW5kbGVFbGVtZW50KHJlcXVlc3QuZXZlbnQudGFyZ2V0RWxlbWVudClcbiAgICAgICYmIHRoaXMuaXNOb2RlQ2FuQmVEcmFnZ2VkKHRoaXMuZ2V0Tm9kZShyZXF1ZXN0LmV2ZW50LnRhcmdldEVsZW1lbnQpKTtcbiAgfVxuXG4gIHByaXZhdGUgaXNEcmFnSGFuZGxlc0VtcHR5KCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiAhdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQuZHJhZ2dhYmxlSXRlbXMubGVuZ3RoO1xuICB9XG5cbiAgcHJpdmF0ZSBnZXROb2RlKHRhcmdldEVsZW1lbnQ6IEhUTUxFbGVtZW50KTogRk5vZGVCYXNlIHwgdW5kZWZpbmVkIHtcbiAgICByZXR1cm4gdGhpcy5mQ29tcG9uZW50c1N0b3JlLmZpbmROb2RlKHRhcmdldEVsZW1lbnQpO1xuICB9XG5cbiAgcHJpdmF0ZSBpc05vZGVDYW5CZURyYWdnZWQobm9kZTogRk5vZGVCYXNlIHwgdW5kZWZpbmVkKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuICEhbm9kZSAmJiAhbm9kZS5mRHJhZ2dpbmdEaXNhYmxlZDtcbiAgfVxuXG4gIHByaXZhdGUgaXNEcmFnSGFuZGxlRWxlbWVudCh0YXJnZXRFbGVtZW50OiBIVE1MRWxlbWVudCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBpc0Nsb3Nlc3RFbGVtZW50SGFzQ2xhc3ModGFyZ2V0RWxlbWVudCwgJy5mLXJlc2l6ZS1oYW5kbGUnKTtcbiAgfVxufVxuIl19
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
-
import { SingleSelectRequest } from './single-select.request';
|
|
5
|
-
import { UpdateItemAndChildrenLayersRequest } from '../../domain';
|
|
6
|
-
import { EOperationSystem } from '@foblex/platform';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@foblex/platform";
|
|
9
|
-
import * as i2 from "../../f-storage";
|
|
10
|
-
import * as i3 from "../f-draggable-data-context";
|
|
11
|
-
import * as i4 from "@foblex/mediator";
|
|
12
|
-
let SingleSelectExecution = class SingleSelectExecution {
|
|
13
|
-
constructor(fPlatform, fComponentsStore, fDraggableDataContext, fMediator) {
|
|
14
|
-
this.fPlatform = fPlatform;
|
|
15
|
-
this.fComponentsStore = fComponentsStore;
|
|
16
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
17
|
-
this.fMediator = fMediator;
|
|
18
|
-
}
|
|
19
|
-
handle(request) {
|
|
20
|
-
const { event } = request;
|
|
21
|
-
const item = this.getSelectableItem(event);
|
|
22
|
-
if (item) {
|
|
23
|
-
this.fMediator.send(new UpdateItemAndChildrenLayersRequest(item, item.hostElement.parentElement));
|
|
24
|
-
}
|
|
25
|
-
this.isMultiselectEnabled(event) ? this.multiSelect(item) : this.singleSelect(item);
|
|
26
|
-
}
|
|
27
|
-
getSelectableItem(event) {
|
|
28
|
-
return this.fComponentsStore.findNode(event.targetElement) || this.getConnectionHandler(event.targetElement);
|
|
29
|
-
}
|
|
30
|
-
getConnectionHandler(element) {
|
|
31
|
-
return this.fComponentsStore.fConnections.find(c => { var _a, _b; return c.isContains(element) || ((_b = (_a = c.fConnectionCenter) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.contains(element)); });
|
|
32
|
-
}
|
|
33
|
-
isMultiselectEnabled(event) {
|
|
34
|
-
return this.isCommandButton(this.fPlatform.getOS(), event.originalEvent) ||
|
|
35
|
-
this.isShiftPressed(event.originalEvent);
|
|
36
|
-
}
|
|
37
|
-
isShiftPressed(event) {
|
|
38
|
-
return event.shiftKey;
|
|
39
|
-
}
|
|
40
|
-
isCommandButton(platform, event) {
|
|
41
|
-
return platform === EOperationSystem.MAC_OS ? event.metaKey : event.ctrlKey;
|
|
42
|
-
}
|
|
43
|
-
singleSelect(item) {
|
|
44
|
-
if (item) {
|
|
45
|
-
if (!item.isSelected() && !item.fSelectionDisabled) {
|
|
46
|
-
this.clearSelection();
|
|
47
|
-
this.selectItem(item);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
this.clearSelection();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
multiSelect(item) {
|
|
55
|
-
if (item && !item.fSelectionDisabled) {
|
|
56
|
-
item.isSelected() ? this.deselectItem(item) : this.selectItem(item);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
deselectItem(item) {
|
|
60
|
-
const index = this.fDraggableDataContext.selectedItems.indexOf(item);
|
|
61
|
-
if (index > -1) {
|
|
62
|
-
this.fDraggableDataContext.selectedItems.splice(index, 1);
|
|
63
|
-
}
|
|
64
|
-
item.deselect();
|
|
65
|
-
this.fDraggableDataContext.markSelectionAsChanged();
|
|
66
|
-
}
|
|
67
|
-
selectItem(item) {
|
|
68
|
-
this.fDraggableDataContext.selectedItems.push(item);
|
|
69
|
-
item.select();
|
|
70
|
-
this.fDraggableDataContext.markSelectionAsChanged();
|
|
71
|
-
}
|
|
72
|
-
clearSelection() {
|
|
73
|
-
this.fDraggableDataContext.selectedItems.forEach((x) => {
|
|
74
|
-
x.deselect();
|
|
75
|
-
this.fDraggableDataContext.markSelectionAsChanged();
|
|
76
|
-
});
|
|
77
|
-
this.fDraggableDataContext.selectedItems = [];
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
SingleSelectExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectExecution, deps: [{ token: i1.PlatformService }, { token: i2.FComponentsStore }, { token: i3.FDraggableDataContext }, { token: i4.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
81
|
-
SingleSelectExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectExecution });
|
|
82
|
-
SingleSelectExecution = __decorate([
|
|
83
|
-
FExecutionRegister(SingleSelectRequest)
|
|
84
|
-
], SingleSelectExecution);
|
|
85
|
-
export { SingleSelectExecution };
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectExecution, decorators: [{
|
|
87
|
-
type: Injectable
|
|
88
|
-
}], ctorParameters: function () { return [{ type: i1.PlatformService }, { type: i2.FComponentsStore }, { type: i3.FDraggableDataContext }, { type: i4.FMediator }]; } });
|
|
89
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luZ2xlLXNlbGVjdC5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3NpbmdsZS1zZWxlY3Qvc2luZ2xlLXNlbGVjdC5leGVjdXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLGtCQUFrQixFQUF5QixNQUFNLGtCQUFrQixDQUFDO0FBQzdFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzlELE9BQU8sRUFBRSxrQ0FBa0MsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUtsRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQW1CLE1BQU0sa0JBQWtCLENBQUM7Ozs7OztJQUt4RCxxQkFBcUIsU0FBckIscUJBQXFCO0lBRWhDLFlBQ1UsU0FBMEIsRUFDMUIsZ0JBQWtDLEVBQ2xDLHFCQUE0QyxFQUM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ZXggPiAtMSkge1xuICAgICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQuc2VsZWN0ZWRJdGVtcy5zcGxpY2UoaW5kZXgsIDEpO1xuICAgIH1cbiAgICBpdGVtLmRlc2VsZWN0KCk7XG4gICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQubWFya1NlbGVjdGlvbkFzQ2hhbmdlZCgpO1xuICB9XG5cbiAgcHJpdmF0ZSBzZWxlY3RJdGVtKGl0ZW06IElDYW5DaGFuZ2VTZWxlY3Rpb24pOiB2b2lkIHtcbiAgICB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5zZWxlY3RlZEl0ZW1zLnB1c2goaXRlbSk7XG4gICAgaXRlbS5zZWxlY3QoKTtcbiAgICB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5tYXJrU2VsZWN0aW9uQXNDaGFuZ2VkKCk7XG4gIH1cblxuICBwcml2YXRlIGNsZWFyU2VsZWN0aW9uKCk6IHZvaWQge1xuICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0LnNlbGVjdGVkSXRlbXMuZm9yRWFjaCgoeCkgPT4ge1xuICAgICAgeC5kZXNlbGVjdCgpO1xuICAgICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQubWFya1NlbGVjdGlvbkFzQ2hhbmdlZCgpO1xuICAgIH0pO1xuICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0LnNlbGVjdGVkSXRlbXMgPSBbXTtcbiAgfVxufVxuIl19
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { FValidatorRegister } from '@foblex/mediator';
|
|
4
|
-
import { SingleSelectRequest } from './single-select.request';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../f-storage";
|
|
7
|
-
import * as i2 from "../f-draggable-data-context";
|
|
8
|
-
let SingleSelectValidator = class SingleSelectValidator {
|
|
9
|
-
constructor(fComponentsStore, fDraggableDataContext) {
|
|
10
|
-
this.fComponentsStore = fComponentsStore;
|
|
11
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
12
|
-
}
|
|
13
|
-
handle(request) {
|
|
14
|
-
return this.fComponentsStore.fFlow.hostElement.contains(request.event.targetElement)
|
|
15
|
-
&& !this.fDraggableDataContext.draggableItems.length;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
SingleSelectValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectValidator, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
-
SingleSelectValidator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectValidator });
|
|
20
|
-
SingleSelectValidator = __decorate([
|
|
21
|
-
FValidatorRegister(SingleSelectRequest)
|
|
22
|
-
], SingleSelectValidator);
|
|
23
|
-
export { SingleSelectValidator };
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectValidator, decorators: [{
|
|
25
|
-
type: Injectable
|
|
26
|
-
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }]; } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luZ2xlLXNlbGVjdC52YWxpZGF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3NpbmdsZS1zZWxlY3Qvc2luZ2xlLXNlbGVjdC52YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijt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c1N0b3JlIH0gZnJvbSAnLi4vLi4vZi1zdG9yYWdlJztcbmltcG9ydCB7IEZEcmFnZ2FibGVEYXRhQ29udGV4dCB9IGZyb20gJy4uL2YtZHJhZ2dhYmxlLWRhdGEtY29udGV4dCc7XG5cbkBJbmplY3RhYmxlKClcbkBGVmFsaWRhdG9yUmVnaXN0ZXIoU2luZ2xlU2VsZWN0UmVxdWVzdClcbmV4cG9ydCBjbGFzcyBTaW5nbGVTZWxlY3RWYWxpZGF0b3IgaW1wbGVtZW50cyBJVmFsaWRhdG9yPFNpbmdsZVNlbGVjdFJlcXVlc3Q+IHtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIGZDb21wb25lbnRzU3RvcmU6IEZDb21wb25lbnRzU3RvcmUsXG4gICAgcHJpdmF0ZSBmRHJhZ2dhYmxlRGF0YUNvbnRleHQ6IEZEcmFnZ2FibGVEYXRhQ29udGV4dFxuICApIHtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGUocmVxdWVzdDogU2luZ2xlU2VsZWN0UmVxdWVzdCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmZDb21wb25lbnRzU3RvcmUuZkZsb3chLmhvc3RFbGVtZW50LmNvbnRhaW5zKHJlcXVlc3QuZXZlbnQudGFyZ2V0RWxlbWVudClcbiAgICAgICYmICF0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5kcmFnZ2FibGVJdGVtcy5sZW5ndGg7XG4gIH1cbn1cbiJdfQ==
|
package/esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.execution.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { ExternalItemFinalizeRequest } from './external-item-finalize.request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import { FCreateNodeEvent } from '../f-create-node.event';
|
|
6
|
-
import { GetElementRectInFlowRequest } from '../../../domain';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../../f-storage";
|
|
9
|
-
import * as i2 from "../../../f-draggable";
|
|
10
|
-
import * as i3 from "@foblex/mediator";
|
|
11
|
-
import * as i4 from "@foblex/platform";
|
|
12
|
-
let ExternalItemFinalizeExecution = class ExternalItemFinalizeExecution {
|
|
13
|
-
constructor(fComponentsStore, fDraggableDataContext, fMediator, fBrowser) {
|
|
14
|
-
this.fComponentsStore = fComponentsStore;
|
|
15
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
16
|
-
this.fMediator = fMediator;
|
|
17
|
-
this.fBrowser = fBrowser;
|
|
18
|
-
}
|
|
19
|
-
get flowHost() {
|
|
20
|
-
return this.fComponentsStore.fFlow.hostElement;
|
|
21
|
-
}
|
|
22
|
-
get fCreateNode() {
|
|
23
|
-
return this.fComponentsStore.fDraggable.fCreateNode;
|
|
24
|
-
}
|
|
25
|
-
get dragHandler() {
|
|
26
|
-
return this.fDraggableDataContext.draggableItems[0];
|
|
27
|
-
}
|
|
28
|
-
handle(request) {
|
|
29
|
-
this.emitEvent(this.getExternalItemElementsFromPoint(request.event.getPosition()));
|
|
30
|
-
this.dragHandler.complete();
|
|
31
|
-
}
|
|
32
|
-
getExternalItemElementsFromPoint(position) {
|
|
33
|
-
return this.fBrowser.document.elementsFromPoint(position.x, position.y)
|
|
34
|
-
.filter(x => !x.closest('.f-external-item'));
|
|
35
|
-
}
|
|
36
|
-
emitEvent(elements) {
|
|
37
|
-
if (this.isPointerInCanvasRect(elements)) {
|
|
38
|
-
this.fCreateNode.emit(new FCreateNodeEvent(this.getRectInCanvas(), this.dragHandler.externalItem.fData));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
isPointerInCanvasRect(elements) {
|
|
42
|
-
return elements.length ? this.flowHost.contains(elements[0]) : false;
|
|
43
|
-
}
|
|
44
|
-
getRectInCanvas() {
|
|
45
|
-
return this.fMediator.send(new GetElementRectInFlowRequest(this.dragHandler.placeholder));
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
ExternalItemFinalizeExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemFinalizeExecution, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }, { token: i3.FMediator }, { token: i4.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
-
ExternalItemFinalizeExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemFinalizeExecution });
|
|
50
|
-
ExternalItemFinalizeExecution = __decorate([
|
|
51
|
-
FExecutionRegister(ExternalItemFinalizeRequest)
|
|
52
|
-
], ExternalItemFinalizeExecution);
|
|
53
|
-
export { ExternalItemFinalizeExecution };
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemFinalizeExecution, decorators: [{
|
|
55
|
-
type: Injectable
|
|
56
|
-
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }, { type: i3.FMediator }, { type: i4.BrowserService }]; } });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWwtaXRlbS1maW5hbGl6ZS5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZXh0ZXJuYWwtaXRlbS9kb21haW4vZXh0ZXJuYWwtaXRlbS1maW5hbGl6ZS9leHRlcm5hbC1pdGVtLWZpbmFsaXplLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFnQixVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyx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ihuZXcgR2V0RWxlbWVudFJlY3RJbkZsb3dSZXF1ZXN0KHRoaXMuZHJhZ0hhbmRsZXIucGxhY2Vob2xkZXIhKSk7XG4gIH1cbn1cbiJdfQ==
|
package/esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.validator.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { ExternalItemFinalizeRequest } from './external-item-finalize.request';
|
|
4
|
-
import { FValidatorRegister } from '@foblex/mediator';
|
|
5
|
-
import { ExternalItemDragHandler } from '../external-item.drag-handler';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../../f-draggable";
|
|
8
|
-
let ExternalItemFinalizeValidator = class ExternalItemFinalizeValidator {
|
|
9
|
-
constructor(fDraggableDataContext) {
|
|
10
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
11
|
-
}
|
|
12
|
-
handle(request) {
|
|
13
|
-
return this.fDraggableDataContext.draggableItems.some((x) => x instanceof ExternalItemDragHandler);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
ExternalItemFinalizeValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemFinalizeValidator, deps: [{ token: i1.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
-
ExternalItemFinalizeValidator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemFinalizeValidator });
|
|
18
|
-
ExternalItemFinalizeValidator = __decorate([
|
|
19
|
-
FValidatorRegister(ExternalItemFinalizeRequest)
|
|
20
|
-
], ExternalItemFinalizeValidator);
|
|
21
|
-
export { ExternalItemFinalizeValidator };
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemFinalizeValidator, decorators: [{
|
|
23
|
-
type: Injectable
|
|
24
|
-
}], ctorParameters: function () { return [{ type: i1.FDraggableDataContext }]; } });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWwtaXRlbS1maW5hbGl6ZS52YWxpZGF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZXh0ZXJuYWwtaXRlbS9kb21haW4vZXh0ZXJuYWwtaXRlbS1maW5hbGl6ZS9leHRlcm5hbC1pdGVtLWZpbmFsaXplLnZhbGlkYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUMvRSxPQUFPLEVBQUUsa0JBQWtCLEVBQWMsTUFBTSxrQkFBa0IsQ0FBQztBQUVsRSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQzs7O0lBSzNELDZCQUE2QixTQUE3Qiw2QkFBNkI7SUFFeEMsWUFDVSxxQkFBNEM7UUFBNUMsMEJBQXFCLEdBQXJCLHFCQUFxQixDQUF1QjtJQUV0RCxDQUFDO0lBRU0sTUFBTSxDQUFDLE9BQW9DO1FBQ2hELE9BQU8sSUFBSSxDQUFDLHFCQUFxQixDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQ25ELENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLFlBQVksdUJBQXVCLENBQzVDLENBQUM7SUFDSixDQUFDO0NBQ0YsQ0FBQTsySEFaWSw2QkFBNkI7K0hBQTdCLDZCQUE2QjtBQUE3Qiw2QkFBNkI7SUFEekMsa0JBQWtCLENBQU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ZW1zLnNvbWUoXG4gICAgICAoeCkgPT4geCBpbnN0YW5jZW9mIEV4dGVybmFsSXRlbURyYWdIYW5kbGVyXG4gICAgKTtcbiAgfVxufVxuIl19
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { ExternalItemPreparationRequest } from './external-item-preparation.request';
|
|
4
|
-
import { Point } from '@foblex/2d';
|
|
5
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
-
import { getExternalItem } from '../../../f-external-item';
|
|
7
|
-
import { ExternalItemDragHandler } from '../external-item.drag-handler';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../../../f-storage";
|
|
10
|
-
import * as i2 from "../../../f-draggable";
|
|
11
|
-
import * as i3 from "../../../f-external-item";
|
|
12
|
-
import * as i4 from "@foblex/platform";
|
|
13
|
-
let ExternalItemPreparationExecution = class ExternalItemPreparationExecution {
|
|
14
|
-
constructor(fComponentsStore, fDraggableDataContext, fExternalItemService, fBrowser) {
|
|
15
|
-
this.fComponentsStore = fComponentsStore;
|
|
16
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
17
|
-
this.fExternalItemService = fExternalItemService;
|
|
18
|
-
this.fBrowser = fBrowser;
|
|
19
|
-
}
|
|
20
|
-
get flowHost() {
|
|
21
|
-
return this.fComponentsStore.fFlow.hostElement;
|
|
22
|
-
}
|
|
23
|
-
handle(request) {
|
|
24
|
-
this.fDraggableDataContext.onPointerDownScale = 1;
|
|
25
|
-
this.fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition()).elementTransform(this.flowHost);
|
|
26
|
-
this.fDraggableDataContext.draggableItems = [
|
|
27
|
-
new ExternalItemDragHandler(this.getExternalItem(request.event.targetElement), this.fBrowser)
|
|
28
|
-
];
|
|
29
|
-
}
|
|
30
|
-
getExternalItem(targetElement) {
|
|
31
|
-
return this.fExternalItemService.getItem(getExternalItem(targetElement));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
ExternalItemPreparationExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemPreparationExecution, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }, { token: i3.FExternalItemService }, { token: i4.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
-
ExternalItemPreparationExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemPreparationExecution });
|
|
36
|
-
ExternalItemPreparationExecution = __decorate([
|
|
37
|
-
FExecutionRegister(ExternalItemPreparationRequest)
|
|
38
|
-
], ExternalItemPreparationExecution);
|
|
39
|
-
export { ExternalItemPreparationExecution };
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemPreparationExecution, decorators: [{
|
|
41
|
-
type: Injectable
|
|
42
|
-
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }, { type: i3.FExternalItemService }, { type: i4.BrowserService }]; } });
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWwtaXRlbS1wcmVwYXJhdGlvbi5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZXh0ZXJuYWwtaXRlbS9kb21haW4vZXh0ZXJuYWwtaXRlbS1wcmVwYXJhdGlvbi9leHRlcm5hbC1pdGVtLXByZXBhcmF0aW9uLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQy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yRG93blNjYWxlID0gMTtcblxuICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0Lm9uUG9pbnRlckRvd25Qb3NpdGlvbiA9IFBvaW50LmZyb21Qb2ludChyZXF1ZXN0LmV2ZW50LmdldFBvc2l0aW9uKCkpLmVsZW1lbnRUcmFuc2Zvcm0odGhpcy5mbG93SG9zdCk7XG5cbiAgICB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5kcmFnZ2FibGVJdGVtcyA9IFtcbiAgICAgIG5ldyBFeHRlcm5hbEl0ZW1EcmFnSGFuZGxlcih0aGlzLmdldEV4dGVybmFsSXRlbShyZXF1ZXN0LmV2ZW50LnRhcmdldEVsZW1lbnQpLCB0aGlzLmZCcm93c2VyKVxuICAgIF07XG4gIH1cblxuICBwcml2YXRlIGdldEV4dGVybmFsSXRlbSh0YXJnZXRFbGVtZW50OiBIVE1MRWxlbWVudCk6IEZFeHRlcm5hbEl0ZW1CYXNlPGFueT4ge1xuICAgIHJldHVybiB0aGlzLmZFeHRlcm5hbEl0ZW1TZXJ2aWNlLmdldEl0ZW0oZ2V0RXh0ZXJuYWxJdGVtKHRhcmdldEVsZW1lbnQpKSE7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { ExternalItemPreparationRequest } from './external-item-preparation.request';
|
|
4
|
-
import { FValidatorRegister } from '@foblex/mediator';
|
|
5
|
-
import { getExternalItem, isExternalItem } from '../../../f-external-item';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../../f-external-item";
|
|
8
|
-
let ExternalItemPreparationValidator = class ExternalItemPreparationValidator {
|
|
9
|
-
constructor(fExternalItemService) {
|
|
10
|
-
this.fExternalItemService = fExternalItemService;
|
|
11
|
-
}
|
|
12
|
-
handle(request) {
|
|
13
|
-
const externalItem = this.getExternalItem(request.event.targetElement);
|
|
14
|
-
return isExternalItem(request.event.targetElement) && !!externalItem && !externalItem.fDisabled;
|
|
15
|
-
}
|
|
16
|
-
getExternalItem(targetElement) {
|
|
17
|
-
return this.fExternalItemService.getItem(getExternalItem(targetElement));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
ExternalItemPreparationValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemPreparationValidator, deps: [{ token: i1.FExternalItemService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
-
ExternalItemPreparationValidator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemPreparationValidator });
|
|
22
|
-
ExternalItemPreparationValidator = __decorate([
|
|
23
|
-
FValidatorRegister(ExternalItemPreparationRequest)
|
|
24
|
-
], ExternalItemPreparationValidator);
|
|
25
|
-
export { ExternalItemPreparationValidator };
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ExternalItemPreparationValidator, decorators: [{
|
|
27
|
-
type: Injectable
|
|
28
|
-
}], ctorParameters: function () { return [{ type: i1.FExternalItemService }]; } });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWwtaXRlbS1wcmVwYXJhdGlvbi52YWxpZGF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZXh0ZXJuYWwtaXRlbS9kb21haW4vZXh0ZXJuYWwtaXRlbS1wcmVwYXJhdGlvbi9leHRlcm5hbC1pdGVtLXByZXBhcmF0aW9uLnZhbGlkYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNL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