ngx-vflow 1.8.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/esm2022/lib/vflow/components/vflow/vflow.component.mjs +5 -3
  2. package/esm2022/lib/vflow/directives/lazy-for.directive.mjs +243 -0
  3. package/esm2022/public-api.mjs +14 -13
  4. package/esm2022/testing/component-mocks/custom-template-edge-mock.component.mjs +16 -0
  5. package/esm2022/testing/component-mocks/handle-mock.component.mjs +24 -0
  6. package/esm2022/{lib/vflow/testing-utils → testing}/component-mocks/minimap-mock.component.mjs +1 -1
  7. package/esm2022/testing/component-mocks/node-toolbar-mock.component.mjs +23 -0
  8. package/esm2022/testing/component-mocks/resizable-mock.component.mjs +25 -0
  9. package/esm2022/testing/component-mocks/vflow-mock.component.mjs +296 -0
  10. package/esm2022/testing/directive-mocks/connection-controller-mock.directive.mjs +27 -0
  11. package/esm2022/testing/directive-mocks/drag-handle-mock.directive.mjs +11 -0
  12. package/esm2022/{lib/vflow/testing-utils → testing}/directive-mocks/selectable-mock.directive.mjs +1 -1
  13. package/esm2022/{lib/vflow/testing-utils → testing}/directive-mocks/template-mock.directive.mjs +1 -1
  14. package/esm2022/testing/ngx-vflow-testing.mjs +5 -0
  15. package/esm2022/testing/provide-custom-node-mocks.mjs +59 -0
  16. package/esm2022/testing/public-api.mjs +13 -0
  17. package/esm2022/testing/types.mjs +2 -0
  18. package/esm2022/testing/vflow-mocks.mjs +28 -0
  19. package/fesm2022/ngx-vflow-testing.mjs +626 -0
  20. package/fesm2022/ngx-vflow-testing.mjs.map +1 -0
  21. package/fesm2022/ngx-vflow.mjs +245 -601
  22. package/fesm2022/ngx-vflow.mjs.map +1 -1
  23. package/lib/vflow/directives/lazy-for.directive.d.ts +94 -0
  24. package/lib/vflow/models/edge.model.d.ts +2 -2
  25. package/package.json +9 -3
  26. package/public-api.d.ts +12 -11
  27. package/testing/component-mocks/custom-template-edge-mock.component.d.ts +7 -0
  28. package/{lib/vflow/testing-utils → testing}/component-mocks/handle-mock.component.d.ts +2 -3
  29. package/{lib/vflow/testing-utils → testing}/component-mocks/minimap-mock.component.d.ts +1 -1
  30. package/{lib/vflow/testing-utils → testing}/component-mocks/node-toolbar-mock.component.d.ts +1 -2
  31. package/{lib/vflow/testing-utils → testing}/component-mocks/resizable-mock.component.d.ts +1 -1
  32. package/{lib/vflow/testing-utils → testing}/component-mocks/vflow-mock.component.d.ts +2 -14
  33. package/{lib/vflow/testing-utils → testing}/directive-mocks/connection-controller-mock.directive.d.ts +2 -3
  34. package/{lib/vflow/testing-utils → testing}/directive-mocks/drag-handle-mock.directive.d.ts +1 -1
  35. package/{lib/vflow/testing-utils → testing}/directive-mocks/selectable-mock.directive.d.ts +1 -1
  36. package/{lib/vflow/testing-utils → testing}/directive-mocks/template-mock.directive.d.ts +1 -1
  37. package/testing/index.d.ts +5 -0
  38. package/testing/public-api.d.ts +11 -0
  39. package/{lib/vflow/testing-utils → testing}/vflow-mocks.d.ts +2 -1
  40. package/esm2022/lib/vflow/testing-utils/component-mocks/handle-mock.component.mjs +0 -24
  41. package/esm2022/lib/vflow/testing-utils/component-mocks/node-toolbar-mock.component.mjs +0 -23
  42. package/esm2022/lib/vflow/testing-utils/component-mocks/resizable-mock.component.mjs +0 -25
  43. package/esm2022/lib/vflow/testing-utils/component-mocks/vflow-mock.component.mjs +0 -296
  44. package/esm2022/lib/vflow/testing-utils/directive-mocks/connection-controller-mock.directive.mjs +0 -27
  45. package/esm2022/lib/vflow/testing-utils/directive-mocks/drag-handle-mock.directive.mjs +0 -11
  46. package/esm2022/lib/vflow/testing-utils/provide-custom-node-mocks.mjs +0 -68
  47. package/esm2022/lib/vflow/testing-utils/types.mjs +0 -2
  48. package/esm2022/lib/vflow/testing-utils/vflow-mocks.mjs +0 -26
  49. /package/{lib/vflow/testing-utils → testing}/provide-custom-node-mocks.d.ts +0 -0
  50. /package/{lib/vflow/testing-utils → testing}/types.d.ts +0 -0
