Commit dc8dc273 authored by Igor Kulikov's avatar Igor Kulikov

Angular 12 migration

parent 078bfd2c
...@@ -2,11 +2,15 @@ ...@@ -2,11 +2,15 @@
# For additional information regarding the format and rule options, please see: # For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries # https://github.com/browserslist/browserslist#queries
# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support
# You can see what browsers were selected by your queries by running: # You can see what browsers were selected by your queries by running:
# npx browserslist # npx browserslist
> 0.5% last 1 Chrome version
last 2 versions last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
\ No newline at end of file
...@@ -4,25 +4,28 @@ ...@@ -4,25 +4,28 @@
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"ngx-flowchart-demo": { "ngx-flowchart-demo": {
"root": "",
"sourceRoot": "src",
"projectType": "application", "projectType": "application",
"prefix": "app",
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
"style": "scss" "style": "scss"
},
"@schematics/angular:application": {
"strict": true
} }
}, },
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"outputPath": "dist/ngx-flowchart-demo", "outputPath": "dist/ngx-flowchart-demo",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
...@@ -131,20 +134,27 @@ ...@@ -131,20 +134,27 @@
"root": "projects/ngx-flowchart", "root": "projects/ngx-flowchart",
"sourceRoot": "projects/ngx-flowchart/src", "sourceRoot": "projects/ngx-flowchart/src",
"prefix": "fc", "prefix": "fc",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@angular-devkit/build-angular:ng-packagr",
"options": { "options": {
"tsConfig": "projects/ngx-flowchart/tsconfig.lib.json",
"project": "projects/ngx-flowchart/ng-package.json" "project": "projects/ngx-flowchart/ng-package.json"
}, },
"configurations": { "configurations": {
"production": { "production": {
"tsConfig": "projects/ngx-flowchart/tsconfig.lib.prod.json", "tsConfig": "projects/ngx-flowchart/tsconfig.lib.prod.json"
"project": "projects/ngx-flowchart/ng-package.prod.json" },
} "development": {
"tsConfig": "projects/ngx-flowchart/tsconfig.lib.json"
} }
}, },
"defaultConfiguration": "production"
},
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-devkit/build-angular:karma",
"options": { "options": {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { FlowchartConstants } from './ngx-flowchart.models'; import { FlowchartConstants } from './ngx-flowchart.models';
import * as i0 from "@angular/core";
export class FcEdgeDrawingService { export class FcEdgeDrawingService {
constructor() { constructor() {
} }
...@@ -37,8 +38,9 @@ export class FcEdgeDrawingService { ...@@ -37,8 +38,9 @@ export class FcEdgeDrawingService {
}; };
} }
} }
FcEdgeDrawingService.decorators = [ FcEdgeDrawingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: FcEdgeDrawingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
{ type: Injectable } FcEdgeDrawingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: FcEdgeDrawingService });
]; i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: FcEdgeDr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XG4gIH1cblxuICBwdWJsaWMgZ2V0RWRnZUNlbnRlcihwdDE6IEZjQ29vcmRzLCBwdDI6IEZjQ29vcmRzKTogRmNDb29yZHMge1xuICAgIHJldHVybiB7XG4gICAgICB4OiAocHQxLnggKyBwdDIueCkgLyAyLFxuICAgICAgeTogKHB0MS55ICsgcHQyLnkpIC8gMlxuICAgIH07XG4gIH1cblxuICBwcml2YXRlIGNvbXB1dGVFZGdlVGFuZ2VudE9mZnNldChwdDE6IEZjQ29vcmRzLCBwdDI6IEZjQ29vcmRzKTogbnVtYmVyIHtcbiAgICByZXR1cm4gKHB0Mi55IC0gcHQxLnkpIC8gMjtcbiAgfVxuXG4gIHByaXZhdGUgY29tcHV0ZUVkZ2VTb3VyY2VUYW5nZW50KHB0MTogRmNDb29yZHMsIHB0MjogRmNDb29yZHMpOiBGY0Nvb3JkcyB7XG4gICAgcmV0dXJuIHtcbiAgICAgIHg6IHB0MS54LFxuICAgICAgeTogcHQxLnkgKyB0aGlzLmNvbXB1dGVFZGdlVGFuZ2VudE9mZnNldChwdDEsIHB0MilcbiAgICB9O1xuICB9XG5cbiAgcHJpdmF0ZSBjb21wdXRlRWRnZURlc3RpbmF0aW9uVGFuZ2VudChwdDE6IEZjQ29vcmRzLCBwdDI6IEZjQ29vcmRzKTogRmNDb29yZHMge1xuICAgIHJldHVybiB7XG4gICAgICB4OiBwdDIueCxcbiAgICAgIHk6IHB0Mi55IC0gdGhpcy5jb21wdXRlRWRnZVRhbmdlbnRPZmZzZXQocHQxLCBwdDIpXG4gICAgfTtcbiAgfVxuXG59XG4iXX0= }], ctorParameters: function () { return []; } });
\ No newline at end of file //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRnZS1kcmF3aW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtZmxvd2NoYXJ0L3NyYy9saWIvZWRnZS1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IChwdDEueSArIHB0Mi55KSAvIDJcbiAgICB9O1xuICB9XG5cbiAgcHJpdmF0ZSBjb21wdXRlRWRnZVRhbmdlbnRPZmZzZXQocHQxOiBGY0Nvb3JkcywgcHQyOiBGY0Nvb3Jkcyk6IG51bWJlciB7XG4gICAgcmV0dXJuIChwdDIueSAtIHB0MS55KSAvIDI7XG4gIH1cblxuICBwcml2YXRlIGNvbXB1dGVFZGdlU291cmNlVGFuZ2VudChwdDE6IEZjQ29vcmRzLCBwdDI6IEZjQ29vcmRzKTogRmNDb29yZHMge1xuICAgIHJldHVybiB7XG4gICAgICB4OiBwdDEueCxcbiAgICAgIHk6IHB0MS55ICsgdGhpcy5jb21wdXRlRWRnZVRhbmdlbnRPZmZzZXQocHQxLCBwdDIpXG4gICAgfTtcbiAgfVxuXG4gIHByaXZhdGUgY29tcHV0ZUVkZ2VEZXN0aW5hdGlvblRhbmdlbnQocHQxOiBGY0Nvb3JkcywgcHQyOiBGY0Nvb3Jkcyk6IEZjQ29vcmRzIHtcbiAgICByZXR1cm4ge1xuICAgICAgeDogcHQyLngsXG4gICAgICB5OiBwdDIueSAtIHRoaXMuY29tcHV0ZUVkZ2VUYW5nZW50T2Zmc2V0KHB0MSwgcHQyKVxuICAgIH07XG4gIH1cblxufVxuIl19
\ No newline at end of file
import { Directive, ElementRef, HostListener, Input } from '@angular/core'; import { Directive, ElementRef, HostListener, Input } from '@angular/core';
import { FlowchartConstants } from './ngx-flowchart.models'; import { FlowchartConstants } from './ngx-flowchart.models';
import * as i0 from "@angular/core";
export class FcMagnetDirective { export class FcMagnetDirective {
constructor(elementRef) { constructor(elementRef) {
this.elementRef = elementRef; this.elementRef = elementRef;
...@@ -21,21 +22,29 @@ export class FcMagnetDirective { ...@@ -21,21 +22,29 @@ export class FcMagnetDirective {
this.callbacks.edgeDragend(event); this.callbacks.edgeDragend(event);
} }
} }
FcMagnetDirective.decorators = [ FcMagnetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: FcMagnetDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
{ type: Directive, args: [{ FcMagnetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: FcMagnetDirective, selector: "[fc-magnet]", inputs: { callbacks: "callbacks", connector: "connector" }, host: { listeners: { "dragover": "dragover($event)", "dragleave": "dragleave($event)", "drop": "drop($event)", "dragend": "dragend($event)" } }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: FcMagnetDirective, decorators: [{
type: Directive,
args: [{
// tslint:disable-next-line:directive-selector // tslint:disable-next-line:directive-selector
selector: '[fc-magnet]' selector: '[fc-magnet]'
},] } }]
]; }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { callbacks: [{
FcMagnetDirective.ctorParameters = () => [ type: Input
{ type: ElementRef } }], connector: [{
]; type: Input
FcMagnetDirective.propDecorators = { }], dragover: [{
callbacks: [{ type: Input }], type: HostListener,
connector: [{ type: Input }], args: ['dragover', ['$event']]
dragover: [{ type: HostListener, args: ['dragover', ['$event'],] }], }], dragleave: [{
dragleave: [{ type: HostListener, args: ['dragleave', ['$event'],] }], type: HostListener,
drop: [{ type: HostListener, args: ['drop', ['$event'],] }], args: ['dragleave', ['$event']]
dragend: [{ type: HostListener, args: ['dragend', ['$event'],] }] }], drop: [{
}; type: HostListener,
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnbmV0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1mbG93Y2hhcnQvc3JjL2xpYi9tYWduZXQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsVU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mxvd2NoYXJ0Q29uc3RhbnRzLm1hZ25ldENsYXNzKTtcbiAgfVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2RyYWdvdmVyJywgWyckZXZlbnQnXSlcbiAgZHJhZ292ZXIoZXZlbnQ6IEV2ZW50IHwgYW55KSB7XG4gICAgcmV0dXJuIHRoaXMuY2FsbGJhY2tzLmVkZ2VEcmFnb3Zlck1hZ25ldChldmVudCwgdGhpcy5jb25uZWN0b3IpO1xuICB9XG5cbiAgQEhvc3RMaXN0ZW5lcignZHJhZ2xlYXZlJywgWyckZXZlbnQnXSlcbiAgZHJhZ2xlYXZlKGV2ZW50OiBFdmVudCB8IGFueSkge1xuICAgIHRoaXMuY2FsbGJhY2tzLmVkZ2VEcmFnbGVhdmVNYWduZXQoZXZlbnQpO1xuICB9XG5cbiAgQEhvc3RMaXN0ZW5lcignZHJvcCcsIFsnJGV2ZW50J10pXG4gIGRyb3AoZXZlbnQ6IEV2ZW50IHwgYW55KSB7XG4gICAgcmV0dXJuIHRoaXMuY2FsbGJhY2tzLmVkZ2VEcm9wKGV2ZW50LCB0aGlzLmNvbm5lY3Rvcik7XG4gIH1cblxuICBASG9zdExpc3RlbmVyKCdkcmFnZW5kJywgWyckZXZlbnQnXSlcbiAgZHJhZ2VuZChldmVudDogRXZlbnQgfCBhbnkpIHtcbiAgICB0aGlzLmNhbGxiYWNrcy5lZGdlRHJhZ2VuZChldmVudCk7XG4gIH1cblxufVxuIl19 args: ['drop', ['$event']]
\ No newline at end of file }], dragend: [{
type: HostListener,
args: ['dragend', ['$event']]
}] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnbmV0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1mbG93Y2hhcnQvc3JjL2xpYi9tYWduZXQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibW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XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgY29uc3QgZWxlbWVudCA9ICQodGhpcy5lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQpO1xuICAgIGVsZW1lbnQuYWRkQ2xhc3MoRmxvd2NoYXJ0Q29uc3RhbnRzLm1hZ25ldENsYXNzKTtcbiAgfVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2RyYWdvdmVyJywgWyckZXZlbnQnXSlcbiAgZHJhZ292ZXIoZXZlbnQ6IEV2ZW50IHwgYW55KSB7XG4gICAgcmV0dXJuIHRoaXMuY2FsbGJhY2tzLmVkZ2VEcmFnb3Zlck1hZ25ldChldmVudCwgdGhpcy5jb25uZWN0b3IpO1xuICB9XG5cbiAgQEhvc3RMaXN0ZW5lcignZHJhZ2xlYXZlJywgWyckZXZlbnQnXSlcbiAgZHJhZ2xlYXZlKGV2ZW50OiBFdmVudCB8IGFueSkge1xuICAgIHRoaXMuY2FsbGJhY2tzLmVkZ2VEcmFnbGVhdmVNYWduZXQoZXZlbnQpO1xuICB9XG5cbiAgQEhvc3RMaXN0ZW5lcignZHJvcCcsIFsnJGV2ZW50J10pXG4gIGRyb3AoZXZlbnQ6IEV2ZW50IHwgYW55KSB7XG4gICAgcmV0dXJuIHRoaXMuY2FsbGJhY2tzLmVkZ2VEcm9wKGV2ZW50LCB0aGlzLmNvbm5lY3Rvcik7XG4gIH1cblxuICBASG9zdExpc3RlbmVyKCdkcmFnZW5kJywgWyckZXZlbnQnXSlcbiAgZHJhZ2VuZChldmVudDogRXZlbnQgfCBhbnkpIHtcbiAgICB0aGlzLmNhbGxiYWNrcy5lZGdlRHJhZ2VuZChldmVudCk7XG4gIH1cblxufVxuIl19
\ No newline at end of file
...@@ -8,13 +8,33 @@ import { FcConnectorDirective } from './connector.directive'; ...@@ -8,13 +8,33 @@ import { FcConnectorDirective } from './connector.directive';
import { FcNodeContainerComponent } from './node.component'; import { FcNodeContainerComponent } from './node.component';
import { FC_NODE_COMPONENT_CONFIG } from './ngx-flowchart.models'; import { FC_NODE_COMPONENT_CONFIG } from './ngx-flowchart.models';
import { DefaultFcNodeComponent } from './default-node.component'; import { DefaultFcNodeComponent } from './default-node.component';
const ɵ0 = { import * as i0 from "@angular/core";
nodeComponentType: DefaultFcNodeComponent
};
export class NgxFlowchartModule { export class NgxFlowchartModule {
} }
NgxFlowchartModule.decorators = [ NgxFlowchartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: NgxFlowchartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
{ type: NgModule, args: [{ NgxFlowchartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: NgxFlowchartModule, declarations: [NgxFlowchartComponent,
FcMagnetDirective,
FcConnectorDirective,
FcNodeContainerComponent,
DefaultFcNodeComponent], imports: [CommonModule], exports: [NgxFlowchartComponent,
FcMagnetDirective,
FcConnectorDirective,
DefaultFcNodeComponent] });
NgxFlowchartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: NgxFlowchartModule, providers: [
FcModelValidationService,
FcEdgeDrawingService,
{
provide: FC_NODE_COMPONENT_CONFIG,
useValue: {
nodeComponentType: DefaultFcNodeComponent
}
}
], imports: [[
CommonModule
]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: NgxFlowchartModule, decorators: [{
type: NgModule,
args: [{
entryComponents: [ entryComponents: [
DefaultFcNodeComponent DefaultFcNodeComponent
], ],
...@@ -28,7 +48,9 @@ NgxFlowchartModule.decorators = [ ...@@ -28,7 +48,9 @@ NgxFlowchartModule.decorators = [
FcEdgeDrawingService, FcEdgeDrawingService,
{ {
provide: FC_NODE_COMPONENT_CONFIG, provide: FC_NODE_COMPONENT_CONFIG,
useValue: ɵ0 useValue: {
nodeComponentType: DefaultFcNodeComponent
}
} }
], ],
imports: [ imports: [
...@@ -38,7 +60,6 @@ NgxFlowchartModule.decorators = [ ...@@ -38,7 +60,6 @@ NgxFlowchartModule.decorators = [
FcMagnetDirective, FcMagnetDirective,
FcConnectorDirective, FcConnectorDirective,
DefaultFcNodeComponent] DefaultFcNodeComponent]
},] } }]
]; }] });
export { ɵ0 }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZsb3djaGFydC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtZmxvd2NoYXJ0L3NyYy9saWIvbmd4LWZsb3djaGFydC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNsRSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNyRSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUM5RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdkQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDN0QsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDNUQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDbEUsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7O0FBNkJsRSxNQUFNLE9BQU8sa0JBQWtCOztnSEFBbEIsa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OVF9DT05GSUcsXG4gICAgICB1c2VWYWx1ZToge1xuICAgICAgICBub2RlQ29tcG9uZW50VHlwZTogRGVmYXVsdEZjTm9kZUNvbXBvbmVudFxuICAgICAgfVxuICAgIH1cbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbTmd4Rmxvd2NoYXJ0Q29tcG9uZW50LFxuICAgIEZjTWFnbmV0RGlyZWN0aXZlLFxuICAgIEZjQ29ubmVjdG9yRGlyZWN0aXZlLFxuICAgIERlZmF1bHRGY05vZGVDb21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIE5neEZsb3djaGFydE1vZHVsZSB7IH1cbiJdfQ== \ No newline at end of file
\ No newline at end of file
const regex = /(auto|scroll)/; const regex = /(auto|scroll)/;
const style = (node, prop) => getComputedStyle(node, null).getPropertyValue(prop); const style = (node, prop) => getComputedStyle(node, null).getPropertyValue(prop);
const ɵ0 = style;
const scroll = (node) => regex.test(style(node, 'overflow') + const scroll = (node) => regex.test(style(node, 'overflow') +
style(node, 'overflow-y') + style(node, 'overflow-y') +
style(node, 'overflow-x')); style(node, 'overflow-x'));
const ɵ1 = scroll;
const scrollparent = (node) => !node || node === document.body const scrollparent = (node) => !node || node === document.body
? document.body ? document.body
: scroll(node) : scroll(node)
? node ? node
: scrollparent(node.parentNode); : scrollparent(node.parentNode);
const ɵ2 = scrollparent;
export default scrollparent; export default scrollparent;
export { ɵ0, ɵ1, ɵ2 }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xscGFyZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWZsb3djaGFydC9zcmMvbGliL3Njcm9sbHBhcmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLEtBQUssR0FBRyxlQUFlLENBQUM7QUFF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2,4 @@ ...@@ -2,7 +2,4 @@
* Generated bundle index. Do not edit. * Generated bundle index. Do not edit.
*/ */
export * from './public-api'; export * from './public-api';
export { FcEdgeDrawingService as ɵc } from './lib/edge-drawing.service'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZsb3djaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1mbG93Y2hhcnQvc3JjL25neC1mbG93Y2hhcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
export { FcModelValidationService as ɵb } from './lib/modelvalidation.service'; \ No newline at end of file
export { FcNodeContainerComponent as ɵa } from './lib/node.component';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZsb3djaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1mbG93Y2hhcnQvc3JjL25neC1mbG93Y2hhcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsb0JBQW9CLElBQUksRUFBRSxFQUFDLE1BQU0sNEJBQTRCLENBQUM7QUFDdEUsT0FBTyxFQUFDLHdCQUF3QixJQUFJLEVBQUUsRUFBQyxNQUFNLCtCQUErQixDQUFDO0FBQzdFLE9BQU8sRUFBQyx3QkFBd0IsSUFBSSxFQUFFLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtGY0VkZ2VEcmF3aW5nU2VydmljZSBhcyDJtWN9IGZyb20gJy4vbGliL2VkZ2UtZHJhd2luZy5zZXJ2aWNlJztcbmV4cG9ydCB7RmNNb2RlbFZhbGlkYXRpb25TZXJ2aWNlIGFzIMm1Yn0gZnJvbSAnLi9saWIvbW9kZWx2YWxpZGF0aW9uLnNlcnZpY2UnO1xuZXhwb3J0IHtGY05vZGVDb250YWluZXJDb21wb25lbnQgYXMgybVhfSBmcm9tICcuL2xpYi9ub2RlLmNvbXBvbmVudCc7Il19
\ No newline at end of file
import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { ElementRef } from '@angular/core';
import { FcCallbacks, FcConnector, FcNodeRectInfo } from './ngx-flowchart.models'; import { FcCallbacks, FcConnector, FcNodeRectInfo } from './ngx-flowchart.models';
import { FcModelService } from './model.service'; import { FcModelService } from './model.service';
import * as i0 from "@angular/core";
export declare class FcConnectorDirective implements OnInit, OnChanges { export declare class FcConnectorDirective implements OnInit, OnChanges {
elementRef: ElementRef<HTMLElement>; elementRef: ElementRef<HTMLElement>;
callbacks: FcCallbacks; callbacks: FcCallbacks;
...@@ -19,4 +19,6 @@ export declare class FcConnectorDirective implements OnInit, OnChanges { ...@@ -19,4 +19,6 @@ export declare class FcConnectorDirective implements OnInit, OnChanges {
dragstart(event: Event | any): void; dragstart(event: Event | any): void;
mouseenter(event: MouseEvent): void; mouseenter(event: MouseEvent): void;
mouseleave(event: MouseEvent): void; mouseleave(event: MouseEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FcConnectorDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<FcConnectorDirective, "[fc-connector]", never, { "callbacks": "callbacks"; "modelservice": "modelservice"; "connector": "connector"; "nodeRectInfo": "nodeRectInfo"; "mouseOverConnector": "mouseOverConnector"; }, {}, never>;
} }
import { FcNodeComponent } from './node.component'; import { FcNodeComponent } from './node.component';
import * as i0 from "@angular/core";
export declare class DefaultFcNodeComponent extends FcNodeComponent { export declare class DefaultFcNodeComponent extends FcNodeComponent {
constructor(); constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultFcNodeComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultFcNodeComponent, "fc-default-node", never, {}, {}, never, never>;
} }
import { FcCoords } from './ngx-flowchart.models'; import { FcCoords } from './ngx-flowchart.models';
import * as i0 from "@angular/core";
export declare class FcEdgeDrawingService { export declare class FcEdgeDrawingService {
constructor(); constructor();
getEdgeDAttribute(pt1: FcCoords, pt2: FcCoords, style: string): string; getEdgeDAttribute(pt1: FcCoords, pt2: FcCoords, style: string): string;
...@@ -6,4 +7,6 @@ export declare class FcEdgeDrawingService { ...@@ -6,4 +7,6 @@ export declare class FcEdgeDrawingService {
private computeEdgeTangentOffset; private computeEdgeTangentOffset;
private computeEdgeSourceTangent; private computeEdgeSourceTangent;
private computeEdgeDestinationTangent; private computeEdgeDestinationTangent;
static ɵfac: i0.ɵɵFactoryDeclaration<FcEdgeDrawingService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<FcEdgeDrawingService>;
} }
import { OnInit } from '@angular/core'; import { ElementRef, OnInit } from '@angular/core';
import { ElementRef } from '@angular/core';
import { FcCallbacks, FcConnector } from './ngx-flowchart.models'; import { FcCallbacks, FcConnector } from './ngx-flowchart.models';
import * as i0 from "@angular/core";
export declare class FcMagnetDirective implements OnInit { export declare class FcMagnetDirective implements OnInit {
elementRef: ElementRef<HTMLElement>; elementRef: ElementRef<HTMLElement>;
callbacks: FcCallbacks; callbacks: FcCallbacks;
...@@ -11,4 +11,6 @@ export declare class FcMagnetDirective implements OnInit { ...@@ -11,4 +11,6 @@ export declare class FcMagnetDirective implements OnInit {
dragleave(event: Event | any): void; dragleave(event: Event | any): void;
drop(event: Event | any): boolean; drop(event: Event | any): boolean;
dragend(event: Event | any): void; dragend(event: Event | any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FcMagnetDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<FcMagnetDirective, "[fc-magnet]", never, { "callbacks": "callbacks"; "connector": "connector"; }, {}, never>;
} }
import { FcConnector, FcEdge, FcModel, FcNode } from './ngx-flowchart.models'; import { FcConnector, FcEdge, FcModel, FcNode } from './ngx-flowchart.models';
import * as i0 from "@angular/core";
export declare class FcModelValidationService { export declare class FcModelValidationService {
constructor(); constructor();
validateModel(model: FcModel): FcModel; validateModel(model: FcModel): FcModel;
...@@ -9,4 +10,6 @@ export declare class FcModelValidationService { ...@@ -9,4 +10,6 @@ export declare class FcModelValidationService {
private _validateEdge; private _validateEdge;
validateEdge(edge: FcEdge, nodes: Array<FcNode>): FcEdge; validateEdge(edge: FcEdge, nodes: Array<FcNode>): FcEdge;
validateConnector(connector: FcConnector): FcConnector; validateConnector(connector: FcConnector): FcConnector;
static ɵfac: i0.ɵɵFactoryDeclaration<FcModelValidationService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<FcModelValidationService>;
} }
import { DoCheck, OnInit } from '@angular/core'; import { ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, IterableDiffers, NgZone, OnInit } from '@angular/core';
import { ChangeDetectorRef, ElementRef, EventEmitter, IterableDiffers, NgZone } from '@angular/core';
import { FcCallbacks, FcEdge, FcModel, UserCallbacks, UserNodeCallbacks } from './ngx-flowchart.models'; import { FcCallbacks, FcEdge, FcModel, UserCallbacks, UserNodeCallbacks } from './ngx-flowchart.models';
import { FcModelService } from './model.service'; import { FcModelService } from './model.service';
import { FcModelValidationService } from './modelvalidation.service'; import { FcModelValidationService } from './modelvalidation.service';
...@@ -8,6 +7,7 @@ import { FcEdgeDrawingService } from './edge-drawing.service'; ...@@ -8,6 +7,7 @@ import { FcEdgeDrawingService } from './edge-drawing.service';
import { FcEdgeDraggingService } from './edge-dragging.service'; import { FcEdgeDraggingService } from './edge-dragging.service';
import { FcMouseOverService } from './mouseover.service'; import { FcMouseOverService } from './mouseover.service';
import { FcRectangleSelectService } from './rectangleselect.service'; import { FcRectangleSelectService } from './rectangleselect.service';
import * as i0 from "@angular/core";
export declare class NgxFlowchartComponent implements OnInit, DoCheck { export declare class NgxFlowchartComponent implements OnInit, DoCheck {
private elementRef; private elementRef;
private differs; private differs;
...@@ -85,4 +85,6 @@ export declare class NgxFlowchartComponent implements OnInit, DoCheck { ...@@ -85,4 +85,6 @@ export declare class NgxFlowchartComponent implements OnInit, DoCheck {
mousedown(event: MouseEvent): void; mousedown(event: MouseEvent): void;
mousemove(event: MouseEvent): void; mousemove(event: MouseEvent): void;
mouseup(event: MouseEvent): void; mouseup(event: MouseEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxFlowchartComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxFlowchartComponent, "fc-canvas", never, { "model": "model"; "selectedObjects": "selectedObjects"; "edgeStyle": "edgeStyle"; "userCallbacks": "userCallbacks"; "automaticResize": "automaticResize"; "dragAnimation": "dragAnimation"; "nodeWidth": "nodeWidth"; "nodeHeight": "nodeHeight"; "dropTargetId": "dropTargetId"; "fitModelSizeByDefault": "fitModelSizeByDefault"; }, { "modelChanged": "modelChanged"; }, never, never>;
} }
import * as i0 from "@angular/core";
import * as i1 from "./ngx-flowchart.component";
import * as i2 from "./magnet.directive";
import * as i3 from "./connector.directive";
import * as i4 from "./node.component";
import * as i5 from "./default-node.component";
import * as i6 from "@angular/common";
export declare class NgxFlowchartModule { export declare class NgxFlowchartModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NgxFlowchartModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxFlowchartModule, [typeof i1.NgxFlowchartComponent, typeof i2.FcMagnetDirective, typeof i3.FcConnectorDirective, typeof i4.FcNodeContainerComponent, typeof i5.DefaultFcNodeComponent], [typeof i6.CommonModule], [typeof i1.NgxFlowchartComponent, typeof i2.FcMagnetDirective, typeof i3.FcConnectorDirective, typeof i5.DefaultFcNodeComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NgxFlowchartModule>;
} }
import { AfterViewInit, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { AfterViewInit, ComponentFactoryResolver, ElementRef, OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
import { ComponentFactoryResolver, ElementRef, ViewContainerRef } from '@angular/core';
import { FcCallbacks, FcConnector, FcNode, FcNodeComponentConfig, FcNodeRectInfo, UserNodeCallbacks } from './ngx-flowchart.models'; import { FcCallbacks, FcConnector, FcNode, FcNodeComponentConfig, FcNodeRectInfo, UserNodeCallbacks } from './ngx-flowchart.models';
import { FcModelService } from './model.service'; import { FcModelService } from './model.service';
import * as i0 from "@angular/core";
export declare class FcNodeContainerComponent implements OnInit, AfterViewInit, OnChanges { export declare class FcNodeContainerComponent implements OnInit, AfterViewInit, OnChanges {
private nodeComponentConfig; private nodeComponentConfig;
private elementRef; private elementRef;
...@@ -33,6 +33,8 @@ export declare class FcNodeContainerComponent implements OnInit, AfterViewInit, ...@@ -33,6 +33,8 @@ export declare class FcNodeContainerComponent implements OnInit, AfterViewInit,
click(event: MouseEvent): void; click(event: MouseEvent): void;
mouseover(event: MouseEvent): void; mouseover(event: MouseEvent): void;
mouseout(event: MouseEvent): void; mouseout(event: MouseEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FcNodeContainerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FcNodeContainerComponent, "fc-node", never, { "callbacks": "callbacks"; "userNodeCallbacks": "userNodeCallbacks"; "node": "node"; "selected": "selected"; "edit": "edit"; "underMouse": "underMouse"; "mouseOverConnector": "mouseOverConnector"; "modelservice": "modelservice"; "dragging": "dragging"; }, {}, never, never>;
} }
export declare abstract class FcNodeComponent implements OnInit { export declare abstract class FcNodeComponent implements OnInit {
callbacks: FcCallbacks; callbacks: FcCallbacks;
...@@ -73,4 +75,6 @@ export declare abstract class FcNodeComponent implements OnInit { ...@@ -73,4 +75,6 @@ export declare abstract class FcNodeComponent implements OnInit {
height: number; height: number;
nodeRectInfo: FcNodeRectInfo; nodeRectInfo: FcNodeRectInfo;
ngOnInit(): void; ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FcNodeComponent, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<FcNodeComponent, never, never, { "callbacks": "callbacks"; "userNodeCallbacks": "userNodeCallbacks"; "node": "node"; "selected": "selected"; "edit": "edit"; "underMouse": "underMouse"; "mouseOverConnector": "mouseOverConnector"; "modelservice": "modelservice"; "dragging": "dragging"; }, {}, never>;
} }
/** /**
* Generated bundle index. Do not edit. * Generated bundle index. Do not edit.
*/ */
/// <amd-module name="ngx-flowchart" />
export * from './public-api'; export * from './public-api';
export { FcEdgeDrawingService as ɵc } from './lib/edge-drawing.service';
export { FcModelValidationService as ɵb } from './lib/modelvalidation.service';
export { FcNodeContainerComponent as ɵa } from './lib/node.component';
This diff is collapsed.
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
"name": "ngx-flowchart", "name": "ngx-flowchart",
"version": "0.0.1", "version": "0.0.1",
"peerDependencies": { "peerDependencies": {
"@angular/common": "^9.1.3", "@angular/common": "^12.2.13",
"@angular/core": "^9.1.3", "@angular/core": "^12.2.13",
"jquery": "^3.5.0", "jquery": "^3.6.0",
"typescript": "^3.7.5" "typescript": "~4.3.5"
}, },
"main": "bundles/ngx-flowchart.umd.js", "main": "bundles/ngx-flowchart.umd.js",
"module": "fesm2015/ngx-flowchart.js", "module": "fesm2015/ngx-flowchart.js",
...@@ -13,9 +13,8 @@ ...@@ -13,9 +13,8 @@
"esm2015": "esm2015/ngx-flowchart.js", "esm2015": "esm2015/ngx-flowchart.js",
"fesm2015": "fesm2015/ngx-flowchart.js", "fesm2015": "fesm2015/ngx-flowchart.js",
"typings": "ngx-flowchart.d.ts", "typings": "ngx-flowchart.d.ts",
"metadata": "ngx-flowchart.metadata.json",
"sideEffects": false, "sideEffects": false,
"dependencies": { "dependencies": {
"tslib": "^2.0.0" "tslib": "^2.2.0"
} }
} }
\ No newline at end of file
This diff is collapsed.
...@@ -4,52 +4,51 @@ ...@@ -4,52 +4,51 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve --host 0.0.0.0 --open --port 4300", "start": "ng serve --host 0.0.0.0 --open --port 4300",
"build": "ng build ngx-flowchart --prod", "build": "ng build ngx-flowchart --configuration production",
"test": "ng test ngx-flowchart", "test": "ng test ngx-flowchart",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
}, },
"private": true, "private": true,
"peerDependencies": { "peerDependencies": {
"jquery": "^3.5.1" "jquery": "^3.6.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.1000.6", "@angular-devkit/build-angular": "^12.2.13",
"@angular-devkit/build-ng-packagr": "^0.1000.6", "@angular/animations": "^12.2.13",
"@angular/animations": "^10.0.9", "@angular/cdk": "^12.2.13",
"@angular/cdk": "^10.1.3", "@angular/cli": "^12.2.13",
"@angular/cli": "^10.0.6", "@angular/common": "^12.2.13",
"@angular/common": "^10.0.9", "@angular/compiler": "^12.2.13",
"@angular/compiler": "^10.0.9", "@angular/compiler-cli": "^12.2.13",
"@angular/compiler-cli": "^10.0.9", "@angular/core": "^12.2.13",
"@angular/core": "^10.0.9", "@angular/forms": "^12.2.13",
"@angular/forms": "^10.0.9", "@angular/language-service": "^12.2.13",
"@angular/language-service": "^10.0.9", "@angular/platform-browser": "^12.2.13",
"@angular/platform-browser": "^10.0.9", "@angular/platform-browser-dynamic": "^12.2.13",
"@angular/platform-browser-dynamic": "^10.0.9", "@angular/router": "^12.2.13",
"@angular/router": "^10.0.9", "@types/jasmine": "~3.10.2",
"@types/jasmine": "^3.5.12", "@types/jasminewd2": "^2.0.10",
"@types/jasminewd2": "~2.0.8", "@types/jquery": "^3.5.9",
"@types/jquery": "^3.5.1", "@types/node": "~15.14.9",
"@types/node": "^14.0.27", "codelyzer": "^6.0.2",
"codelyzer": "^6.0.0", "jasmine-core": "~3.10.1",
"jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~7.0.0",
"jasmine-spec-reporter": "~5.0.2", "jquery": "^3.6.0",
"jquery": "^3.5.1", "karma": "~6.3.9",
"karma": "^5.1.1",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "^3.0.3", "karma-coverage-istanbul-reporter": "^3.0.3",
"karma-jasmine": "~3.1.1", "karma-jasmine": "~4.0.1",
"karma-jasmine-html-reporter": "^1.5.4", "karma-jasmine-html-reporter": "^1.7.0",
"ng-packagr": "^10.0.4", "ng-packagr": "~12.2.5",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"rxjs": "~6.6.2", "rxjs": "~6.6.7",
"ts-node": "^8.10.2", "ts-node": "^10.4.0",
"tslint": "^6.1.3", "tslint": "~6.1.3",
"typescript": "~3.9.7", "typescript": "~4.3.5",
"zone.js": "~0.10.3" "zone.js": "~0.11.4"
}, },
"dependencies": { "dependencies": {
"tslib": "^1.13.0" "tslib": "^2.3.1"
} }
} }
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/ngx-flowchart",
"lib": {
"entryFile": "src/public-api.ts"
}
}
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
"name": "ngx-flowchart", "name": "ngx-flowchart",
"version": "0.0.1", "version": "0.0.1",
"peerDependencies": { "peerDependencies": {
"@angular/common": "^9.1.3", "@angular/common": "^12.2.13",
"@angular/core": "^9.1.3", "@angular/core": "^12.2.13",
"jquery": "^3.5.0", "jquery": "^3.6.0",
"typescript": "^3.7.5" "typescript": "~4.3.5"
}, },
"devDependencies": { "devDependencies": {
"@types/jquery": "^3.3.36" "@types/jquery": "^3.5.9"
} }
} }
import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { Directive, ElementRef, HostListener, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { Directive, Input, HostListener, ElementRef } from '@angular/core';
import { FcCallbacks, FcConnector, FcConnectorRectInfo, FcNodeRectInfo, FlowchartConstants } from './ngx-flowchart.models'; import { FcCallbacks, FcConnector, FcConnectorRectInfo, FcNodeRectInfo, FlowchartConstants } from './ngx-flowchart.models';
import { FcModelService } from './model.service'; import { FcModelService } from './model.service';
......
import { OnInit } from '@angular/core'; import { Directive, ElementRef, HostListener, Input, OnInit } from '@angular/core';
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
import { FcCallbacks, FcConnector, FlowchartConstants } from './ngx-flowchart.models'; import { FcCallbacks, FcConnector, FlowchartConstants } from './ngx-flowchart.models';
@Directive({ @Directive({
......
import {
DoCheck,
IterableDiffer,
OnInit
} from '@angular/core';
import { import {
ChangeDetectionStrategy, ChangeDetectionStrategy,
ChangeDetectorRef, ChangeDetectorRef,
Component, Component,
DoCheck,
ElementRef, ElementRef,
EventEmitter, EventEmitter,
HostBinding, HostBinding,
HostListener, HostListener,
Input, Input,
IterableDiffer,
IterableDiffers, IterableDiffers,
NgZone, NgZone,
OnInit,
Output Output
} from '@angular/core'; } from '@angular/core';
import { FcCallbacks, FcEdge, FcModel, FcNode, FlowchartConstants, UserCallbacks, UserNodeCallbacks } from './ngx-flowchart.models'; import { FcCallbacks, FcEdge, FcModel, FcNode, FlowchartConstants, UserCallbacks, UserNodeCallbacks } from './ngx-flowchart.models';
......
import { AfterViewInit, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { import {
AfterViewInit,
Component, Component,
ComponentFactoryResolver, ComponentFactoryResolver,
Directive, Directive,
...@@ -8,6 +8,9 @@ import { ...@@ -8,6 +8,9 @@ import {
HostListener, HostListener,
Inject, Inject,
Input, Input,
OnChanges,
OnInit,
SimpleChanges,
ViewChild, ViewChild,
ViewContainerRef ViewContainerRef
} from '@angular/core'; } from '@angular/core';
...@@ -199,6 +202,7 @@ export class FcNodeContainerComponent implements OnInit, AfterViewInit, OnChange ...@@ -199,6 +202,7 @@ export class FcNodeContainerComponent implements OnInit, AfterViewInit, OnChange
} }
@Directive() @Directive()
// tslint:disable-next-line:directive-class-suffix
export abstract class FcNodeComponent implements OnInit { export abstract class FcNodeComponent implements OnInit {
@Input() @Input()
......
...@@ -2,23 +2,10 @@ ...@@ -2,23 +2,10 @@
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/lib", "outDir": "../../out-tsc/lib",
"target": "es2015",
"module": "es2015",
"moduleResolution": "node",
"declaration": true, "declaration": true,
"declarationMap": true,
"inlineSources": true, "inlineSources": true,
"types": ["jquery"], "types": ["jquery"]
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
}, },
"exclude": [ "exclude": [
"src/test.ts", "src/test.ts",
......
{ {
"extends": "./tsconfig.lib.json", "extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
},
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": false "compilationMode": "partial"
} }
} }
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
import 'core-js/es/array'; import 'core-js/es/array';
/*************************************************************************************************** /***************************************************************************************************
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
"outDir": "./out-tsc/app", "outDir": "./out-tsc/app",
"types": ["jquery"] "types": ["jquery"]
}, },
"angularCompilerOptions": {
"fullTemplateTypeCheck": true
},
"files": [ "files": [
"src/main.ts", "src/main.ts",
"src/polyfills.ts" "src/polyfills.ts"
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"outDir": "./dist/out-tsc", "outDir": "./dist/out-tsc",
"sourceMap": true, "sourceMap": true,
"declaration": false, "declaration": false,
"module": "esnext", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"importHelpers": true, "importHelpers": true,
"target": "es5", "target": "es2017",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
], ],
...@@ -29,5 +29,11 @@ ...@@ -29,5 +29,11 @@
"projects/ngx-flowchart/src/public-api" "projects/ngx-flowchart/src/public-api"
] ]
} }
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": false
} }
} }
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment