ato-water-lib 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/ato-water-lib.mjs +5 -0
- package/esm2020/lib/ato-water-lib.component.mjs +19 -0
- package/esm2020/lib/ato-water-lib.module.mjs +49 -0
- package/esm2020/lib/ato-water-lib.service.mjs +14 -0
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +123 -0
- package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +26 -0
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +54 -0
- package/esm2020/lib/constants/applicable-prefixes-const.mjs +441 -0
- package/esm2020/lib/constants/base64.const.mjs +5 -0
- package/esm2020/lib/constants/components-group-const.mjs +1629 -0
- package/esm2020/lib/constants/icon-base64.const.mjs +4 -0
- package/esm2020/lib/constants/key.const.mjs +4 -0
- package/esm2020/lib/constants/plant.constant.mjs +51 -0
- package/esm2020/lib/constants/value.const.mjs +782 -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/ato-asset-flow.model.mjs +2 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +3227 -0
- package/esm2020/lib/models/gojs-data.model.mjs +6 -0
- package/esm2020/lib/models/gojs-editor.model.mjs +1754 -0
- package/esm2020/lib/services/utils/utils.service.mjs +133 -0
- package/esm2020/public-api.mjs +15 -0
- package/fesm2015/ato-water-lib.mjs +8208 -0
- package/fesm2015/ato-water-lib.mjs.map +1 -0
- package/fesm2020/ato-water-lib.mjs +8360 -0
- package/fesm2020/ato-water-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/ato-water-lib.component.d.ts +5 -0
- package/lib/ato-water-lib.module.d.ts +13 -0
- package/lib/ato-water-lib.service.d.ts +6 -0
- package/lib/components/asset-flow/asset-flow.component.d.ts +35 -0
- package/lib/components/asset-params-view/asset-params-view.component.d.ts +10 -0
- package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +16 -0
- package/lib/constants/applicable-prefixes-const.d.ts +162 -0
- package/lib/constants/base64.const.d.ts +3 -0
- package/lib/constants/components-group-const.d.ts +1264 -0
- package/lib/constants/icon-base64.const.d.ts +3 -0
- package/lib/constants/key.const.d.ts +1 -0
- package/lib/constants/plant.constant.d.ts +7 -0
- package/lib/constants/value.const.d.ts +71 -0
- package/lib/directive/ato-loading.directive.d.ts +14 -0
- package/lib/directive/ng-var.directive.d.ts +12 -0
- package/lib/models/ato-asset-flow.model.d.ts +5 -0
- package/lib/models/default-gojs-editor.model.d.ts +197 -0
- package/{src/lib/models/gojs-data.model.ts → lib/models/gojs-data.model.d.ts} +3 -3
- package/lib/models/gojs-editor.model.d.ts +436 -0
- package/lib/services/utils/utils.service.d.ts +24 -0
- package/package.json +22 -3
- package/{src/public-api.ts → public-api.d.ts} +0 -10
- package/ng-package.json +0 -11
- package/src/lib/ato-water-lib.component.spec.ts +0 -23
- package/src/lib/ato-water-lib.component.ts +0 -15
- package/src/lib/ato-water-lib.module.ts +0 -31
- package/src/lib/ato-water-lib.service.spec.ts +0 -16
- package/src/lib/ato-water-lib.service.ts +0 -9
- package/src/lib/components/asset-flow/asset-flow.component.html +0 -21
- package/src/lib/components/asset-flow/asset-flow.component.scss +0 -4
- package/src/lib/components/asset-flow/asset-flow.component.spec.ts +0 -23
- package/src/lib/components/asset-flow/asset-flow.component.ts +0 -137
- package/src/lib/components/asset-params-view/asset-params-view.component.html +0 -85
- package/src/lib/components/asset-params-view/asset-params-view.component.scss +0 -37
- package/src/lib/components/asset-params-view/asset-params-view.component.spec.ts +0 -23
- package/src/lib/components/asset-params-view/asset-params-view.component.ts +0 -16
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.css +0 -0
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.html +0 -25
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.ts +0 -69
- package/src/lib/constants/applicable-prefixes-const.ts +0 -452
- package/src/lib/constants/base64.const.ts +0 -5
- package/src/lib/constants/components-group-const.ts +0 -1637
- package/src/lib/constants/icon-base64.const.ts +0 -3
- package/src/lib/constants/icon-svg.const.ts +0 -8
- package/src/lib/constants/key.const.ts +0 -5
- package/src/lib/constants/plant.constant.ts +0 -52
- package/src/lib/constants/value.const.ts +0 -822
- package/src/lib/directive/ato-loading.directive.ts +0 -55
- package/src/lib/directive/ng-var.directive.ts +0 -28
- package/src/lib/models/default-gojs-editor.model.ts +0 -4906
- package/src/lib/models/gojs-editor.model.ts +0 -1901
- package/src/lib/services/utils/utils.service.ts +0 -141
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
@@ -0,0 +1,55 @@
|
|
1
|
+
import { Directive, Input } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class AtoLoadingDirective {
|
4
|
+
constructor(el, renderer) {
|
5
|
+
this.el = el;
|
6
|
+
this.renderer = renderer;
|
7
|
+
this.spinnerWrapper = this.renderer.createElement('div');
|
8
|
+
this.renderer.setStyle(this.spinnerWrapper, 'position', 'absolute');
|
9
|
+
this.renderer.setStyle(this.spinnerWrapper, 'top', '0');
|
10
|
+
this.renderer.setStyle(this.spinnerWrapper, 'left', '0');
|
11
|
+
this.renderer.setStyle(this.spinnerWrapper, 'width', '100%');
|
12
|
+
this.renderer.setStyle(this.spinnerWrapper, 'height', '100%');
|
13
|
+
this.renderer.setStyle(this.spinnerWrapper, 'display', 'flex');
|
14
|
+
this.renderer.setStyle(this.spinnerWrapper, 'align-items', 'center');
|
15
|
+
this.renderer.setStyle(this.spinnerWrapper, 'justify-content', 'center');
|
16
|
+
this.renderer.setStyle(this.spinnerWrapper, 'background', 'rgba(255, 255, 255, 0.7)');
|
17
|
+
this.renderer.setStyle(this.spinnerWrapper, 'z-index', '10');
|
18
|
+
const spinner = this.renderer.createElement('img');
|
19
|
+
this.renderer.setAttribute(spinner, 'src', 'data:image/svg+xml;base64,PD94bWwgd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dHlsZT0iYW5pbWF0aW9uLXBsYXktc3RhdGU6IHJ1bm5pbmc7IGFuaW1hdGlvbi1kZWxheTogMHM7Ij48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgoKICA8cmVjdCB4PSItMTAwIiB5PSItMjcwIiB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgcng9IjEwMCIgcnk9IjEwMCIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC40IiBzdHlsZT0iYW5pbWF0aW9uLXBsYXktc3RhdGU6IHJ1bm5pbmc7IGFuaW1hdGlvbi1kZWxheTogMHM7Ij4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0icm90YXRlIiBkdXI9IjMuMDMwMzAzMDMwMzAzMDMwM3MiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiB2YWx1ZXM9IjAgNTAgLTEyMDs5MCA1MCAtMTIwIiBrZXlUaW1lcz0iMDsxIiBzdHlsZT0iYW5pbWF0aW9uLXBsYXktc3RhdGU6IHJ1bm5pbmc7IGFuaW1hdGlvbi1kZWxheTogMHM7Ij48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgoKPC9nPgo8IS0tIFtsZGlvXSBnZW5lcmF0ZWQgYnkgaHR0cHM6Ly9sb2FkaW5nLmlvLyAtLT48L3N2Zz4=');
|
20
|
+
this.renderer.setStyle(spinner, 'width', '30px');
|
21
|
+
this.renderer.setStyle(spinner, 'height', '30px');
|
22
|
+
this.renderer.setStyle(spinner, 'border-radius', '50%');
|
23
|
+
this.renderer.appendChild(this.spinnerWrapper, spinner);
|
24
|
+
}
|
25
|
+
ngOnChanges(changes) {
|
26
|
+
if (changes['appLoading']) {
|
27
|
+
if (this.appLoading) {
|
28
|
+
this.showSpinner();
|
29
|
+
}
|
30
|
+
else {
|
31
|
+
this.hideSpinner();
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
showSpinner() {
|
36
|
+
this.renderer.setStyle(this.el.nativeElement, 'position', 'relative');
|
37
|
+
this.renderer.appendChild(this.el.nativeElement, this.spinnerWrapper);
|
38
|
+
}
|
39
|
+
hideSpinner() {
|
40
|
+
if (this.el.nativeElement.contains(this.spinnerWrapper)) {
|
41
|
+
this.renderer.removeChild(this.el.nativeElement, this.spinnerWrapper);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
AtoLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoLoadingDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
46
|
+
AtoLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoLoadingDirective, selector: "[atoLoading]", inputs: { appLoading: "appLoading" }, usesOnChanges: true, ngImport: i0 });
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoLoadingDirective, decorators: [{
|
48
|
+
type: Directive,
|
49
|
+
args: [{
|
50
|
+
selector: '[atoLoading]'
|
51
|
+
}]
|
52
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { appLoading: [{
|
53
|
+
type: Input
|
54
|
+
}] } });
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLWxvYWRpbmcuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2RpcmVjdGl2ZS9hdG8tbG9hZGluZy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUF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IH1cbiAgfVxuXG59XG4iXX0=
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Directive, Input } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class AtoNgVarDirective {
|
4
|
+
set ngAtoVar(context) {
|
5
|
+
this.context.$implicit = this.context.ngAtoVar = context;
|
6
|
+
if (!this.hasView) {
|
7
|
+
this.vcRef.createEmbeddedView(this.templateRef, this.context);
|
8
|
+
this.hasView = true;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
constructor(templateRef, vcRef) {
|
12
|
+
this.templateRef = templateRef;
|
13
|
+
this.vcRef = vcRef;
|
14
|
+
this.context = {
|
15
|
+
$implicit: null,
|
16
|
+
ngAtoVar: null,
|
17
|
+
};
|
18
|
+
this.hasView = false;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
AtoNgVarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoNgVarDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
22
|
+
AtoNgVarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoNgVarDirective, selector: "[ngAtoVar]", inputs: { ngAtoVar: "ngAtoVar" }, ngImport: i0 });
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoNgVarDirective, decorators: [{
|
24
|
+
type: Directive,
|
25
|
+
args: [{
|
26
|
+
selector: '[ngAtoVar]',
|
27
|
+
}]
|
28
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { ngAtoVar: [{
|
29
|
+
type: Input
|
30
|
+
}] } });
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdmFyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJ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