ato-water-lib 0.0.87 → 0.0.90
Sign up to get free protection for your applications and to get access to all the features.
- package/{esm2020 → esm2022}/lib/ato-water-lib.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/ato-water-lib.module.mjs +15 -15
- package/{esm2020 → esm2022}/lib/ato-water-lib.service.mjs +5 -5
- package/esm2022/lib/components/asset-flow/asset-flow.component.mjs +174 -0
- package/{esm2020 → esm2022}/lib/components/asset-params-view/asset-params-view.component.mjs +7 -9
- package/esm2022/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +55 -0
- package/esm2022/lib/directive/ato-loading.directive.mjs +59 -0
- package/esm2022/lib/directive/ng-var.directive.mjs +33 -0
- package/esm2022/lib/models/default-gojs-editor.model.mjs +3582 -0
- package/esm2022/lib/models/gojs-data.model.mjs +10 -0
- package/esm2022/lib/models/gojs-editor.model.mjs +1799 -0
- package/esm2022/lib/services/utils/utils.service.mjs +133 -0
- package/{fesm2020 → fesm2022}/ato-water-lib.mjs +199 -168
- package/fesm2022/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 +1 -1
- 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 +4 -4
- package/package.json +7 -13
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +0 -165
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +0 -54
- package/esm2020/lib/directive/ato-loading.directive.mjs +0 -55
- package/esm2020/lib/directive/ng-var.directive.mjs +0 -31
- package/esm2020/lib/models/default-gojs-editor.model.mjs +0 -3567
- package/esm2020/lib/models/gojs-data.model.mjs +0 -6
- package/esm2020/lib/models/gojs-editor.model.mjs +0 -1797
- package/esm2020/lib/services/utils/utils.service.mjs +0 -133
- package/fesm2015/ato-water-lib.mjs +0 -9049
- package/fesm2015/ato-water-lib.mjs.map +0 -1
- package/fesm2020/ato-water-lib.mjs.map +0 -1
- /package/{esm2020 → esm2022}/ato-water-lib.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/applicable-prefixes-const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/base64.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/components-group-const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/icon-base64.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/key.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/plant.constant.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/value.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/ato-asset-flow.model.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
@@ -35,5 +35,5 @@ export declare class AssetFlowComponent implements OnInit {
|
|
35
35
|
setFlowData(data: AtoGoJSData): void;
|
36
36
|
updateDataTableAssetParams(data: AtoGoJSData): void;
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssetFlowComponent, never>;
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AssetFlowComponent, "ato-asset-flow", never, { "assetLayer": "assetLayer"; "selectedComponent": "selectedComponent"; "systemType": "systemType"; "isUseBase64": "isUseBase64"; "isFrom": "isFrom"; "flowData": "flowData"; "getFlowDataCallBack": "getFlowDataCallBack"; }, { "onClickParamOfTableEvent": "onClickParamOfTableEvent"; }, never, never, false, never>;
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AssetFlowComponent, "ato-asset-flow", never, { "assetLayer": { "alias": "assetLayer"; "required": false; }; "selectedComponent": { "alias": "selectedComponent"; "required": false; }; "systemType": { "alias": "systemType"; "required": false; }; "isUseBase64": { "alias": "isUseBase64"; "required": false; }; "isFrom": { "alias": "isFrom"; "required": false; }; "flowData": { "alias": "flowData"; "required": false; }; "getFlowDataCallBack": { "alias": "getFlowDataCallBack"; "required": false; }; }, { "onClickParamOfTableEvent": "onClickParamOfTableEvent"; }, never, never, false, never>;
|
39
39
|
}
|
@@ -6,5 +6,5 @@ export declare class AtoAssetParamsViewComponent {
|
|
6
6
|
clickParamTableRow: EventEmitter<any>;
|
7
7
|
onClickRowParam(itemTable: any): void;
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtoAssetParamsViewComponent, never>;
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtoAssetParamsViewComponent, "ato-asset-params-view", never, { "isEditView": "isEditView"; "data": "data"; }, { "clickParamTableRow": "clickParamTableRow"; }, never, never, false, never>;
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtoAssetParamsViewComponent, "ato-asset-params-view", never, { "isEditView": { "alias": "isEditView"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "clickParamTableRow": "clickParamTableRow"; }, never, never, false, never>;
|
10
10
|
}
|
@@ -12,5 +12,5 @@ export declare class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor imp
|
|
12
12
|
loadDiagram(): void;
|
13
13
|
findNodeForKey(key: number | string): void;
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtoFlowDiagramLibComponent, never>;
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtoFlowDiagramLibComponent, "ato-flow-diagram-lib", never, { "data": "data"; "isLoading": "isLoading"; }, {}, never, never, false, never>;
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtoFlowDiagramLibComponent, "ato-flow-diagram-lib", never, { "data": { "alias": "data"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, {}, never, never, false, never>;
|
16
16
|
}
|
@@ -57,7 +57,7 @@ export declare enum ENUM_ASSET_PARAMETERS {
|
|
57
57
|
}
|
58
58
|
export declare enum WATER_SYSTEMS_NAME {
|
59
59
|
EVAPORATION_LOSS = "Evaporation Loss",
|
60
|
-
MAKEUP_WATER = "Makeup Water"
|
60
|
+
MAKEUP_WATER = "Makeup Water",// includes MAKEUP_WATER__FLOW or MAKEUP_WATER__CHEMISTRY
|
61
61
|
MAKEUP_WATER__FLOW = "Makeup Water Flow",
|
62
62
|
MAKEUP_WATER__CHEMISTRY = "Makeup Water Chemistry",
|
63
63
|
WARMER_WATER = "Warmer Water (Recirculation)",
|
@@ -10,5 +10,5 @@ export declare class AtoLoadingDirective implements OnChanges {
|
|
10
10
|
private showSpinner;
|
11
11
|
private hideSpinner;
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtoLoadingDirective, never>;
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoLoadingDirective, "[atoLoading]", never, { "appLoading": "appLoading"; }, {}, never, never, false, never>;
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoLoadingDirective, "[atoLoading]", never, { "appLoading": { "alias": "appLoading"; "required": false; }; }, {}, never, never, false, never>;
|
14
14
|
}
|
@@ -8,5 +8,5 @@ export declare class AtoNgVarDirective {
|
|
8
8
|
private hasView;
|
9
9
|
constructor(templateRef: TemplateRef<any>, vcRef: ViewContainerRef);
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtoNgVarDirective, never>;
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoNgVarDirective, "[ngAtoVar]", never, { "ngAtoVar": "ngAtoVar"; }, {}, never, never, false, never>;
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoNgVarDirective, "[ngAtoVar]", never, { "ngAtoVar": { "alias": "ngAtoVar"; "required": false; }; }, {}, never, never, false, never>;
|
12
12
|
}
|
@@ -175,7 +175,7 @@ export declare class AtoDefaultGojsEditor implements OnDestroy {
|
|
175
175
|
unsubscribeAll(): void;
|
176
176
|
addSubscribes(...subscriptions: Subscription[]): void;
|
177
177
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtoDefaultGojsEditor, never>;
|
178
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoDefaultGojsEditor, never, never, { "linkValidation": "linkValidation"; "initialOptions": "initialOptions"; "editor": "editor"; "isShowNodeInfo": "isShowNodeInfo"; "plantSatus": "plantSatus"; }, { "onModelChangeListenerEvent": "onModelChangeListenerEvent"; "onClickInfoButton": "onClickInfoButton"; "onOpenWizard": "onOpenWizard"; "onOpenDetail": "onOpenDetail"; "onOpenAssetParameter": "onOpenAssetParameter"; "onOpenInsightMapping": "onOpenInsightMapping"; "onHoverInfoButton": "onHoverInfoButton"; "onHoverAlert": "onHoverAlert"; "onDoubleClickNode": "onDoubleClickNode"; "onOpenChangeIcon": "onOpenChangeIcon"; "onClickCompoent": "onClickCompoent"; "callbackImageTopology": "callbackImageTopology"; "onClikParamOfTable": "onClikParamOfTable"; "onDeleteNode": "onDeleteNode"; "onUndo": "onUndo"; "onRename": "onRename"; }, never, never, false, never>;
|
178
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoDefaultGojsEditor, never, never, { "linkValidation": { "alias": "linkValidation"; "required": false; }; "initialOptions": { "alias": "initialOptions"; "required": false; }; "editor": { "alias": "editor"; "required": false; }; "isShowNodeInfo": { "alias": "isShowNodeInfo"; "required": false; }; "plantSatus": { "alias": "plantSatus"; "required": false; }; }, { "onModelChangeListenerEvent": "onModelChangeListenerEvent"; "onClickInfoButton": "onClickInfoButton"; "onOpenWizard": "onOpenWizard"; "onOpenDetail": "onOpenDetail"; "onOpenAssetParameter": "onOpenAssetParameter"; "onOpenInsightMapping": "onOpenInsightMapping"; "onHoverInfoButton": "onHoverInfoButton"; "onHoverAlert": "onHoverAlert"; "onDoubleClickNode": "onDoubleClickNode"; "onOpenChangeIcon": "onOpenChangeIcon"; "onClickCompoent": "onClickCompoent"; "callbackImageTopology": "callbackImageTopology"; "onClikParamOfTable": "onClikParamOfTable"; "onDeleteNode": "onDeleteNode"; "onUndo": "onUndo"; "onRename": "onRename"; }, never, never, false, never>;
|
179
179
|
}
|
180
180
|
export declare namespace AtoDefaultGojsEditor {
|
181
181
|
enum ENUM_ACTIONS {
|
@@ -188,7 +188,7 @@ export declare namespace AtoDefaultGojsEditor {
|
|
188
188
|
DATA_MAPPING = "Data Mapping",
|
189
189
|
MORE = "More",
|
190
190
|
FLOW_DETAILS = "Flow details",
|
191
|
-
FLOW_DETAILS_AND_WIZARD = "Flow details & wizard"
|
191
|
+
FLOW_DETAILS_AND_WIZARD = "Flow details & wizard",// only now for Cooling Tower
|
192
192
|
ASSET_PARAMETERS = "Asset parameters",
|
193
193
|
CHANGE_ICON = "Change icon"
|
194
194
|
}
|
@@ -86,8 +86,8 @@ export declare namespace AtoGojsEditorModel {
|
|
86
86
|
SPECIAL_STORAGE = "STORAGE",
|
87
87
|
SPECIAL_DISCHARGE = "SPECIAL_DISCHARGE",
|
88
88
|
SPECIAL_OTHER = "SPECIAL_OTHER",
|
89
|
-
FRESH_SURFACE_WATER = "Fresh surface water",
|
90
|
-
THIRD_PARTY_SOURCES = "Third party sources"
|
89
|
+
FRESH_SURFACE_WATER = "Fresh surface water",// 'RAIN_WATER',
|
90
|
+
THIRD_PARTY_SOURCES = "Third party sources",// TANKER
|
91
91
|
THIRD_PARTY_DESTINATIONS = "Third party destinations",
|
92
92
|
GROUND_WATER_NON_RENEWABLE = "Groundwater - non-renewable",
|
93
93
|
PRODUCED_ENTRAINED = "Produced / entrained water",
|
@@ -207,8 +207,8 @@ export declare namespace AtoGojsEditorModel {
|
|
207
207
|
BOILER = "Boilers",
|
208
208
|
OTHER = "OtherWaterUse",
|
209
209
|
LANDSCAPING_IRRIGATION = "IrrigationUse",
|
210
|
-
FRESH_SURFACE_WATER = "Fresh surface water",
|
211
|
-
THIRD_PARTY_SOURCES = "Third party sources"
|
210
|
+
FRESH_SURFACE_WATER = "Fresh surface water",// 'RAIN_WATER',
|
211
|
+
THIRD_PARTY_SOURCES = "Third party sources",// TANKER
|
212
212
|
THIRD_PARTY_DESTINATIONS = "Third party destinations",
|
213
213
|
GROUND_WATER_NON_RENEWABLE = "Groundwater - non-renewable",
|
214
214
|
PRODUCED_ENTRAINED = "Produced / entrained water",
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "ato-water-lib",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.90",
|
4
4
|
"peerDependencies": {
|
5
|
-
"@angular/common": "^15.1.0 || ^16.2.0",
|
6
|
-
"@angular/core": "^15.1.0 || ^16.2.0",
|
5
|
+
"@angular/common": "^15.1.0 || ^16.2.0 || ^17.0.0 || ^18.2.7",
|
6
|
+
"@angular/core": "^15.1.0 || ^16.2.0 || ^17.0.0 || ^18.2.7",
|
7
7
|
"gojs": "^2.1.56",
|
8
8
|
"lodash": "^4.17.21",
|
9
9
|
"moment": "^2.30.1"
|
@@ -12,11 +12,7 @@
|
|
12
12
|
"tslib": "^2.3.0"
|
13
13
|
},
|
14
14
|
"sideEffects": false,
|
15
|
-
"module": "
|
16
|
-
"es2020": "fesm2020/ato-water-lib.mjs",
|
17
|
-
"esm2020": "esm2020/ato-water-lib.mjs",
|
18
|
-
"fesm2020": "fesm2020/ato-water-lib.mjs",
|
19
|
-
"fesm2015": "fesm2015/ato-water-lib.mjs",
|
15
|
+
"module": "fesm2022/ato-water-lib.mjs",
|
20
16
|
"typings": "index.d.ts",
|
21
17
|
"exports": {
|
22
18
|
"./package.json": {
|
@@ -24,11 +20,9 @@
|
|
24
20
|
},
|
25
21
|
".": {
|
26
22
|
"types": "./index.d.ts",
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"node": "./fesm2015/ato-water-lib.mjs",
|
31
|
-
"default": "./fesm2020/ato-water-lib.mjs"
|
23
|
+
"esm2022": "./esm2022/ato-water-lib.mjs",
|
24
|
+
"esm": "./esm2022/ato-water-lib.mjs",
|
25
|
+
"default": "./fesm2022/ato-water-lib.mjs"
|
32
26
|
}
|
33
27
|
}
|
34
28
|
}
|
@@ -1,165 +0,0 @@
|
|
1
|
-
import { Component, EventEmitter, HostListener, Input, Output, ViewChild, } from '@angular/core';
|
2
|
-
import * as go from 'gojs';
|
3
|
-
import _ from 'lodash';
|
4
|
-
import { AtoGoJSBase64 } from '../../constants/base64.const';
|
5
|
-
import { ATO_COMPONENTS_GROUP_DATA, } from '../../constants/components-group-const';
|
6
|
-
import { AtoGojsEditorModel } from '../../models/gojs-editor.model';
|
7
|
-
import { AtoAssetParamsViewComponent } from '../asset-params-view/asset-params-view.component';
|
8
|
-
import { AtoFlowDiagramLibComponent } from '../flow-diagram-lib/flow-diagram-lib.component';
|
9
|
-
import * as i0 from "@angular/core";
|
10
|
-
import * as i1 from "@angular/common";
|
11
|
-
import * as i2 from "../flow-diagram-lib/flow-diagram-lib.component";
|
12
|
-
import * as i3 from "../../directive/ato-loading.directive";
|
13
|
-
import * as i4 from "../asset-params-view/asset-params-view.component";
|
14
|
-
export class AssetFlowComponent {
|
15
|
-
constructor() {
|
16
|
-
this.onClickParamOfTableEvent = new EventEmitter();
|
17
|
-
this.isUseBase64 = false;
|
18
|
-
this.$ = go.GraphObject.make;
|
19
|
-
this.options = {
|
20
|
-
layout: this.$(go.LayeredDigraphLayout, {
|
21
|
-
// direction: 0,
|
22
|
-
}),
|
23
|
-
// isReadOnly: true,
|
24
|
-
};
|
25
|
-
}
|
26
|
-
set flowData(v) {
|
27
|
-
this._flowData = v;
|
28
|
-
this.updateDataTableAssetParams({ ...v, assetLayer: this.assetLayer });
|
29
|
-
}
|
30
|
-
get flowData() {
|
31
|
-
return this._flowData;
|
32
|
-
}
|
33
|
-
// @Input() isResponsiveView = false;
|
34
|
-
get isResponsiveView() {
|
35
|
-
return window.innerWidth < 1024;
|
36
|
-
}
|
37
|
-
onResize(event) {
|
38
|
-
// Now only Support Cooling Tower Responsive
|
39
|
-
if (this.timeoutResizeWindow) {
|
40
|
-
clearTimeout(this.timeoutResizeWindow);
|
41
|
-
}
|
42
|
-
this.timeoutResizeWindow = setTimeout(() => {
|
43
|
-
this.updateLocationReponsive();
|
44
|
-
}, 1000);
|
45
|
-
}
|
46
|
-
updateLocationReponsive() {
|
47
|
-
if (!this.flowData?.nodeDataArray) {
|
48
|
-
this.flowData = AssetFlowComponent.getDefaultFlowData({
|
49
|
-
systemType: this.systemType,
|
50
|
-
isUseBase64: this.isUseBase64,
|
51
|
-
assetLayer: this.assetLayer,
|
52
|
-
});
|
53
|
-
}
|
54
|
-
_.forEach(this.flowData?.nodeDataArray, (node) => {
|
55
|
-
node = _.merge(node, node[`extendedData${this.isResponsiveView ? 'Responsive' : ''}`]);
|
56
|
-
});
|
57
|
-
this.setFlowData(_.cloneDeep(this.flowData));
|
58
|
-
}
|
59
|
-
ngOnInit() {
|
60
|
-
this.updateLocationReponsive();
|
61
|
-
}
|
62
|
-
onClickParamOfTable($event) {
|
63
|
-
this.onClickParamOfTableEvent.emit($event);
|
64
|
-
}
|
65
|
-
static getDefaultFlowData(defaultData) {
|
66
|
-
const flowData = {
|
67
|
-
...defaultData,
|
68
|
-
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[defaultData?.systemType],
|
69
|
-
linkFromPortIdProperty: 'fromPort',
|
70
|
-
linkToPortIdProperty: 'toPort',
|
71
|
-
};
|
72
|
-
const isResponsiveView = window.innerWidth < 1024;
|
73
|
-
// Reponsive
|
74
|
-
_.forEach(flowData?.nodeDataArray, (node) => {
|
75
|
-
const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `isFrom${defaultData.isFrom}` : ''}${isResponsiveView ? 'Responsive' : ''}`;
|
76
|
-
node = _.merge(node, node[propertyNameExtend]);
|
77
|
-
if (node?.assetLayers) {
|
78
|
-
node.visible =
|
79
|
-
node?.assetLayers === defaultData?.assetLayer &&
|
80
|
-
node[propertyNameExtend]?.visible;
|
81
|
-
}
|
82
|
-
if (defaultData.isFrom && node?.dataTable) {
|
83
|
-
_.forEach(node?.dataTable, item => {
|
84
|
-
if (item?.isFrom) {
|
85
|
-
item.visible = item?.isFrom === defaultData.isFrom;
|
86
|
-
}
|
87
|
-
item = _.merge(item, item[`extendedDataIsFrom${defaultData.isFrom}`]);
|
88
|
-
});
|
89
|
-
}
|
90
|
-
});
|
91
|
-
// assetLayer
|
92
|
-
// flowData.nodeDataArray = _.filter(flowData.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === (defaultData?.assetLayer ?? ATO_ASSET_LAYERS.FLOW)))
|
93
|
-
if (defaultData?.isUseBase64) {
|
94
|
-
const itemImageTemp = flowData?.nodeDataArray?.find((x) => x?.type === 'Image Template');
|
95
|
-
if (itemImageTemp) {
|
96
|
-
itemImageTemp.source = AtoGoJSBase64[defaultData?.systemType];
|
97
|
-
}
|
98
|
-
}
|
99
|
-
return flowData;
|
100
|
-
}
|
101
|
-
setFlowData(data) {
|
102
|
-
_.forEach(data.nodeDataArray, (node) => {
|
103
|
-
const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `isFrom${data.isFrom}` : ''}${this.isResponsiveView ? 'Responsive' : ''}`;
|
104
|
-
node = _.merge(node, node[propertyNameExtend]);
|
105
|
-
if (node?.assetLayers) {
|
106
|
-
node.visible =
|
107
|
-
node?.assetLayers === data.assetLayer &&
|
108
|
-
node[propertyNameExtend]
|
109
|
-
?.visible;
|
110
|
-
}
|
111
|
-
if (data.isFrom && node?.dataTable) {
|
112
|
-
_.forEach(node?.dataTable, item => {
|
113
|
-
if (item?.isFrom) {
|
114
|
-
item.visible = item?.isFrom === data.isFrom;
|
115
|
-
}
|
116
|
-
item = _.merge(item, item[`extendedDataIsFrom${data.isFrom}`]);
|
117
|
-
});
|
118
|
-
}
|
119
|
-
});
|
120
|
-
this.flowData = {
|
121
|
-
...data,
|
122
|
-
};
|
123
|
-
this.updateDataTableAssetParams(data);
|
124
|
-
}
|
125
|
-
updateDataTableAssetParams(data) {
|
126
|
-
this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE &&
|
127
|
-
(data?.assetLayer ? (e?.assetLayers === data?.assetLayer) : true)), (x) => {
|
128
|
-
if (!data?.isRefresh) {
|
129
|
-
x.isCollapsed = this.assetParamsViewTemp?.data?.find((y) => y?.key === x?.key)?.isCollapsed;
|
130
|
-
}
|
131
|
-
});
|
132
|
-
}
|
133
|
-
}
|
134
|
-
AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
135
|
-
AssetFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AssetFlowComponent, selector: "ato-asset-flow", inputs: { assetLayer: "assetLayer", selectedComponent: "selectedComponent", systemType: "systemType", isUseBase64: "isUseBase64", isFrom: "isFrom", flowData: "flowData", getFlowDataCallBack: "getFlowDataCallBack" }, outputs: { onClickParamOfTableEvent: "onClickParamOfTableEvent" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "gjFlowDiagramTemp", first: true, predicate: AtoFlowDiagramLibComponent, descendants: true }, { propertyName: "assetParamsViewTemp", first: true, predicate: AtoAssetParamsViewComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n #assetParamsViewTemp\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh;min-height:30vh}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: ["data", "isLoading"] }, { kind: "directive", type: i3.AtoLoadingDirective, selector: "[atoLoading]", inputs: ["appLoading"] }, { kind: "component", type: i4.AtoAssetParamsViewComponent, selector: "ato-asset-params-view", inputs: ["isEditView", "data"], outputs: ["clickParamTableRow"] }] });
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, decorators: [{
|
137
|
-
type: Component,
|
138
|
-
args: [{ selector: 'ato-asset-flow', template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n #assetParamsViewTemp\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh;min-height:30vh}\n"] }]
|
139
|
-
}], propDecorators: { assetLayer: [{
|
140
|
-
type: Input
|
141
|
-
}], gjFlowDiagramTemp: [{
|
142
|
-
type: ViewChild,
|
143
|
-
args: [AtoFlowDiagramLibComponent]
|
144
|
-
}], assetParamsViewTemp: [{
|
145
|
-
type: ViewChild,
|
146
|
-
args: [AtoAssetParamsViewComponent]
|
147
|
-
}], selectedComponent: [{
|
148
|
-
type: Input
|
149
|
-
}], systemType: [{
|
150
|
-
type: Input
|
151
|
-
}], onClickParamOfTableEvent: [{
|
152
|
-
type: Output
|
153
|
-
}], isUseBase64: [{
|
154
|
-
type: Input
|
155
|
-
}], isFrom: [{
|
156
|
-
type: Input
|
157
|
-
}], flowData: [{
|
158
|
-
type: Input
|
159
|
-
}], getFlowDataCallBack: [{
|
160
|
-
type: Input
|
161
|
-
}], onResize: [{
|
162
|
-
type: HostListener,
|
163
|
-
args: ['window:resize', ['$event']]
|
164
|
-
}] } });
|
165
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtZmxvdy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9hc3NldC1mbG93L2Fzc2V0LWZsb3cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXNzZXQtZmxvdy9hc3NldC1mbG93LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsWUFBWSxFQUNaLFlBQVksRUFDWixLQUFLLEVBRUwsTUFBTSxFQUNOLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEtBQUssRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMzQixPQUFPLENBQUMsTUFBTSxRQUFRLENBQUM7QUFDdkIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDhC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IDwvZGl2PlxuPC9kaXY+XG5cbiJdfQ==
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
2
|
-
import { AtoDefaultGojsEditor } from '../../models/default-gojs-editor.model';
|
3
|
-
import { AtoGojsEditorModel } from '../../models/gojs-editor.model';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
import * as i1 from "@angular/common";
|
6
|
-
import * as i2 from "../../directive/ato-loading.directive";
|
7
|
-
export class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
8
|
-
set data(v) {
|
9
|
-
this._data = v;
|
10
|
-
this.loadDiagram();
|
11
|
-
}
|
12
|
-
get data() {
|
13
|
-
return this._data;
|
14
|
-
}
|
15
|
-
constructor(_elRef) {
|
16
|
-
super(_elRef);
|
17
|
-
this._data = null;
|
18
|
-
this.isLoading = false;
|
19
|
-
this.actions = [
|
20
|
-
AtoDefaultGojsEditor.ACTIONS[AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS],
|
21
|
-
AtoDefaultGojsEditor.ACTIONS[AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE],
|
22
|
-
];
|
23
|
-
this.unsubscribeAll();
|
24
|
-
}
|
25
|
-
ngOnInit() {
|
26
|
-
this.addSubscribes(this.committedTransactionSubject?.subscribe((e) => {
|
27
|
-
this.onModelChangeListenerEvent.emit(e);
|
28
|
-
}));
|
29
|
-
}
|
30
|
-
loadDiagram() {
|
31
|
-
this.editor = new AtoGojsEditorModel({
|
32
|
-
class: 'go.GraphLinksModel',
|
33
|
-
nodeCategoryProperty: 'type',
|
34
|
-
...this.data,
|
35
|
-
});
|
36
|
-
}
|
37
|
-
findNodeForKey(key) {
|
38
|
-
this.myDiagram.select(this.myDiagram.findNodeForKey(key));
|
39
|
-
}
|
40
|
-
}
|
41
|
-
AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
42
|
-
AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { data: "data", isLoading: "isLoading" }, viewQueries: [{ propertyName: "myDiagramDivTemp", first: true, predicate: ["myDiagramDivTemp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\">\n <div class=\"w-100 h-100 d-flex\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp class=\"flex-grow-1 {{myDiagramDiv}}\"></div>\n <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <!-- <nz-empty nzNotFoundImage=\"simple\"></nz-empty> -->\n No Data\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.AtoLoadingDirective, selector: "[atoLoading]", inputs: ["appLoading"] }] });
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
|
44
|
-
type: Component,
|
45
|
-
args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\">\n <div class=\"w-100 h-100 d-flex\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp class=\"flex-grow-1 {{myDiagramDiv}}\"></div>\n <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <!-- <nz-empty nzNotFoundImage=\"simple\"></nz-empty> -->\n No Data\n </div>\n </div>\n</div>\n" }]
|
46
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
|
47
|
-
type: ViewChild,
|
48
|
-
args: ['myDiagramDivTemp']
|
49
|
-
}], data: [{
|
50
|
-
type: Input
|
51
|
-
}], isLoading: [{
|
52
|
-
type: Input
|
53
|
-
}] } });
|
54
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxvdy1kaWFncmFtLWxpYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9mbG93LWRpYWdyYW0tbGliL2Zsb3ctZGlhZ3JhbS1saWIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvZmxvdy1kaWFncmFtLWxpYi9mbG93LWRpYWdyYW0tbGliLmNvbXBvbmVudC5odG1sIl0sIm5hbWV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aWJlcyhcbiAgICAgICAgICB0aGlzLmNvbW1pdHRlZFRyYW5zYWN0aW9uU3ViamVjdD8uc3Vic2NyaWJlKChlKSA9PiB7XG4gICAgICAgICAgICAgIHRoaXMub25Nb2RlbENoYW5nZUxpc3RlbmVyRXZlbnQuZW1pdChlKTtcbiAgICAgICAgICB9KSxcbiAgICAgICAgICAvLyB0aGlzLl9HalV0aWxzU2VydmljZT8udXBkYXRlTmFtZURhdGFCb3gkPy5zdWJzY3JpYmUoKHJzKSA9PiB7XG4gICAgICAgICAgLy8gICAgIGlmIChycyAmJiBycz8ua2V5KSB7XG4gICAgICAgICAgLy8gICAgICAgICBjb25zdCBub2RlID0gdGhpcy5teURpYWdyYW0uZmluZE5vZGVGb3JLZXkocnM/LmtleSk7XG4gICAgICAgICAgLy8gICAgICAgICB0aGlzLm15RGlhZ3JhbS5tb2RlbC5zZXREYXRhUHJvcGVydHkobm9kZT8uZGF0YSwgJ25hbWUnLCBycz8ubmFtZSk7XG4gICAgICAgICAgLy8gICAgIH1cbiAgICAgICAgICAvLyB9KSxcbiAgICAgICk7XG4gIH1cblxuICBsb2FkRGlhZ3JhbSgpIHtcbiAgICAgIHRoaXMuZWRpdG9yID0gbmV3IEF0b0dvanNFZGl0b3JNb2RlbCh7XG4gICAgICAgICAgY2xhc3M6ICdnby5HcmFwaExpbmtzTW9kZWwnLFxuICAgICAgICAgIG5vZGVDYXRlZ29yeVByb3BlcnR5OiAndHlwZScsXG4gICAgICAgICAgLi4udGhpcy5kYXRhLFxuICAgICAgfSk7XG4gIH1cblxuICBmaW5kTm9kZUZvcktleShrZXk6IG51bWJlciB8IHN0cmluZykge1xuICAgICAgdGhpcy5teURpYWdyYW0uc2VsZWN0KHRoaXMubXlEaWFncmFtLmZpbmROb2RlRm9yS2V5KGtleSkpO1xuICB9XG59XG5cblxuXG5cblxuIiwiPGRpdiBjbGFzcz1cInctMTAwIGgtMTAwIGdqLWZsb3ctZGlhZ3JhbS13cmFwcGVyXCIgYXRv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GE/Lm5vZGVEYXRhQXJyYXk/Lmxlbmd0aFwiIGNsYXNzPVwiZW1wdHktZGF0YVwiPlxuICAgICAgICAgICAgPCEtLSA8bnotZW1wdHkgbnpOb3RGb3VuZEltYWdlPVwic2ltcGxlXCI+PC9uei1lbXB0eT4gLS0+XG4gICAgICAgICAgICBObyBEYXRhXG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
@@ -1,55 +0,0 @@
|
|
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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZ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B4PSItMTAwIiB5PSItMjcwIiB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgcng9IjEwMCIgcnk9IjEwMCIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC40IiBzdHlsZT0iYW5pbWF0aW9uLXBsYXktc3RhdGU6IHJ1bm5pbmc7IGFuaW1hdGlvbi1kZWxheTogMHM7Ij4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0icm90YXRlIiBkdXI9IjMuMDMwMzAzMDMwMzAzMDMwM3MiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiB2YWx1ZXM9IjAgNTAgLTEyMDs5MCA1MCAtMTIwIiBrZXlUaW1lcz0iMDsxIiBzdHlsZT0iYW5pbWF0aW9uLXBsYXktc3RhdGU6IHJ1bm5pbmc7IGFuaW1hdGlvbi1kZWxheTogMHM7Ij48L2FuaW1hdGVUcmFuc2Zvcm0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLWxvYWRpbmcuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2RpcmVjdGl2ZS9hdG8tbG9hZGluZy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBeUIsS0FBSyxFQUE0QixNQUFNLGVBQWUsQ0FBQzs7QUFLbEcsTUFBTSxPQUFPLG1CQUFtQjtJQU05QixZQUFvQixFQUFjLEVBQVUsUUFBbUI7UUFBM0MsT0FBRSxHQUFGLE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MucmVuZGVyZXIuc2V0U3R5bGUoc3Bpbm5lciwgJ2JvcmRlci1yYWRpdXMnLCAnNTAlJyk7XG5cbiAgICB0aGlzLnJlbmRlcmVyLmFwcGVuZENoaWxkKHRoaXMuc3Bpbm5lcldyYXBwZXIsIHNwaW5uZXIpO1xuICB9XG5cbiAgbmdPbkNoYW5nZXMoY2hhbmdlczogU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xuICAgIGlmIChjaGFuZ2VzWydhcHBMb2FkaW5nJ10pIHtcbiAgICAgIGlmICh0aGlzLmFwcExvYWRpbmcpIHtcbiAgICAgICAgdGhpcy5zaG93U3Bpbm5lcigpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5oaWRlU3Bpbm5lcigpO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgc2hvd1NwaW5uZXIoKTogdm9pZCB7XG4gICAgdGhpcy5yZW5kZXJlci5zZXRTdHlsZSh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQsICdwb3NpdGlvbicsICdyZWxhdGl2ZScpO1xuICAgIHRoaXMucmVuZGVyZXIuYXBwZW5kQ2hpbGQodGhpcy5lbC5uYXRpdmVFbGVtZW50LCB0aGlzLnNwaW5uZXJXcmFwcGVyKTtcbiAgfVxuXG4gIHByaXZhdGUgaGlkZVNwaW5uZXIoKTogdm9pZCB7XG4gICAgaWYgKHRoaXMuZWwubmF0aXZlRWxlbWVudC5jb250YWlucyh0aGlzLnNwaW5uZXJXcmFwcGVyKSkge1xuICAgICAgdGhpcy5yZW5kZXJlci5yZW1vdmVDaGlsZCh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQsIHRoaXMuc3Bpbm5lcldyYXBwZXIpO1xuICAgIH1cbiAgfVxuXG59XG4iXX0=
|
@@ -1,31 +0,0 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdmFyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL2xpYi9kaXJlY3RpdmUvbmctdmFyLmRpcmVjdGl2ZS50cyJdLCJuY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