@metadev/daga-angular 4.1.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,42 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { Canvas, Corner, DiagramConfig, Palette, PaletteSectionConfig, Side } from '@metadev/daga';
3
- import * as d3 from 'd3';
4
- import { CanvasProviderService } from '../services/canvas-provider.service';
5
- import { DagaConfigurationService } from '../services/daga-configuration.service';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Palette that the user can drag and drop nodes from.
9
- * @private
10
- * @see DiagramConfig
11
- * @see DiagramNode
12
- */
13
- export declare class PaletteComponent implements Palette, OnInit, AfterViewInit, OnDestroy {
14
- private canvasProvider;
15
- private configService;
16
- get canvas(): Canvas;
17
- panel: ElementRef<HTMLDivElement>;
18
- palettes: PaletteSectionConfig[];
19
- currentPalette: PaletteSectionConfig;
20
- currentCategory: string;
21
- location: Corner;
22
- direction: Side;
23
- width: string;
24
- gap: string;
25
- private priorityThreshold?;
26
- private sub?;
27
- constructor(canvasProvider: CanvasProviderService, configService: DagaConfigurationService);
28
- ngOnInit(): void;
29
- ngAfterViewInit(): void;
30
- ngOnDestroy(): void;
31
- init(config: DiagramConfig): void;
32
- refreshPalette(): void;
33
- switchPalette(palette: PaletteSectionConfig): void;
34
- selectPanel(): d3.Selection<HTMLDivElement, unknown, null, undefined>;
35
- selectPalette(): d3.Selection<HTMLDivElement, unknown, null, undefined>;
36
- private appendCategories;
37
- private appendTemplate;
38
- private appendNodeTemplate;
39
- private appendConnectionTemplate;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<PaletteComponent, never>;
41
- 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>;
42
- }
@@ -1,37 +0,0 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
2
- import { Option } from '@metadev/daga';
3
- import * as i0 from "@angular/core";
4
- export declare const LOST_FOCUS_TIME_WINDOW_MS = 200;
5
- /**
6
- * Combobox with autocomplete.
7
- * @private
8
- * @see PropertyEditor
9
- * @see ValueSet
10
- */
11
- export declare class AutocompleteComponent {
12
- mainElement: ElementRef;
13
- private _value;
14
- set value(value: unknown);
15
- get value(): unknown;
16
- valueInput: string;
17
- focusIndex?: number;
18
- options: Option<unknown>[];
19
- currentOptions: Option<unknown>[];
20
- currentLabelStarts: string[];
21
- currentLabelMatches: string[];
22
- currentLabelEnds: string[];
23
- disabled: boolean;
24
- showOptions: boolean;
25
- valueChange: EventEmitter<unknown>;
26
- getLabelOfValue(value: unknown): string;
27
- onKeyUp(event: KeyboardEvent): void;
28
- openOptions(): void;
29
- closeOptions(): void;
30
- focusOnOption(index: number | undefined): void;
31
- onLostFocus(): void;
32
- scrollToOption(index: number): void;
33
- clearInput(): void;
34
- complete(option: Option<unknown>): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "daga-autocomplete", never, { "value": { "alias": "value"; "required": false; }; "valueInput": { "alias": "valueInput"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
37
- }
@@ -1,29 +0,0 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { Canvas, Property, Type, ValueSet } from '@metadev/daga';
3
- import { CanvasProviderService } from '../../services/canvas-provider.service';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Editor of a value set within a property editor.
7
- * @private
8
- * @see PropertyEditor
9
- * @see ValueSet
10
- */
11
- export declare class ObjectEditorComponent {
12
- private cdr;
13
- private canvasProvider;
14
- get canvas(): Canvas;
15
- get userCanEdit(): boolean;
16
- _valueSet?: ValueSet;
17
- get valueSet(): ValueSet | undefined;
18
- set valueSet(valueSet: ValueSet | undefined);
19
- /** How many object-editor elements are parents of this object-editor element. @private */
20
- depth: number;
21
- Type: typeof Type;
22
- getStyleClassName: (s: string) => string;
23
- constructor(cdr: ChangeDetectorRef, canvasProvider: CanvasProviderService);
24
- setValue(property: Property, value: unknown): void;
25
- dateToLocalDatetimeString(date: string | number | Date | null | undefined): string;
26
- localDatetimeStringToDate(string: string): Date;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<ObjectEditorComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<ObjectEditorComponent, "daga-object-editor", never, { "valueSet": { "alias": "valueSet"; "required": false; }; "depth": { "alias": "depth"; "required": false; }; }, {}, never, never, true, never>;
29
- }
@@ -1,33 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { Option } from '@metadev/daga';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Editor of a property of text list type within a property editor.
6
- * @private
7
- * @see Type.TextList
8
- * @see PropertyEditor
9
- * @see ValueSet
10
- */
11
- export declare class OptionListEditorComponent {
12
- private cdr;
13
- private _value;
14
- set value(value: unknown[]);
15
- get value(): unknown[];
16
- labelsOfValue: string[];
17
- options: Option<unknown>[];
18
- valueInput?: unknown;
19
- allowRepeats: boolean;
20
- optionsNotPresentInValue: Option<unknown>[];
21
- disabled: boolean;
22
- valueChange: EventEmitter<unknown[]>;
23
- constructor(cdr: ChangeDetectorRef);
24
- getLabelOfValue(value: unknown): string;
25
- hasValue(value: unknown): boolean;
26
- removeFromValue(index: number): void;
27
- addToValue(): void;
28
- clearInput(): void;
29
- updateOptionsNotPresentInValue(): void;
30
- onKeyUp(event: KeyboardEvent): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<OptionListEditorComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<OptionListEditorComponent, "daga-option-list-editor", never, { "value": { "alias": "value"; "required": false; }; "options": { "alias": "options"; "required": false; }; "valueInput": { "alias": "valueInput"; "required": false; }; "allowRepeats": { "alias": "allowRepeats"; "required": false; }; "optionsNotPresentInValue": { "alias": "optionsNotPresentInValue"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
33
- }
@@ -1,35 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { Corner, DiagramConfig, PropertyEditor, Side, ValueSet } from '@metadev/daga';
3
- import * as d3 from 'd3';
4
- import { DagaConfigurationService } from '../services/daga-configuration.service';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Editor of the values of a value set.
8
- * @private
9
- * @see ValueSet
10
- */
11
- export declare class PropertyEditorComponent implements PropertyEditor, OnInit, AfterViewInit, OnDestroy {
12
- private cdr;
13
- private configService;
14
- panel: ElementRef<HTMLDivElement>;
15
- location: Corner;
16
- direction: Side;
17
- width: string;
18
- title?: string;
19
- _valueSet: ValueSet | undefined;
20
- get valueSet(): ValueSet | undefined;
21
- set valueSet(valueSet: ValueSet | undefined);
22
- settings?: boolean;
23
- private sub?;
24
- constructor(cdr: ChangeDetectorRef, configService: DagaConfigurationService);
25
- ngOnInit(): void;
26
- ngAfterViewInit(): void;
27
- ngOnDestroy(): void;
28
- init(config: DiagramConfig): void;
29
- setPanelWidth(): void;
30
- selectPanel(): d3.Selection<HTMLDivElement, unknown, null, undefined>;
31
- highlightProperty(...propertyNames: string[]): void;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<PropertyEditorComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<PropertyEditorComponent, "daga-property-editor", never, { "valueSet": { "alias": "valueSet"; "required": false; }; }, {}, never, never, true, never>;
34
- }
35
- export declare const getStyleClassName: (s: string) => string;
@@ -1,33 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
- import { Canvas, Point, Property, Type, ValueSet } from '@metadev/daga';
3
- import { CanvasProviderService } from '../../services/canvas-provider.service';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Editor of the settings of a property editor, such as what properties are displayed and hidden and in what order.
7
- * @private
8
- * @see PropertyEditor
9
- * @see ValueSet
10
- */
11
- export declare class PropertySettingsComponent implements AfterViewInit {
12
- private element;
13
- private cdr;
14
- private canvasProvider;
15
- get canvas(): Canvas;
16
- _valueSet?: ValueSet;
17
- get valueSet(): ValueSet | undefined;
18
- set valueSet(valueSet: ValueSet | undefined);
19
- /** How many property-settings elements are parents of this property-settings element. @private */
20
- depth: number;
21
- Type: typeof Type;
22
- getStyleClassName: (s: string) => string;
23
- asString: (value: unknown) => string;
24
- constructor(element: ElementRef, cdr: ChangeDetectorRef, canvasProvider: CanvasProviderService);
25
- ngAfterViewInit(): void;
26
- private addListeners;
27
- getClosestDropbarIndex(pointerCoords: Point): number;
28
- displayProperty(property: Property | Event | string | undefined): void;
29
- hideProperty(property: Property | Event | string | undefined): void;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<PropertySettingsComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<PropertySettingsComponent, "daga-property-settings", never, { "valueSet": { "alias": "valueSet"; "required": false; }; "depth": { "alias": "depth"; "required": false; }; }, {}, never, never, true, never>;
32
- }
33
- export declare const asString: (value: unknown) => string;
@@ -1,29 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Editor of a property of text list type within a property editor.
5
- * @private
6
- * @see Type.TextList
7
- * @see PropertyEditor
8
- * @see ValueSet
9
- */
10
- export declare class TextListEditorComponent {
11
- private cdr;
12
- private _value;
13
- set value(value: string[]);
14
- get value(): string[];
15
- valueInput: string;
16
- allowRepeats: boolean;
17
- disabled: boolean;
18
- valueChange: EventEmitter<string[]>;
19
- constructor(cdr: ChangeDetectorRef);
20
- getValueFromEvent(event: Event): string;
21
- hasValue(value: string): boolean;
22
- removeFromValue(index: number): void;
23
- editFromValue(item: string, index: number): void;
24
- addToValue(): void;
25
- clearInput(): void;
26
- onKeyUp(event: KeyboardEvent): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<TextListEditorComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<TextListEditorComponent, "daga-text-list-editor", never, { "value": { "alias": "value"; "required": false; }; "valueInput": { "alias": "valueInput"; "required": false; }; "allowRepeats": { "alias": "allowRepeats"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
29
- }
@@ -1,36 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Editor of a property of text map type within a property editor.
5
- * @private
6
- * @see Type.TextMap
7
- * @see PropertyEditor
8
- * @see ValueSet
9
- */
10
- export declare class TextMapEditorComponent {
11
- private cdr;
12
- private _value;
13
- set value(value: {
14
- [name: string]: string;
15
- });
16
- get value(): {
17
- [name: string]: string;
18
- };
19
- keyInput: string;
20
- valueInput: string;
21
- disabled: boolean;
22
- valueChange: EventEmitter<{
23
- [name: string]: string;
24
- }>;
25
- constructor(cdr: ChangeDetectorRef);
26
- getValueFromEvent(event: Event): string;
27
- removeFromValue(key: string): void;
28
- editKey(oldKey: string, newKey: string): void;
29
- editValue(key: string, value: string): void;
30
- addToValue(): void;
31
- clearKeyInput(): void;
32
- clearValueInput(): void;
33
- onKeyUp(event: KeyboardEvent): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<TextMapEditorComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<TextMapEditorComponent, "daga-text-map-editor", never, { "value": { "alias": "value"; "required": false; }; "keyInput": { "alias": "keyInput"; "required": false; }; "valueInput": { "alias": "valueInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
36
- }
@@ -1,42 +0,0 @@
1
- import { Canvas, DiagramConfig, DiagramEditor } from '@metadev/daga';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A provider for the {@link Canvas} associated with a {@link DiagramComponent} context.
5
- * @public
6
- */
7
- export declare class CanvasProviderService {
8
- private _canvas;
9
- private canvasSubject$;
10
- /**
11
- * Subject used to track when the canvas has been updated.
12
- * @public
13
- */
14
- canvas$: import("rxjs").Observable<Canvas>;
15
- private viewInitializedSubject$;
16
- /**
17
- * Subject used to track when the view of the canvas has been updated after updating the canvas.
18
- * @public
19
- */
20
- viewInitialized$: import("rxjs").Observable<Canvas>;
21
- /**
22
- * Initialize the diagram canvas object of this context using the given diagram configuration.
23
- * @private
24
- * @param parentComponent A diagram editor.
25
- * @param config A diagram configuration.
26
- */
27
- initCanvas(parentComponent: DiagramEditor, config: DiagramConfig): void;
28
- /**
29
- * Attach the canvas of this context to an HTML element to render it there.
30
- * @private
31
- * @param appendTo An HTML element.
32
- */
33
- initCanvasView(appendTo: HTMLElement): void;
34
- /**
35
- * Get the current canvas of this context.
36
- * @public
37
- * @returns A canvas.
38
- */
39
- getCanvas(): Canvas;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<CanvasProviderService, never>;
41
- static ɵprov: i0.ɵɵInjectableDeclaration<CanvasProviderService>;
42
- }
@@ -1,29 +0,0 @@
1
- import { DiagramConfig } from '@metadev/daga';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A provider for the {@link DiagramConfig} associated with a {@link DiagramComponent} context.
5
- * @public
6
- */
7
- export declare class DagaConfigurationService {
8
- private _config;
9
- private configSubject$;
10
- /**
11
- * Subject used to track when the diagram configuration has been updated.
12
- * @public
13
- */
14
- config$: import("rxjs").Observable<DiagramConfig>;
15
- /**
16
- * Set the diagram configuration of this context.
17
- * @private
18
- * @param config A diagram configuration.
19
- */
20
- init(config: DiagramConfig): void;
21
- /**
22
- * Get the current diagram configuration of this context.
23
- * @public
24
- * @returns A diagram configuration.
25
- */
26
- getConfig(): DiagramConfig;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DagaConfigurationService, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<DagaConfigurationService>;
29
- }