@zgfe/business-lib 1.2.71-hxd.9 → 1.2.86-h5.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.
Files changed (326) hide show
  1. package/README.md +1 -1
  2. package/es/AUMFormulaTarget/components/formula/index.js +10 -10
  3. package/es/AUMFormulaTarget/components/formula/util.js +6 -6
  4. package/es/AUMFormulaTarget/components/formulaItem/index.js +23 -23
  5. package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +50 -50
  6. package/es/AUMFormulaTarget/components/panel/index.js +30 -30
  7. package/es/AUMFormulaTarget/components/panel/item.js +22 -22
  8. package/es/AUMFormulaTarget/components/symbol/index.js +5 -5
  9. package/es/AUMFormulaTarget/demo/group.js +15 -15
  10. package/es/AUMFormulaTarget/demo/index.js +2 -2
  11. package/es/AUMFormulaTarget/index.d.ts +1 -4
  12. package/es/AUMFormulaTarget/index.js +11 -11
  13. package/es/addToPanel/components/addPanel.js +5 -5
  14. package/es/addToPanel/components/numberChart.js +5 -5
  15. package/es/addToPanel/components/radioGroup.d.ts +1 -4
  16. package/es/addToPanel/components/styleList.d.ts +1 -4
  17. package/es/addToPanel/components/styleList.js +5 -5
  18. package/es/addToPanel/components/wholeChart.js +5 -5
  19. package/es/addToPanel/demo/edit.js +8 -8
  20. package/es/addToPanel/demo/index.js +8 -8
  21. package/es/addToPanel/index.d.ts +1 -4
  22. package/es/addToPanel/index.js +22 -22
  23. package/es/addToScene/demo/index.js +8 -8
  24. package/es/addToScene/index.js +16 -11
  25. package/es/amountSelector/demo/index.js +1 -1
  26. package/es/amountSelector/index.js +1 -1
  27. package/es/assets/demo/dropdown.js +5 -5
  28. package/es/assets/demo/index.d.ts +1 -1
  29. package/es/assets/demo/index.js +1 -1
  30. package/es/assets/demo/input.js +6 -6
  31. package/es/assets/iconfont/demo_index.html +348 -19
  32. package/es/assets/iconfont/iconfont.css +3 -11
  33. package/es/assets/iconfont/iconfont.js +1 -1
  34. package/es/assets/iconfont/iconfont.json +161 -0
  35. package/es/assets/iconfont/iconfont.ttf +0 -0
  36. package/es/assets/iconfont/iconfont.woff +0 -0
  37. package/es/assets/iconfont/iconfont.woff2 +0 -0
  38. package/es/assets/theme.js +1 -1
  39. package/es/attrCondition/demo/group.js +1 -1
  40. package/es/attrCondition/demo/index.js +1 -1
  41. package/es/attrCondition/group.js +9 -12
  42. package/es/attrCondition/index.js +13 -16
  43. package/es/attrCondition/useAttrCondition.js +9 -11
  44. package/es/attrCondition/useConditionGroup.js +8 -8
  45. package/es/attrConditions/components/operateList.js +13 -16
  46. package/es/attrConditions/components/stringList.js +31 -26
  47. package/es/attrConditions/components/valuesList.js +5 -5
  48. package/es/attrConditions/demo/group.js +8 -8
  49. package/es/attrConditions/demo/index.js +6 -6
  50. package/es/attrConditions/group.js +3 -3
  51. package/es/attrConditions/index.d.ts +1 -4
  52. package/es/attrConditions/types.d.ts +0 -2
  53. package/es/attrConditions/utils/operates.d.ts +0 -4
  54. package/es/attrConditions/utils/operates.js +0 -37
  55. package/es/attributeSelector/demo/disable.d.ts +1 -1
  56. package/es/attributeSelector/demo/disable.js +7 -7
  57. package/es/attributeSelector/demo/extra.d.ts +1 -1
  58. package/es/attributeSelector/demo/extra.js +7 -7
  59. package/es/attributeSelector/demo/funnel.d.ts +1 -1
  60. package/es/attributeSelector/demo/funnel.js +7 -7
  61. package/es/attributeSelector/demo/index.d.ts +1 -1
  62. package/es/attributeSelector/demo/index.js +7 -7
  63. package/es/attributeSelector/index.js +35 -39
  64. package/es/attributeSelector/listPanel.js +126 -330
  65. package/es/attributeSelector/types.d.ts +0 -1
  66. package/es/attributeSelector/util.js +0 -3
  67. package/es/chart/demo/bar.js +1 -1
  68. package/es/chart/demo/index.js +7 -7
  69. package/es/chart/demo/line_bar.js +1 -1
  70. package/es/chart/demo/line_bar_stack.js +22 -22
  71. package/es/chart/demo/map.js +1 -1
  72. package/es/chart/demo/muit_y.js +1 -1
  73. package/es/chart/demo/pie.js +1 -1
  74. package/es/chart/demo/stack.js +7 -7
  75. package/es/chart/index.js +23 -21
  76. package/es/chart/util/chartOptionConfig.js +6 -6
  77. package/es/chart/util/data/china.js +1 -1
  78. package/es/chart/util/formatData.js +6 -6
  79. package/es/chart/util/mapUtil.js +11 -11
  80. package/es/colorIcon/demo/index.js +1 -1
  81. package/es/colorIcon/index.js +4 -2
  82. package/es/constants/apis.d.ts +0 -3
  83. package/es/constants/apis.js +2 -5
  84. package/es/constants/common.d.ts +0 -11
  85. package/es/constants/common.js +0 -31
  86. package/es/context/index.d.ts +0 -1
  87. package/es/context/index.js +1 -3
  88. package/es/cycleTime/demo/disable.js +1 -1
  89. package/es/cycleTime/demo/hour.js +6 -6
  90. package/es/cycleTime/demo/index.d.ts +1 -1
  91. package/es/cycleTime/demo/index.js +2 -2
  92. package/es/cycleTime/demo/multi.js +1 -1
  93. package/es/cycleTime/index.js +24 -22
  94. package/es/cycleTime/month.js +12 -9
  95. package/es/dataSetGroup/demo/index.js +1 -1
  96. package/es/dataSetGroup/index.js +6 -5
  97. package/es/dataSetGroup/overlay.js +10 -10
  98. package/es/datePicker/datePicker.js +8 -8
  99. package/es/datePicker/demo/customType.d.ts +1 -1
  100. package/es/datePicker/demo/customType.js +7 -7
  101. package/es/datePicker/demo/day.d.ts +1 -1
  102. package/es/datePicker/demo/day.js +7 -7
  103. package/es/datePicker/demo/index.d.ts +1 -1
  104. package/es/datePicker/demo/index.js +7 -7
  105. package/es/datePicker/index.d.ts +1 -4
  106. package/es/datePicker/index.js +19 -19
  107. package/es/datePicker/shortcut.js +5 -5
  108. package/es/datePickerV2/datePicker.d.ts +1 -1
  109. package/es/datePickerV2/datePicker.js +11 -20
  110. package/es/datePickerV2/demo/customType.d.ts +1 -1
  111. package/es/datePickerV2/demo/customType.js +7 -7
  112. package/es/datePickerV2/demo/day.d.ts +1 -1
  113. package/es/datePickerV2/demo/day.js +8 -10
  114. package/es/datePickerV2/demo/index.d.ts +1 -1
  115. package/es/datePickerV2/demo/index.js +9 -10
  116. package/es/datePickerV2/index.d.ts +1 -4
  117. package/es/datePickerV2/index.js +26 -35
  118. package/es/datePickerV2/popoverContent.d.ts +1 -1
  119. package/es/datePickerV2/popoverContent.js +9 -10
  120. package/es/datePickerV2/shortcut.js +7 -7
  121. package/es/datePickerV2/types.d.ts +1 -3
  122. package/es/datePickerV2/types.js +0 -1
  123. package/es/datePickerV2/utils.js +1 -8
  124. package/es/demoWrapper/content.js +46 -40
  125. package/es/demoWrapper/demo/index.js +1 -1
  126. package/es/demoWrapper/index.js +15 -15
  127. package/es/dialog/demo/index.js +6 -6
  128. package/es/dialog/index.d.ts +1 -4
  129. package/es/dialog/index.js +6 -6
  130. package/es/dnd/demo/data.js +6 -6
  131. package/es/dnd/demo/handle.js +6 -6
  132. package/es/dnd/demo/index.js +2 -6
  133. package/es/dnd/demo/styles/index.less +1 -1
  134. package/es/dnd/index.d.ts +1 -4
  135. package/es/dnd/index.js +11 -10
  136. package/es/dnd/item.js +6 -20
  137. package/es/empty/demo/index.d.ts +1 -1
  138. package/es/empty/demo/index.js +2 -2
  139. package/es/empty/index.js +6 -6
  140. package/es/eventSelector/demo/index.js +6 -6
  141. package/es/eventSelector/demo/multiple.js +6 -6
  142. package/es/eventSelector/index.d.ts +1 -4
  143. package/es/eventSelector/index.js +9 -10
  144. package/es/eventSelector/listPanel.js +39 -41
  145. package/es/eventSelector/option.js +3 -3
  146. package/es/eventSelector/types.d.ts +0 -1
  147. package/es/formulaTarget/components/formula/index.js +8 -9
  148. package/es/formulaTarget/components/formula/index.less +1 -1
  149. package/es/formulaTarget/components/formula/types.d.ts +0 -1
  150. package/es/formulaTarget/components/formula/util.js +6 -6
  151. package/es/formulaTarget/components/formulaItem/index.js +22 -27
  152. package/es/formulaTarget/components/formulaItem/types.d.ts +0 -1
  153. package/es/formulaTarget/components/panel/index.js +33 -34
  154. package/es/formulaTarget/components/panel/item.js +10 -17
  155. package/es/formulaTarget/components/panel/types.d.ts +0 -2
  156. package/es/formulaTarget/components/symbol/index.js +5 -5
  157. package/es/formulaTarget/demo/group.js +15 -15
  158. package/es/formulaTarget/demo/index.js +1 -1
  159. package/es/formulaTarget/index.d.ts +1 -4
  160. package/es/formulaTarget/index.js +26 -27
  161. package/es/formulaTarget/types.d.ts +0 -1
  162. package/es/hooks/useBizStore.js +44 -38
  163. package/es/hooks/useChanged.js +5 -5
  164. package/es/hooks/useSubject.js +5 -5
  165. package/es/icon/demo/index.js +1 -1
  166. package/es/icon/demo/list.js +1 -1
  167. package/es/icon/iconFont.d.ts +1 -4
  168. package/es/icon/iconFont.js +8 -8
  169. package/es/index.d.ts +1 -2
  170. package/es/index.js +1 -2
  171. package/es/layout/analysisLayout/demo/index.d.ts +1 -1
  172. package/es/layout/analysisLayout/demo/index.js +2 -2
  173. package/es/layout/analysisLayout/index.d.ts +1 -4
  174. package/es/layout/analysisLayout/index.js +8 -8
  175. package/es/layout/columnLayout/demo/data.js +9 -9
  176. package/es/layout/columnLayout/demo/index.js +6 -6
  177. package/es/layout/columnLayout/demo/panel.js +7 -7
  178. package/es/layout/columnLayout/index.d.ts +1 -4
  179. package/es/layout/columnLayout/index.js +10 -10
  180. package/es/layout/detail/demo/index.js +1 -1
  181. package/es/layout/optionTitle/components/btnMenu/demo.js +2 -2
  182. package/es/layout/optionTitle/components/btnMenu/index.js +6 -6
  183. package/es/layout/optionTitle/components/btnMenu/index.less +1 -1
  184. package/es/layout/optionTitle/components/changePanelModal/index.js +14 -14
  185. package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
  186. package/es/layout/optionTitle/components/title/demo.js +5 -5
  187. package/es/layout/optionTitle/components/title/index.d.ts +2 -1
  188. package/es/layout/optionTitle/components/title/index.js +15 -19
  189. package/es/layout/optionTitle/components/title/index.less +1 -1
  190. package/es/layout/optionTitle/demo/index.js +6 -6
  191. package/es/layout/optionTitle/demo/layout.js +6 -6
  192. package/es/layout/optionTitle/demo/panelCreate.js +6 -6
  193. package/es/layout/optionTitle/index.js +16 -16
  194. package/es/layout/optionTitle/layout.js +9 -9
  195. package/es/layout/optionTitle/styles/index.less +1 -1
  196. package/es/layout/optionTitle/styles/layout.less +1 -1
  197. package/es/layout/optionTitle/styles/search.less +1 -1
  198. package/es/loading/demo/index.d.ts +1 -1
  199. package/es/loading/demo/index.js +2 -2
  200. package/es/loginForm/demo/index.js +1 -1
  201. package/es/loginForm/index.js +5 -5
  202. package/es/platformSelector/demo/index.js +1 -1
  203. package/es/platformSelector/index.js +6 -6
  204. package/es/platformSelector/util.js +1 -1
  205. package/es/productCondition/conditionTypeList.d.ts +1 -4
  206. package/es/productCondition/conditionTypeList.js +2 -2
  207. package/es/productCondition/conditions/cdpCshCondition.js +51 -54
  208. package/es/productCondition/conditions/constants.d.ts +0 -2
  209. package/es/productCondition/conditions/constants.js +0 -2
  210. package/es/productCondition/conditions/eventCondition.js +8 -8
  211. package/es/productCondition/conditions/order/runPeriodCondition.js +10 -8
  212. package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
  213. package/es/productCondition/conditions/periodCondition.d.ts +1 -4
  214. package/es/productCondition/conditions/periodCondition.js +8 -8
  215. package/es/productCondition/conditions/propCondition.d.ts +1 -4
  216. package/es/productCondition/conditions/propCondition.js +14 -14
  217. package/es/productCondition/conditions/runTimesCondition.js +6 -6
  218. package/es/productCondition/conditions/textDesc.js +6 -6
  219. package/es/productCondition/conditions/timeDimension.js +18 -18
  220. package/es/productCondition/demo/business.d.ts +1 -1
  221. package/es/productCondition/demo/business.js +7 -7
  222. package/es/productCondition/demo/index.d.ts +1 -1
  223. package/es/productCondition/demo/index.js +7 -7
  224. package/es/productCondition/index.d.ts +1 -4
  225. package/es/productCondition/index.js +17 -17
  226. package/es/productCondition/orConditions.js +8 -8
  227. package/es/productCondition/relationLabel.js +2 -2
  228. package/es/productCondition/types.d.ts +1 -1
  229. package/es/productCondition/util.js +6 -6
  230. package/es/quickDatePicker/demo/index.d.ts +1 -1
  231. package/es/quickDatePicker/demo/index.js +18 -38
  232. package/es/quickDatePicker/index.js +21 -115
  233. package/es/quickDatePicker/styles/index.less +23 -26
  234. package/es/quickDatePicker/types.d.ts +0 -12
  235. package/es/quickDatePicker/utils.d.ts +0 -6
  236. package/es/quickDatePicker/utils.js +1 -54
  237. package/es/searchInput/demo/index.js +1 -1
  238. package/es/select/demo/children.js +6 -6
  239. package/es/select/demo/customLabel.js +1 -1
  240. package/es/select/demo/group.js +6 -6
  241. package/es/select/demo/index.js +6 -6
  242. package/es/select/demo/loading.js +6 -6
  243. package/es/select/demo/multiple.js +6 -6
  244. package/es/select/handle.js +20 -13
  245. package/es/select/index.d.ts +1 -4
  246. package/es/select/index.js +17 -16
  247. package/es/select/option.js +13 -13
  248. package/es/select/overlay.js +17 -16
  249. package/es/socket/demo/demo.js +12 -12
  250. package/es/socket/index.js +26 -23
  251. package/es/subjectWrapper/demo/index.js +1 -1
  252. package/es/subjectWrapper/index.js +13 -13
  253. package/es/table/demo/index.d.ts +1 -1
  254. package/es/table/demo/index.js +17 -17
  255. package/es/table/demo/index2.js +6 -6
  256. package/es/table/demo/index3.js +9 -9
  257. package/es/table/index.js +8 -8
  258. package/es/targetConditionGroup/components/targetDimension.js +64 -157
  259. package/es/targetConditionGroup/demo/group.js +15 -15
  260. package/es/targetConditionGroup/demo/index.js +6 -6
  261. package/es/targetConditionGroup/index.d.ts +1 -4
  262. package/es/targetConditionGroup/index.js +38 -38
  263. package/es/targetSelector/demo/index.d.ts +1 -1
  264. package/es/targetSelector/demo/index.js +7 -7
  265. package/es/targetSelector/editBox.js +5 -5
  266. package/es/targetSelector/index.js +7 -7
  267. package/es/targetSelector/optionIcon.d.ts +1 -4
  268. package/es/userCondition/conditionTypeList.d.ts +1 -4
  269. package/es/userCondition/conditionTypeList.js +11 -11
  270. package/es/userCondition/conditions/business/operatorCondition.js +15 -15
  271. package/es/userCondition/conditions/business/paramsCondition.js +10 -10
  272. package/es/userCondition/conditions/businessCondition.js +15 -15
  273. package/es/userCondition/conditions/cdpCondition.js +33 -36
  274. package/es/userCondition/conditions/cdpCshCondition.js +51 -54
  275. package/es/userCondition/conditions/constants.d.ts +0 -2
  276. package/es/userCondition/conditions/constants.js +0 -2
  277. package/es/userCondition/conditions/dataAttribute.js +18 -22
  278. package/es/userCondition/conditions/eventCondition.js +17 -17
  279. package/es/userCondition/conditions/order/runPeriodCondition.d.ts +1 -4
  280. package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
  281. package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
  282. package/es/userCondition/conditions/periodCondition.d.ts +1 -4
  283. package/es/userCondition/conditions/periodCondition.js +10 -10
  284. package/es/userCondition/conditions/propCondition.js +20 -18
  285. package/es/userCondition/conditions/runTimesCondition.js +6 -6
  286. package/es/userCondition/conditions/tagsCondition.js +11 -11
  287. package/es/userCondition/conditions/textDesc.js +17 -17
  288. package/es/userCondition/conditions/timeDimension.js +18 -18
  289. package/es/userCondition/demo/business.d.ts +1 -1
  290. package/es/userCondition/demo/business.js +7 -7
  291. package/es/userCondition/demo/index.d.ts +1 -1
  292. package/es/userCondition/demo/index.js +7 -7
  293. package/es/userCondition/index.js +129 -70
  294. package/es/userCondition/orConditions.js +8 -8
  295. package/es/userCondition/relationLabel.js +2 -2
  296. package/es/userCondition/types.d.ts +1 -1
  297. package/es/userCondition/util.js +6 -6
  298. package/es/userGroup/demo/group.js +14 -14
  299. package/es/userGroup/demo/index.js +9 -9
  300. package/es/userGroup/index.d.ts +1 -4
  301. package/es/userGroup/index.js +71 -13
  302. package/es/userGroup/overlay.js +15 -15
  303. package/es/userGroupHeader/demo/index.js +1 -1
  304. package/es/userGroupHeader/index.d.ts +0 -1
  305. package/es/userGroupHeader/index.js +71 -34
  306. package/es/userGroupHeader/styles/index.less +0 -8
  307. package/es/userTagsSelector/cascaderOverlay.d.ts +1 -4
  308. package/es/userTagsSelector/cascaderOverlay.js +27 -27
  309. package/es/userTagsSelector/components/tagList/index.d.ts +1 -4
  310. package/es/userTagsSelector/components/tagList/index.js +5 -5
  311. package/es/userTagsSelector/demo/index.js +7 -7
  312. package/es/userTagsSelector/groups/index.d.ts +1 -4
  313. package/es/userTagsSelector/groups/index.js +5 -5
  314. package/es/userTagsSelector/index.d.ts +1 -4
  315. package/es/userTagsSelector/index.js +13 -13
  316. package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
  317. package/es/utils/ajax.js +54 -66
  318. package/es/utils/demo/ajax.js +1 -1
  319. package/es/utils/demo/interruption.js +6 -6
  320. package/es/utils/index.d.ts +1 -2
  321. package/es/utils/index.js +1 -2
  322. package/es/utils/type.d.ts +0 -1
  323. package/es/utils/type.js +6 -6
  324. package/package.json +2 -2
  325. package/es/utils/eventApi.d.ts +0 -14
  326. package/es/utils/eventApi.js +0 -120
