ato-water-lib 0.0.100 → 0.0.102
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 +113 -66
- package/fesm2015/ato-water-lib.mjs +99 -53
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +114 -67
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/constants/components-group-const.d.ts +152 -510
- package/package.json +1 -1
@@ -73,7 +73,7 @@ export class AssetFlowComponent {
|
|
73
73
|
// Reponsive
|
74
74
|
_.forEach(flowData?.nodeDataArray, (node) => {
|
75
75
|
const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `isFrom${defaultData.isFrom}` : ''}${isResponsiveView ? 'Responsive' : ''}`;
|
76
|
-
node = _.merge(node, node[propertyNameExtend]);
|
76
|
+
node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${defaultData?.assetLayer}`] ?? {});
|
77
77
|
if (node?.assetLayers) {
|
78
78
|
node.visible =
|
79
79
|
node?.assetLayers === defaultData?.assetLayer &&
|
@@ -101,7 +101,7 @@ export class AssetFlowComponent {
|
|
101
101
|
setFlowData(data) {
|
102
102
|
_.forEach(data.nodeDataArray, (node) => {
|
103
103
|
const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `isFrom${data.isFrom}` : ''}${this.isResponsiveView ? 'Responsive' : ''}`;
|
104
|
-
node = _.merge(node, node[propertyNameExtend]);
|
104
|
+
node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${data?.assetLayer}`] ?? {});
|
105
105
|
if (node?.assetLayers) {
|
106
106
|
node.visible =
|
107
107
|
node?.assetLayers === data.assetLayer &&
|
@@ -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
|
}] } });
|
164
|
-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