ato-water-lib 0.0.9 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/icon1.png +0 -0
- package/esm2020/lib/ato-water-lib.module.mjs +20 -7
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +56 -0
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +5 -5
- package/esm2020/lib/constants/components-group-const.mjs +1289 -0
- package/esm2020/lib/directive/ato-loading.directive.mjs +83 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +225 -223
- package/esm2020/lib/models/gojs-editor.model.mjs +302 -295
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/ato-water-lib.mjs +1833 -526
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +1964 -526
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/ato-water-lib.module.d.ts +4 -1
- package/lib/components/asset-flow/asset-flow.component.d.ts +21 -0
- package/lib/constants/components-group-const.d.ts +1132 -0
- package/lib/directive/ato-loading.directive.d.ts +14 -0
- package/lib/models/default-gojs-editor.model.d.ts +3 -3
- package/lib/models/gojs-editor.model.d.ts +10 -7
- package/package.json +6 -3
- package/public-api.d.ts +2 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ElementRef, Renderer2, OnChanges, SimpleChanges } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AtoLoadingDirective implements OnChanges {
|
4
|
+
private el;
|
5
|
+
private renderer;
|
6
|
+
appLoading: boolean;
|
7
|
+
private spinnerWrapper;
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
10
|
+
private showSpinner;
|
11
|
+
private hideSpinner;
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtoLoadingDirective, never>;
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoLoadingDirective, "[atoLoading]", never, { "appLoading": "appLoading"; }, {}, never, never, false, never>;
|
14
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { EventEmitter, OnDestroy } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { AtoGojsEditorModel } from './gojs-editor.model';
|
3
3
|
import * as go from 'gojs';
|
4
4
|
import { Subject } from 'rxjs';
|
5
5
|
import { Subscription } from 'rxjs';
|
@@ -19,8 +19,8 @@ export declare class AtoDefaultGojsEditor implements OnDestroy {
|
|
19
19
|
set initialOptions(v: any);
|
20
20
|
get initialOptions(): any;
|
21
21
|
private _editor;
|
22
|
-
set editor(v:
|
23
|
-
get editor():
|
22
|
+
set editor(v: AtoGojsEditorModel);
|
23
|
+
get editor(): AtoGojsEditorModel;
|
24
24
|
isShowNodeInfo: boolean;
|
25
25
|
plantSatus: string;
|
26
26
|
constructor();
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ATO_ECOMPONENT_PLANT_TYPE } from '../constants/value.const';
|
2
|
-
export declare class
|
2
|
+
export declare class AtoGojsEditorModel {
|
3
3
|
initialOptions: any;
|
4
4
|
data: any;
|
5
5
|
constructor(data: any);
|
6
6
|
}
|
7
|
-
export declare namespace
|
7
|
+
export declare namespace AtoGojsEditorModel {
|
8
8
|
const GRID_SIZE = 20;
|
9
9
|
const BASIC_GRID_INTERVAL_X = 24;
|
10
10
|
const BASIC_GRID_INTERVAL_Y = 10;
|
@@ -47,7 +47,10 @@ export declare namespace GojsEditorModel {
|
|
47
47
|
DANUBE = "#7197CA",
|
48
48
|
DANUBE_ALICE_BLUE = "#F1F5FA",
|
49
49
|
AZURE = "#EEF8F8",
|
50
|
-
OLD_LACE = "#FCF6EA"
|
50
|
+
OLD_LACE = "#FCF6EA",
|
51
|
+
CARROT_ORANGE = "#F69122",
|
52
|
+
FLAMINGO = "#E95F47",
|
53
|
+
SNOW = "#FEF7F6"
|
51
54
|
}
|
52
55
|
enum ENUM_LINK_TYPES {
|
53
56
|
SIMPLE = "simple",
|
@@ -313,7 +316,7 @@ export declare namespace GojsEditorModel {
|
|
313
316
|
KEY_MODEL_COMPUTED = "M"
|
314
317
|
}
|
315
318
|
const COLOR_COLLECTION_METHOD: {
|
316
|
-
[key in
|
319
|
+
[key in AtoGojsEditorModel.DATA_COLLECTION_METHOD]: any;
|
317
320
|
};
|
318
321
|
enum WITH_DRAW_SYSTEM_TYPES {
|
319
322
|
WATER_SOURCE = "WaterSource"
|
@@ -347,10 +350,10 @@ export declare namespace GojsEditorModel {
|
|
347
350
|
const PLANT_CELL_PATH = "assets/images/editor/plant-cell";
|
348
351
|
const DATA_BOX = "assets/images/editor/data-box";
|
349
352
|
const LINK_TEMPLATES: {
|
350
|
-
[key in
|
353
|
+
[key in AtoGojsEditorModel.ENUM_LINK_TYPES]: any;
|
351
354
|
};
|
352
355
|
interface I_TEMPLATE_ITEM {
|
353
|
-
name:
|
356
|
+
name: AtoGojsEditorModel.ENUM_TEMPLATES;
|
354
357
|
icon?: string;
|
355
358
|
size?: {
|
356
359
|
w: number;
|
@@ -360,7 +363,7 @@ export declare namespace GojsEditorModel {
|
|
360
363
|
}
|
361
364
|
const ATTRNAME_COMPONENT: any[];
|
362
365
|
const NODE_TEMPLATES: {
|
363
|
-
[key in
|
366
|
+
[key in AtoGojsEditorModel.ENUM_TEMPLATES]: I_TEMPLATE_ITEM;
|
364
367
|
};
|
365
368
|
const WITHDRAW_DISCHARGE_ICON: {
|
366
369
|
[key in string]: any;
|
package/package.json
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "ato-water-lib",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.11",
|
4
4
|
"peerDependencies": {
|
5
|
-
"@angular/common": "^15.1.0",
|
6
|
-
"@angular/core": "^15.1.0"
|
5
|
+
"@angular/common": "^15.1.0 || ^16.2.0",
|
6
|
+
"@angular/core": "^15.1.0 || ^16.2.0",
|
7
|
+
"gojs": "^2.1.56",
|
8
|
+
"lodash": "^4.17.21",
|
9
|
+
"moment": "^2.30.1"
|
7
10
|
},
|
8
11
|
"dependencies": {
|
9
12
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
@@ -2,3 +2,5 @@ export * from './lib/ato-water-lib.service';
|
|
2
2
|
export * from './lib/ato-water-lib.component';
|
3
3
|
export * from './lib/ato-water-lib.module';
|
4
4
|
export * from './lib/components/flow-diagram-lib/flow-diagram-lib.component';
|
5
|
+
export * from './lib/components/asset-flow/asset-flow.component';
|
6
|
+
export * from './lib/directive/ato-loading.directive';
|