@zgfe/business-lib 1.1.3-user.0 → 1.1.3-user.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,11 +111,29 @@ var BizUserCondition = function BizUserCondition(props) {
111
111
 
112
112
  function initShowList() {
113
113
  var showList = [];
114
+ var showTag = openTagCondition && (!menuNameMap || menuNameMap['userTags']);
115
+ var showCdp = openCdpCondition && (!menuNameMap || menuNameMap['dataset']);
114
116
  value.forEach(function (item) {
115
- showList.push({
116
- id: Math.random(),
117
- orConditions: item
118
- });
117
+ var showItem = _toConsumableArray(item);
118
+
119
+ if (!(showTag && showCdp)) {
120
+ item.forEach(function (data, index) {
121
+ if (data.dataset && !showCdp) {
122
+ showItem.splice(index, 1);
123
+ }
124
+
125
+ if (data.labels && !showTag) {
126
+ showItem.splice(index, 1);
127
+ }
128
+ });
129
+ }
130
+
131
+ if (showItem.length > 0) {
132
+ showList.push({
133
+ id: Math.random(),
134
+ orConditions: showItem
135
+ });
136
+ }
119
137
  });
120
138
  setShowList(showList);
121
139
  setDataList(showList);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.3-user.0",
3
+ "version": "1.1.3-user.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.12.0 || ^17.0.0",
61
61
  "yorkie": "^2.0.0"
62
62
  },
63
- "gitHead": "26e6afc8e7d87d53736066f6380b8090b1016b9b"
63
+ "gitHead": "513c2967ae788c511226f44e778f204eecd9086e"
64
64
  }