@@ -0,0 +1,94 @@
1
+ import { DoCheck, NgIterable, TemplateRef, TrackByFunction } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Context for an element in lazyFor
5
+ */
6
+ declare class LazyForContextModel<T, U extends NgIterable<T> = NgIterable<T>> {
7
+ $implicit: T;
8
+ lazyFor: U;
9
+ index: number;
10
+ count: number;
11
+ /** Whether the element is first */
12
+ get first(): boolean;
13
+ /** Whether the element is last */
14
+ get last(): boolean;
15
+ /** Whether the element is even */
16
+ get even(): boolean;
17
+ /** Whether the element is odd */
18
+ get odd(): boolean;
19
+ constructor($implicit: T, lazyFor: U, index: number, count: number);
20
+ }
21
+ export declare class LazyForDirective<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {
22
+ private _template;
23
+ private _viewContainer;
24
+ private _differs;
25
+ private _cdr;
26
+ private _destroyRef$;
27
+ /**
28
+ * Asserts the correct type of the context for the template that `lazyFor` will render.
29
+ *
30
+ * The presence of this method is a signal to the Ivy template type-check compiler that the
31
+ * `lazyFor` structural directive renders its template with a specific context type.
32
+ */
33
+ static ngTemplateContextGuard<T, U extends NgIterable<T>>(dir: LazyForDirective<T, U>, ctx: any): ctx is LazyForContextModel<T, U>;
34
+ /** Setter for the array to be rendered by the directive */
35
+ set lazyForOf(lazyFor: (U & NgIterable<T>) | undefined | null);
36
+ /**
37
+ * Input - setter for TrackBy function
38
+ * @description is required
39
+ */
40
+ set lazyForTrackBy(fn: TrackByFunction<T>);
41
+ /**
42
+ * Setter for the number of items that will be rendered per frame
43
+ * @param value number of items that will be rendered per frame
44
+ */
45
+ set lazyForItemsPerFrame(value: number);
46
+ /** Setter for array item template */
47
+ set lazyForTemplate(value: TemplateRef<LazyForContextModel<T, U>>);
48
+ /** Getter for TrackBy function */
49
+ get lazyForTrackBy(): TrackByFunction<T>;
50
+ /** Array for rendering */
51
+ private _lazyFor;
52
+ /** lazyFor initialization flag */
53
+ private _lazyForDirty;
54
+ /** Differ for tracking changes in input array */
55
+ private _differ;
56
+ /** trackBy function */
57
+ private _trackByFn;
58
+ /** Number of items to be rendered per frame */
59
+ private _itemsPerFrame;
60
+ /** Directive state */
61
+ private _lazyForState;
62
+ /** Private subject for stopping dynamic render process */
63
+ private readonly _rerenderUnsub$;
64
+ constructor();
65
+ /** ngDoCheck hook */
66
+ ngDoCheck(): void;
67
+ /**
68
+ * Apply changes detected by differ
69
+ * @param changes changes
70
+ */
71
+ private applyChanges;
72
+ /**
73
+ * Perform lazy rendering
74
+ * @param itemDataListToRender list of items to render
75
+ * @param changes changes
76
+ */
77
+ private performLazyRender;
78
+ /** Update context (without implicit$) for elements inside view */
79
+ private updateViewContext;
80
+ /**
81
+ * Apply implicit$ context
82
+ * @param view view
83
+ * @param record data
84
+ */
85
+ private applyViewChange;
86
+ /**
87
+ * Update directive state
88
+ * @param stateToSet state to set
89
+ */
90
+ private updateLazyForState;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<LazyForDirective<any, any>, never>;
92
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LazyForDirective<any, any>, "[lazyFor][lazyForOf]", never, { "lazyForOf": { "alias": "lazyForOf"; "required": false; }; "lazyForTrackBy": { "alias": "lazyForTrackBy"; "required": true; }; "lazyForItemsPerFrame": { "alias": "lazyForItemsPerFrame"; "required": false; }; "lazyForTemplate": { "alias": "lazyForTemplate"; "required": false; }; }, {}, never, never, true, never>;
93
+ }
94
+ export {};
@@ -18,8 +18,8 @@ export declare class EdgeModel implements FlowEntity, Contextable<EdgeContext> {
18
18
  detached: import("@angular/core").Signal<boolean>;
19
19
  detached$: import("rxjs").Observable<boolean>;
20
20
  path: import("@angular/core").Signal<import("../interfaces/path-data.interface").PathData>;
21
- sourceHandle: import("@angular/core").Signal<import("./handle.model").HandleModel | null>;
22
- targetHandle: import("@angular/core").Signal<import("./handle.model").HandleModel | null>;
21
+ sourceHandle: import("@angular/core").Signal<import("ngx-vflow")HandleModel | null>;
22
+ targetHandle: import("@angular/core").Signal<import("ngx-vflow")HandleModel | null>;
23
23
  /**
24
24
  * TODO: not reactive
25
25
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-vflow",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://www.ngx-vflow.org/",
6
6
  "author": "Artem Mangilev",
@@ -16,8 +16,8 @@
16
16
  "type": "git"
17
17
  },
18
18
  "peerDependencies": {
19
- "@angular/common": "^17.3.12 || 18.x || 19.x",
20
- "@angular/core": "^17.3.12 || 18.x || 19.x",
19
+ "@angular/common": "^17.3.12 || 18.x || 19.x || 20.x",
20
+ "@angular/core": "^17.3.12 || 18.x || 19.x || 20.x",
21
21
  "d3-drag": "^3.0.0",
22
22
  "d3-selection": "^3.0.0",
23
23
  "d3-zoom": "^3.0.0",
@@ -40,6 +40,12 @@
40
40
  "esm2022": "./esm2022/ngx-vflow.mjs",
41
41
  "esm": "./esm2022/ngx-vflow.mjs",
42
42
  "default": "./fesm2022/ngx-vflow.mjs"
43
+ },
44
+ "./testing": {
45
+ "types": "./testing/index.d.ts",
46
+ "esm2022": "./esm2022/testing/ngx-vflow-testing.mjs",
47
+ "esm": "./esm2022/testing/ngx-vflow-testing.mjs",
48
+ "default": "./fesm2022/ngx-vflow-testing.mjs"
43
49
  }
44
50
  }
45
51
  }
package/public-api.d.ts CHANGED
@@ -31,14 +31,15 @@ export * from './lib/vflow/directives/connection-controller.directive';
31
31
  export * from './lib/vflow/directives/changes-controller.directive';
32
32
  export * from './lib/vflow/directives/selectable.directive';
33
33
  export * from './lib/vflow/directives/drag-handle.directive';
34
- export * from './lib/vflow/testing-utils/provide-custom-node-mocks';
35
- export * from './lib/vflow/testing-utils/component-mocks/vflow-mock.component';
36
- export * from './lib/vflow/testing-utils/component-mocks/handle-mock.component';
37
- export * from './lib/vflow/testing-utils/component-mocks/resizable-mock.component';
38
- export * from './lib/vflow/testing-utils/component-mocks/minimap-mock.component';
39
- export * from './lib/vflow/testing-utils/component-mocks/node-toolbar-mock.component';
40
- export * from './lib/vflow/testing-utils/directive-mocks/connection-controller-mock.directive';
41
- export * from './lib/vflow/testing-utils/directive-mocks/drag-handle-mock.directive';
42
- export * from './lib/vflow/testing-utils/directive-mocks/selectable-mock.directive';
43
- export * from './lib/vflow/testing-utils/directive-mocks/template-mock.directive';
44
- export * from './lib/vflow/testing-utils/vflow-mocks';
34
+ export { ConnectionModel as ɵConnectionModel } from './lib/vflow/models/connection.model';
35
+ export { HandleModel as ɵHandleModel } from './lib/vflow/models/handle.model';
36
+ export { NodeModel as ɵNodeModel } from './lib/vflow/models/node.model';
37
+ export { ComponentEventBusService as ɵComponentEventBusService } from './lib/vflow/services/component-event-bus.service';
38
+ export { HandleService as ɵHandleService } from './lib/vflow/services/handle.service';
39
+ export { FlowSettingsService as ɵFlowSettingsService } from './lib/vflow/services/flow-settings.service';
40
+ export { FlowEntitiesService as ɵFlowEntitiesService } from './lib/vflow/services/flow-entities.service';
41
+ export { NodeAccessorService as ɵNodeAccessorService } from './lib/vflow/services/node-accessor.service';
42
+ export { ViewportService as ɵViewportService } from './lib/vflow/services/viewport.service';
43
+ export { SelectionService as ɵSelectionService } from './lib/vflow/services/selection.service';
44
+ export { RootPointerDirective as ɵRootPointerDirective } from './lib/vflow/directives/root-pointer.directive';
45
+ export { SpacePointContextDirective as ɵSpacePointContextDirective } from './lib/vflow/directives/space-point-context.directive';
@@ -0,0 +1,7 @@
1
+ import { AsInterface } from '../types';
2
+ import type { CustomTemplateEdgeComponent } from 'ngx-vflow';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CustomTemplateEdgeMockComponent implements AsInterface<CustomTemplateEdgeComponent> {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomTemplateEdgeMockComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomTemplateEdgeMockComponent, "g[customTemplateEdge]", never, {}, {}, never, never, true, never>;
7
+ }
@@ -1,11 +1,10 @@
1
1
  import { TemplateRef, OnInit } from '@angular/core';
2
- import { Position } from '../../types/position.type';
3
- import { HandleComponent } from '../../public-components/handle/handle.component';
2
+ import type { HandleComponent, Position } from 'ngx-vflow';
4
3
  import { AsInterface } from '../types';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class HandleMockComponent implements AsInterface<HandleComponent>, OnInit {
7
6
  position: import("@angular/core").InputSignal<Position>;
8
- type: import("@angular/core").InputSignal<"source" | "target">;
7
+ type: import("@angular/core").InputSignal<"target" | "source">;
9
8
  id: import("@angular/core").InputSignal<string | undefined>;
10
9
  template: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
11
10
  ngOnInit(): void;
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { MiniMapComponent, MiniMapPosition } from '../../public-components/minimap/minimap.component';
2
+ import type { MiniMapComponent, MiniMapPosition } from 'ngx-vflow';
3
3
  import { AsInterface } from '../types';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class MiniMapMockComponent implements AsInterface<MiniMapComponent>, OnInit {
@@ -1,6 +1,5 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
- import { Position } from '../../types/position.type';
3
- import { NodeToolbarComponent } from '../../public-components/node-toolbar/node-toolbar.component';
2
+ import type { Position, NodeToolbarComponent } from 'ngx-vflow';
4
3
  import { AsInterface } from '../types';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class NodeToolbarMockComponent implements AsInterface<NodeToolbarComponent>, OnInit, OnDestroy {
@@ -1,5 +1,5 @@
1
1
  import { OnInit, AfterViewInit } from '@angular/core';
2
- import { ResizableComponent } from '../../public-components/resizable/resizable.component';
2
+ import type { ResizableComponent } from 'ngx-vflow';
3
3
  import { AsInterface } from '../types';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ResizableMockComponent implements AsInterface<ResizableComponent>, OnInit, AfterViewInit {
@@ -1,21 +1,9 @@
1
1
  import { WritableSignal, OnInit } from '@angular/core';
2
- import { Node, DynamicNode } from '../../interfaces/node.interface';
3
- import { Edge } from '../../interfaces/edge.interface';
4
- import { SpacePoint, Point } from '../../interfaces/point.interface';
5
- import { Background } from '../../types/background.type';
6
- import { Optimization } from '../../interfaces/optimization.interface';
7
- import { KeyboardShortcuts } from '../../types/keyboard-action.type';
8
- import { ViewportState } from '../../interfaces/viewport.interface';
9
- import { NodeChange } from '../../types/node-change.type';
10
- import { EdgeChange } from '../../types/edge-change.type';
11
- import { FitViewOptions } from '../../interfaces/fit-view-options.interface';
2
+ import { Node, DynamicNode, Edge, SpacePoint, Point, Background, Optimization, KeyboardShortcuts, ViewportState, NodeChange, EdgeChange, FitViewOptions, VflowComponent, IntersectingNodesOptions, ɵConnectionModel as ConnectionModel } from 'ngx-vflow';
12
3
  import { ConnectionTemplateMockDirective, EdgeLabelHtmlTemplateMockDirective, EdgeTemplateMockDirective, GroupNodeTemplateMockDirective, NodeHtmlTemplateMockDirective } from '../directive-mocks/template-mock.directive';
13
- import { VflowComponent } from '../../components/vflow/vflow.component';
14
- import { ConnectionModel } from '../../models/connection.model';
15
4
  import { AsInterface } from '../types';
16
- import { IntersectingNodesOptions } from '../../interfaces/intersecting-nodes-options.interface';
17
5
  import * as i0 from "@angular/core";
18
- import * as i1 from "../../interfaces/connection-settings.interface";
6
+ import * as i1 from "ngx-vflow";
19
7
  export declare class VflowMockComponent implements AsInterface<VflowComponent>, OnInit {
20
8
  readonly nodes: Node[] | DynamicNode[];
21
9
  readonly edges: Edge[];
@@ -1,7 +1,6 @@
1
- import { Connection, ReconnectionEvent } from '../../interfaces/connection.interface';
1
+ import { Connection, ReconnectionEvent } from 'ngx-vflow';
2
2
  import { AsInterface } from '../types';
3
- import { ConnectionControllerDirective } from '../../directives/connection-controller.directive';
4
- import { HandleModel } from '../../models/handle.model';
3
+ import type { ConnectionControllerDirective, ɵHandleModel as HandleModel } from 'ngx-vflow';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class ConnectionControllerMockDirective implements AsInterface<ConnectionControllerDirective> {
7
6
  readonly onConnect: import("@angular/core").OutputEmitterRef<Connection>;
@@ -1,5 +1,5 @@
1
1
  import { AsInterface } from '../types';
2
- import { DragHandleDirective } from '../../directives/drag-handle.directive';
2
+ import type { DragHandleDirective } from 'ngx-vflow';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DragHandleMockDirective implements AsInterface<DragHandleDirective> {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<DragHandleMockDirective, never>;
@@ -1,5 +1,5 @@
1
1
  import { AsInterface } from '../types';
2
- import { SelectableDirective } from '../../directives/selectable.directive';
2
+ import type { SelectableDirective } from 'ngx-vflow';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SelectableMockDirective implements AsInterface<SelectableDirective> {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectableMockDirective, never>;
@@ -1,5 +1,5 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import { ConnectionTemplateDirective, EdgeLabelHtmlTemplateDirective, EdgeTemplateDirective, GroupNodeTemplateDirective, HandleTemplateDirective, NodeHtmlTemplateDirective } from '../../directives/template.directive';
2
+ import type { ConnectionTemplateDirective, EdgeLabelHtmlTemplateDirective, EdgeTemplateDirective, GroupNodeTemplateDirective, HandleTemplateDirective, NodeHtmlTemplateDirective } from 'ngx-vflow';
3
3
  import { AsInterface } from '../types';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class EdgeTemplateMockDirective implements AsInterface<EdgeTemplateDirective> {
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-vflow/testing" />
5
+ export * from './public-api';
@@ -0,0 +1,11 @@
1
+ export * from './provide-custom-node-mocks';
2
+ export * from './component-mocks/vflow-mock.component';
3
+ export * from './component-mocks/handle-mock.component';
4
+ export * from './component-mocks/resizable-mock.component';
5
+ export * from './component-mocks/minimap-mock.component';
6
+ export * from './component-mocks/node-toolbar-mock.component';
7
+ export * from './directive-mocks/connection-controller-mock.directive';
8
+ export * from './directive-mocks/drag-handle-mock.directive';
9
+ export * from './directive-mocks/selectable-mock.directive';
10
+ export * from './directive-mocks/template-mock.directive';
11
+ export * from './vflow-mocks';
@@ -1,3 +1,4 @@
1
+ import { CustomTemplateEdgeMockComponent } from './component-mocks/custom-template-edge-mock.component';
1
2
  import { HandleMockComponent } from './component-mocks/handle-mock.component';
2
3
  import { MiniMapMockComponent } from './component-mocks/minimap-mock.component';
3
4
  import { NodeToolbarMockComponent } from './component-mocks/node-toolbar-mock.component';
@@ -7,4 +8,4 @@ import { ConnectionControllerMockDirective } from './directive-mocks/connection-
7
8
  import { DragHandleMockDirective } from './directive-mocks/drag-handle-mock.directive';
8
9
  import { SelectableMockDirective } from './directive-mocks/selectable-mock.directive';
9
10
  import { ConnectionTemplateMockDirective, EdgeLabelHtmlTemplateMockDirective, EdgeTemplateMockDirective, GroupNodeTemplateMockDirective, HandleTemplateMockDirective, NodeHtmlTemplateMockDirective } from './directive-mocks/template-mock.directive';
10
- export declare const VflowMocks: readonly [typeof VflowMockComponent, typeof HandleMockComponent, typeof ResizableMockComponent, typeof SelectableMockDirective, typeof MiniMapMockComponent, typeof NodeToolbarMockComponent, typeof DragHandleMockDirective, typeof ConnectionControllerMockDirective, typeof NodeHtmlTemplateMockDirective, typeof GroupNodeTemplateMockDirective, typeof EdgeLabelHtmlTemplateMockDirective, typeof EdgeTemplateMockDirective, typeof ConnectionTemplateMockDirective, typeof HandleTemplateMockDirective];
11
+ export declare const VflowMocks: readonly [typeof VflowMockComponent, typeof HandleMockComponent, typeof ResizableMockComponent, typeof SelectableMockDirective, typeof MiniMapMockComponent, typeof NodeToolbarMockComponent, typeof DragHandleMockDirective, typeof ConnectionControllerMockDirective, typeof CustomTemplateEdgeMockComponent, typeof NodeHtmlTemplateMockDirective, typeof GroupNodeTemplateMockDirective, typeof EdgeLabelHtmlTemplateMockDirective, typeof EdgeTemplateMockDirective, typeof ConnectionTemplateMockDirective, typeof HandleTemplateMockDirective];
@@ -1,24 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class HandleMockComponent {
4
- constructor() {
5
- this.position = input.required();
6
- this.type = input.required();
7
- this.id = input();
8
- this.template = input();
9
- }
10
- // eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
11
- ngOnInit() { }
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HandleMockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: HandleMockComponent, isStandalone: true, selector: "handle", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14
- }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HandleMockComponent, decorators: [{
16
- type: Component,
17
- args: [{
18
- selector: 'handle',
19
- template: '',
20
- changeDetection: ChangeDetectionStrategy.OnPush,
21
- standalone: true,
22
- }]
23
- }] });
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFuZGxlLW1vY2suY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXZmbG93LWxpYi9zcmMvbGliL3ZmbG93L3Rlc3RpbmctdXRpbHMvY29tcG9uZW50LW1vY2tzL2hhbmRsZS1tb2NrLmNvbXBvbmVudC50cyJdLCJuYW1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naGFuZGxlJyxcbiAgdGVtcGxhdGU6ICcnLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbn0pXG5leHBvcnQgY2xhc3MgSGFuZGxlTW9ja0NvbXBvbmVudCBpbXBsZW1lbnRzIEFzSW50ZXJmYWNlPEhhbmRsZUNvbXBvbmVudD4sIE9uSW5pdCB7XG4gIHB1YmxpYyBwb3NpdGlvbiA9IGlucHV0LnJlcXVpcmVkPFBvc2l0aW9uPigpO1xuICBwdWJsaWMgdHlwZSA9IGlucHV0LnJlcXVpcmVkPCdzb3VyY2UnIHwgJ3RhcmdldCc+KCk7XG4gIHB1YmxpYyBpZCA9IGlucHV0PHN0cmluZz4oKTtcbiAgcHVibGljIHRlbXBsYXRlID0gaW5wdXQ8VGVtcGxhdGVSZWY8YW55Pj4oKTtcblxuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQGFuZ3VsYXItZXNsaW50L25vLWVtcHR5LWxpZmVjeWNsZS1tZXRob2RcbiAgcHVibGljIG5nT25Jbml0KCk6IHZvaWQge31cbn1cbiJdfQ==
@@ -1,23 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class NodeToolbarMockComponent {
4
- constructor() {
5
- this.position = input('top');
6
- }
7
- // eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
8
- ngOnInit() { }
9
- // eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
10
- ngOnDestroy() { }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NodeToolbarMockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
12
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: NodeToolbarMockComponent, isStandalone: true, selector: "node-toolbar", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13
- }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NodeToolbarMockComponent, decorators: [{
15
- type: Component,
16
- args: [{
17
- selector: 'node-toolbar',
18
- template: '<ng-content />',
19
- standalone: true,
20
- changeDetection: ChangeDetectionStrategy.OnPush,
21
- }]
22
- }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS10b29sYmFyLW1vY2suY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXZmbG93LWxpYi9zcmMvbGliL3ZmbG93L3Rlc3RpbmctdXRpbHMvY29tcG9uZW50LW1vY2tzL25vZGUtdG9vbGJhci1tb2NrLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBcUIsTUFBTSxlQUFlLENBQUM7O0FBVzdGLE1BQU0sT0FBTyx3QkFBd0I7SUFOckM7UUFPUyxhQUFRLEdBQUcsS0FBSyxDQUFXLEtBQUssQ0FBQyxDQUFDO0tBTzFDO0lBTEMscUVBQXFFO0lBQzlELFFBQVEsS0FBSSxDQUFDO0lBRXBCLHFFQUFxRTtJQUM5RCxXQUFXLEtBQUksQ0FBQzsrR0FQWix3QkFBd0I7bUdBQXhCLHdCQUF3QixxTkFKekIsZ0JBQWdCOzs0RkFJZix3QkFBd0I7a0JBTnBDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLGNBQWM7b0JBQ3hCLFFBQVEsRUFBRSxnQkFBZ0I7b0JBQzFCL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BAYW5ndWxhci1lc2xpbnQvbm8tZW1wdHktbGlmZWN5Y2xlLW1ldGhvZFxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKSB7fVxufVxuIl19
@@ -1,25 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class ResizableMockComponent {
4
- constructor() {
5
- this.resizable = input();
6
- this.resizerColor = input('#2e414c');
7
- this.gap = input(1.5);
8
- }
9
- // eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
10
- ngOnInit() { }
11
- // eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
12
- ngAfterViewInit() { }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ResizableMockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: ResizableMockComponent, isStandalone: true, selector: "[resizable]", inputs: { resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, resizerColor: { classPropertyName: "resizerColor", publicName: "resizerColor", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ResizableMockComponent, decorators: [{
17
- type: Component,
18
- args: [{
19
- selector: '[resizable]',
20
- template: '<ng-content />',
21
- standalone: true,
22
- changeDetection: ChangeDetectionStrategy.OnPush,
23
- }]
24
- }] });
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXphYmxlLW1vY2suY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiO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