ato-water-lib 0.0.34 → 0.0.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/esm2020/ato-water-lib.mjs +5 -0
  2. package/esm2020/lib/ato-water-lib.component.mjs +19 -0
  3. package/esm2020/lib/ato-water-lib.module.mjs +49 -0
  4. package/esm2020/lib/ato-water-lib.service.mjs +14 -0
  5. package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +123 -0
  6. package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +26 -0
  7. package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +54 -0
  8. package/esm2020/lib/constants/applicable-prefixes-const.mjs +441 -0
  9. package/esm2020/lib/constants/base64.const.mjs +5 -0
  10. package/esm2020/lib/constants/components-group-const.mjs +1629 -0
  11. package/esm2020/lib/constants/icon-base64.const.mjs +4 -0
  12. package/esm2020/lib/constants/key.const.mjs +4 -0
  13. package/esm2020/lib/constants/plant.constant.mjs +51 -0
  14. package/esm2020/lib/constants/value.const.mjs +782 -0
  15. package/esm2020/lib/directive/ato-loading.directive.mjs +55 -0
  16. package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
  17. package/esm2020/lib/models/ato-asset-flow.model.mjs +2 -0
  18. package/esm2020/lib/models/default-gojs-editor.model.mjs +3227 -0
  19. package/esm2020/lib/models/gojs-data.model.mjs +6 -0
  20. package/esm2020/lib/models/gojs-editor.model.mjs +1754 -0
  21. package/esm2020/lib/services/utils/utils.service.mjs +133 -0
  22. package/esm2020/public-api.mjs +15 -0
  23. package/fesm2015/ato-water-lib.mjs +8208 -0
  24. package/fesm2015/ato-water-lib.mjs.map +1 -0
  25. package/fesm2020/ato-water-lib.mjs +8360 -0
  26. package/fesm2020/ato-water-lib.mjs.map +1 -0
  27. package/index.d.ts +5 -0
  28. package/lib/ato-water-lib.component.d.ts +5 -0
  29. package/lib/ato-water-lib.module.d.ts +13 -0
  30. package/lib/ato-water-lib.service.d.ts +6 -0
  31. package/lib/components/asset-flow/asset-flow.component.d.ts +35 -0
  32. package/lib/components/asset-params-view/asset-params-view.component.d.ts +10 -0
  33. package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +16 -0
  34. package/lib/constants/applicable-prefixes-const.d.ts +162 -0
  35. package/lib/constants/base64.const.d.ts +3 -0
  36. package/lib/constants/components-group-const.d.ts +1264 -0
  37. package/lib/constants/icon-base64.const.d.ts +3 -0
  38. package/lib/constants/key.const.d.ts +1 -0
  39. package/lib/constants/plant.constant.d.ts +7 -0
  40. package/lib/constants/value.const.d.ts +71 -0
  41. package/lib/directive/ato-loading.directive.d.ts +14 -0
  42. package/lib/directive/ng-var.directive.d.ts +12 -0
  43. package/lib/models/ato-asset-flow.model.d.ts +5 -0
  44. package/lib/models/default-gojs-editor.model.d.ts +197 -0
  45. package/{src/lib/models/gojs-data.model.ts → lib/models/gojs-data.model.d.ts} +3 -3
  46. package/lib/models/gojs-editor.model.d.ts +436 -0
  47. package/lib/services/utils/utils.service.d.ts +24 -0
  48. package/package.json +22 -3
  49. package/{src/public-api.ts → public-api.d.ts} +0 -10
  50. package/ng-package.json +0 -11
  51. package/src/lib/ato-water-lib.component.spec.ts +0 -23
  52. package/src/lib/ato-water-lib.component.ts +0 -15
  53. package/src/lib/ato-water-lib.module.ts +0 -31
  54. package/src/lib/ato-water-lib.service.spec.ts +0 -16
  55. package/src/lib/ato-water-lib.service.ts +0 -9
  56. package/src/lib/components/asset-flow/asset-flow.component.html +0 -21
  57. package/src/lib/components/asset-flow/asset-flow.component.scss +0 -4
  58. package/src/lib/components/asset-flow/asset-flow.component.spec.ts +0 -23
  59. package/src/lib/components/asset-flow/asset-flow.component.ts +0 -137
  60. package/src/lib/components/asset-params-view/asset-params-view.component.html +0 -85
  61. package/src/lib/components/asset-params-view/asset-params-view.component.scss +0 -37
  62. package/src/lib/components/asset-params-view/asset-params-view.component.spec.ts +0 -23
  63. package/src/lib/components/asset-params-view/asset-params-view.component.ts +0 -16
  64. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.css +0 -0
  65. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.html +0 -25
  66. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.ts +0 -69
  67. package/src/lib/constants/applicable-prefixes-const.ts +0 -452
  68. package/src/lib/constants/base64.const.ts +0 -5
  69. package/src/lib/constants/components-group-const.ts +0 -1637
  70. package/src/lib/constants/icon-base64.const.ts +0 -3
  71. package/src/lib/constants/icon-svg.const.ts +0 -8
  72. package/src/lib/constants/key.const.ts +0 -5
  73. package/src/lib/constants/plant.constant.ts +0 -52
  74. package/src/lib/constants/value.const.ts +0 -822
  75. package/src/lib/directive/ato-loading.directive.ts +0 -55
  76. package/src/lib/directive/ng-var.directive.ts +0 -28
  77. package/src/lib/models/default-gojs-editor.model.ts +0 -4906
  78. package/src/lib/models/gojs-editor.model.ts +0 -1901
  79. package/src/lib/services/utils/utils.service.ts +0 -141
  80. package/tsconfig.lib.json +0 -14
  81. package/tsconfig.lib.prod.json +0 -10
  82. package/tsconfig.spec.json +0 -14
