@foblex/flow 1.2.1 → 1.2.3
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/common-behaviours/change-position.d.ts +2 -1
- package/common-behaviours/change-zoom/change-zoom.d.ts +1 -1
- package/common-behaviours/fit-to-parent/fit-to-parent.d.ts +1 -1
- package/common-behaviours/i-transformable.d.ts +4 -0
- package/common-behaviours/index.d.ts +1 -0
- package/common-behaviours/one-to-one-centering/one-to-one-centering.d.ts +1 -1
- package/components/f-flow/f-backgroud/domain/i-f-background-pattern.d.ts +6 -0
- package/components/f-flow/f-backgroud/domain/index.d.ts +1 -0
- package/components/f-flow/f-backgroud/domain/public-api.d.ts +1 -0
- package/{internal → components/f-flow}/f-backgroud/f-background-base.d.ts +4 -8
- package/components/f-flow/f-backgroud/f-background.component.d.ts +20 -0
- package/components/f-flow/f-backgroud/f-cell-pattern/f-cell-pattern.component.d.ts +31 -0
- package/components/f-flow/f-backgroud/f-cell-pattern/index.d.ts +1 -0
- package/components/f-flow/f-backgroud/f-cell-pattern/public-api.d.ts +1 -0
- package/components/f-flow/f-backgroud/index.d.ts +4 -0
- package/components/f-flow/f-backgroud/public-api.d.ts +3 -0
- package/{directives/f-containers/f-items-container/canvas-change.event.d.ts → components/f-flow/f-canvas/domain/f-canvas-change.event.d.ts} +1 -1
- package/components/f-flow/f-canvas/domain/index.d.ts +1 -0
- package/components/f-flow/f-canvas/domain/public-api.d.ts +1 -0
- package/{directives/f-containers/f-items-container/f-items-container-base.d.ts → components/f-flow/f-canvas/f-canvas-base.d.ts} +13 -12
- package/components/f-flow/f-canvas/f-canvas.component.d.ts +28 -0
- package/components/f-flow/f-canvas/f-zoom/f-zoom-base.d.ts +26 -0
- package/components/f-flow/f-canvas/f-zoom/f-zoom.directive.d.ts +17 -0
- package/components/f-flow/f-canvas/index.d.ts +4 -0
- package/components/f-flow/f-canvas/public-api.d.ts +3 -0
- package/components/f-flow/f-definitions/domain/i-connection-marker.d.ts +5 -0
- package/components/f-flow/f-definitions/f-definitions-base.d.ts +10 -0
- package/components/f-flow/f-definitions/f-definitions.component.d.ts +20 -0
- package/components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive.d.ts +13 -0
- package/components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive.d.ts +14 -0
- package/components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive.d.ts +13 -0
- package/components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive.d.ts +14 -0
- package/components/f-flow/f-definitions/f-markers/index.d.ts +4 -0
- package/components/f-flow/f-definitions/f-markers/public-api.d.ts +4 -0
- package/components/f-flow/f-definitions/index.d.ts +3 -0
- package/components/f-flow/f-definitions/public-api.d.ts +2 -0
- package/components/f-flow/f-flow-base.d.ts +5 -35
- package/components/f-flow/f-flow.component.d.ts +22 -32
- package/components/f-flow/f-parent.injection-token.d.ts +5 -0
- package/components/f-flow/index.d.ts +4 -0
- package/components/f-flow/public-api.d.ts +3 -0
- package/components/index.d.ts +0 -3
- package/components/public-api.d.ts +0 -3
- package/domain/errors.d.ts +3 -0
- package/domain/get-all-nodes-rect.handler.d.ts +10 -0
- package/domain/get-connection-vector/get-connection-vector.handler.d.ts +12 -0
- package/domain/get-connection-vector/get-connection-vector.request.d.ts +11 -0
- package/domain/get-connection-vector/index.d.ts +2 -0
- package/domain/get-connection.handler.d.ts +12 -0
- package/domain/get-connector-side-in-node/e-connector-side.d.ts +6 -0
- package/domain/get-connector-side-in-node/get-connector-side-in-node.handler.d.ts +5 -0
- package/domain/get-connector-side-in-node/index.d.ts +2 -0
- package/domain/get-element-rect-in-flow.handler.d.ts +12 -0
- package/domain/get-incoming-connections.handler.d.ts +13 -0
- package/domain/get-input-rect-in-flow.handler.d.ts +19 -0
- package/domain/get-outgoing-connections.handler.d.ts +13 -0
- package/domain/get-output-rect-in-flow.handler.d.ts +19 -0
- package/domain/index.d.ts +12 -0
- package/domain/providers.d.ts +10 -0
- package/domain/update-node-layer.handler.d.ts +12 -0
- package/esm2022/common-behaviours/change-position.mjs +1 -1
- package/esm2022/common-behaviours/change-zoom/change-zoom.mjs +1 -1
- package/esm2022/common-behaviours/fit-to-parent/fit-to-parent.mjs +1 -1
- package/esm2022/common-behaviours/i-transformable.mjs +2 -0
- package/esm2022/common-behaviours/index.mjs +2 -1
- package/esm2022/common-behaviours/one-to-one-centering/one-to-one-centering.mjs +1 -1
- package/esm2022/components/f-flow/f-backgroud/domain/i-f-background-pattern.mjs +3 -0
- package/esm2022/components/f-flow/f-backgroud/domain/index.mjs +2 -0
- package/esm2022/components/f-flow/f-backgroud/domain/public-api.mjs +2 -0
- package/esm2022/components/f-flow/f-backgroud/f-background-base.mjs +11 -0
- package/esm2022/components/f-flow/f-backgroud/f-background.component.mjs +60 -0
- package/esm2022/components/f-flow/f-backgroud/f-cell-pattern/f-cell-pattern.component.mjs +90 -0
- package/esm2022/components/f-flow/f-backgroud/f-cell-pattern/index.mjs +2 -0
- package/esm2022/components/f-flow/f-backgroud/f-cell-pattern/public-api.mjs +2 -0
- package/esm2022/components/f-flow/f-backgroud/index.mjs +5 -0
- package/esm2022/components/f-flow/f-backgroud/public-api.mjs +4 -0
- package/esm2022/components/f-flow/f-canvas/domain/f-canvas-change.event.mjs +7 -0
- package/esm2022/components/f-flow/f-canvas/domain/index.mjs +2 -0
- package/esm2022/components/f-flow/f-canvas/domain/public-api.mjs +2 -0
- package/esm2022/components/f-flow/f-canvas/f-canvas-base.mjs +26 -0
- package/esm2022/components/f-flow/f-canvas/f-canvas.component.mjs +91 -0
- package/esm2022/components/f-flow/f-canvas/f-zoom/f-zoom-base.mjs +94 -0
- package/esm2022/components/f-flow/f-canvas/f-zoom/f-zoom.directive.mjs +59 -0
- package/esm2022/components/f-flow/f-canvas/f-zoom/index.mjs +3 -0
- package/esm2022/components/f-flow/f-canvas/f-zoom/public-api.mjs +2 -0
- package/esm2022/components/f-flow/f-canvas/index.mjs +5 -0
- package/esm2022/components/f-flow/f-canvas/public-api.mjs +4 -0
- package/esm2022/components/f-flow/f-definitions/domain/i-connection-marker.mjs +3 -0
- package/esm2022/components/f-flow/f-definitions/f-definitions-base.mjs +11 -0
- package/esm2022/components/f-flow/f-definitions/f-definitions.component.mjs +73 -0
- package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive.mjs +36 -0
- package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive.mjs +39 -0
- package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive.mjs +36 -0
- package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive.mjs +39 -0
- package/esm2022/components/f-flow/f-definitions/f-markers/index.mjs +5 -0
- package/esm2022/components/f-flow/f-definitions/f-markers/public-api.mjs +5 -0
- package/esm2022/components/f-flow/f-definitions/index.mjs +4 -0
- package/esm2022/components/f-flow/f-definitions/public-api.mjs +3 -0
- package/esm2022/components/f-flow/f-flow-base.mjs +4 -72
- package/esm2022/components/f-flow/f-flow.component.mjs +98 -80
- package/esm2022/components/f-flow/f-parent.injection-token.mjs +3 -0
- package/esm2022/components/f-flow/index.mjs +5 -1
- package/esm2022/components/f-flow/public-api.mjs +4 -1
- package/esm2022/components/index.mjs +1 -4
- package/esm2022/components/public-api.mjs +1 -4
- package/esm2022/domain/errors.mjs +10 -0
- package/esm2022/domain/get-all-nodes-rect.handler.mjs +23 -0
- package/esm2022/domain/get-connection-vector/get-connection-vector.handler.mjs +72 -0
- package/esm2022/domain/get-connection-vector/get-connection-vector.request.mjs +10 -0
- package/esm2022/domain/get-connection-vector/index.mjs +3 -0
- package/esm2022/domain/get-connection.handler.mjs +21 -0
- package/esm2022/domain/get-connector-side-in-node/e-connector-side.mjs +8 -0
- package/esm2022/domain/get-connector-side-in-node/get-connector-side-in-node.handler.mjs +26 -0
- package/esm2022/domain/get-connector-side-in-node/index.mjs +3 -0
- package/esm2022/domain/get-element-rect-in-flow.handler.mjs +28 -0
- package/esm2022/domain/get-incoming-connections.handler.mjs +23 -0
- package/esm2022/domain/get-input-rect-in-flow.handler.mjs +25 -0
- package/esm2022/domain/get-outgoing-connections.handler.mjs +23 -0
- package/esm2022/domain/get-output-rect-in-flow.handler.mjs +25 -0
- package/esm2022/domain/index.mjs +13 -0
- package/esm2022/domain/providers.mjs +21 -0
- package/esm2022/domain/update-node-layer.handler.mjs +29 -0
- package/esm2022/f-components-store.mjs +68 -0
- package/esm2022/f-connection/common/cast-to-connection-behavior.mjs +9 -0
- package/esm2022/f-connection/common/cast-to-connection-type.mjs +9 -0
- package/esm2022/f-connection/common/e-connection-behavior.mjs +6 -0
- package/esm2022/f-connection/common/e-connection-type.mjs +7 -0
- package/esm2022/f-connection/common/f-connection-base.mjs +57 -0
- package/esm2022/f-connection/common/f-connection-identifiers.mjs +22 -0
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +62 -0
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +66 -0
- package/esm2022/f-connection/common/f-connection-text/i-connection-text.mjs +3 -0
- package/esm2022/f-connection/common/f-connection-text/index.mjs +4 -0
- package/esm2022/f-connection/common/f-connection.injection-token.mjs +3 -0
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +30 -0
- package/esm2022/f-connection/common/f-drag-handle/index.mjs +2 -0
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +63 -0
- package/esm2022/f-connection/common/f-gradient/i-connection-gradient.mjs +3 -0
- package/esm2022/f-connection/common/f-gradient/index.mjs +3 -0
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +59 -0
- package/esm2022/f-connection/common/f-path/i-connection-path.mjs +3 -0
- package/esm2022/f-connection/common/f-path/index.mjs +3 -0
- package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +37 -0
- package/esm2022/f-connection/common/f-selection/index.mjs +2 -0
- package/esm2022/f-connection/common/i-has-connection-color.mjs +2 -0
- package/esm2022/f-connection/common/i-has-connection-from-to.mjs +2 -0
- package/esm2022/f-connection/common/i-has-connection-text.mjs +2 -0
- package/esm2022/f-connection/common/index.mjs +17 -0
- package/esm2022/f-connection/common/mixins/change-connection-selection.mixin.mjs +20 -0
- package/esm2022/f-connection/common/mixins/change-connection-visibility.mixin.mjs +14 -0
- package/esm2022/f-connection/common/mixins/index.mjs +3 -0
- package/esm2022/f-connection/common/path-constructor/bezier-path.mjs +7 -0
- package/esm2022/f-connection/common/path-constructor/i-path-constructor.mjs +2 -0
- package/esm2022/f-connection/common/path-constructor/index.mjs +6 -0
- package/esm2022/f-connection/common/path-constructor/path-constructor.mjs +14 -0
- package/esm2022/f-connection/common/path-constructor/segment-path/connector-side-point.mjs +9 -0
- package/esm2022/f-connection/common/path-constructor/segment-path/edge-center-calculator.mjs +10 -0
- package/esm2022/f-connection/common/path-constructor/segment-path/index.mjs +6 -0
- package/esm2022/f-connection/common/path-constructor/segment-path/path-bend.mjs +19 -0
- package/esm2022/f-connection/common/path-constructor/segment-path/point-utils.mjs +14 -0
- package/esm2022/f-connection/common/path-constructor/segment-path/segment-path.mjs +123 -0
- package/esm2022/f-connection/common/path-constructor/straight-path/index.mjs +2 -0
- package/esm2022/f-connection/common/path-constructor/straight-path/straight-path.mjs +9 -0
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +96 -0
- package/esm2022/f-connection/f-connection/index.mjs +2 -0
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +90 -0
- package/esm2022/f-connection/f-connection-for-create/index.mjs +2 -0
- package/esm2022/f-connection/index.mjs +4 -0
- package/esm2022/f-connection/public-api.mjs +3 -0
- package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +20 -0
- package/esm2022/f-draggable/canvas/canvas.on-pointer-up.mjs +23 -0
- package/esm2022/f-draggable/canvas/canvas.prepare-drag-sequence.mjs +37 -0
- package/esm2022/f-draggable/canvas/index.mjs +5 -0
- package/esm2022/f-draggable/canvas/providers.mjs +7 -0
- package/esm2022/f-draggable/components/f-external-item/f-external-item-base.mjs +11 -0
- package/esm2022/f-draggable/components/f-external-item/f-external-item.directive.mjs +44 -0
- package/esm2022/f-draggable/components/f-external-item/f-external-item.service.mjs +28 -0
- package/esm2022/f-draggable/components/f-external-item/index.mjs +5 -0
- package/esm2022/f-draggable/components/f-external-item/is-external-item.mjs +7 -0
- package/esm2022/f-draggable/components/f-external-item/public-api.mjs +2 -0
- package/esm2022/f-draggable/components/f-line-alignment/domain/i-line-alignment-rect.mjs +2 -0
- package/esm2022/f-draggable/components/f-line-alignment/domain/i-line-alignment-result.mjs +2 -0
- package/esm2022/f-draggable/components/f-line-alignment/domain/i-nearest-coordinate-result.mjs +2 -0
- package/esm2022/f-draggable/components/f-line-alignment/domain/index.mjs +7 -0
- package/esm2022/f-draggable/components/f-line-alignment/domain/line-element.mjs +23 -0
- package/esm2022/f-draggable/components/f-line-alignment/domain/line-service.mjs +33 -0
- package/esm2022/f-draggable/components/f-line-alignment/domain/nearest-coordinate.mjs +100 -0
- package/esm2022/f-draggable/components/f-line-alignment/f-line-alignment-base.mjs +11 -0
- package/esm2022/f-draggable/components/f-line-alignment/f-line-alignment.component.mjs +90 -0
- package/esm2022/f-draggable/components/f-line-alignment/index.mjs +4 -0
- package/esm2022/f-draggable/components/f-line-alignment/public-api.mjs +2 -0
- package/esm2022/f-draggable/components/f-selection-area/domain/i-selection-area-rect.mjs +2 -0
- package/esm2022/f-draggable/components/f-selection-area/domain/index.mjs +2 -0
- package/esm2022/f-draggable/components/f-selection-area/f-selection-area-base.mjs +11 -0
- package/esm2022/f-draggable/components/f-selection-area/f-selection-area.component.mjs +44 -0
- package/esm2022/f-draggable/components/f-selection-area/index.mjs +4 -0
- package/esm2022/f-draggable/components/f-selection-area/public-api.mjs +2 -0
- package/esm2022/f-draggable/components/index.mjs +4 -0
- package/esm2022/f-draggable/components/public-api.mjs +4 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +34 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection.event.mjs +7 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection.on-pointer-up.mjs +50 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.mjs +86 -0
- package/esm2022/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.mjs +34 -0
- package/esm2022/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.mjs +2 -0
- package/esm2022/f-draggable/connections/create-connection/index.mjs +6 -0
- package/esm2022/f-draggable/connections/create-connection/public-api.mjs +2 -0
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +43 -0
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.mjs +7 -0
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.mjs +34 -0
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.mjs +2 -0
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/index.mjs +5 -0
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/index.mjs +2 -0
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.mjs +25 -0
- package/esm2022/f-draggable/connections/index.mjs +5 -0
- package/esm2022/f-draggable/connections/providers.mjs +14 -0
- package/esm2022/f-draggable/connections/public-api.mjs +3 -0
- package/esm2022/f-draggable/connections/reassign-connection/index.mjs +5 -0
- package/esm2022/f-draggable/connections/reassign-connection/public-api.mjs +2 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +37 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.event.mjs +9 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.mjs +36 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.mjs +52 -0
- package/esm2022/f-draggable/e-draggable-type.mjs +11 -0
- package/esm2022/f-draggable/external-item/create-node.event.mjs +7 -0
- package/esm2022/f-draggable/external-item/external-item.drag-handler.mjs +38 -0
- package/esm2022/f-draggable/external-item/external-item.on-pointer-up.mjs +42 -0
- package/esm2022/f-draggable/external-item/external-item.prepare-drag-sequence.mjs +41 -0
- package/esm2022/f-draggable/external-item/index.mjs +6 -0
- package/esm2022/f-draggable/external-item/providers.mjs +7 -0
- package/esm2022/f-draggable/external-item/public-api.mjs +2 -0
- package/esm2022/f-draggable/f-draggable-base.mjs +15 -0
- package/esm2022/f-draggable/f-draggable-data-context.mjs +22 -0
- package/esm2022/f-draggable/f-draggable.directive.mjs +104 -0
- package/esm2022/f-draggable/i-draggable-item.mjs +2 -0
- package/esm2022/f-draggable/index.mjs +13 -0
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +31 -0
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +31 -0
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +29 -0
- package/esm2022/f-draggable/node/domain/is-connection-under-node/index.mjs +2 -0
- package/esm2022/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.mjs +70 -0
- package/esm2022/f-draggable/node/index.mjs +8 -0
- package/esm2022/f-draggable/node/node.drag-handler.mjs +21 -0
- package/esm2022/f-draggable/node/node.on-pointer-up.mjs +44 -0
- package/esm2022/f-draggable/node/node.prepare-drag-sequence.mjs +101 -0
- package/esm2022/f-draggable/node/providers.mjs +9 -0
- package/esm2022/f-draggable/public-api.mjs +5 -0
- package/esm2022/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.mjs +54 -0
- package/esm2022/f-draggable/selection-area/get-can-be-selected-items/i-selectable-with-rect.mjs +2 -0
- package/esm2022/f-draggable/selection-area/get-can-be-selected-items/index.mjs +3 -0
- package/esm2022/f-draggable/selection-area/index.mjs +6 -0
- package/esm2022/f-draggable/selection-area/providers.mjs +9 -0
- package/esm2022/f-draggable/selection-area/selection-area.drag-handle.mjs +49 -0
- package/esm2022/f-draggable/selection-area/selection-area.on-pointer-up.mjs +23 -0
- package/esm2022/f-draggable/selection-area/selection-area.prepare-drag-sequence.mjs +32 -0
- package/esm2022/f-draggable/single-select/index.mjs +3 -0
- package/esm2022/f-draggable/single-select/providers.mjs +5 -0
- package/esm2022/f-draggable/single-select/single-select.on-pointer-down.mjs +64 -0
- package/esm2022/f-flow.module.mjs +80 -42
- package/esm2022/f-node/f-connectors/f-connector-base.mjs +15 -0
- package/esm2022/f-node/f-connectors/f-node-input/f-node-input-base.mjs +19 -0
- package/esm2022/f-node/f-connectors/f-node-input/f-node-input.directive.mjs +83 -0
- package/esm2022/f-node/f-connectors/f-node-input/index.mjs +4 -0
- package/esm2022/f-node/f-connectors/f-node-input/is-node-input.mjs +4 -0
- package/esm2022/f-node/f-connectors/f-node-input/public-api.mjs +2 -0
- package/esm2022/f-node/f-connectors/f-node-outlet/f-node-outlet-base.mjs +23 -0
- package/esm2022/f-node/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +66 -0
- package/esm2022/f-node/f-connectors/f-node-outlet/index.mjs +4 -0
- package/esm2022/f-node/f-connectors/f-node-outlet/is-node-outlet.mjs +4 -0
- package/esm2022/f-node/f-connectors/f-node-outlet/public-api.mjs +2 -0
- package/esm2022/f-node/f-connectors/f-node-output/f-node-output-base.mjs +19 -0
- package/esm2022/f-node/f-connectors/f-node-output/f-node-output.directive.mjs +71 -0
- package/esm2022/f-node/f-connectors/f-node-output/index.mjs +4 -0
- package/esm2022/f-node/f-connectors/f-node-output/is-node-output.mjs +4 -0
- package/esm2022/f-node/f-connectors/f-node-output/public-api.mjs +2 -0
- package/esm2022/f-node/f-connectors/index.mjs +5 -0
- package/esm2022/f-node/f-connectors/public-api.mjs +4 -0
- package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +55 -0
- package/esm2022/f-node/f-drag-handle/index.mjs +3 -0
- package/esm2022/f-node/f-drag-handle/is-drag-handle.mjs +20 -0
- package/esm2022/f-node/f-drag-handle/public-api.mjs +2 -0
- package/esm2022/f-node/f-node-base.mjs +33 -0
- package/esm2022/f-node/f-node.component.mjs +88 -0
- package/esm2022/f-node/f-resize-observer.mjs +16 -0
- package/esm2022/f-node/index.mjs +7 -0
- package/esm2022/f-node/is-node.mjs +4 -0
- package/esm2022/f-node/public-api.mjs +4 -0
- package/esm2022/get-flow-uid.mjs +7 -0
- package/esm2022/public-api.mjs +4 -3
- package/f-components-store.d.ts +36 -0
- package/f-connection/common/cast-to-connection-behavior.d.ts +2 -0
- package/f-connection/common/cast-to-connection-type.d.ts +2 -0
- package/f-connection/common/e-connection-behavior.d.ts +4 -0
- package/f-connection/common/e-connection-type.d.ts +5 -0
- package/f-connection/common/f-connection-base.d.ts +54 -0
- package/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +20 -0
- package/{components/f-connection → f-connection}/common/f-connection-text/f-connection-text.component.d.ts +10 -7
- package/f-connection/common/f-connection-text/i-connection-text.d.ts +6 -0
- package/{components/f-connection → f-connection}/common/f-connection-text/index.d.ts +1 -0
- package/f-connection/common/f-connection.injection-token.d.ts +2 -0
- package/f-connection/common/f-gradient/f-connection-gradient.component.d.ts +22 -0
- package/f-connection/common/f-gradient/i-connection-gradient.d.ts +7 -0
- package/{components/f-connection → f-connection}/common/f-gradient/index.d.ts +1 -0
- package/f-connection/common/f-path/f-connection-path.component.d.ts +20 -0
- package/f-connection/common/f-path/i-connection-path.d.ts +9 -0
- package/{components/f-connection → f-connection}/common/f-path/index.d.ts +1 -0
- package/{components/f-connection → f-connection}/common/f-selection/f-connection-selection.component.d.ts +4 -5
- package/f-connection/common/i-has-connection-color.d.ts +4 -0
- package/f-connection/common/i-has-connection-from-to.d.ts +4 -0
- package/f-connection/common/i-has-connection-text.d.ts +3 -0
- package/f-connection/common/index.d.ts +16 -0
- package/f-connection/common/mixins/change-connection-selection.mixin.d.ts +12 -0
- package/f-connection/common/mixins/change-connection-visibility.mixin.d.ts +10 -0
- package/f-connection/common/mixins/index.d.ts +2 -0
- package/f-connection/common/path-constructor/bezier-path.d.ts +6 -0
- package/f-connection/common/path-constructor/i-path-constructor.d.ts +12 -0
- package/f-connection/common/path-constructor/index.d.ts +5 -0
- package/f-connection/common/path-constructor/path-constructor.d.ts +8 -0
- package/f-connection/common/path-constructor/segment-path/connector-side-point.d.ts +6 -0
- package/f-connection/common/path-constructor/segment-path/edge-center-calculator.d.ts +3 -0
- package/f-connection/common/path-constructor/segment-path/index.d.ts +5 -0
- package/f-connection/common/path-constructor/segment-path/path-bend.d.ts +4 -0
- package/f-connection/common/path-constructor/segment-path/point-utils.d.ts +6 -0
- package/f-connection/common/path-constructor/segment-path/segment-path.d.ts +10 -0
- package/f-connection/common/path-constructor/straight-path/index.d.ts +1 -0
- package/f-connection/common/path-constructor/straight-path/straight-path.d.ts +6 -0
- package/f-connection/f-connection/f-connection.component.d.ts +35 -0
- package/{components/f-connection → f-connection}/f-connection/index.d.ts +0 -1
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +36 -0
- package/f-connection/f-connection-for-create/index.d.ts +1 -0
- package/{components/f-connection → f-connection}/index.d.ts +1 -1
- package/f-connection/public-api.d.ts +2 -0
- package/f-draggable/canvas/canvas.drag-handler.d.ts +13 -0
- package/f-draggable/canvas/canvas.on-pointer-up.d.ts +10 -0
- package/f-draggable/canvas/canvas.prepare-drag-sequence.d.ts +13 -0
- package/f-draggable/canvas/index.d.ts +4 -0
- package/f-draggable/canvas/providers.d.ts +3 -0
- package/f-draggable/components/f-line-alignment/domain/i-line-alignment-rect.d.ts +6 -0
- package/f-draggable/components/f-line-alignment/domain/index.d.ts +6 -0
- package/f-draggable/components/f-line-alignment/domain/line-element.d.ts +9 -0
- package/f-draggable/components/f-line-alignment/domain/line-service.d.ts +11 -0
- package/f-draggable/components/f-line-alignment/domain/nearest-coordinate.d.ts +25 -0
- package/f-draggable/components/f-line-alignment/f-line-alignment-base.d.ts +15 -0
- package/f-draggable/components/f-line-alignment/f-line-alignment.component.d.ts +31 -0
- package/f-draggable/components/f-line-alignment/index.d.ts +3 -0
- package/f-draggable/components/f-line-alignment/public-api.d.ts +1 -0
- package/f-draggable/components/f-selection-area/domain/i-selection-area-rect.d.ts +6 -0
- package/f-draggable/components/f-selection-area/domain/index.d.ts +1 -0
- package/f-draggable/components/f-selection-area/f-selection-area-base.d.ts +13 -0
- package/f-draggable/components/f-selection-area/f-selection-area.component.d.ts +17 -0
- package/f-draggable/components/f-selection-area/index.d.ts +3 -0
- package/f-draggable/components/f-selection-area/public-api.d.ts +1 -0
- package/f-draggable/components/index.d.ts +3 -0
- package/f-draggable/components/public-api.d.ts +3 -0
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +19 -0
- package/f-draggable/connections/create-connection/create-connection.on-pointer-up.d.ts +16 -0
- package/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.d.ts +22 -0
- package/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.d.ts +13 -0
- package/{directives/f-draggable → f-draggable}/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/index.d.ts +5 -0
- package/f-draggable/connections/create-connection/public-api.d.ts +1 -0
- package/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.d.ts +18 -0
- package/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.d.ts +8 -0
- package/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.d.ts +13 -0
- package/{directives/f-draggable → f-draggable}/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.d.ts +0 -1
- package/{directives/f-draggable → f-draggable}/connections/find-inputs-under-pointer/inputs-under-pointer/index.d.ts +0 -1
- package/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.d.ts +12 -0
- package/{directives/f-draggable → f-draggable}/connections/index.d.ts +1 -0
- package/f-draggable/connections/providers.d.ts +4 -0
- package/f-draggable/connections/public-api.d.ts +2 -0
- package/f-draggable/connections/reassign-connection/index.d.ts +4 -0
- package/f-draggable/connections/reassign-connection/public-api.d.ts +1 -0
- package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +20 -0
- package/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.d.ts +15 -0
- package/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.d.ts +19 -0
- package/{directives/f-draggable → f-draggable}/e-draggable-type.d.ts +1 -2
- package/{directives/f-draggable/external-item/external-item-on-pointer-move/external-item-on-pointer-move.handler.d.ts → f-draggable/external-item/external-item.drag-handler.d.ts} +5 -4
- package/f-draggable/external-item/external-item.on-pointer-up.d.ts +16 -0
- package/f-draggable/external-item/external-item.prepare-drag-sequence.d.ts +16 -0
- package/f-draggable/external-item/index.d.ts +5 -0
- package/f-draggable/external-item/providers.d.ts +3 -0
- package/f-draggable/f-draggable-base.d.ts +16 -0
- package/f-draggable/f-draggable-data-context.d.ts +16 -0
- package/f-draggable/f-draggable.directive.d.ts +31 -0
- package/{directives/f-draggable → f-draggable}/i-draggable-item.d.ts +2 -2
- package/{directives/f-draggable → f-draggable}/index.d.ts +4 -5
- package/f-draggable/node/connection-source.drag-handler.d.ts +19 -0
- package/f-draggable/node/connection-target.drag-handler.d.ts +19 -0
- package/f-draggable/node/connection.drag-handler.d.ts +18 -0
- package/f-draggable/node/domain/is-connection-under-node/index.d.ts +1 -0
- package/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.d.ts +22 -0
- package/f-draggable/node/index.d.ts +7 -0
- package/f-draggable/node/node.drag-handler.d.ts +14 -0
- package/f-draggable/node/node.on-pointer-up.d.ts +16 -0
- package/f-draggable/node/node.prepare-drag-sequence.d.ts +24 -0
- package/f-draggable/node/providers.d.ts +4 -0
- package/{directives/f-draggable → f-draggable}/public-api.d.ts +1 -1
- package/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.d.ts +20 -0
- package/f-draggable/selection-area/get-can-be-selected-items/i-selectable-with-rect.d.ts +6 -0
- package/f-draggable/selection-area/get-can-be-selected-items/index.d.ts +2 -0
- package/f-draggable/selection-area/index.d.ts +5 -0
- package/f-draggable/selection-area/providers.d.ts +4 -0
- package/f-draggable/selection-area/selection-area.drag-handle.d.ts +19 -0
- package/f-draggable/selection-area/selection-area.on-pointer-up.d.ts +10 -0
- package/f-draggable/selection-area/selection-area.prepare-drag-sequence.d.ts +15 -0
- package/f-draggable/single-select/index.d.ts +2 -0
- package/f-draggable/single-select/providers.d.ts +2 -0
- package/f-draggable/single-select/single-select.on-pointer-down.d.ts +17 -0
- package/f-flow.module.d.ts +27 -17
- package/{components → f-node}/f-connectors/f-connector-base.d.ts +5 -3
- package/{components → f-node}/f-connectors/f-node-input/f-node-input-base.d.ts +1 -1
- package/f-node/f-connectors/f-node-input/f-node-input.directive.d.ts +25 -0
- package/{components → f-node}/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +5 -4
- package/f-node/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +21 -0
- package/{components → f-node}/f-connectors/f-node-output/f-node-output-base.d.ts +3 -3
- package/f-node/f-connectors/f-node-output/f-node-output.directive.d.ts +22 -0
- package/{components → f-node}/f-connectors/index.d.ts +0 -2
- package/{components/f-node → f-node}/f-drag-handle/f-drag-handle.directive.d.ts +2 -2
- package/{components/f-node → f-node}/f-node-base.d.ts +10 -9
- package/f-node/f-node.component.d.ts +28 -0
- package/f-node/f-resize-observer.d.ts +4 -0
- package/{components/f-node → f-node}/index.d.ts +2 -1
- package/{components/f-node → f-node}/public-api.d.ts +1 -1
- package/fesm2022/foblex-flow.mjs +3371 -2461
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/get-flow-uid.d.ts +4 -0
- package/package.json +2 -2
- package/public-api.d.ts +3 -2
- package/components/f-connection/common/f-connection-base.d.ts +0 -30
- package/components/f-connection/common/f-connection-common.module.d.ts +0 -13
- package/components/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +0 -17
- package/components/f-connection/common/f-gradient/f-connection-gradient.component.d.ts +0 -21
- package/components/f-connection/common/f-path/f-connection-path.component.d.ts +0 -21
- package/components/f-connection/common/get-connection-intersect.d.ts +0 -2
- package/components/f-connection/common/i-input-output-model.d.ts +0 -5
- package/components/f-connection/common/index.d.ts +0 -10
- package/components/f-connection/common/public-api.d.ts +0 -6
- package/components/f-connection/f-connection/f-connection.component.d.ts +0 -28
- package/components/f-connection/f-connection/f-connection.module.d.ts +0 -9
- package/components/f-connection/f-temp-connection/f-temp-connection.component.d.ts +0 -27
- package/components/f-connection/f-temp-connection/f-temp-connection.module.d.ts +0 -9
- package/components/f-connection/f-temp-connection/index.d.ts +0 -3
- package/components/f-connection/f-temp-connection/temp-connection-input-output-model.d.ts +0 -7
- package/components/f-connection/public-api.d.ts +0 -3
- package/components/f-connectors/f-node-input/f-node-input.directive.d.ts +0 -20
- package/components/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +0 -20
- package/components/f-connectors/f-node-output/f-node-output.directive.d.ts +0 -19
- package/components/f-connectors/f-out-connector-base.d.ts +0 -4
- package/components/f-connectors/get-element-rect-in-canvas.d.ts +0 -2
- package/components/f-flow/i-flow-connector-parent.d.ts +0 -7
- package/components/f-node/f-foreign-object/f-foreign-object-base.d.ts +0 -20
- package/components/f-node/f-foreign-object/f-foreign-object.component.d.ts +0 -16
- package/components/f-node/f-foreign-object/index.d.ts +0 -2
- package/components/f-node/f-foreign-object/public-api.d.ts +0 -1
- package/components/f-node/f-node.component.d.ts +0 -22
- package/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.d.ts +0 -16
- package/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.request.d.ts +0 -5
- package/directives/f-connect-if-intersect/connect-if-intersect/index.d.ts +0 -2
- package/directives/f-connect-if-intersect/f-connect-if-intersect-base.d.ts +0 -11
- package/directives/f-connect-if-intersect/f-connect-if-intersect.directive.d.ts +0 -16
- package/directives/f-connect-if-intersect/index.d.ts +0 -3
- package/directives/f-connect-if-intersect/public-api.d.ts +0 -2
- package/directives/f-containers/f-connections-container/f-connections-container-base.d.ts +0 -18
- package/directives/f-containers/f-connections-container/f-connections-container.component.d.ts +0 -14
- package/directives/f-containers/f-connections-container/index.d.ts +0 -2
- package/directives/f-containers/f-connections-container/public-api.d.ts +0 -1
- package/directives/f-containers/f-items-container/f-items-container.directive.d.ts +0 -13
- package/directives/f-containers/f-items-container/index.d.ts +0 -3
- package/directives/f-containers/f-items-container/public-api.d.ts +0 -2
- package/directives/f-containers/f-nodes-container/f-nodes-container-base.d.ts +0 -18
- package/directives/f-containers/f-nodes-container/f-nodes-container.component.d.ts +0 -12
- package/directives/f-containers/f-nodes-container/index.d.ts +0 -2
- package/directives/f-containers/f-nodes-container/public-api.d.ts +0 -1
- package/directives/f-containers/index.d.ts +0 -3
- package/directives/f-containers/public-api.d.ts +0 -3
- package/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.handler.d.ts +0 -12
- package/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.request.d.ts +0 -5
- package/directives/f-draggable/canvas/canvas-on-pointer-down/index.d.ts +0 -2
- package/directives/f-draggable/canvas/canvas-on-pointer-move/canvas.on-pointer-move.d.ts +0 -13
- package/directives/f-draggable/canvas/canvas-on-pointer-move/index.d.ts +0 -1
- package/directives/f-draggable/canvas/index.d.ts +0 -2
- package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection-on-pointer-down.request.d.ts +0 -6
- package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection.on-pointer-down.d.ts +0 -14
- package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/index.d.ts +0 -2
- package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection-on-pointer-up.request.d.ts +0 -7
- package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection.on-pointer-up.d.ts +0 -11
- package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/index.d.ts +0 -2
- package/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.d.ts +0 -16
- package/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.d.ts +0 -8
- package/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.request.d.ts +0 -5
- package/directives/f-draggable/connections/create-connection/index.d.ts +0 -5
- package/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.d.ts +0 -9
- package/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.d.ts +0 -8
- package/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.d.ts +0 -8
- package/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.request.d.ts +0 -5
- package/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.d.ts +0 -8
- package/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.request.d.ts +0 -5
- package/directives/f-draggable/connections/public-api.d.ts +0 -2
- package/directives/f-draggable/connections/reassign-connection/index.d.ts +0 -4
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/index.d.ts +0 -2
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection-on-pointer-down.request.d.ts +0 -6
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.d.ts +0 -11
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/index.d.ts +0 -1
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.d.ts +0 -17
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/index.d.ts +0 -2
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection-on-pointer-up.request.d.ts +0 -7
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection.on-pointer-up.d.ts +0 -11
- package/directives/f-draggable/default-drag-handler/default-drag.handler.d.ts +0 -5
- package/directives/f-draggable/default-drag-handler/index.d.ts +0 -1
- package/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.handler.d.ts +0 -10
- package/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.request.d.ts +0 -5
- package/directives/f-draggable/external-item/external-item-on-pointer-down/index.d.ts +0 -2
- package/directives/f-draggable/external-item/external-item-on-pointer-move/index.d.ts +0 -1
- package/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.handler.d.ts +0 -11
- package/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.request.d.ts +0 -7
- package/directives/f-draggable/external-item/external-item-on-pointer-up/index.d.ts +0 -2
- package/directives/f-draggable/external-item/index.d.ts +0 -4
- package/directives/f-draggable/f-draggable-base.d.ts +0 -47
- package/directives/f-draggable/f-draggable.directive.d.ts +0 -23
- package/directives/f-draggable/f-draggable.module.d.ts +0 -9
- package/directives/f-draggable/f-draggable.service.d.ts +0 -13
- package/directives/f-draggable/i-drag-handler.d.ts +0 -9
- package/directives/f-draggable/node/index.d.ts +0 -3
- package/directives/f-draggable/node/node-on-pointer-down/index.d.ts +0 -2
- package/directives/f-draggable/node/node-on-pointer-down/node-on-pointer-down.request.d.ts +0 -9
- package/directives/f-draggable/node/node-on-pointer-down/node.on-pointer-down.d.ts +0 -17
- package/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.d.ts +0 -15
- package/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.d.ts +0 -15
- package/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.d.ts +0 -14
- package/directives/f-draggable/node/node-on-pointer-move/index.d.ts +0 -4
- package/directives/f-draggable/node/node-on-pointer-move/node.on-pointer-move.d.ts +0 -15
- package/directives/f-draggable/node/node-on-pointer-up/index.d.ts +0 -2
- package/directives/f-draggable/node/node-on-pointer-up/node-on-pointer-up.request.d.ts +0 -7
- package/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.d.ts +0 -11
- package/directives/f-draggable/selection/index.d.ts +0 -3
- package/directives/f-draggable/selection/selection-on-pointer-down/index.d.ts +0 -2
- package/directives/f-draggable/selection/selection-on-pointer-down/selection-on-pointer-down.request.d.ts +0 -8
- package/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.d.ts +0 -12
- package/directives/f-draggable/selection/selection-on-pointer-move/index.d.ts +0 -1
- package/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.d.ts +0 -20
- package/directives/f-draggable/selection/selection-on-pointer-up/index.d.ts +0 -2
- package/directives/f-draggable/selection/selection-on-pointer-up/selection-on-pointer-up.request.d.ts +0 -9
- package/directives/f-draggable/selection/selection-on-pointer-up/selection.on-pointer-up.d.ts +0 -8
- package/directives/f-line-alignment/domain/find-nearest-coordinate-by-x.d.ts +0 -3
- package/directives/f-line-alignment/domain/find-nearest-coordinate-by-y.d.ts +0 -3
- package/directives/f-line-alignment/domain/index.d.ts +0 -4
- package/directives/f-line-alignment/f-line-alignment.directive.d.ts +0 -25
- package/directives/f-line-alignment/index.d.ts +0 -2
- package/directives/f-line-alignment/public-api.d.ts +0 -1
- package/directives/f-selection/f-selection.directive.d.ts +0 -15
- package/directives/f-selection/index.d.ts +0 -1
- package/directives/f-selection/public-api.d.ts +0 -1
- package/directives/f-zoom/f-zoom-base.d.ts +0 -24
- package/directives/f-zoom/f-zoom.directive.d.ts +0 -15
- package/directives/index.d.ts +0 -7
- package/directives/public-api.d.ts +0 -7
- package/esm2022/components/f-connection/common/f-connection-base.mjs +0 -32
- package/esm2022/components/f-connection/common/f-connection-common.module.mjs +0 -44
- package/esm2022/components/f-connection/common/f-connection-identifiers.mjs +0 -21
- package/esm2022/components/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +0 -38
- package/esm2022/components/f-connection/common/f-connection-text/f-connection-text.component.mjs +0 -55
- package/esm2022/components/f-connection/common/f-connection-text/index.mjs +0 -3
- package/esm2022/components/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +0 -30
- package/esm2022/components/f-connection/common/f-drag-handle/index.mjs +0 -2
- package/esm2022/components/f-connection/common/f-gradient/f-connection-gradient.component.mjs +0 -59
- package/esm2022/components/f-connection/common/f-gradient/index.mjs +0 -2
- package/esm2022/components/f-connection/common/f-path/f-connection-path.component.mjs +0 -58
- package/esm2022/components/f-connection/common/f-path/index.mjs +0 -2
- package/esm2022/components/f-connection/common/f-selection/f-connection-selection.component.mjs +0 -34
- package/esm2022/components/f-connection/common/f-selection/index.mjs +0 -2
- package/esm2022/components/f-connection/common/get-connection-intersect.mjs +0 -10
- package/esm2022/components/f-connection/common/i-input-output-model.mjs +0 -2
- package/esm2022/components/f-connection/common/index.mjs +0 -11
- package/esm2022/components/f-connection/common/public-api.mjs +0 -7
- package/esm2022/components/f-connection/f-connection/f-connection.component.mjs +0 -86
- package/esm2022/components/f-connection/f-connection/f-connection.module.mjs +0 -28
- package/esm2022/components/f-connection/f-connection/index.mjs +0 -3
- package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.component.mjs +0 -61
- package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.module.mjs +0 -28
- package/esm2022/components/f-connection/f-temp-connection/index.mjs +0 -4
- package/esm2022/components/f-connection/f-temp-connection/temp-connection-input-output-model.mjs +0 -7
- package/esm2022/components/f-connection/index.mjs +0 -4
- package/esm2022/components/f-connection/public-api.mjs +0 -4
- package/esm2022/components/f-connectors/f-connector-base.mjs +0 -14
- package/esm2022/components/f-connectors/f-node-input/f-node-input-base.mjs +0 -19
- package/esm2022/components/f-connectors/f-node-input/f-node-input.directive.mjs +0 -71
- package/esm2022/components/f-connectors/f-node-input/index.mjs +0 -4
- package/esm2022/components/f-connectors/f-node-input/is-node-input.mjs +0 -4
- package/esm2022/components/f-connectors/f-node-input/public-api.mjs +0 -2
- package/esm2022/components/f-connectors/f-node-outlet/f-node-outlet-base.mjs +0 -22
- package/esm2022/components/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +0 -69
- package/esm2022/components/f-connectors/f-node-outlet/index.mjs +0 -4
- package/esm2022/components/f-connectors/f-node-outlet/is-node-outlet.mjs +0 -4
- package/esm2022/components/f-connectors/f-node-outlet/public-api.mjs +0 -2
- package/esm2022/components/f-connectors/f-node-output/f-node-output-base.mjs +0 -19
- package/esm2022/components/f-connectors/f-node-output/f-node-output.directive.mjs +0 -67
- package/esm2022/components/f-connectors/f-node-output/index.mjs +0 -4
- package/esm2022/components/f-connectors/f-node-output/is-node-output.mjs +0 -4
- package/esm2022/components/f-connectors/f-node-output/public-api.mjs +0 -2
- package/esm2022/components/f-connectors/f-out-connector-base.mjs +0 -4
- package/esm2022/components/f-connectors/get-element-rect-in-canvas.mjs +0 -8
- package/esm2022/components/f-connectors/index.mjs +0 -7
- package/esm2022/components/f-connectors/public-api.mjs +0 -4
- package/esm2022/components/f-flow/i-flow-connector-parent.mjs +0 -3
- package/esm2022/components/f-node/f-drag-handle/f-drag-handle.directive.mjs +0 -54
- package/esm2022/components/f-node/f-drag-handle/index.mjs +0 -3
- package/esm2022/components/f-node/f-drag-handle/is-drag-handle.mjs +0 -20
- package/esm2022/components/f-node/f-drag-handle/public-api.mjs +0 -2
- package/esm2022/components/f-node/f-foreign-object/f-foreign-object-base.mjs +0 -44
- package/esm2022/components/f-node/f-foreign-object/f-foreign-object.component.mjs +0 -49
- package/esm2022/components/f-node/f-foreign-object/index.mjs +0 -3
- package/esm2022/components/f-node/f-foreign-object/public-api.mjs +0 -2
- package/esm2022/components/f-node/f-node-base.mjs +0 -33
- package/esm2022/components/f-node/f-node.component.mjs +0 -62
- package/esm2022/components/f-node/index.mjs +0 -6
- package/esm2022/components/f-node/is-node.mjs +0 -4
- package/esm2022/components/f-node/public-api.mjs +0 -4
- package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.mjs +0 -55
- package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.request.mjs +0 -6
- package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/index.mjs +0 -3
- package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect-base.mjs +0 -10
- package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect.directive.mjs +0 -51
- package/esm2022/directives/f-connect-if-intersect/index.mjs +0 -4
- package/esm2022/directives/f-connect-if-intersect/public-api.mjs +0 -3
- package/esm2022/directives/f-containers/f-connections-container/f-connections-container-base.mjs +0 -32
- package/esm2022/directives/f-containers/f-connections-container/f-connections-container.component.mjs +0 -30
- package/esm2022/directives/f-containers/f-connections-container/index.mjs +0 -3
- package/esm2022/directives/f-containers/f-connections-container/public-api.mjs +0 -2
- package/esm2022/directives/f-containers/f-items-container/canvas-change.event.mjs +0 -7
- package/esm2022/directives/f-containers/f-items-container/f-items-container-base.mjs +0 -45
- package/esm2022/directives/f-containers/f-items-container/f-items-container.directive.mjs +0 -48
- package/esm2022/directives/f-containers/f-items-container/index.mjs +0 -4
- package/esm2022/directives/f-containers/f-items-container/public-api.mjs +0 -3
- package/esm2022/directives/f-containers/f-nodes-container/f-nodes-container-base.mjs +0 -39
- package/esm2022/directives/f-containers/f-nodes-container/f-nodes-container.component.mjs +0 -25
- package/esm2022/directives/f-containers/f-nodes-container/index.mjs +0 -3
- package/esm2022/directives/f-containers/f-nodes-container/public-api.mjs +0 -2
- package/esm2022/directives/f-containers/index.mjs +0 -4
- package/esm2022/directives/f-containers/public-api.mjs +0 -4
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.handler.mjs +0 -24
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.request.mjs +0 -6
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/index.mjs +0 -3
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-move/canvas.on-pointer-move.mjs +0 -20
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-move/index.mjs +0 -2
- package/esm2022/directives/f-draggable/canvas/index.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection-on-pointer-down.request.mjs +0 -7
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection.on-pointer-down.mjs +0 -75
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/index.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection-on-pointer-up.request.mjs +0 -7
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection.on-pointer-up.mjs +0 -31
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/index.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection.event.mjs +0 -7
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.mjs +0 -28
- package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.mjs +0 -20
- package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.request.mjs +0 -6
- package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/create-connection/index.mjs +0 -6
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +0 -25
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.mjs +0 -7
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.mjs +0 -20
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.request.mjs +0 -6
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/index.mjs +0 -5
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/index.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.mjs +0 -14
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.request.mjs +0 -6
- package/esm2022/directives/f-draggable/connections/index.mjs +0 -4
- package/esm2022/directives/f-draggable/connections/public-api.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/reassign-connection/index.mjs +0 -5
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-connection.event.mjs +0 -9
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/index.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection-on-pointer-down.request.mjs +0 -7
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.mjs +0 -36
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/index.mjs +0 -2
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.mjs +0 -31
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/index.mjs +0 -3
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection-on-pointer-up.request.mjs +0 -7
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection.on-pointer-up.mjs +0 -26
- package/esm2022/directives/f-draggable/default-drag-handler/default-drag.handler.mjs +0 -11
- package/esm2022/directives/f-draggable/default-drag-handler/index.mjs +0 -2
- package/esm2022/directives/f-draggable/e-draggable-type.mjs +0 -12
- package/esm2022/directives/f-draggable/external-item/create-node.event.mjs +0 -7
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.handler.mjs +0 -28
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.request.mjs +0 -6
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/index.mjs +0 -3
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-move/external-item-on-pointer-move.handler.mjs +0 -30
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-move/index.mjs +0 -2
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.handler.mjs +0 -26
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.request.mjs +0 -7
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/index.mjs +0 -3
- package/esm2022/directives/f-draggable/external-item/index.mjs +0 -5
- package/esm2022/directives/f-draggable/external-item/public-api.mjs +0 -2
- package/esm2022/directives/f-draggable/f-draggable-base.mjs +0 -103
- package/esm2022/directives/f-draggable/f-draggable.directive.mjs +0 -53
- package/esm2022/directives/f-draggable/f-draggable.module.mjs +0 -37
- package/esm2022/directives/f-draggable/f-draggable.service.mjs +0 -23
- package/esm2022/directives/f-draggable/i-drag-handler.mjs +0 -2
- package/esm2022/directives/f-draggable/i-draggable-item.mjs +0 -2
- package/esm2022/directives/f-draggable/index.mjs +0 -14
- package/esm2022/directives/f-draggable/node/index.mjs +0 -4
- package/esm2022/directives/f-draggable/node/node-on-pointer-down/index.mjs +0 -3
- package/esm2022/directives/f-draggable/node/node-on-pointer-down/node-on-pointer-down.request.mjs +0 -9
- package/esm2022/directives/f-draggable/node/node-on-pointer-down/node.on-pointer-down.mjs +0 -88
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.mjs +0 -24
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.mjs +0 -24
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.mjs +0 -22
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/index.mjs +0 -5
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/node.on-pointer-move.mjs +0 -23
- package/esm2022/directives/f-draggable/node/node-on-pointer-up/index.mjs +0 -3
- package/esm2022/directives/f-draggable/node/node-on-pointer-up/node-on-pointer-up.request.mjs +0 -7
- package/esm2022/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.mjs +0 -28
- package/esm2022/directives/f-draggable/public-api.mjs +0 -5
- package/esm2022/directives/f-draggable/selection/index.mjs +0 -4
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/index.mjs +0 -3
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/selection-on-pointer-down.request.mjs +0 -8
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.mjs +0 -61
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-move/index.mjs +0 -2
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.mjs +0 -57
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/index.mjs +0 -3
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/selection-on-pointer-up.request.mjs +0 -8
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/selection.on-pointer-up.mjs +0 -22
- package/esm2022/directives/f-external-item/f-external-item-base.mjs +0 -11
- package/esm2022/directives/f-external-item/f-external-item.directive.mjs +0 -44
- package/esm2022/directives/f-external-item/f-external-item.service.mjs +0 -25
- package/esm2022/directives/f-external-item/index.mjs +0 -5
- package/esm2022/directives/f-external-item/is-external-item.mjs +0 -7
- package/esm2022/directives/f-external-item/public-api.mjs +0 -2
- package/esm2022/directives/f-line-alignment/domain/find-nearest-coordinate-by-x.mjs +0 -40
- package/esm2022/directives/f-line-alignment/domain/find-nearest-coordinate-by-y.mjs +0 -40
- package/esm2022/directives/f-line-alignment/domain/i-line-alignment-result.mjs +0 -2
- package/esm2022/directives/f-line-alignment/domain/i-nearest-coordinate-result.mjs +0 -2
- package/esm2022/directives/f-line-alignment/domain/index.mjs +0 -5
- package/esm2022/directives/f-line-alignment/f-line-alignment.directive.mjs +0 -107
- package/esm2022/directives/f-line-alignment/index.mjs +0 -3
- package/esm2022/directives/f-line-alignment/public-api.mjs +0 -2
- package/esm2022/directives/f-selection/f-selection.directive.mjs +0 -41
- package/esm2022/directives/f-selection/index.mjs +0 -2
- package/esm2022/directives/f-selection/public-api.mjs +0 -2
- package/esm2022/directives/f-zoom/f-zoom-base.mjs +0 -89
- package/esm2022/directives/f-zoom/f-zoom.directive.mjs +0 -57
- package/esm2022/directives/f-zoom/index.mjs +0 -3
- package/esm2022/directives/f-zoom/public-api.mjs +0 -2
- package/esm2022/directives/index.mjs +0 -8
- package/esm2022/directives/public-api.mjs +0 -8
- package/esm2022/i-selectable.mjs +0 -2
- package/esm2022/internal/f-backgroud/f-background-base.mjs +0 -25
- package/esm2022/internal/f-backgroud/f-background.directive.mjs +0 -24
- package/esm2022/internal/f-backgroud/index.mjs +0 -3
- package/esm2022/internal/f-canvas/f-canvas-base.mjs +0 -25
- package/esm2022/internal/f-canvas/f-canvas.directive.mjs +0 -19
- package/esm2022/internal/f-canvas/index.mjs +0 -3
- package/esm2022/internal/index.mjs +0 -3
- package/esm2022/tokens.mjs +0 -4
- package/i-selectable.d.ts +0 -7
- package/internal/f-backgroud/f-background.directive.d.ts +0 -9
- package/internal/f-backgroud/index.d.ts +0 -2
- package/internal/f-canvas/f-canvas-base.d.ts +0 -12
- package/internal/f-canvas/f-canvas.directive.d.ts +0 -8
- package/internal/f-canvas/index.d.ts +0 -2
- package/internal/index.d.ts +0 -2
- package/tokens.d.ts +0 -3
- /package/{directives → components/f-flow/f-canvas}/f-zoom/index.d.ts +0 -0
- /package/{directives → components/f-flow/f-canvas}/f-zoom/public-api.d.ts +0 -0
- /package/{components/f-connection → f-connection}/common/f-connection-identifiers.d.ts +0 -0
- /package/{components/f-connection → f-connection}/common/f-drag-handle/f-connection-drag-handle.component.d.ts +0 -0
- /package/{components/f-connection → f-connection}/common/f-drag-handle/index.d.ts +0 -0
- /package/{components/f-connection → f-connection}/common/f-selection/index.d.ts +0 -0
- /package/{directives → f-draggable/components}/f-external-item/f-external-item-base.d.ts +0 -0
- /package/{directives → f-draggable/components}/f-external-item/f-external-item.directive.d.ts +0 -0
- /package/{directives → f-draggable/components}/f-external-item/f-external-item.service.d.ts +0 -0
- /package/{directives → f-draggable/components}/f-external-item/index.d.ts +0 -0
- /package/{directives → f-draggable/components}/f-external-item/is-external-item.d.ts +0 -0
- /package/{directives → f-draggable/components}/f-external-item/public-api.d.ts +0 -0
- /package/{directives → f-draggable/components}/f-line-alignment/domain/i-line-alignment-result.d.ts +0 -0
- /package/{directives → f-draggable/components}/f-line-alignment/domain/i-nearest-coordinate-result.d.ts +0 -0
- /package/{directives/f-draggable → f-draggable}/connections/create-connection/create-connection.event.d.ts +0 -0
- /package/{directives/f-draggable → f-draggable}/connections/find-inputs-under-pointer/index.d.ts +0 -0
- /package/{directives/f-draggable → f-draggable}/connections/reassign-connection/reassign-connection.event.d.ts +0 -0
- /package/{directives/f-draggable → f-draggable}/external-item/create-node.event.d.ts +0 -0
- /package/{directives/f-draggable → f-draggable}/external-item/public-api.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-input/index.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-input/is-node-input.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-input/public-api.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-outlet/index.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-outlet/is-node-outlet.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-outlet/public-api.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-output/index.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-output/is-node-output.d.ts +0 -0
- /package/{components → f-node}/f-connectors/f-node-output/public-api.d.ts +0 -0
- /package/{components → f-node}/f-connectors/public-api.d.ts +0 -0
- /package/{components/f-node → f-node}/f-drag-handle/index.d.ts +0 -0
- /package/{components/f-node → f-node}/f-drag-handle/is-drag-handle.d.ts +0 -0
- /package/{components/f-node → f-node}/f-drag-handle/public-api.d.ts +0 -0
- /package/{components/f-node → f-node}/is-node.d.ts +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { MouseEventExtensions } from '@foblex/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { isNodeOutlet, isNodeOutput } from '../../f-node';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../f-components-store";
|
|
6
|
+
import * as i2 from "../f-draggable-data-context";
|
|
7
|
+
import * as i3 from "../../domain";
|
|
8
|
+
export class SingleSelectOnPointerDown {
|
|
9
|
+
constructor(fComponentsStore, fDraggableDataContext, getConnectionHandler) {
|
|
10
|
+
this.fComponentsStore = fComponentsStore;
|
|
11
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
12
|
+
this.getConnectionHandler = getConnectionHandler;
|
|
13
|
+
}
|
|
14
|
+
handle(event) {
|
|
15
|
+
const node = this.fComponentsStore.findNode(event.targetElement);
|
|
16
|
+
const connection = this.getConnectionHandler.handle(event.targetElement);
|
|
17
|
+
this.deselectAll(node, event);
|
|
18
|
+
this.resetSelectionIfNotMultiselect(event);
|
|
19
|
+
if (node) {
|
|
20
|
+
if (!this.fDraggableDataContext.selectedItems.includes(node)) {
|
|
21
|
+
this.fDraggableDataContext.selectedItems.push(node);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
this.fDraggableDataContext.selectedItems.splice(this.fDraggableDataContext.selectedItems.indexOf(node), 1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else if (connection) {
|
|
28
|
+
if (!this.fDraggableDataContext.selectedItems.includes(connection)) {
|
|
29
|
+
this.fDraggableDataContext.selectedItems.push(connection);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.fDraggableDataContext.selectedItems.splice(this.fDraggableDataContext.selectedItems.indexOf(connection), 1);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
this.selectIfNotSelected();
|
|
36
|
+
}
|
|
37
|
+
deselectAll(node, event) {
|
|
38
|
+
this.fDraggableDataContext.selectedItems.forEach((x) => {
|
|
39
|
+
if (x !== node || (!isNodeOutlet(event.targetElement) && !isNodeOutput(event.targetElement))) {
|
|
40
|
+
x.deselect();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
resetSelectionIfNotMultiselect(event) {
|
|
45
|
+
const isMultiselect = MouseEventExtensions.isCommandButton(event.originalEvent) ||
|
|
46
|
+
MouseEventExtensions.isShiftPressed(event.originalEvent);
|
|
47
|
+
if (!isMultiselect) {
|
|
48
|
+
this.fDraggableDataContext.selectedItems = [];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
selectIfNotSelected() {
|
|
52
|
+
this.fDraggableDataContext.selectedItems.forEach((x) => {
|
|
53
|
+
if (!x.isSelected()) {
|
|
54
|
+
x.select();
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SingleSelectOnPointerDown, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }, { token: i3.GetConnectionHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
59
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SingleSelectOnPointerDown }); }
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SingleSelectOnPointerDown, decorators: [{
|
|
62
|
+
type: Injectable
|
|
63
|
+
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }, { type: i3.GetConnectionHandler }]; } });
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luZ2xlLXNlbGVjdC5vbi1wb2ludGVyLWRvd24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3NpbmdsZS1zZWxlY3Qvc2luZ2xlLXNlbGVjdC5vbi1wb2ludGVyLWRvd24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUEyQixvQkFBb0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBSTNDLE9BQU8sRUFBYSxZQUFZLEVBQUUsWUFBWSxFQUFFLE1BQU0sY0FBYyxDQUFDOzs7OztBQUdyRSxNQUFNLE9BQU8seUJBQXlCO0lBRXBDLFlBQ1ksZ0JBQWtDLEVBQ2xDLHFCQUE0QyxFQUM1QyxvQkFBMEM7UUFGMUMscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFrQjtRQUNsQywwQkFBcUIsR0FBckIscUJBQXFCLENBQXVCO1FBQzVDLHlCQUFvQixHQUFwQixvQkFBb0IsQ0FBc0I7SUFFdEQsQ0FBQztJQUVNLE1BQU0sQ0FBQyxLQUFvQjtRQUNoQyxNQUFNLElBQUksR0FBRyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUNqRSxNQUFNLFVBQVUsR0FBRyxJQUFJLENBQUMsb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7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,79 +1,117 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import { FFlowComponent,
|
|
3
|
-
import { FConnectionCommonModule } from './components';
|
|
4
|
-
import { FNodeInputDirective, FNodeOutletDirective, FNodeOutputDirective } from './components';
|
|
5
|
-
import { FDragHandleDirective, FForeignObjectComponent, FNodeComponent } from './components';
|
|
2
|
+
import { FBackgroundComponent, FCanvasComponent, FConnectionMarkerEndDirective, FConnectionMarkerEndSelectedDirective, FConnectionMarkerStartDirective, FConnectionMarkerStartSelectedDirective, FDefinitionsComponent, FFlowComponent, FZoomDirective } from './components';
|
|
6
3
|
import { CommonModule } from '@angular/common';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { FDraggableDataContext, FLineAlignmentComponent } from './f-draggable';
|
|
5
|
+
import { FDraggableDirective, FExternalItemDirective, FSelectionAreaComponent, } from './f-draggable';
|
|
6
|
+
import { FConnectionComponent, FConnectionDragHandleComponent, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective } from './f-connection';
|
|
7
|
+
import { FNodeComponent, FNodeInputDirective, FNodeOutletDirective, FNodeOutputDirective } from './f-node';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export class FFlowModule {
|
|
11
10
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
12
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, declarations: [
|
|
11
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, declarations: [FConnectionDragHandleComponent,
|
|
12
|
+
FConnectionGradientComponent,
|
|
13
|
+
FConnectionPathComponent,
|
|
14
|
+
FConnectionTextComponent,
|
|
15
|
+
FConnectionTextPathDirective,
|
|
16
|
+
FConnectionSelectionComponent,
|
|
17
|
+
FFlowComponent,
|
|
18
|
+
FBackgroundComponent,
|
|
19
|
+
FCanvasComponent,
|
|
20
|
+
FDefinitionsComponent,
|
|
13
21
|
FNodeComponent,
|
|
22
|
+
FConnectionComponent,
|
|
23
|
+
FConnectionForCreateComponent,
|
|
14
24
|
FZoomDirective,
|
|
15
|
-
FForeignObjectComponent,
|
|
16
|
-
FDragHandleDirective,
|
|
17
|
-
FItemsContainerDirective,
|
|
18
|
-
FNodesContainerComponent,
|
|
19
|
-
FConnectionsContainerComponent,
|
|
20
25
|
FNodeInputDirective,
|
|
21
26
|
FNodeOutletDirective,
|
|
22
|
-
FNodeOutputDirective
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
FNodeOutputDirective,
|
|
28
|
+
FDraggableDirective,
|
|
29
|
+
FExternalItemDirective,
|
|
30
|
+
FSelectionAreaComponent,
|
|
31
|
+
FLineAlignmentComponent,
|
|
32
|
+
FConnectionMarkerStartDirective,
|
|
33
|
+
FConnectionMarkerStartSelectedDirective,
|
|
34
|
+
FConnectionMarkerEndDirective,
|
|
35
|
+
FConnectionMarkerEndSelectedDirective], imports: [CommonModule], exports: [FFlowComponent,
|
|
36
|
+
FBackgroundComponent,
|
|
37
|
+
FCanvasComponent,
|
|
38
|
+
FDefinitionsComponent,
|
|
26
39
|
FNodeComponent,
|
|
40
|
+
FConnectionComponent,
|
|
41
|
+
FConnectionForCreateComponent,
|
|
27
42
|
FZoomDirective,
|
|
28
|
-
FForeignObjectComponent,
|
|
29
|
-
FDragHandleDirective,
|
|
30
|
-
FItemsContainerDirective,
|
|
31
|
-
FNodesContainerComponent,
|
|
32
|
-
FConnectionsContainerComponent,
|
|
33
|
-
FConnectionCommonModule,
|
|
34
43
|
FNodeInputDirective,
|
|
35
44
|
FNodeOutletDirective,
|
|
36
|
-
FNodeOutputDirective
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
FNodeOutputDirective,
|
|
46
|
+
FDraggableDirective,
|
|
47
|
+
FExternalItemDirective,
|
|
48
|
+
FSelectionAreaComponent,
|
|
49
|
+
FLineAlignmentComponent,
|
|
50
|
+
FConnectionMarkerStartDirective,
|
|
51
|
+
FConnectionMarkerStartSelectedDirective,
|
|
52
|
+
FConnectionMarkerEndDirective,
|
|
53
|
+
FConnectionMarkerEndSelectedDirective] }); }
|
|
54
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, providers: [
|
|
55
|
+
FDraggableDataContext,
|
|
56
|
+
], imports: [CommonModule] }); }
|
|
39
57
|
}
|
|
40
58
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, decorators: [{
|
|
41
59
|
type: NgModule,
|
|
42
60
|
args: [{
|
|
43
61
|
declarations: [
|
|
62
|
+
FConnectionDragHandleComponent,
|
|
63
|
+
FConnectionGradientComponent,
|
|
64
|
+
FConnectionPathComponent,
|
|
65
|
+
FConnectionTextComponent,
|
|
66
|
+
FConnectionTextPathDirective,
|
|
67
|
+
FConnectionSelectionComponent,
|
|
44
68
|
FFlowComponent,
|
|
69
|
+
FBackgroundComponent,
|
|
70
|
+
FCanvasComponent,
|
|
71
|
+
FDefinitionsComponent,
|
|
45
72
|
FNodeComponent,
|
|
73
|
+
FConnectionComponent,
|
|
74
|
+
FConnectionForCreateComponent,
|
|
46
75
|
FZoomDirective,
|
|
47
|
-
FForeignObjectComponent,
|
|
48
|
-
FDragHandleDirective,
|
|
49
|
-
FItemsContainerDirective,
|
|
50
|
-
FNodesContainerComponent,
|
|
51
|
-
FConnectionsContainerComponent,
|
|
52
76
|
FNodeInputDirective,
|
|
53
77
|
FNodeOutletDirective,
|
|
54
78
|
FNodeOutputDirective,
|
|
79
|
+
FDraggableDirective,
|
|
80
|
+
FExternalItemDirective,
|
|
81
|
+
FSelectionAreaComponent,
|
|
82
|
+
FLineAlignmentComponent,
|
|
83
|
+
FConnectionMarkerStartDirective,
|
|
84
|
+
FConnectionMarkerStartSelectedDirective,
|
|
85
|
+
FConnectionMarkerEndDirective,
|
|
86
|
+
FConnectionMarkerEndSelectedDirective
|
|
55
87
|
],
|
|
56
88
|
imports: [
|
|
57
|
-
CommonModule
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
89
|
+
CommonModule
|
|
90
|
+
],
|
|
91
|
+
providers: [
|
|
92
|
+
FDraggableDataContext,
|
|
61
93
|
],
|
|
62
|
-
providers: [],
|
|
63
94
|
exports: [
|
|
64
95
|
FFlowComponent,
|
|
96
|
+
FBackgroundComponent,
|
|
97
|
+
FCanvasComponent,
|
|
98
|
+
FDefinitionsComponent,
|
|
65
99
|
FNodeComponent,
|
|
100
|
+
FConnectionComponent,
|
|
101
|
+
FConnectionForCreateComponent,
|
|
66
102
|
FZoomDirective,
|
|
67
|
-
FForeignObjectComponent,
|
|
68
|
-
FDragHandleDirective,
|
|
69
|
-
FItemsContainerDirective,
|
|
70
|
-
FNodesContainerComponent,
|
|
71
|
-
FConnectionsContainerComponent,
|
|
72
|
-
FConnectionCommonModule,
|
|
73
103
|
FNodeInputDirective,
|
|
74
104
|
FNodeOutletDirective,
|
|
75
105
|
FNodeOutputDirective,
|
|
106
|
+
FDraggableDirective,
|
|
107
|
+
FExternalItemDirective,
|
|
108
|
+
FSelectionAreaComponent,
|
|
109
|
+
FLineAlignmentComponent,
|
|
110
|
+
FConnectionMarkerStartDirective,
|
|
111
|
+
FConnectionMarkerStartSelectedDirective,
|
|
112
|
+
FConnectionMarkerEndDirective,
|
|
113
|
+
FConnectionMarkerEndSelectedDirective
|
|
76
114
|
]
|
|
77
115
|
}]
|
|
78
116
|
}] });
|
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
117
|
+
//# sourceMappingURL=data:application/json;base64,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sXG4gIHByb3ZpZGVyczogW1xuICAgIEZEcmFnZ2FibGVEYXRhQ29udGV4dCxcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIEZGbG93Q29tcG9uZW50LFxuICAgIEZCYWNrZ3JvdW5kQ29tcG9uZW50LFxuICAgIEZDYW52YXNDb21wb25lbnQsXG4gICAgRkRlZmluaXRpb25zQ29tcG9uZW50LFxuICAgIEZOb2RlQ29tcG9uZW50LFxuICAgIEZDb25uZWN0aW9uQ29tcG9uZW50LFxuICAgIEZDb25uZWN0aW9uRm9yQ3JlYXRlQ29tcG9uZW50LFxuICAgIEZab29tRGlyZWN0aXZlLFxuICAgIEZOb2RlSW5wdXREaXJlY3RpdmUsXG4gICAgRk5vZGVPdXRsZXREaXJlY3RpdmUsXG4gICAgRk5vZGVPdXRwdXREaXJlY3RpdmUsXG5cbiAgICBGRHJhZ2dhYmxlRGlyZWN0aXZlLFxuICAgIEZFeHRlcm5hbEl0ZW1EaXJlY3RpdmUsXG4gICAgRlNlbGVjdGlvbkFyZWFDb21wb25lbnQsXG4gICAgRkxpbmVBbGlnbm1lbnRDb21wb25lbnQsXG5cbiAgICBGQ29ubmVjdGlvbk1hcmtlclN0YXJ0RGlyZWN0aXZlLFxuICAgIEZDb25uZWN0aW9uTWFya2VyU3RhcnRTZWxlY3RlZERpcmVjdGl2ZSxcbiAgICBGQ29ubmVjdGlvbk1hcmtlckVuZERpcmVjdGl2ZSxcbiAgICBGQ29ubmVjdGlvbk1hcmtlckVuZFNlbGVjdGVkRGlyZWN0aXZlXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgRkZsb3dNb2R1bGUge1xufVxuIl19
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { EConnectorSide } from '../../domain';
|
|
3
|
+
export class FConnectorBase {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.stateChanges = new Subject();
|
|
6
|
+
this.side = EConnectorSide.BOTTOM;
|
|
7
|
+
}
|
|
8
|
+
isContains(element) {
|
|
9
|
+
return this.hostElement.contains(element);
|
|
10
|
+
}
|
|
11
|
+
setConnected(isConnected) {
|
|
12
|
+
this.isConnected = isConnected;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0b3ItYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2YtY29ubmVjdG9ycy9mLWNvbm5lY3Rvci1iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFHL0IsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUU5QyxNQUFNLE9BQWdCLGNBQWM7SUFBcEM7UUFRa0IsaUJBQVksR0FBa0IsSUFBSSxPQUFPLEVBQVEsQ0FBQztRQU0zRCxTQUFJLEdBQW1CLGNBQWMsQ0FBQyxNQUFNLENBQUM7SUFTdEQsQ0FBQztJQVBRLFVBQVUsQ0FBQyxPQUFpQztRQUNqRCxPQUFPLElBQUksQ0FBQyxXQUFXLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQzVDLENBQUM7SUFFTSxZQUFZLENBQUMsV0FBb0I7UUFDdEMsSUFBSSxDQUFDLFdBQVcsR0FBRyxXQUFXLENBQUM7SUFDakMsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU3ViamVjdCB9IGZyb20gJ3J4anMnO1xuaW1wb3J0IHsgSUhhc0hvc3RFbGVtZW50IH0gZnJvbSAnQGZvYmxleC9jb3JlJztcbmltcG9ydCB7IElIYXNTdGF0ZUNoYW5nZXMgfSBmcm9tICcuLi8uLi9pLWhhcy1zdGF0ZS1jaGFuZ2VzJztcbmltcG9ydCB7IEVDb25uZWN0b3JTaWRlIH0gZnJvbSAnLi4vLi4vZG9tYWluJztcblxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIEZDb25uZWN0b3JCYXNlIGltcGxlbWVudHMgSUhhc1N0YXRlQ2hhbmdlcywgSUhhc0hvc3RFbGVtZW50IHtcblxuICBwdWJsaWMgYWJzdHJhY3QgaWQ6IGFueTtcblxuICBwdWJsaWMgYWJzdHJhY3QgZGlzYWJsZWQ6IGJvb2xlYW47XG5cbiAgcHVibGljIGFic3RyYWN0IGhvc3RFbGVtZW50OiBIVE1MRWxlbWVudCB8IFNWR0VsZW1lbnQ7XG5cbiAgcHVibGljIHJlYWRvbmx5IHN0YXRlQ2hhbmdlczogU3ViamVjdDx2b2lkPiA9IG5ldyBTdWJqZWN0PHZvaWQ+KCk7XG5cbiAgcHVibGljIGFic3RyYWN0IGNhbkJlQ29ubmVjdGVkOiBib29sZWFuO1xuXG4gIHB1YmxpYyBhYnN0cmFjdCBpc0Nvbm5lY3RlZDogYm9vbGVhbjtcblxuICBwdWJsaWMgc2lkZTogRUNvbm5lY3RvclNpZGUgPSBFQ29ubmVjdG9yU2lkZS5CT1RUT007XG5cbiAgcHVibGljIGlzQ29udGFpbnMoZWxlbWVudDogSFRNTEVsZW1lbnQgfCBTVkdFbGVtZW50KTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuaG9zdEVsZW1lbnQuY29udGFpbnMoZWxlbWVudCk7XG4gIH1cblxuICBwdWJsaWMgc2V0Q29ubmVjdGVkKGlzQ29ubmVjdGVkOiBib29sZWFuKTogdm9pZCB7XG4gICAgdGhpcy5pc0Nvbm5lY3RlZCA9IGlzQ29ubmVjdGVkO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Directive, InjectionToken } from '@angular/core';
|
|
2
|
+
import { FConnectorBase } from '../f-connector-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export const F_NODE_INPUT = new InjectionToken('F_NODE_INPUT');
|
|
5
|
+
export class FNodeInputBase extends FConnectorBase {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.isConnected = false;
|
|
9
|
+
}
|
|
10
|
+
get canBeConnected() {
|
|
11
|
+
return !this.disabled && (this.multiple ? true : !this.isConnected);
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeInputBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
14
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FNodeInputBase, usesInheritance: true, ngImport: i0 }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeInputBase, decorators: [{
|
|
17
|
+
type: Directive
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2RlLWlucHV0LWJhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWNvbm5lY3RvcnMvZi1ub2RlLWlucHV0L2Ytbm9kZS1pbnB1dC1iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7QUFFckQsTUFBTSxDQUFDLE1BQU0sWUFBWSxHQUFHLElBQUksY0FBYyxDQUFpQixjQUFjLENBQUMsQ0FBQzt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|
|
|
1
|
+
import { Directive, Inject, Input } from '@angular/core';
|
|
2
|
+
import { BooleanExtensions } from '@foblex/core';
|
|
3
|
+
import { F_NODE_INPUT, FNodeInputBase } from './f-node-input-base';
|
|
4
|
+
import { F_NODE } from '../../f-node-base';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../../f-components-store";
|
|
7
|
+
import * as i2 from "../../f-node-base";
|
|
8
|
+
let uniqueId = 0;
|
|
9
|
+
export class FNodeInputDirective extends FNodeInputBase {
|
|
10
|
+
get color() {
|
|
11
|
+
return this.fNodeInputColor || 'black';
|
|
12
|
+
}
|
|
13
|
+
get disabled() {
|
|
14
|
+
return this.isDisabled;
|
|
15
|
+
}
|
|
16
|
+
set disabled(isDisabled) {
|
|
17
|
+
const value = BooleanExtensions.castToBoolean(isDisabled);
|
|
18
|
+
if (value !== this.isDisabled) {
|
|
19
|
+
this.isDisabled = value;
|
|
20
|
+
this.stateChanges.next();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
get hostElement() {
|
|
24
|
+
return this.elementReference.nativeElement;
|
|
25
|
+
}
|
|
26
|
+
constructor(elementReference, fNode, fComponentsStore) {
|
|
27
|
+
super();
|
|
28
|
+
this.elementReference = elementReference;
|
|
29
|
+
this.fNode = fNode;
|
|
30
|
+
this.fComponentsStore = fComponentsStore;
|
|
31
|
+
this.id = `f-node-input-${uniqueId++}`;
|
|
32
|
+
this.multiple = true;
|
|
33
|
+
this.isDisabled = false;
|
|
34
|
+
this.isConnected = false;
|
|
35
|
+
}
|
|
36
|
+
ngOnInit() {
|
|
37
|
+
if (!this.fNode) {
|
|
38
|
+
throw new Error('fNodeInput must be inside f-node');
|
|
39
|
+
}
|
|
40
|
+
this.fComponentsStore.addInput(this);
|
|
41
|
+
this.fNode.addConnector(this);
|
|
42
|
+
}
|
|
43
|
+
setConnected(isConnected) {
|
|
44
|
+
this.isConnected = isConnected;
|
|
45
|
+
this.hostElement.classList.toggle('f-node-input-connected', isConnected);
|
|
46
|
+
}
|
|
47
|
+
ngOnDestroy() {
|
|
48
|
+
this.fNode.removeConnector(this);
|
|
49
|
+
this.fComponentsStore.removeInput(this);
|
|
50
|
+
}
|
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeInputDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: i1.FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
52
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FNodeInputDirective, selector: "[fNodeInput]", inputs: { id: ["fNodeInputId", "id"], fNodeInputColor: "fNodeInputColor", multiple: ["fNodeInputMultiple", "multiple"], disabled: ["fNodeInputDisabled", "disabled"] }, host: { properties: { "attr.id": "id", "class.f-node-input-multiple": "multiple", "class.f-node-input-disabled": "disabled", "class.f-node-input-not-connectable": "!canBeConnected" }, classAttribute: "f-component f-node-input" }, providers: [{ provide: F_NODE_INPUT, useExisting: FNodeInputDirective }], usesInheritance: true, ngImport: i0 }); }
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeInputDirective, decorators: [{
|
|
55
|
+
type: Directive,
|
|
56
|
+
args: [{
|
|
57
|
+
selector: "[fNodeInput]",
|
|
58
|
+
host: {
|
|
59
|
+
'[attr.id]': 'id',
|
|
60
|
+
class: "f-component f-node-input",
|
|
61
|
+
'[class.f-node-input-multiple]': 'multiple',
|
|
62
|
+
'[class.f-node-input-disabled]': 'disabled',
|
|
63
|
+
'[class.f-node-input-not-connectable]': '!canBeConnected',
|
|
64
|
+
},
|
|
65
|
+
providers: [{ provide: F_NODE_INPUT, useExisting: FNodeInputDirective }],
|
|
66
|
+
}]
|
|
67
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.FNodeBase, decorators: [{
|
|
68
|
+
type: Inject,
|
|
69
|
+
args: [F_NODE]
|
|
70
|
+
}] }, { type: i1.FComponentsStore }]; }, propDecorators: { id: [{
|
|
71
|
+
type: Input,
|
|
72
|
+
args: ['fNodeInputId']
|
|
73
|
+
}], fNodeInputColor: [{
|
|
74
|
+
type: Input,
|
|
75
|
+
args: ['fNodeInputColor']
|
|
76
|
+
}], multiple: [{
|
|
77
|
+
type: Input,
|
|
78
|
+
args: ['fNodeInputMultiple']
|
|
79
|
+
}], disabled: [{
|
|
80
|
+
type: Input,
|
|
81
|
+
args: ['fNodeInputDisabled']
|
|
82
|
+
}] } });
|
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2RlLWlucHV0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2YtY29ubmVjdG9ycy9mLW5vZGUtaW5wdXQvZi1ub2RlLWlucHV0LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLE1BQU0sRUFBRSxLQUFLLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBQ3hGLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNqRCxPQUFPLEVBQUUsWUFBWSxFQUFFLGNBQWMsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ25FLE9BQU8sRUFBRSxNQUFNLEVBQWEsTUFBTSxtQkFBbUIsQ0FBQzs7OztBQUd0RCxJQUFJLFFBQVEsR0FBVyxDQUFDLENBQUM7QUFhekIsTUFBTSxPQUFPLG1CQUFvQixTQUFRLGNBQWM7SUFRckQsSUFBVyxLQUFLO1FBQ2QsT0FBTyxJQUFJLENBQUMsZUFBZSxJQUFJLE9BQU8sQ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bm5lY3RlZCcsIGlzQ29ubmVjdGVkKTtcbiAgfVxuXG4gIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLmZOb2RlLnJlbW92ZUNvbm5lY3Rvcih0aGlzKTtcbiAgICB0aGlzLmZDb21wb25lbnRzU3RvcmUucmVtb3ZlSW5wdXQodGhpcyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './f-node-input-base';
|
|
2
|
+
export * from './is-node-input';
|
|
3
|
+
export * from './f-node-input.directive';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWNvbm5lY3RvcnMvZi1ub2RlLWlucHV0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUM7QUFFcEMsY0FBYyxpQkFBaUIsQ0FBQztBQUVoQyxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLW5vZGUtaW5wdXQtYmFzZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vaXMtbm9kZS1pbnB1dCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLWlucHV0LmRpcmVjdGl2ZSc7XG4iXX0=
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function isNodeInput(element) {
|
|
2
|
+
return !!element.closest('[fNodeInput]');
|
|
3
|
+
}
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtbm9kZS1pbnB1dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2YtY29ubmVjdG9ycy9mLW5vZGUtaW5wdXQvaXMtbm9kZS1pbnB1dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsV0FBVyxDQUFDLE9BQWlDO0lBQzNELE9BQU8sQ0FBQyxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUM7QUFDM0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpc05vZGVJbnB1dChlbGVtZW50OiBIVE1MRWxlbWVudCB8IFNWR0VsZW1lbnQpOiBib29sZWFuIHtcbiAgcmV0dXJuICEhZWxlbWVudC5jbG9zZXN0KCdbZk5vZGVJbnB1dF0nKTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './f-node-input.directive';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2YtY29ubmVjdG9ycy9mLW5vZGUtaW5wdXQvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLW5vZGUtaW5wdXQuZGlyZWN0aXZlJztcbiJdfQ==
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Directive, InjectionToken } from '@angular/core';
|
|
2
|
+
import { FConnectorBase } from '../f-connector-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export const F_NODE_OUTLET = new InjectionToken('F_NODE_OUTLET');
|
|
5
|
+
export class FNodeOutletBase extends FConnectorBase {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.isConnected = false;
|
|
9
|
+
this.outputs = [];
|
|
10
|
+
}
|
|
11
|
+
get canBeConnected() {
|
|
12
|
+
return !this.disabled;
|
|
13
|
+
}
|
|
14
|
+
setOutputs(outputs) {
|
|
15
|
+
this.outputs = outputs;
|
|
16
|
+
}
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeOutletBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
18
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FNodeOutletBase, usesInheritance: true, ngImport: i0 }); }
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeOutletBase, decorators: [{
|
|
21
|
+
type: Directive
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2RlLW91dGxldC1iYXNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLW5vZGUvZi1jb25uZWN0b3JzL2Ytbm9kZS1vdXRsZXQvZi1ub2RlLW91dGxldC1iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7QUFFckQsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLElBQUksY0FBYyxDQUFrQixlQUFlLENBQUMsQ0F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cbiAgfVxuXG4gIHB1YmxpYyBzZXRPdXRwdXRzKG91dHB1dHM6IEZDb25uZWN0b3JCYXNlW10pOiB2b2lkIHtcbiAgICB0aGlzLm91dHB1dHMgPSBvdXRwdXRzO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Directive, Inject, Input } from '@angular/core';
|
|
2
|
+
import { BooleanExtensions } from '@foblex/core';
|
|
3
|
+
import { F_NODE_OUTLET, FNodeOutletBase } from './f-node-outlet-base';
|
|
4
|
+
import { F_NODE } from '../../f-node-base';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../../f-components-store";
|
|
7
|
+
import * as i2 from "../../f-node-base";
|
|
8
|
+
let uniqueId = 0;
|
|
9
|
+
export class FNodeOutletDirective extends FNodeOutletBase {
|
|
10
|
+
get disabled() {
|
|
11
|
+
return this.isDisabled;
|
|
12
|
+
}
|
|
13
|
+
set disabled(isDisabled) {
|
|
14
|
+
const value = BooleanExtensions.castToBoolean(isDisabled);
|
|
15
|
+
if (value !== this.isDisabled) {
|
|
16
|
+
this.isDisabled = value;
|
|
17
|
+
this.stateChanges.next();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
get hostElement() {
|
|
21
|
+
return this.elementReference.nativeElement;
|
|
22
|
+
}
|
|
23
|
+
constructor(elementReference, fNode, fComponentsStore) {
|
|
24
|
+
super();
|
|
25
|
+
this.elementReference = elementReference;
|
|
26
|
+
this.fNode = fNode;
|
|
27
|
+
this.fComponentsStore = fComponentsStore;
|
|
28
|
+
this.id = `f-node-outlet-${uniqueId++}`;
|
|
29
|
+
this.isDisabled = false;
|
|
30
|
+
this.isConnectionFromOutlet = false;
|
|
31
|
+
}
|
|
32
|
+
ngOnInit() {
|
|
33
|
+
if (!this.fNode) {
|
|
34
|
+
throw new Error('fNodeOutlet must be inside f-node');
|
|
35
|
+
}
|
|
36
|
+
this.fComponentsStore.addOutlet(this);
|
|
37
|
+
}
|
|
38
|
+
ngOnDestroy() {
|
|
39
|
+
this.fComponentsStore.removeOutlet(this);
|
|
40
|
+
}
|
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeOutletDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: i1.FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
42
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FNodeOutletDirective, selector: "[fNodeOutlet]", inputs: { id: "id", disabled: ["fNodeOutletDisabled", "disabled"], isConnectionFromOutlet: "isConnectionFromOutlet" }, host: { properties: { "attr.id": "id", "class.f-node-outlet-disabled": "disabled" }, classAttribute: "f-component f-node-outlet" }, providers: [{ provide: F_NODE_OUTLET, useExisting: FNodeOutletDirective }], usesInheritance: true, ngImport: i0 }); }
|
|
43
|
+
}
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeOutletDirective, decorators: [{
|
|
45
|
+
type: Directive,
|
|
46
|
+
args: [{
|
|
47
|
+
selector: "[fNodeOutlet]",
|
|
48
|
+
host: {
|
|
49
|
+
'[attr.id]': 'id',
|
|
50
|
+
class: "f-component f-node-outlet",
|
|
51
|
+
'[class.f-node-outlet-disabled]': 'disabled'
|
|
52
|
+
},
|
|
53
|
+
providers: [{ provide: F_NODE_OUTLET, useExisting: FNodeOutletDirective }],
|
|
54
|
+
}]
|
|
55
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.FNodeBase, decorators: [{
|
|
56
|
+
type: Inject,
|
|
57
|
+
args: [F_NODE]
|
|
58
|
+
}] }, { type: i1.FComponentsStore }]; }, propDecorators: { id: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], disabled: [{
|
|
61
|
+
type: Input,
|
|
62
|
+
args: ['fNodeOutletDisabled']
|
|
63
|
+
}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Ghpcy5lbGVtZW50UmVmZXJlbmNlLm5hdGl2ZUVsZW1lbnQ7XG4gIH1cblxuICBjb25zdHJ1Y3RvcihcbiAgICAgIHByaXZhdGUgZWxlbWVudFJlZmVyZW5jZTogRWxlbWVudFJlZjxIVE1MRWxlbWVudD4sXG4gICAgICBASW5qZWN0KEZfTk9ERSkgcHJpdmF0ZSBmTm9kZTogRk5vZGVCYXNlLFxuICAgICAgcHJpdmF0ZSBmQ29tcG9uZW50c1N0b3JlOiBGQ29tcG9uZW50c1N0b3JlLFxuICApIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgcHVibGljIG5nT25Jbml0KCkge1xuICAgIGlmICghdGhpcy5mTm9kZSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCdmTm9kZU91dGxldCBtdXN0IGJlIGluc2lkZSBmLW5vZGUnKTtcbiAgICB9XG4gICAgdGhpcy5mQ29tcG9uZW50c1N0b3JlLmFkZE91dGxldCh0aGlzKTtcbiAgfVxuXG4gIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLmZDb21wb25lbnRzU3RvcmUucmVtb3ZlT3V0bGV0KHRoaXMpO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './f-node-outlet-base';
|
|
2
|
+
export * from './is-node-outlet';
|
|
3
|
+
export * from './f-node-outlet.directive';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWNvbm5lY3RvcnMvZi1ub2RlLW91dGxldC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDO0FBRXJDLGNBQWMsa0JBQWtCLENBQUM7QUFFakMsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLW91dGxldC1iYXNlJztcblxuZXhwb3J0ICogZnJvbSAnLi9pcy1ub2RlLW91dGxldCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLW91dGxldC5kaXJlY3RpdmUnO1xuIl19
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function isNodeOutlet(element) {
|
|
2
|
+
return !!element.closest('[fNodeOutlet]');
|
|
3
|
+
}
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtbm9kZS1vdXRsZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWNvbm5lY3RvcnMvZi1ub2RlLW91dGxldC9pcy1ub2RlLW91dGxldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsWUFBWSxDQUFDLE9BQWlDO0lBQzVELE9BQU8sQ0FBQyxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDLENBQUM7QUFDNUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpc05vZGVPdXRsZXQoZWxlbWVudDogSFRNTEVsZW1lbnQgfCBTVkdFbGVtZW50KTogYm9vbGVhbiB7XG4gIHJldHVybiAhIWVsZW1lbnQuY2xvc2VzdCgnW2ZOb2RlT3V0bGV0XScpO1xufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './f-node-outlet.directive';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2YtY29ubmVjdG9ycy9mLW5vZGUtb3V0bGV0L3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLW91dGxldC5kaXJlY3RpdmUnO1xuIl19
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Directive, InjectionToken } from '@angular/core';
|
|
2
|
+
import { FConnectorBase } from '../f-connector-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export const F_NODE_OUTPUT = new InjectionToken('F_NODE_OUTPUT');
|
|
5
|
+
export class FNodeOutputBase extends FConnectorBase {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.isConnected = false;
|
|
9
|
+
}
|
|
10
|
+
get canBeConnected() {
|
|
11
|
+
return !this.disabled && !this.isConnected;
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeOutputBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
14
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FNodeOutputBase, usesInheritance: true, ngImport: i0 }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeOutputBase, decorators: [{
|
|
17
|
+
type: Directive
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2RlLW91dHB1dC1iYXNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOls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