ato-water-lib 0.0.90 → 0.0.92
Sign up to get free protection for your applications and to get access to all the features.
- package/{esm2022 → esm2020}/lib/ato-water-lib.component.mjs +5 -5
- package/{esm2022 → esm2020}/lib/ato-water-lib.module.mjs +15 -15
- package/{esm2022 → esm2020}/lib/ato-water-lib.service.mjs +5 -5
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +165 -0
- package/{esm2022 → esm2020}/lib/components/asset-params-view/asset-params-view.component.mjs +9 -7
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +54 -0
- package/esm2020/lib/constants/components-group-const.mjs +3687 -0
- package/esm2020/lib/directive/ato-loading.directive.mjs +55 -0
- package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +3589 -0
- package/esm2020/lib/models/gojs-data.model.mjs +6 -0
- package/esm2020/lib/models/gojs-editor.model.mjs +1822 -0
- package/esm2020/lib/services/utils/utils.service.mjs +133 -0
- package/fesm2015/ato-water-lib.mjs +9810 -0
- package/fesm2015/ato-water-lib.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/ato-water-lib.mjs +1980 -568
- package/fesm2020/ato-water-lib.mjs.map +1 -0
- package/lib/components/asset-flow/asset-flow.component.d.ts +1 -1
- package/lib/components/asset-params-view/asset-params-view.component.d.ts +1 -1
- package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +1 -1
- package/lib/constants/components-group-const.d.ts +710 -115
- package/lib/directive/ato-loading.directive.d.ts +1 -1
- package/lib/directive/ng-var.directive.d.ts +1 -1
- package/lib/models/default-gojs-editor.model.d.ts +2 -2
- package/lib/models/gojs-editor.model.d.ts +12 -5
- package/package.json +13 -7
- package/esm2022/lib/components/asset-flow/asset-flow.component.mjs +0 -174
- package/esm2022/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +0 -55
- package/esm2022/lib/constants/components-group-const.mjs +0 -2291
- package/esm2022/lib/directive/ato-loading.directive.mjs +0 -59
- package/esm2022/lib/directive/ng-var.directive.mjs +0 -33
- package/esm2022/lib/models/default-gojs-editor.model.mjs +0 -3582
- package/esm2022/lib/models/gojs-data.model.mjs +0 -10
- package/esm2022/lib/models/gojs-editor.model.mjs +0 -1799
- package/esm2022/lib/services/utils/utils.service.mjs +0 -133
- package/fesm2022/ato-water-lib.mjs.map +0 -1
- /package/{esm2022 → esm2020}/ato-water-lib.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/applicable-prefixes-const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/base64.const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/icon-base64.const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/key.const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/plant.constant.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/value.const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/models/ato-asset-flow.model.mjs +0 -0
- /package/{esm2022 → esm2020}/public-api.mjs +0 -0
@@ -1,59 +0,0 @@
|
|
1
|
-
import { Directive, Input } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export class AtoLoadingDirective {
|
4
|
-
el;
|
5
|
-
renderer;
|
6
|
-
appLoading;
|
7
|
-
spinnerWrapper;
|
8
|
-
constructor(el, renderer) {
|
9
|
-
this.el = el;
|
10
|
-
this.renderer = renderer;
|
11
|
-
this.spinnerWrapper = this.renderer.createElement('div');
|
12
|
-
this.renderer.setStyle(this.spinnerWrapper, 'position', 'absolute');
|
13
|
-
this.renderer.setStyle(this.spinnerWrapper, 'top', '0');
|
14
|
-
this.renderer.setStyle(this.spinnerWrapper, 'left', '0');
|
15
|
-
this.renderer.setStyle(this.spinnerWrapper, 'width', '100%');
|
16
|
-
this.renderer.setStyle(this.spinnerWrapper, 'height', '100%');
|
17
|
-
this.renderer.setStyle(this.spinnerWrapper, 'display', 'flex');
|
18
|
-
this.renderer.setStyle(this.spinnerWrapper, 'align-items', 'center');
|
19
|
-
this.renderer.setStyle(this.spinnerWrapper, 'justify-content', 'center');
|
20
|
-
this.renderer.setStyle(this.spinnerWrapper, 'background', 'rgba(255, 255, 255, 0.7)');
|
21
|
-
this.renderer.setStyle(this.spinnerWrapper, 'z-index', '10');
|
22
|
-
const spinner = this.renderer.createElement('img');
|
23
|
-
this.renderer.setAttribute(spinner, 'src', 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiByZ2IoMjU1LCAyNTUsIDI1NSk7IGRpc3BsYXk6IGJsb2NrOyBzaGFwZS1yZW5kZXJpbmc6IGF1dG87IGFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyIgd2lkdGg9Ijg4cHgiIGhlaWdodD0iODhweCIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KPGRlZnMgc3R5bGU9ImFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyI+CiAgPG1hc2sgaWQ9ImxkaW8tdmN5YjQ1YmFvdWstbWFzayIgc3R5bGU9ImFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyI+CiAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0id2hpdGUiIHN0eWxlPSJhbmltYXRpb24tcGxheS1zdGF0ZTogcnVubmluZzsgYW5pbWF0aW9uLWRlbGF5OiAwczsiPjwvcmVjdD4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derer.setStyle(spinner, 'border-radius', '50%');
|
27
|
-
this.renderer.appendChild(this.spinnerWrapper, spinner);
|
28
|
-
}
|
29
|
-
ngOnChanges(changes) {
|
30
|
-
if (changes['appLoading']) {
|
31
|
-
if (this.appLoading) {
|
32
|
-
this.showSpinner();
|
33
|
-
}
|
34
|
-
else {
|
35
|
-
this.hideSpinner();
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
showSpinner() {
|
40
|
-
this.renderer.setStyle(this.el.nativeElement, 'position', 'relative');
|
41
|
-
this.renderer.appendChild(this.el.nativeElement, this.spinnerWrapper);
|
42
|
-
}
|
43
|
-
hideSpinner() {
|
44
|
-
if (this.el.nativeElement.contains(this.spinnerWrapper)) {
|
45
|
-
this.renderer.removeChild(this.el.nativeElement, this.spinnerWrapper);
|
46
|
-
}
|
47
|
-
}
|
48
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AtoLoadingDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
49
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: AtoLoadingDirective, selector: "[atoLoading]", inputs: { appLoading: "appLoading" }, usesOnChanges: true, ngImport: i0 });
|
50
|
-
}
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AtoLoadingDirective, decorators: [{
|
52
|
-
type: Directive,
|
53
|
-
args: [{
|
54
|
-
selector: '[atoLoading]'
|
55
|
-
}]
|
56
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { appLoading: [{
|
57
|
-
type: Input
|
58
|
-
}] } });
|
59
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLWxvYWRpbmcuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vd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ZXJlci5hcHBlbmRDaGlsZCh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQsIHRoaXMuc3Bpbm5lcldyYXBwZXIpO1xuICB9XG5cbiAgcHJpdmF0ZSBoaWRlU3Bpbm5lcigpOiB2b2lkIHtcbiAgICBpZiAodGhpcy5lbC5uYXRpdmVFbGVtZW50LmNvbnRhaW5zKHRoaXMuc3Bpbm5lcldyYXBwZXIpKSB7XG4gICAgICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNoaWxkKHRoaXMuZWwubmF0aXZlRWxlbWVudCwgdGhpcy5zcGlubmVyV3JhcHBlcik7XG4gICAgfVxuICB9XG5cbn1cbiJdfQ==
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { Directive, Input } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export class AtoNgVarDirective {
|
4
|
-
templateRef;
|
5
|
-
vcRef;
|
6
|
-
set ngAtoVar(context) {
|
7
|
-
this.context.$implicit = this.context.ngAtoVar = context;
|
8
|
-
if (!this.hasView) {
|
9
|
-
this.vcRef.createEmbeddedView(this.templateRef, this.context);
|
10
|
-
this.hasView = true;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
context = {
|
14
|
-
$implicit: null,
|
15
|
-
ngAtoVar: null,
|
16
|
-
};
|
17
|
-
hasView = false;
|
18
|
-
constructor(templateRef, vcRef) {
|
19
|
-
this.templateRef = templateRef;
|
20
|
-
this.vcRef = vcRef;
|
21
|
-
}
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AtoNgVarDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
23
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: AtoNgVarDirective, selector: "[ngAtoVar]", inputs: { ngAtoVar: "ngAtoVar" }, ngImport: i0 });
|
24
|
-
}
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AtoNgVarDirective, decorators: [{
|
26
|
-
type: Directive,
|
27
|
-
args: [{
|
28
|
-
selector: '[ngAtoVar]',
|
29
|
-
}]
|
30
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }], propDecorators: { ngAtoVar: [{
|
31
|
-
type: Input
|
32
|
-
}] } });
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdmFyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL2xpYi9kaXJlY3RpdmUvbmctdmFyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBaUMsTUFBTSxlQUFlLENBQUM7O0FBS2hGLE1BQU0sT0FBTyxpQkFBaUI7SUFxQlI7SUFBdUM7SUFwQjNELElBQ0ksUUFBUSxDQUFDLE9BQWdCO1FBQ3pCLElBQUksQ0FBQyxPQUFPLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQztRQUV6RCxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO1lBQ2hCLElBQUksQ0FBQyxLQUFLLENBQUMsa0JBQWtCLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7WUFDOUQsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUM7UUFDeEIsQ0FBQztJQUNMLENBQUM7SUFFTyxPQUFPLEdBR1g7UUFDQSxTQUFTLEVBQUUsSUFBSTtRQUNmLFFBQVEsRUFBRS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