@@ -1,55 +0,0 @@
1
- import { Directive, ElementRef, Renderer2, Input, OnChanges, SimpleChanges } from '@angular/core';
2
-
3
- @Directive({
4
- selector: '[atoLoading]'
5
- })
6
- export class AtoLoadingDirective implements OnChanges {
7
-
8
- @Input() appLoading: boolean;
9
-
10
- private spinnerWrapper: HTMLElement;
11
-
12
- constructor(private el: ElementRef, private renderer: Renderer2) {
13
- this.spinnerWrapper = this.renderer.createElement('div');
14
- this.renderer.setStyle(this.spinnerWrapper, 'position', 'absolute');
15
- this.renderer.setStyle(this.spinnerWrapper, 'top', '0');
16
- this.renderer.setStyle(this.spinnerWrapper, 'left', '0');
17
- this.renderer.setStyle(this.spinnerWrapper, 'width', '100%');
18
- this.renderer.setStyle(this.spinnerWrapper, 'height', '100%');
19
- this.renderer.setStyle(this.spinnerWrapper, 'display', 'flex');
20
- this.renderer.setStyle(this.spinnerWrapper, 'align-items', 'center');
21
- this.renderer.setStyle(this.spinnerWrapper, 'justify-content', 'center');
22
- this.renderer.setStyle(this.spinnerWrapper, 'background', 'rgba(255, 255, 255, 0.7)');
23
- this.renderer.setStyle(this.spinnerWrapper, 'z-index', '10');
24
-
25
- const spinner = this.renderer.createElement('img');
26
- this.renderer.setAttribute(spinner, 'src', 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiByZ2IoMjU1LCAyNTUsIDI1NSk7IGRpc3BsYXk6IGJsb2NrOyBzaGFwZS1yZW5kZXJpbmc6IGF1dG87IGFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyIgd2lkdGg9Ijg4cHgiIGhlaWdodD0iODhweCIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KPGRlZnMgc3R5bGU9ImFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyI+CiAgPG1hc2sgaWQ9ImxkaW8tdmN5YjQ1YmFvdWstbWFzayIgc3R5bGU9ImFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyI+CiAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0id2hpdGUiIHN0eWxlPSJhbmltYXRpb24tcGxheS1zdGF0ZTogcnVubmluZzsgYW5pbWF0aW9uLWRlbGF5OiAwczsiPjwvcmVjdD4KICA8L21hc2s+CjwvZGVmcz4KPHJlY3QgeD0iMCIgeT0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YnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0icm90YXRlIiBkdXI9IjEuNTE1MTUxNTE1MTUxNTE1MXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiB2YWx1ZXM9IjAgNTAgLTExMDs5MCA1MCAtMTEwIiBrZXlUaW1lcz0iMDsxIiBzdHlsZT0iYW5pbWF0aW9uLXBsYXktc3RhdGU6IHJ1bm5pbmc7IGFuaW1hdGlvbi1kZWxheTogMHM7Ij48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgoKICA8cmVjdCB4PSItMTAwIiB5PSItMjcwIiB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgcng9IjEwMCIgcnk9IjEwMCIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC40IiBzdHlsZT0iYW5pbWF0aW9uLXBsYXktc3RhdGU6IHJ1bm5pbmc7IGFuaW1hdGlvbi1kZWxheTogMHM7Ij4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0icm90YXRlIiBkdXI9IjMuMDMwMzAzMDMwMzAzMDMwM3MiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiB2YWx1ZXM9IjAgNTAgLTEyMDs5MCA1MCAtMTIwIiBrZXlUaW1lcz0iMDsxIiBzdHlsZT0iYW5pbWF0aW9uLXBsYXktc3RhdGU6IHJ1bm5pbmc7IGFuaW1hdGlvbi1kZWxheTogMHM7Ij48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgoKPC9nPgo8IS0tIFtsZGlvXSBnZW5lcmF0ZWQgYnkgaHR0cHM6Ly9sb2FkaW5nLmlvLyAtLT48L3N2Zz4=');
27
- this.renderer.setStyle(spinner, 'width', '30px');
28
- this.renderer.setStyle(spinner, 'height', '30px');
29
- this.renderer.setStyle(spinner, 'border-radius', '50%');
30
-
31
- this.renderer.appendChild(this.spinnerWrapper, spinner);
32
- }
33
-
34
- ngOnChanges(changes: SimpleChanges): void {
35
- if (changes['appLoading']) {
36
- if (this.appLoading) {
37
- this.showSpinner();
38
- } else {
39
- this.hideSpinner();
40
- }
41
- }
42
- }
43
-
44
- private showSpinner(): void {
45
- this.renderer.setStyle(this.el.nativeElement, 'position', 'relative');
46
- this.renderer.appendChild(this.el.nativeElement, this.spinnerWrapper);
47
- }
48
-
49
- private hideSpinner(): void {
50
- if (this.el.nativeElement.contains(this.spinnerWrapper)) {
51
- this.renderer.removeChild(this.el.nativeElement, this.spinnerWrapper);
52
- }
53
- }
54
-
55
- }
@@ -1,28 +0,0 @@
1
- import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
2
-
3
- @Directive({
4
- selector: '[ngAtoVar]',
5
- })
6
- export class AtoNgVarDirective {
7
- @Input()
8
- set ngAtoVar(context: unknown) {
9
- this.context.$implicit = this.context.ngAtoVar = context;
10
-
11
- if (!this.hasView) {
12
- this.vcRef.createEmbeddedView(this.templateRef, this.context);
13
- this.hasView = true;
14
- }
15
- }
16
-
17
- private context: {
18
- $implicit: unknown;
19
- ngAtoVar: unknown;
20
- } = {
21
- $implicit: null,
22
- ngAtoVar: null,
23
- };
24
-
25
- private hasView: boolean = false;
26
-
27
- constructor(private templateRef: TemplateRef<any>, private vcRef: ViewContainerRef) {}
28
- }