ato-water-lib 0.0.103 → 0.0.104
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 +3 -3
- package/esm2020/lib/constants/components-group-const.mjs +23 -8
- package/fesm2015/ato-water-lib.mjs +22 -22
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +24 -9
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/constants/components-group-const.d.ts +1 -1
- package/package.json +1 -1
@@ -72,7 +72,7 @@ export class AssetFlowComponent {
|
|
72
72
|
const isResponsiveView = window.innerWidth < 1024;
|
73
73
|
// Reponsive
|
74
74
|
_.forEach(flowData?.nodeDataArray, (node) => {
|
75
|
-
const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `
|
75
|
+
const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `IsFrom${defaultData.isFrom}` : ''}${isResponsiveView ? 'Responsive' : ''}`;
|
76
76
|
node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${defaultData?.assetLayer}`] ?? {});
|
77
77
|
if (node?.assetLayers) {
|
78
78
|
node.visible =
|
@@ -100,7 +100,7 @@ export class AssetFlowComponent {
|
|
100
100
|
}
|
101
101
|
setFlowData(data) {
|
102
102
|
_.forEach(data.nodeDataArray, (node) => {
|
103
|
-
const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `
|
103
|
+
const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `IsFrom${data.isFrom}` : ''}${this.isResponsiveView ? 'Responsive' : ''}`;
|
104
104
|
node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${data?.assetLayer}`] ?? {});
|
105
105
|
if (node?.assetLayers) {
|
106
106
|
node.visible =
|
@@ -161,4 +161,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
161
161
|
type: HostListener,
|
162
162
|
args: ['window:resize', ['$event']]
|
163
163
|
}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