@metadev/daga-angular 2.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +25 -1
- package/README.md +11 -1
- package/assets/styles/_palette.scss +0 -1
- package/assets/styles/_property-editor.scss +1 -1
- package/assets/styles/daga.scss +7 -7
- package/fesm2022/metadev-daga-angular.mjs +216 -155
- package/fesm2022/metadev-daga-angular.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/lib/diagram/diagram.component.d.ts +16 -5
- package/lib/diagram-editor/diagram-editor.component.d.ts +3 -8
- package/lib/palette/palette.component.d.ts +2 -1
- package/package.json +5 -7
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ACTION_STACK_SIZE, ActionStack, AddConnectionAction, AddNodeAction, AdjacencyLayout, BreadthAdjacencyLayout, BreadthLayout, ButtonsComponentConfig, Canvas, ClosedShape, CollabAction, CollabActionSerialized, CollabClient, CollabTimestamp, CollabTimestampSet, ComponentsConfig, ConnectionMarkerLook, ConnectionTemplateConfig, ConnectionTypeConfig, Corner, DagaExporter, DagaImporter, DagaModel, DiagramAction, DiagramActions, DiagramButtons, DiagramCanvas, DiagramConfig, DiagramConnection, DiagramConnectionSet, DiagramConnectionType, DiagramDecorator, DiagramDecoratorSet, DiagramEditor, DiagramElement, DiagramElementSet, DiagramEntity, DiagramEntitySet, DiagramError, DiagramEvent, DiagramField, DiagramFieldSet, DiagramLayout, DiagramModel, DiagramModelExporter, DiagramModelImporter, DiagramNode, DiagramNodeGeometry, DiagramNodeSet, DiagramNodeType, DiagramObject, DiagramObjectSet, DiagramPort, DiagramPortSet, DiagramSection, DiagramSectionGeometry, DiagramSectionSet, DiagramValidator, EditFieldAction, ErrorsComponentConfig, FieldConfig, ForceLayout, HorizontalAlign, HorizontalLayout, Line, LineShape, LineStyle, NodeImageLook, NodeShapedLook, NodeStretchableImageLook, NodeTemplateConfig, NodeTypeConfig, Palette, PaletteComponentConfig, PaletteSectionConfig, Point, PortConfig, PriorityLayout, Property, PropertyEditor, PropertyEditorComponentConfig, PropertySet, Rectangle, RemoveAction, SectionConfig, SectionGridConfig, SetGeometryAction, Side, TreeLayout, Type, UpdateValuesAction, UserActionConfig, ValueSet, VerticalAlign, VerticalLayout
|
|
1
|
+
export { ACTION_STACK_SIZE, ActionStack, AddConnectionAction, AddNodeAction, AdjacencyLayout, ApplyLayoutAction, BreadthAdjacencyLayout, BreadthLayout, ButtonsComponentConfig, Canvas, ClosedShape, CollabAction, CollabActionSerialized, CollabClient, CollabTimestamp, CollabTimestampSet, ComponentsConfig, ConnectionMarkerLook, ConnectionTemplateConfig, ConnectionTypeConfig, Corner, DagaExporter, DagaImporter, DagaModel, DiagramAction, DiagramActionMethod, DiagramActions, DiagramButtons, DiagramCanvas, DiagramConfig, DiagramConnection, DiagramConnectionSet, DiagramConnectionType, DiagramDecorator, DiagramDecoratorSet, DiagramDoubleClickEvent, DiagramEditor, DiagramElement, DiagramElementSet, DiagramEntity, DiagramEntitySet, DiagramError, DiagramEvent, DiagramEvents, DiagramField, DiagramFieldSet, DiagramLayout, DiagramModel, DiagramModelExporter, DiagramModelImporter, DiagramNode, DiagramNodeGeometry, DiagramNodeSet, DiagramNodeType, DiagramObject, DiagramObjectSet, DiagramPort, DiagramPortSet, DiagramSecondaryClickEvent, DiagramSection, DiagramSectionGeometry, DiagramSectionSet, DiagramValidator, EditFieldAction, ErrorsComponentConfig, FieldConfig, ForceLayout, getLocationsOfNodes, HorizontalAlign, HorizontalLayout, layouts, Line, LineShape, LineStyle, MoveAction, NodeImageLook, NodeShapedLook, NodeStretchableImageLook, NodeTemplateConfig, NodeTypeConfig, Palette, PaletteComponentConfig, PaletteSectionConfig, PasteAction, Point, PortConfig, PriorityLayout, Property, PropertyEditor, PropertyEditorComponentConfig, PropertySet, Rectangle, RemoveAction, SectionConfig, SectionGridConfig, SetGeometryAction, SetParentAction, Side, TreeLayout, Type, UpdateValuesAction, UserActionConfig, ValueSet, VerticalAlign, VerticalLayout } from '@metadev/daga';
|
|
2
2
|
export { CollapseButtonComponent } from './lib/collapse-button/collapse-button.component';
|
|
3
3
|
export { DagaModule } from './lib/daga.module';
|
|
4
4
|
export { DiagramButtonsComponent } from './lib/diagram-buttons/diagram-buttons.component';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DagaModel, DiagramConfig } from '@metadev/daga';
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Canvas, DagaModel, DiagramConfig, DiagramEvent } from '@metadev/daga';
|
|
3
|
+
import { DiagramEditorComponent } from '../diagram-editor/diagram-editor.component';
|
|
3
4
|
import { CanvasProviderService } from '../services/canvas-provider.service';
|
|
4
5
|
import { DagaConfigurationService } from '../services/daga-configuration.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -8,9 +9,10 @@ import * as i0 from "@angular/core";
|
|
|
8
9
|
* This component defines a {@link DagaConfigurationService} and a {@link CanvasProviderService}, which is shared by all the components within and allows accessing the configuration and the canvas of this component's diagram, respectively.
|
|
9
10
|
* @public
|
|
10
11
|
*/
|
|
11
|
-
export declare class DiagramComponent implements
|
|
12
|
+
export declare class DiagramComponent implements AfterViewInit, OnInit {
|
|
12
13
|
private configurationService;
|
|
13
14
|
private canvasProvider;
|
|
15
|
+
editor: DiagramEditorComponent;
|
|
14
16
|
/**
|
|
15
17
|
* Configuration for the diagram.
|
|
16
18
|
* @public
|
|
@@ -19,6 +21,11 @@ export declare class DiagramComponent implements AfterContentInit, AfterViewInit
|
|
|
19
21
|
private importer;
|
|
20
22
|
private exporter;
|
|
21
23
|
private _model;
|
|
24
|
+
/**
|
|
25
|
+
* Getter for the canvas of this diagram.
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
get canvas(): Canvas;
|
|
22
29
|
/**
|
|
23
30
|
* Serialized model for the diagram. Used for data binding to the model.
|
|
24
31
|
* @public
|
|
@@ -34,10 +41,14 @@ export declare class DiagramComponent implements AfterContentInit, AfterViewInit
|
|
|
34
41
|
* @public
|
|
35
42
|
*/
|
|
36
43
|
modelChange: EventEmitter<DagaModel>;
|
|
44
|
+
/**
|
|
45
|
+
* Output for user events on the diagram.
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
diagramEvent: EventEmitter<DiagramEvent>;
|
|
37
49
|
constructor(configurationService: DagaConfigurationService, canvasProvider: CanvasProviderService);
|
|
38
50
|
ngOnInit(): void;
|
|
39
|
-
ngAfterContentInit(): void;
|
|
40
51
|
ngAfterViewInit(): void;
|
|
41
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<DiagramComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DiagramComponent, "daga-diagram", never, { "config": { "alias": "config"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; }, never, ["*"], true, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiagramComponent, "daga-diagram", never, { "config": { "alias": "config"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; "diagramEvent": "diagramEvent"; }, never, ["*"], true, never>;
|
|
43
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef,
|
|
2
|
-
import { Canvas, Corner, DiagramConfig, DiagramEditor,
|
|
1
|
+
import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { Canvas, Corner, DiagramConfig, DiagramEditor, Side } from '@metadev/daga';
|
|
3
3
|
import { DiagramButtonsComponent } from '../diagram-buttons/diagram-buttons.component';
|
|
4
4
|
import { PaletteComponent } from '../palette/palette.component';
|
|
5
5
|
import { PropertyEditorComponent } from '../property-editor/property-editor.component';
|
|
@@ -17,11 +17,6 @@ export declare class DiagramEditorComponent implements AfterViewInit, DiagramEdi
|
|
|
17
17
|
diagramButtons: DiagramButtonsComponent;
|
|
18
18
|
palette: PaletteComponent;
|
|
19
19
|
propertyEditor: PropertyEditorComponent;
|
|
20
|
-
/**
|
|
21
|
-
* Output for user events on the diagram's model.
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
modelEvent: EventEmitter<DiagramEvent>;
|
|
25
20
|
get config(): DiagramConfig;
|
|
26
21
|
get canvas(): Canvas;
|
|
27
22
|
Corner: typeof Corner;
|
|
@@ -30,5 +25,5 @@ export declare class DiagramEditorComponent implements AfterViewInit, DiagramEdi
|
|
|
30
25
|
ngOnInit(): void;
|
|
31
26
|
ngAfterViewInit(): void;
|
|
32
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DiagramEditorComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DiagramEditorComponent, "daga-diagram-editor", never, {}, {
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiagramEditorComponent, "daga-diagram-editor", never, {}, {}, never, never, true, never>;
|
|
34
29
|
}
|
|
@@ -19,6 +19,7 @@ export declare class PaletteComponent implements AfterContentInit, AfterViewInit
|
|
|
19
19
|
location: Corner;
|
|
20
20
|
direction: Side;
|
|
21
21
|
width: string;
|
|
22
|
+
gap: string;
|
|
22
23
|
private priorityThreshold?;
|
|
23
24
|
constructor(canvasProvider: CanvasProviderService);
|
|
24
25
|
ngAfterContentInit(): void;
|
|
@@ -32,5 +33,5 @@ export declare class PaletteComponent implements AfterContentInit, AfterViewInit
|
|
|
32
33
|
private appendNodeTemplate;
|
|
33
34
|
private appendConnectionTemplate;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaletteComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaletteComponent, "daga-palette", never, { "palettes": { "alias": "palettes"; "required": false; }; "currentPalette": { "alias": "currentPalette"; "required": false; }; "currentCategory": { "alias": "currentCategory"; "required": false; }; "location": { "alias": "location"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaletteComponent, "daga-palette", never, { "palettes": { "alias": "palettes"; "required": false; }; "currentPalette": { "alias": "currentPalette"; "required": false; }; "currentCategory": { "alias": "currentCategory"; "required": false; }; "location": { "alias": "location"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "width": { "alias": "width"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
37
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metadev/daga-angular",
|
|
3
3
|
"description": "Diagramming engine for editing models on the Web. Made by Metadev.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"author": "Metadev (https://metadev.pro)",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
7
|
"repository": "git+https://github.com/metadevpro/daga-tutorial.git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"angular"
|
|
19
19
|
],
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@angular/common": "^
|
|
22
|
-
"@angular/core": "^
|
|
23
|
-
"@angular/forms": "^
|
|
24
|
-
"@metadev/daga": "^
|
|
21
|
+
"@angular/common": "^19.0.5",
|
|
22
|
+
"@angular/core": "^19.0.5",
|
|
23
|
+
"@angular/forms": "^19.0.5",
|
|
24
|
+
"@metadev/daga": "^3.1.0",
|
|
25
25
|
"d3": "^7.9.0",
|
|
26
26
|
"rxjs": "~7.8.1"
|
|
27
27
|
},
|
|
@@ -44,8 +44,6 @@
|
|
|
44
44
|
},
|
|
45
45
|
".": {
|
|
46
46
|
"types": "./index.d.ts",
|
|
47
|
-
"esm2022": "./esm2022/metadev-daga-angular.mjs",
|
|
48
|
-
"esm": "./esm2022/metadev-daga-angular.mjs",
|
|
49
47
|
"default": "./fesm2022/metadev-daga-angular.mjs"
|
|
50
48
|
}
|
|
51
49
|
},
|