ato-water-lib 0.0.92 → 0.0.94
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +5 -6
- package/esm2020/lib/constants/base64.const.mjs +3 -1
- package/esm2020/lib/constants/components-group-const.mjs +283 -136
- package/esm2020/lib/models/default-gojs-editor.model.mjs +5 -4
- package/esm2020/lib/models/gojs-editor.model.mjs +8 -1
- package/fesm2015/ato-water-lib.mjs +221 -82
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +299 -143
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/constants/base64.const.d.ts +2 -0
- package/lib/constants/components-group-const.d.ts +82 -9
- package/lib/models/gojs-editor.model.d.ts +8 -1
- package/package.json +1 -1
@@ -80,7 +80,7 @@ export class AssetFlowComponent {
|
|
80
80
|
node[propertyNameExtend]?.visible;
|
81
81
|
}
|
82
82
|
if (defaultData.isFrom && node?.dataTable) {
|
83
|
-
_.forEach(node?.dataTable, item => {
|
83
|
+
_.forEach(node?.dataTable, (item) => {
|
84
84
|
if (item?.isFrom) {
|
85
85
|
item.visible = item?.isFrom === defaultData.isFrom;
|
86
86
|
}
|
@@ -105,11 +105,10 @@ export class AssetFlowComponent {
|
|
105
105
|
if (node?.assetLayers) {
|
106
106
|
node.visible =
|
107
107
|
node?.assetLayers === data.assetLayer &&
|
108
|
-
node[propertyNameExtend]
|
109
|
-
?.visible;
|
108
|
+
node[propertyNameExtend]?.visible;
|
110
109
|
}
|
111
110
|
if (data.isFrom && node?.dataTable) {
|
112
|
-
_.forEach(node?.dataTable, item => {
|
111
|
+
_.forEach(node?.dataTable, (item) => {
|
113
112
|
if (item?.isFrom) {
|
114
113
|
item.visible = item?.isFrom === data.isFrom;
|
115
114
|
}
|
@@ -124,7 +123,7 @@ export class AssetFlowComponent {
|
|
124
123
|
}
|
125
124
|
updateDataTableAssetParams(data) {
|
126
125
|
this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE &&
|
127
|
-
(data?.assetLayer ?
|
126
|
+
(data?.assetLayer ? e?.assetLayers === data?.assetLayer : true)), (x) => {
|
128
127
|
if (!data?.isRefresh) {
|
129
128
|
x.isCollapsed = this.assetParamsViewTemp?.data?.find((y) => y?.key === x?.key)?.isCollapsed;
|
130
129
|
}
|
@@ -162,4 +161,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
162
161
|
type: HostListener,
|
163
162
|
args: ['window:resize', ['$event']]
|
164
163
|
}] } });
|
165
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtZmxvdy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9hc3NldC1mbG93L2Fzc2V0LWZsb3cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXNzZXQtZmxvdy9hc3NldC1mbG93LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsWUFBWSxFQUNaLFlBQVksRUFDWixLQUFLLEVBRUwsTUFBTSxFQUNOLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEtBQUssRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMzQixPQUFPLENBQUMsTUFBTSxRQUFRLENBQUM7QUFDdkIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQzdELE9BQU8sRUFFTCx5QkFBeUIsR0FDMUIsTUFBTSx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