@@ -1,39 +1,27 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
3
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
4
- function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
5
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
6
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
7
2
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
8
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
9
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
10
- function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
11
- function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
12
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
15
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
17
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
11
  import { Anchor, Button } from 'antd';
19
- import React, { useContext, useEffect, useState } from 'react';
12
+ import React, { useContext, useEffect, useMemo, useState } from 'react';
20
13
  import { BizGlobalDataContext } from '..';
21
14
  import BizSearchInput from '../searchInput';
22
15
  import Option from './option';
23
16
  import _ from 'lodash';
24
- import { eventApi } from '../utils';
25
17
  var Link = Anchor.Link;
26
18
  var AttrListPanel = function AttrListPanel(props) {
27
19
  var _props$disableItemLis;
28
20
  var id = props.id,
29
- _props$enableEnvProp = props.enableEnvProp,
30
- enableEnvProp = _props$enableEnvProp === void 0 ? true : _props$enableEnvProp,
31
- _props$enableEventPro = props.enableEventProp,
32
- enableEventProp = _props$enableEventPro === void 0 ? false : _props$enableEventPro,
33
- _props$enableUserProp = props.enableUserProp,
34
- enableUserProp = _props$enableUserProp === void 0 ? true : _props$enableUserProp,
35
- _props$eventIdList = props.eventIdList,
36
- eventIdList = _props$eventIdList === void 0 ? [] : _props$eventIdList,
21
+ enableEnvProp = props.enableEnvProp,
22
+ enableEventProp = props.enableEventProp,
23
+ enableUserProp = props.enableUserProp,
24
+ eventIdList = props.eventIdList,
37
25
  funnelEventIdList = props.funnelEventIdList,
38
26
  extra = props.extra,
39
27
  extraUser = props.extraUser,
@@ -59,6 +47,17 @@ var AttrListPanel = function AttrListPanel(props) {
59
47
  _useState6 = _slicedToArray(_useState5, 2),
60
48
  currentAttr = _useState6[0],
61
49
  setCurrentAttr = _useState6[1];
50
+ var eventIdMap = useMemo(function () {
51
+ var eventIdMap = {};
52
+ var eventList = (eventGroupList || []).reduce(function (pre, group) {
53
+ return [].concat(_toConsumableArray(pre), _toConsumableArray(group.eventList));
54
+ }, []);
55
+ eventList.forEach(function (event) {
56
+ if (eventIdMap[event.id]) return;
57
+ eventIdMap[event.id] = event;
58
+ });
59
+ return eventIdMap;
60
+ }, [eventGroupList]);
62
61
  var disableItemlist = (_props$disableItemLis = props.disableItemList) === null || _props$disableItemLis === void 0 ? void 0 : _props$disableItemLis.map(function (item) {
63
62
  if (item.propCategory === 'envProp') {
64
63
  item.key = "envProp-".concat(item.dimensionSub || item.name, "-").concat(item.id || 0);
@@ -78,13 +77,9 @@ var AttrListPanel = function AttrListPanel(props) {
78
77
  anchor = _useState8[0],
79
78
  stAnchor = _useState8[1];
80
79
  var _useState9 = useState([]),
81
- _useState0 = _slicedToArray(_useState9, 2),
82
- anchorList = _useState0[0],
83
- setAnchorList = _useState0[1];
84
- var _useState1 = useState([]),
85
- _useState10 = _slicedToArray(_useState1, 2),
86
- eventAttrsList = _useState10[0],
87
- setEventAttrsList = _useState10[1];
80
+ _useState10 = _slicedToArray(_useState9, 2),
81
+ anchorList = _useState10[0],
82
+ setAnchorList = _useState10[1];
88
83
  useEffect(function () {
89
84
  var data = {
90
85
  container: "container-".concat(id),
@@ -123,306 +118,101 @@ var AttrListPanel = function AttrListPanel(props) {
123
118
  }, [id]);
124
119
  var classPrefix = 'biz-attr-select';
125
120
  useEffect(function () {
126
- var allEventIds = new Set();
127
- if (eventIdList && eventIdList.length > 0) {
128
- eventIdList.forEach(function (id) {
129
- return allEventIds.add(id);
121
+ var list = [];
122
+ if (extra) {
123
+ extra.forEach(function (item) {
124
+ list.push({
125
+ isEvent: false,
126
+ groupName: item.name,
127
+ key: item.type,
128
+ anchor: anchor[item.type],
129
+ children: item.attrList
130
+ });
130
131
  });
131
132
  }
132
- if (funnelEventIdList && funnelEventIdList.length > 0) {
133
- funnelEventIdList.forEach(function (stepList) {
134
- stepList.forEach(function (id) {
135
- return allEventIds.add(id);
133
+ if (enableEventProp) {
134
+ if (props.showCommonProp) {
135
+ var group = {
136
+ isEvent: true,
137
+ groupName: '共有属性',
138
+ key: "event-common",
139
+ children: [],
140
+ anchor: anchor.event
141
+ };
142
+ var propMap = {};
143
+ eventIdList === null || eventIdList === void 0 ? void 0 : eventIdList.forEach(function (id) {
144
+ var event = eventIdMap[id];
145
+ if (!event) return;
146
+ event.attrList.forEach(function (attr) {
147
+ var name = attr.alias || attr.label;
148
+ if (!propMap[name]) {
149
+ propMap[name] = _.cloneDeep(attr);
150
+ } else {
151
+ group.children.push(propMap[name]);
152
+ }
153
+ });
136
154
  });
155
+ if (group.children.length) list.push(group);
156
+ } else {
157
+ var hasAnchor = false;
158
+ eventIdList === null || eventIdList === void 0 ? void 0 : eventIdList.forEach(function (id) {
159
+ var event = eventIdMap[id];
160
+ if (!event) return;
161
+ var group = {
162
+ isEvent: true,
163
+ groupName: event.alias || event.name,
164
+ anchor: hasAnchor ? String(Math.random()) : anchor.event,
165
+ key: "event-".concat(event.id),
166
+ children: event.attrList.slice().filter(function (item) {
167
+ return isHideYeWu || realTimeTags ? item.id != 31415926 : true;
168
+ }).filter(function (item) {
169
+ return isStrNum ? item.type === 2 || item.type === 1 : isNumber ? item.type === 2 : isString ? item.type === 1 : true;
170
+ })
171
+ };
172
+ list.push(group);
173
+ });
174
+ funnelEventIdList === null || funnelEventIdList === void 0 ? void 0 : funnelEventIdList.forEach(function (idList, step) {
175
+ idList.forEach(function (id) {
176
+ var event = eventIdMap[id];
177
+ if (!event) return;
178
+ var group = {
179
+ isEvent: true,
180
+ groupName: event.alias || event.name,
181
+ anchor: hasAnchor ? String(Math.random()) : anchor.event,
182
+ key: "event-".concat(event.id, "-").concat(step),
183
+ children: event.attrList.map(function (attr) {
184
+ var res = _.cloneDeep(attr);
185
+ res.step = step;
186
+ return res;
187
+ })
188
+ };
189
+ list.push(group);
190
+ });
191
+ });
192
+ }
193
+ }
194
+ if (enableUserProp) {
195
+ list.push({
196
+ isEvent: false,
197
+ groupName: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5C5E\u6027"),
198
+ key: 'userProps',
199
+ anchor: anchor.user,
200
+ children: (extraUser ? extraUser : []).concat(userPropList.filter(function (item) {
201
+ return realTimeTags ? item.category === 'custom' : true;
202
+ }))
137
203
  });
138
204
  }
139
- if (allEventIds.size === 0) {
140
- setEventAttrsList([]);
141
- return;
205
+ if (enableEnvProp) {
206
+ list.push({
207
+ isEvent: false,
208
+ groupName: '触发环境',
209
+ key: 'eventEnvProps',
210
+ anchor: anchor.env,
211
+ children: eventEnvList
212
+ });
142
213
  }
143
- var prefetchEventAttrs = /*#__PURE__*/function () {
144
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
145
- var allAttrs, _i, _Array$from, eventId, attrs, _t;
146
- return _regenerator().w(function (_context) {
147
- while (1) switch (_context.n) {
148
- case 0:
149
- allAttrs = [];
150
- _i = 0, _Array$from = Array.from(allEventIds);
151
- case 1:
152
- if (!(_i < _Array$from.length)) {
153
- _context.n = 6;
154
- break;
155
- }
156
- eventId = _Array$from[_i];
157
- _context.p = 2;
158
- _context.n = 3;
159
- return eventApi.fetchEventAttrs(eventId, currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId);
160
- case 3:
161
- attrs = _context.v;
162
- allAttrs.push.apply(allAttrs, _toConsumableArray(attrs));
163
- _context.n = 5;
164
- break;
165
- case 4:
166
- _context.p = 4;
167
- _t = _context.v;
168
- console.error("\u9884\u53D6\u4E8B\u4EF6 ".concat(eventId, " \u7684\u5C5E\u6027\u5931\u8D25"), _t);
169
- case 5:
170
- _i++;
171
- _context.n = 1;
172
- break;
173
- case 6:
174
- setEventAttrsList(allAttrs);
175
- case 7:
176
- return _context.a(2);
177
- }
178
- }, _callee, null, [[2, 4]]);
179
- }));
180
- return function prefetchEventAttrs() {
181
- return _ref.apply(this, arguments);
182
- };
183
- }();
184
- prefetchEventAttrs();
185
- }, [eventIdList === null || eventIdList === void 0 ? void 0 : eventIdList.join(','), JSON.stringify(funnelEventIdList)]);
186
- useEffect(function () {
187
- var initOptionList = /*#__PURE__*/function () {
188
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
189
- var list, group, propMap, hasAnchor, eventAttrsMap, _iterator, _step, _loop3, _loop, step, _t3;
190
- return _regenerator().w(function (_context5) {
191
- while (1) switch (_context5.n) {
192
- case 0:
193
- list = [];
194
- if (extra) {
195
- extra.forEach(function (item) {
196
- list.push({
197
- isEvent: false,
198
- groupName: item.name,
199
- key: item.type,
200
- anchor: anchor[item.type],
201
- children: item.attrList
202
- });
203
- });
204
- }
205
- if (!enableEventProp) {
206
- _context5.n = 11;
207
- break;
208
- }
209
- if (!props.showCommonProp) {
210
- _context5.n = 1;
211
- break;
212
- }
213
- group = {
214
- isEvent: true,
215
- groupName: '共有属性',
216
- key: "event-common",
217
- children: [],
218
- anchor: anchor.event
219
- };
220
- propMap = {};
221
- eventAttrsList.forEach(function (attr) {
222
- var name = attr.alias || attr.label;
223
- if (!propMap[name]) {
224
- propMap[name] = _.cloneDeep(attr);
225
- } else {
226
- group.children.push(propMap[name]);
227
- }
228
- });
229
- if (group.children.length) list.push(group);
230
- _context5.n = 11;
231
- break;
232
- case 1:
233
- hasAnchor = false;
234
- eventAttrsMap = {};
235
- eventAttrsList.forEach(function (attr) {
236
- if (!eventAttrsMap[attr.eventId]) {
237
- eventAttrsMap[attr.eventId] = [];
238
- }
239
- eventAttrsMap[attr.eventId].push(attr);
240
- });
241
- _iterator = _createForOfIteratorHelper(eventIdList || []);
242
- _context5.p = 2;
243
- _loop3 = /*#__PURE__*/_regenerator().m(function _loop3() {
244
- var eventId, eventName, eventAttrs, filteredAttrs, _group2;
245
- return _regenerator().w(function (_context4) {
246
- while (1) switch (_context4.n) {
247
- case 0:
248
- eventId = _step.value;
249
- try {
250
- eventName = function () {
251
- var eventList = (eventGroupList || []).reduce(function (pre, group) {
252
- return [].concat(_toConsumableArray(pre), _toConsumableArray(group.eventList));
253
- }, []);
254
- var event = eventList.find(function (e) {
255
- return e.id === eventId;
256
- });
257
- return event ? event.alias || event.name : "\u4E8B\u4EF6".concat(eventId);
258
- }();
259
- eventAttrs = eventAttrsMap[eventId] || [];
260
- filteredAttrs = eventAttrs.filter(function (item) {
261
- return isHideYeWu || realTimeTags ? item.id !== 31415926 : true;
262
- }).filter(function (item) {
263
- return isStrNum ? item.type === 2 || item.type === 1 : isNumber ? item.type === 2 : isString ? item.type === 1 : true;
264
- });
265
- if (filteredAttrs.length > 0) {
266
- _group2 = {
267
- isEvent: true,
268
- groupName: eventName,
269
- anchor: hasAnchor ? String(Math.random()) : anchor.event,
270
- key: "event-".concat(id),
271
- children: filteredAttrs
272
- };
273
- list.push(_group2);
274
- hasAnchor = true;
275
- }
276
- } catch (error) {
277
- console.error("\u83B7\u53D6\u4E8B\u4EF6 ".concat(id, " \u7684\u5C5E\u6027\u5931\u8D25"), error);
278
- }
279
- case 1:
280
- return _context4.a(2);
281
- }
282
- }, _loop3);
283
- });
284
- _iterator.s();
285
- case 3:
286
- if ((_step = _iterator.n()).done) {
287
- _context5.n = 5;
288
- break;
289
- }
290
- return _context5.d(_regeneratorValues(_loop3()), 4);
291
- case 4:
292
- _context5.n = 3;
293
- break;
294
- case 5:
295
- _context5.n = 7;
296
- break;
297
- case 6:
298
- _context5.p = 6;
299
- _t3 = _context5.v;
300
- _iterator.e(_t3);
301
- case 7:
302
- _context5.p = 7;
303
- _iterator.f();
304
- return _context5.f(7);
305
- case 8:
306
- if (!funnelEventIdList) {
307
- _context5.n = 11;
308
- break;
309
- }
310
- _loop = /*#__PURE__*/_regenerator().m(function _loop(step) {
311
- var idList, _iterator2, _step2, _loop2, _t2;
312
- return _regenerator().w(function (_context3) {
313
- while (1) switch (_context3.n) {
314
- case 0:
315
- idList = funnelEventIdList[step];
316
- _iterator2 = _createForOfIteratorHelper(idList);
317
- _context3.p = 1;
318
- _loop2 = /*#__PURE__*/_regenerator().m(function _loop2() {
319
- var eventId, eventName, eventAttrs, _group;
320
- return _regenerator().w(function (_context2) {
321
- while (1) switch (_context2.n) {
322
- case 0:
323
- eventId = _step2.value;
324
- try {
325
- eventName = function () {
326
- var eventList = (eventGroupList || []).reduce(function (pre, group) {
327
- return [].concat(_toConsumableArray(pre), _toConsumableArray(group.eventList));
328
- }, []);
329
- var event = eventList.find(function (e) {
330
- return e.id === eventId;
331
- });
332
- return event ? event.alias || event.name : "\u4E8B\u4EF6".concat(eventId);
333
- }();
334
- eventAttrs = eventAttrsMap[eventId] || [];
335
- _group = {
336
- isEvent: true,
337
- groupName: eventName,
338
- anchor: hasAnchor ? String(Math.random()) : anchor.event,
339
- key: "event-".concat(eventId, "-").concat(step),
340
- children: eventAttrs.map(function (attr) {
341
- var res = _.cloneDeep(attr);
342
- res.step = step;
343
- return res;
344
- })
345
- };
346
- list.push(_group);
347
- hasAnchor = true;
348
- } catch (error) {
349
- console.error("\u83B7\u53D6\u6F0F\u6597\u4E8B\u4EF6 ".concat(id, " \u7684\u5C5E\u6027\u5931\u8D25"), error);
350
- }
351
- case 1:
352
- return _context2.a(2);
353
- }
354
- }, _loop2);
355
- });
356
- _iterator2.s();
357
- case 2:
358
- if ((_step2 = _iterator2.n()).done) {
359
- _context3.n = 4;
360
- break;
361
- }
362
- return _context3.d(_regeneratorValues(_loop2()), 3);
363
- case 3:
364
- _context3.n = 2;
365
- break;
366
- case 4:
367
- _context3.n = 6;
368
- break;
369
- case 5:
370
- _context3.p = 5;
371
- _t2 = _context3.v;
372
- _iterator2.e(_t2);
373
- case 6:
374
- _context3.p = 6;
375
- _iterator2.f();
376
- return _context3.f(6);
377
- case 7:
378
- return _context3.a(2);
379
- }
380
- }, _loop, null, [[1, 5, 6, 7]]);
381
- });
382
- step = 0;
383
- case 9:
384
- if (!(step < funnelEventIdList.length)) {
385
- _context5.n = 11;
386
- break;
387
- }
388
- return _context5.d(_regeneratorValues(_loop(step)), 10);
389
- case 10:
390
- step++;
391
- _context5.n = 9;
392
- break;
393
- case 11:
394
- if (enableUserProp) {
395
- list.push({
396
- isEvent: false,
397
- groupName: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5C5E\u6027"),
398
- key: 'userProps',
399
- anchor: anchor.user,
400
- children: (extraUser ? extraUser : []).concat(userPropList.filter(function (item) {
401
- return realTimeTags ? item.category === 'custom' : true;
402
- }))
403
- });
404
- }
405
- if (enableEnvProp) {
406
- list.push({
407
- isEvent: false,
408
- groupName: '触发环境',
409
- key: 'eventEnvProps',
410
- anchor: anchor.env,
411
- children: eventEnvList
412
- });
413
- }
414
- setOptionList(list);
415
- case 12:
416
- return _context5.a(2);
417
- }
418
- }, _callee2, null, [[2, 6, 7, 8]]);
419
- }));
420
- return function initOptionList() {
421
- return _ref2.apply(this, arguments);
422
- };
423
- }();
424
- initOptionList();
425
- }, [anchor, eventGroupList, userPropList, eventEnvList, props.showCommonProp, enableEventProp, enableUserProp, enableEnvProp, extra, extraUser, isHideYeWu, realTimeTags, isNumber, isStrNum, isString, eventAttrsList]);
214
+ setOptionList(list);
215
+ }, [anchor, eventIdMap, userPropList, eventEnvList, eventIdList, props.showCommonProp]);
426
216
  useEffect(function () {
427
217
  setCurrentAttr(props.value);
428
218
  }, [props.value]);
@@ -441,14 +231,14 @@ var AttrListPanel = function AttrListPanel(props) {
441
231
  });
442
232
  var childList = [];
443
233
  group.children.forEach(function (option) {
444
- if (searchValue && !(new RegExp(_.escapeRegExp(searchValue), 'i').test(option === null || option === void 0 ? void 0 : option.alias) || new RegExp(_.escapeRegExp(searchValue), 'i').test(option === null || option === void 0 ? void 0 : option.label))) return;
234
+ if (searchValue && !new RegExp(_.escapeRegExp(searchValue), 'i').test((option === null || option === void 0 ? void 0 : option.alias) || (option === null || option === void 0 ? void 0 : option.label))) return;
445
235
  var disabled = false;
446
236
  disableItemlist === null || disableItemlist === void 0 ? void 0 : disableItemlist.forEach(function (item) {
447
237
  if (item.key === option.key) disabled = true;
448
238
  });
449
239
  if (!(option === null || option === void 0 ? void 0 : option.isHidden)) {
450
240
  var checked = (currentAttr === null || currentAttr === void 0 ? void 0 : currentAttr.key) === (option === null || option === void 0 ? void 0 : option.key) && (option === null || option === void 0 ? void 0 : option.step) === (currentAttr === null || currentAttr === void 0 ? void 0 : currentAttr.step);
451
- childList.push(/*#__PURE__*/React.createElement(Option, {
241
+ childList.push( /*#__PURE__*/React.createElement(Option, {
452
242
  option: option,
453
243
  key: "".concat(option === null || option === void 0 ? void 0 : option.key, "-").concat(option === null || option === void 0 ? void 0 : option.step),
454
244
  checked: checked,
@@ -478,7 +268,7 @@ var AttrListPanel = function AttrListPanel(props) {
478
268
  return setSearchValue(val);
479
269
  },
480
270
  placeholder: "\u641C\u7D22\u5C5E\u6027"
481
- }), showList.length ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Anchor, {
271
+ }), showList.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Anchor, {
482
272
  className: "".concat(classPrefix, "-anchor-panel"),
483
273
  affix: false,
484
274
  onClick: function onClick(e) {
@@ -495,11 +285,17 @@ var AttrListPanel = function AttrListPanel(props) {
495
285
  size: "small"
496
286
  }, item.name)
497
287
  });
498
- })))) : null, /*#__PURE__*/React.createElement("div", {
288
+ }))) : null, /*#__PURE__*/React.createElement("div", {
499
289
  id: anchor.container,
500
290
  className: "".concat(classPrefix, "-container")
501
291
  }, showList.length ? showList : /*#__PURE__*/React.createElement("div", {
502
292
  className: "".concat(classPrefix, "-nodata")
503
293
  }, "\u6682\u65E0\u6570\u636E")));
504
294
  };
295
+ AttrListPanel.defaultProps = {
296
+ enableEnvProp: true,
297
+ enableEventProp: false,
298
+ enableUserProp: true,
299
+ eventIdList: []
300
+ };
505
301
  export default AttrListPanel;
@@ -40,7 +40,6 @@ export interface EventGroup {
40
40
  export interface BasicProp {
41
41
  id?: number;
42
42
  label?: string;
43
- encryptionType: number;
44
43
  alias?: string;
45
44
  type?: PropType;
46
45
  realTime?: boolean;
@@ -31,7 +31,6 @@ export default function convertAttributeData(store) {
31
31
  propCategory: 'eventProp',
32
32
  type: item.prop_type,
33
33
  realTime: true,
34
- encryptionType: item.encryption_type,
35
34
  dimensionSub: item.dimension_sub || 'event_attr'
36
35
  };
37
36
  }),
@@ -67,7 +66,6 @@ export default function convertAttributeData(store) {
67
66
  propCategory: 'envProp',
68
67
  type: prop.type,
69
68
  realTime: true,
70
- encryptionType: prop.encryption_type,
71
69
  dimensionSub: prop.dimension_sub || prop.name
72
70
  };
73
71
  });
@@ -79,7 +77,6 @@ export default function convertAttributeData(store) {
79
77
  category: prop.category,
80
78
  key: "userProp-".concat(prop.name, "-").concat(prop.id || 0),
81
79
  label: prop.text || prop.name,
82
- encryptionType: prop.encryption_type,
83
80
  name: prop.name,
84
81
  propCategory: 'userProp',
85
82
  type: prop.type,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BizChart } from '@zgfe/business-lib';
2
+ import { BizChart } from '@iofe/business-lib';
3
3
  import chartData, { barData } from './data/data';
4
4
  export default (function () {
5
5
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizChart, {
@@ -1,15 +1,15 @@
1
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useRef, useState } from 'react';
8
- import { BizChart } from '@zgfe/business-lib';
8
+ import { BizChart } from '@iofe/business-lib';
9
9
  import chartData from './data/data';
10
10
  import { Button, Image } from 'antd';
11
11
  export default (function () {
12
- var chartRef = useRef(null);
12
+ var chartRef = useRef();
13
13
  var _useState = useState(),
14
14
  _useState2 = _slicedToArray(_useState, 2),
15
15
  chartImg = _useState2[0],
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BizChart } from '@zgfe/business-lib';
2
+ import { BizChart } from '@iofe/business-lib';
3
3
  import data from './data/data4';
4
4
  export default (function () {
5
5
  return /*#__PURE__*/React.createElement(BizChart, {