@zgfe/business-lib 1.2.70-hxd.3 → 1.2.70-hxd.31

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 (217) hide show
  1. package/es/AUMFormulaTarget/components/formula/index.js +6 -4
  2. package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +2 -2
  3. package/es/AUMFormulaTarget/components/panel/index.less +1 -1
  4. package/es/AUMFormulaTarget/demo/index.js +1 -1
  5. package/es/AUMFormulaTarget/index.d.ts +4 -1
  6. package/es/addToPanel/components/radioGroup.d.ts +4 -1
  7. package/es/addToPanel/components/styleList.d.ts +4 -1
  8. package/es/addToPanel/index.d.ts +4 -1
  9. package/es/addToPanel/index.js +1 -1
  10. package/es/addToScene/index.js +3 -8
  11. package/es/amountSelector/demo/index.d.ts +3 -0
  12. package/es/amountSelector/demo/index.js +9 -0
  13. package/es/amountSelector/index.d.ts +10 -0
  14. package/es/amountSelector/index.js +21 -0
  15. package/es/amountSelector/styles/index.less +27 -0
  16. package/es/amountSelector/types.d.ts +4 -0
  17. package/es/amountSelector/types.js +1 -0
  18. package/es/amountSelector/util.d.ts +3 -0
  19. package/es/amountSelector/util.js +18 -0
  20. package/es/assets/colorIcon/demo_index.html +1023 -492
  21. package/es/assets/colorIcon/iconfont.css +203 -110
  22. package/es/assets/colorIcon/iconfont.js +13 -14
  23. package/es/assets/colorIcon/iconfont.json +433 -272
  24. package/es/assets/colorIcon/iconfont.ttf +0 -0
  25. package/es/assets/colorIcon/iconfont.woff +0 -0
  26. package/es/assets/colorIcon/iconfont.woff2 +0 -0
  27. package/es/assets/iconfont/demo.css +539 -539
  28. package/es/assets/iconfont/demo_index.html +5563 -5708
  29. package/es/assets/iconfont/iconfont.css +1015 -975
  30. package/es/assets/iconfont/iconfont.js +1 -1
  31. package/es/assets/iconfont/iconfont.json +1584 -1689
  32. package/es/assets/styles/resetAntd.less +6 -2
  33. package/es/assets/styles/variable.less +1 -1
  34. package/es/assets/theme.js +1 -1
  35. package/es/attrCondition/demo/group.js +1 -1
  36. package/es/attrCondition/group.js +11 -6
  37. package/es/attrCondition/index.js +11 -6
  38. package/es/attrCondition/styles/index.less +1 -1
  39. package/es/attrCondition/useAttrCondition.js +7 -5
  40. package/es/attrConditions/components/operateList.js +6 -3
  41. package/es/attrConditions/components/stringList.js +3 -8
  42. package/es/attrConditions/index.d.ts +4 -1
  43. package/es/attrConditions/index.js +4 -2
  44. package/es/attrConditions/types.d.ts +4 -0
  45. package/es/attrConditions/utils/operates.d.ts +4 -0
  46. package/es/attrConditions/utils/operates.js +37 -0
  47. package/es/attributeSelector/index.js +11 -11
  48. package/es/attributeSelector/listPanel.js +312 -100
  49. package/es/attributeSelector/types.d.ts +2 -0
  50. package/es/attributeSelector/util.js +3 -0
  51. package/es/chart/demo/data/data5 copy.js +2 -2
  52. package/es/chart/demo/index.js +1 -1
  53. package/es/chart/demo/line_bar_stack.js +4 -4
  54. package/es/chart/demo/stack.js +1 -1
  55. package/es/chart/index.js +10 -12
  56. package/es/chart/styles/index.less +2 -2
  57. package/es/chart/util/color.js +1 -1
  58. package/es/colorIcon/index.js +2 -4
  59. package/es/constants/apis.d.ts +4 -0
  60. package/es/constants/apis.js +6 -2
  61. package/es/constants/common.d.ts +11 -0
  62. package/es/constants/common.js +31 -0
  63. package/es/context/index.d.ts +2 -0
  64. package/es/context/index.js +8 -1
  65. package/es/cycleTime/index.js +6 -8
  66. package/es/cycleTime/month.js +2 -5
  67. package/es/dataSetGroup/index.js +0 -1
  68. package/es/datePicker/index.d.ts +4 -1
  69. package/es/datePickerV2/demo/index.js +1 -1
  70. package/es/datePickerV2/index.d.ts +4 -1
  71. package/es/datePickerV2/index.js +13 -4
  72. package/es/datePickerV2/popoverContent.js +1 -1
  73. package/es/datePickerV2/shortcut.js +1 -1
  74. package/es/datePickerV2/styles/index.less +1 -1
  75. package/es/datePickerV2/types.d.ts +1 -0
  76. package/es/datePickerV2/utils.js +8 -2
  77. package/es/demoWrapper/content.js +9 -10
  78. package/es/demoWrapper/innerDemo.js +1 -1
  79. package/es/dialog/index.d.ts +4 -1
  80. package/es/dnd/demo/index.js +5 -1
  81. package/es/dnd/demo/styles/index.less +34 -34
  82. package/es/dnd/index.d.ts +4 -1
  83. package/es/dnd/item.js +14 -0
  84. package/es/eventSelector/index.d.ts +4 -1
  85. package/es/eventSelector/index.js +3 -2
  86. package/es/eventSelector/listPanel.js +10 -14
  87. package/es/eventSelector/option.d.ts +1 -0
  88. package/es/eventSelector/option.js +14 -3
  89. package/es/eventSelector/styles/index.less +4 -0
  90. package/es/eventSelector/types.d.ts +1 -0
  91. package/es/formulaTarget/components/formula/index.js +2 -1
  92. package/es/formulaTarget/components/formula/index.less +1 -1
  93. package/es/formulaTarget/components/formula/types.d.ts +1 -0
  94. package/es/formulaTarget/components/formulaItem/index.js +7 -2
  95. package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
  96. package/es/formulaTarget/components/panel/index.js +2 -1
  97. package/es/formulaTarget/components/panel/item.js +5 -1
  98. package/es/formulaTarget/components/panel/types.d.ts +2 -0
  99. package/es/formulaTarget/index.d.ts +4 -1
  100. package/es/formulaTarget/index.js +2 -1
  101. package/es/formulaTarget/types.d.ts +1 -0
  102. package/es/hooks/useBizStore.js +3 -9
  103. package/es/icon/iconFont.d.ts +4 -1
  104. package/es/index.d.ts +2 -1
  105. package/es/index.js +2 -1
  106. package/es/layout/analysisLayout/index.d.ts +4 -1
  107. package/es/layout/columnLayout/index.d.ts +4 -1
  108. package/es/layout/optionTitle/components/btnMenu/index.less +18 -18
  109. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +3 -3
  110. package/es/layout/optionTitle/components/title/index.d.ts +1 -2
  111. package/es/layout/optionTitle/components/title/index.js +10 -6
  112. package/es/layout/optionTitle/components/title/index.less +43 -43
  113. package/es/layout/optionTitle/index.js +1 -1
  114. package/es/layout/optionTitle/styles/index.less +30 -30
  115. package/es/layout/optionTitle/styles/layout.less +90 -90
  116. package/es/layout/optionTitle/styles/search.less +27 -27
  117. package/es/platformSelector/styles/index.less +1 -1
  118. package/es/productCondition/conditionTypeList.d.ts +4 -1
  119. package/es/productCondition/conditions/cdpCshCondition.js +9 -6
  120. package/es/productCondition/conditions/constants.d.ts +2 -0
  121. package/es/productCondition/conditions/constants.js +2 -0
  122. package/es/productCondition/conditions/order/runPeriodCondition.js +2 -4
  123. package/es/productCondition/conditions/periodCondition.d.ts +4 -1
  124. package/es/productCondition/conditions/propCondition.d.ts +4 -1
  125. package/es/productCondition/conditions/styles/periodCondition.less +1 -1
  126. package/es/productCondition/index.d.ts +4 -1
  127. package/es/productCondition/styles/conditionTypeList.less +4 -2
  128. package/es/productCondition/styles/relationLabel.less +1 -1
  129. package/es/productCondition/types.d.ts +3 -1
  130. package/es/productCondition/util.d.ts +4 -0
  131. package/es/productCondition/util.js +4 -2
  132. package/es/quickDatePicker/demo/index.js +31 -11
  133. package/es/quickDatePicker/index.js +122 -23
  134. package/es/quickDatePicker/styles/index.less +28 -25
  135. package/es/quickDatePicker/types.d.ts +13 -0
  136. package/es/quickDatePicker/utils.d.ts +6 -0
  137. package/es/quickDatePicker/utils.js +54 -1
  138. package/es/select/demo/index.js +2 -1
  139. package/es/select/handle.js +2 -9
  140. package/es/select/index.d.ts +4 -1
  141. package/es/select/option.js +1 -1
  142. package/es/select/overlay.js +2 -2
  143. package/es/select/styles/handle.less +15 -2
  144. package/es/socket/demo/demo.js +2 -2
  145. package/es/subjectWrapper/index.js +3 -1
  146. package/es/table/demo/data/color.js +1 -1
  147. package/es/table/index.js +3 -30
  148. package/es/targetConditionGroup/components/targetDimension.js +147 -53
  149. package/es/targetConditionGroup/demo/group.js +5 -18
  150. package/es/targetConditionGroup/index.d.ts +4 -1
  151. package/es/targetConditionGroup/index.js +12 -10
  152. package/es/targetConditionGroup/types.d.ts +1 -0
  153. package/es/targetSelector/editBox.d.ts +1 -0
  154. package/es/targetSelector/editBox.js +8 -3
  155. package/es/targetSelector/index.js +2 -1
  156. package/es/targetSelector/optionIcon.d.ts +4 -1
  157. package/es/targetSelector/optionIcon.js +3 -0
  158. package/es/targetSelector/styles/index.less +35 -3
  159. package/es/userCondition/conditionTypeList.d.ts +4 -1
  160. package/es/userCondition/conditionTypeList.js +5 -4
  161. package/es/userCondition/conditions/cdpCondition.js +9 -6
  162. package/es/userCondition/conditions/cdpCshCondition.js +9 -6
  163. package/es/userCondition/conditions/constants.d.ts +2 -0
  164. package/es/userCondition/conditions/constants.js +2 -0
  165. package/es/userCondition/conditions/dataAttribute.js +11 -7
  166. package/es/userCondition/conditions/eventCondition.js +16 -24
  167. package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
  168. package/es/userCondition/conditions/periodCondition.d.ts +4 -1
  169. package/es/userCondition/conditions/periodCondition.js +19 -11
  170. package/es/userCondition/conditions/propCondition.js +5 -3
  171. package/es/userCondition/conditions/styles/eventCondition.less +14 -0
  172. package/es/userCondition/conditions/styles/periodCondition.less +7 -1
  173. package/es/userCondition/conditions/styles/textDesc.less +3 -4
  174. package/es/userCondition/conditions/tagsCondition.js +12 -5
  175. package/es/userCondition/conditions/textDesc.js +9 -5
  176. package/es/userCondition/demo/index.js +20 -14
  177. package/es/userCondition/demo/mockData.d.ts +20 -94
  178. package/es/userCondition/demo/mockData.js +31 -76
  179. package/es/userCondition/index.d.ts +5 -1
  180. package/es/userCondition/index.js +37 -21
  181. package/es/userCondition/styles/conditionTypeList.less +4 -2
  182. package/es/userCondition/styles/relationLabel.less +1 -1
  183. package/es/userCondition/types.d.ts +5 -2
  184. package/es/userCondition/util.d.ts +4 -0
  185. package/es/userCondition/util.js +4 -2
  186. package/es/userGroup/demo/index.js +2 -9
  187. package/es/userGroup/index.d.ts +4 -1
  188. package/es/userGroup/index.js +63 -15
  189. package/es/userGroup/overlay.js +17 -3
  190. package/es/userGroup/styles/index.less +55 -1
  191. package/es/userGroup/types.d.ts +2 -0
  192. package/es/userGroup/util.d.ts +2 -0
  193. package/es/userGroup/util.js +47 -0
  194. package/es/userGroupHeader/demo/index.js +1 -1
  195. package/es/userGroupHeader/index.d.ts +1 -0
  196. package/es/userGroupHeader/index.js +53 -6
  197. package/es/userGroupHeader/styles/index.less +21 -2
  198. package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
  199. package/es/userTagsSelector/cascaderOverlay.js +9 -2
  200. package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
  201. package/es/userTagsSelector/groups/index.d.ts +4 -1
  202. package/es/userTagsSelector/index.d.ts +4 -1
  203. package/es/userTagsSelector/index.js +32 -2
  204. package/es/userTagsSelector/styles/index.less +10 -0
  205. package/es/userTagsSelector/types.d.ts +2 -0
  206. package/es/userTagsSelector/util.d.ts +1 -0
  207. package/es/userTagsSelector/util.js +20 -0
  208. package/es/utils/ajax.js +77 -27
  209. package/es/utils/eventApi.d.ts +14 -0
  210. package/es/utils/eventApi.js +128 -0
  211. package/es/utils/index.d.ts +2 -1
  212. package/es/utils/index.js +2 -1
  213. package/es/utils/type.d.ts +1 -0
  214. package/es/utils/util.d.ts +1 -0
  215. package/es/utils/util.js +18 -0
  216. package/package.json +2 -2
  217. package/es/assets/colorIcon/iconfont.svg +0 -129
@@ -1,7 +1,12 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
1
4
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
5
  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."); }
3
6
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4
7
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
11
  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."); }
7
12
  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); }
@@ -9,11 +14,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
9
14
  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
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
16
  import { Anchor, Button } from 'antd';
12
- import React, { useContext, useEffect, useMemo, useState } from 'react';
17
+ import React, { useContext, useEffect, useState } from 'react';
13
18
  import { BizGlobalDataContext } from '..';
14
19
  import BizSearchInput from '../searchInput';
15
20
  import Option from './option';
16
21
  import _ from 'lodash';
22
+ import { eventApi } from '../utils';
17
23
  var Link = Anchor.Link;
18
24
  var AttrListPanel = function AttrListPanel(props) {
19
25
  var _props$disableItemLis;
@@ -28,7 +34,8 @@ var AttrListPanel = function AttrListPanel(props) {
28
34
  isNumber = props.isNumber,
29
35
  isStrNum = props.isStrNum,
30
36
  isString = props.isString,
31
- isHideYeWu = props.isHideYeWu;
37
+ isHideYeWu = props.isHideYeWu,
38
+ realTimeTags = props.realTimeTags;
32
39
  var _useState = useState(''),
33
40
  _useState2 = _slicedToArray(_useState, 2),
34
41
  searchValue = _useState2[0],
@@ -46,17 +53,6 @@ var AttrListPanel = function AttrListPanel(props) {
46
53
  _useState6 = _slicedToArray(_useState5, 2),
47
54
  currentAttr = _useState6[0],
48
55
  setCurrentAttr = _useState6[1];
49
- var eventIdMap = useMemo(function () {
50
- var eventIdMap = {};
51
- var eventList = (eventGroupList || []).reduce(function (pre, group) {
52
- return [].concat(_toConsumableArray(pre), _toConsumableArray(group.eventList));
53
- }, []);
54
- eventList.forEach(function (event) {
55
- if (eventIdMap[event.id]) return;
56
- eventIdMap[event.id] = event;
57
- });
58
- return eventIdMap;
59
- }, [eventGroupList]);
60
56
  var disableItemlist = (_props$disableItemLis = props.disableItemList) === null || _props$disableItemLis === void 0 ? void 0 : _props$disableItemLis.map(function (item) {
61
57
  if (item.propCategory === 'envProp') {
62
58
  item.key = "envProp-".concat(item.dimensionSub || item.name, "-").concat(item.id || 0);
@@ -79,6 +75,10 @@ var AttrListPanel = function AttrListPanel(props) {
79
75
  _useState10 = _slicedToArray(_useState9, 2),
80
76
  anchorList = _useState10[0],
81
77
  setAnchorList = _useState10[1];
78
+ var _useState11 = useState([]),
79
+ _useState12 = _slicedToArray(_useState11, 2),
80
+ eventAttrsList = _useState12[0],
81
+ setEventAttrsList = _useState12[1];
82
82
  useEffect(function () {
83
83
  var data = {
84
84
  container: "container-".concat(id),
@@ -117,99 +117,311 @@ var AttrListPanel = function AttrListPanel(props) {
117
117
  }, [id]);
118
118
  var classPrefix = 'biz-attr-select';
119
119
  useEffect(function () {
120
- var list = [];
121
- if (extra) {
122
- extra.forEach(function (item) {
123
- list.push({
124
- isEvent: false,
125
- groupName: item.name,
126
- key: item.type,
127
- anchor: anchor[item.type],
128
- children: item.attrList
129
- });
120
+ var allEventIds = new Set();
121
+ if (eventIdList && eventIdList.length > 0) {
122
+ eventIdList.forEach(function (id) {
123
+ return allEventIds.add(id);
130
124
  });
131
125
  }
132
- if (enableEventProp) {
133
- if (props.showCommonProp) {
134
- var group = {
135
- isEvent: true,
136
- groupName: '共有属性',
137
- key: "event-common",
138
- children: [],
139
- anchor: anchor.event
140
- };
141
- var propMap = {};
142
- eventIdList === null || eventIdList === void 0 ? void 0 : eventIdList.forEach(function (id) {
143
- var event = eventIdMap[id];
144
- if (!event) return;
145
- event.attrList.forEach(function (attr) {
146
- var name = attr.alias || attr.label;
147
- if (!propMap[name]) {
148
- propMap[name] = _.cloneDeep(attr);
149
- } else {
150
- group.children.push(propMap[name]);
151
- }
152
- });
126
+ if (funnelEventIdList && funnelEventIdList.length > 0) {
127
+ funnelEventIdList.forEach(function (stepList) {
128
+ stepList.forEach(function (id) {
129
+ return allEventIds.add(id);
153
130
  });
154
- if (group.children.length) list.push(group);
155
- } else {
156
- var hasAnchor = false;
157
- eventIdList === null || eventIdList === void 0 ? void 0 : eventIdList.forEach(function (id) {
158
- var event = eventIdMap[id];
159
- if (!event) return;
160
- var group = {
161
- isEvent: true,
162
- groupName: event.alias || event.name,
163
- anchor: hasAnchor ? String(Math.random()) : anchor.event,
164
- key: "event-".concat(event.id),
165
- children: event.attrList.slice().filter(function (item) {
166
- return isHideYeWu ? item.id != 31415926 : true;
167
- }).filter(function (item) {
168
- return isStrNum ? item.type === 2 || item.type === 1 : isNumber ? item.type === 2 : isString ? item.type === 1 : true;
169
- })
170
- };
171
- list.push(group);
172
- });
173
- funnelEventIdList === null || funnelEventIdList === void 0 ? void 0 : funnelEventIdList.forEach(function (idList, step) {
174
- idList.forEach(function (id) {
175
- var event = eventIdMap[id];
176
- if (!event) return;
177
- var group = {
178
- isEvent: true,
179
- groupName: event.alias || event.name,
180
- anchor: hasAnchor ? String(Math.random()) : anchor.event,
181
- key: "event-".concat(event.id, "-").concat(step),
182
- children: event.attrList.map(function (attr) {
183
- var res = _.cloneDeep(attr);
184
- res.step = step;
185
- return res;
186
- })
187
- };
188
- list.push(group);
189
- });
190
- });
191
- }
192
- }
193
- if (enableUserProp) {
194
- list.push({
195
- isEvent: false,
196
- groupName: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5C5E\u6027"),
197
- key: 'userProps',
198
- anchor: anchor.user,
199
- children: (extraUser ? extraUser : []).concat(userPropList)
200
131
  });
201
132
  }
202
- if (enableEnvProp) {
203
- list.push({
204
- isEvent: false,
205
- groupName: '触发环境',
206
- key: 'eventEnvProps',
207
- anchor: anchor.env,
208
- children: eventEnvList
209
- });
133
+ if (allEventIds.size === 0) {
134
+ setEventAttrsList([]);
135
+ return;
210
136
  }
211
- setOptionList(list);
212
- }, [anchor, eventIdMap, userPropList, eventEnvList, eventIdList, props.showCommonProp]);
137
+ var prefetchEventAttrs = /*#__PURE__*/function () {
138
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
139
+ var allAttrs, _i2, _Array$from, eventId, attrs;
140
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
141
+ while (1) switch (_context.prev = _context.next) {
142
+ case 0:
143
+ allAttrs = [];
144
+ _i2 = 0, _Array$from = Array.from(allEventIds);
145
+ case 2:
146
+ if (!(_i2 < _Array$from.length)) {
147
+ _context.next = 17;
148
+ break;
149
+ }
150
+ eventId = _Array$from[_i2];
151
+ _context.prev = 4;
152
+ _context.next = 7;
153
+ return eventApi.fetchEventAttrs(eventId, currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId);
154
+ case 7:
155
+ attrs = _context.sent;
156
+ allAttrs.push.apply(allAttrs, _toConsumableArray(attrs));
157
+ _context.next = 14;
158
+ break;
159
+ case 11:
160
+ _context.prev = 11;
161
+ _context.t0 = _context["catch"](4);
162
+ console.error("\u9884\u53D6\u4E8B\u4EF6 ".concat(eventId, " \u7684\u5C5E\u6027\u5931\u8D25"), _context.t0);
163
+ case 14:
164
+ _i2++;
165
+ _context.next = 2;
166
+ break;
167
+ case 17:
168
+ setEventAttrsList(allAttrs);
169
+ case 18:
170
+ case "end":
171
+ return _context.stop();
172
+ }
173
+ }, _callee, null, [[4, 11]]);
174
+ }));
175
+ return function prefetchEventAttrs() {
176
+ return _ref.apply(this, arguments);
177
+ };
178
+ }();
179
+ prefetchEventAttrs();
180
+ }, [eventIdList === null || eventIdList === void 0 ? void 0 : eventIdList.join(','), JSON.stringify(funnelEventIdList)]);
181
+ useEffect(function () {
182
+ var initOptionList = /*#__PURE__*/function () {
183
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
184
+ var list, group, propMap, hasAnchor, eventAttrsMap, _iterator, _step, _loop3, _loop, step;
185
+ return _regeneratorRuntime().wrap(function _callee2$(_context5) {
186
+ while (1) switch (_context5.prev = _context5.next) {
187
+ case 0:
188
+ list = [];
189
+ if (extra) {
190
+ extra.forEach(function (item) {
191
+ list.push({
192
+ isEvent: false,
193
+ groupName: item.name,
194
+ key: item.type,
195
+ anchor: anchor[item.type],
196
+ children: item.attrList
197
+ });
198
+ });
199
+ }
200
+ if (!enableEventProp) {
201
+ _context5.next = 37;
202
+ break;
203
+ }
204
+ if (!props.showCommonProp) {
205
+ _context5.next = 10;
206
+ break;
207
+ }
208
+ group = {
209
+ isEvent: true,
210
+ groupName: '共有属性',
211
+ key: "event-common",
212
+ children: [],
213
+ anchor: anchor.event
214
+ };
215
+ propMap = {};
216
+ eventAttrsList.forEach(function (attr) {
217
+ var name = attr.alias || attr.label;
218
+ if (!propMap[name]) {
219
+ propMap[name] = _.cloneDeep(attr);
220
+ } else {
221
+ group.children.push(propMap[name]);
222
+ }
223
+ });
224
+ if (group.children.length) list.push(group);
225
+ _context5.next = 37;
226
+ break;
227
+ case 10:
228
+ hasAnchor = false;
229
+ eventAttrsMap = {};
230
+ eventAttrsList.forEach(function (attr) {
231
+ if (!eventAttrsMap[attr.eventId]) {
232
+ eventAttrsMap[attr.eventId] = [];
233
+ }
234
+ eventAttrsMap[attr.eventId].push(attr);
235
+ });
236
+ _iterator = _createForOfIteratorHelper(eventIdList || []);
237
+ _context5.prev = 14;
238
+ _loop3 = /*#__PURE__*/_regeneratorRuntime().mark(function _loop3() {
239
+ var eventId, eventName, eventAttrs, filteredAttrs, _group2;
240
+ return _regeneratorRuntime().wrap(function _loop3$(_context4) {
241
+ while (1) switch (_context4.prev = _context4.next) {
242
+ case 0:
243
+ eventId = _step.value;
244
+ try {
245
+ eventName = function () {
246
+ var eventList = (eventGroupList || []).reduce(function (pre, group) {
247
+ return [].concat(_toConsumableArray(pre), _toConsumableArray(group.eventList));
248
+ }, []);
249
+ var event = eventList.find(function (e) {
250
+ return e.id === eventId;
251
+ });
252
+ return event ? event.alias || event.name : "\u4E8B\u4EF6".concat(eventId);
253
+ }();
254
+ eventAttrs = eventAttrsMap[eventId] || [];
255
+ filteredAttrs = eventAttrs.filter(function (item) {
256
+ return isHideYeWu || realTimeTags ? item.id !== 31415926 : true;
257
+ }).filter(function (item) {
258
+ return isStrNum ? item.type === 2 || item.type === 1 : isNumber ? item.type === 2 : isString ? item.type === 1 : true;
259
+ });
260
+ if (filteredAttrs.length > 0) {
261
+ _group2 = {
262
+ isEvent: true,
263
+ groupName: eventName,
264
+ anchor: hasAnchor ? String(Math.random()) : anchor.event,
265
+ key: "event-".concat(id),
266
+ children: filteredAttrs
267
+ };
268
+ list.push(_group2);
269
+ hasAnchor = true;
270
+ }
271
+ } catch (error) {
272
+ console.error("\u83B7\u53D6\u4E8B\u4EF6 ".concat(id, " \u7684\u5C5E\u6027\u5931\u8D25"), error);
273
+ }
274
+ case 2:
275
+ case "end":
276
+ return _context4.stop();
277
+ }
278
+ }, _loop3);
279
+ });
280
+ _iterator.s();
281
+ case 17:
282
+ if ((_step = _iterator.n()).done) {
283
+ _context5.next = 21;
284
+ break;
285
+ }
286
+ return _context5.delegateYield(_loop3(), "t0", 19);
287
+ case 19:
288
+ _context5.next = 17;
289
+ break;
290
+ case 21:
291
+ _context5.next = 26;
292
+ break;
293
+ case 23:
294
+ _context5.prev = 23;
295
+ _context5.t1 = _context5["catch"](14);
296
+ _iterator.e(_context5.t1);
297
+ case 26:
298
+ _context5.prev = 26;
299
+ _iterator.f();
300
+ return _context5.finish(26);
301
+ case 29:
302
+ if (!funnelEventIdList) {
303
+ _context5.next = 37;
304
+ break;
305
+ }
306
+ _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(step) {
307
+ var idList, _iterator2, _step2, _loop2;
308
+ return _regeneratorRuntime().wrap(function _loop$(_context3) {
309
+ while (1) switch (_context3.prev = _context3.next) {
310
+ case 0:
311
+ idList = funnelEventIdList[step];
312
+ _iterator2 = _createForOfIteratorHelper(idList);
313
+ _context3.prev = 2;
314
+ _loop2 = /*#__PURE__*/_regeneratorRuntime().mark(function _loop2() {
315
+ var eventId, eventName, eventAttrs, _group;
316
+ return _regeneratorRuntime().wrap(function _loop2$(_context2) {
317
+ while (1) switch (_context2.prev = _context2.next) {
318
+ case 0:
319
+ eventId = _step2.value;
320
+ try {
321
+ eventName = function () {
322
+ var eventList = (eventGroupList || []).reduce(function (pre, group) {
323
+ return [].concat(_toConsumableArray(pre), _toConsumableArray(group.eventList));
324
+ }, []);
325
+ var event = eventList.find(function (e) {
326
+ return e.id === eventId;
327
+ });
328
+ return event ? event.alias || event.name : "\u4E8B\u4EF6".concat(eventId);
329
+ }();
330
+ eventAttrs = eventAttrsMap[eventId] || [];
331
+ _group = {
332
+ isEvent: true,
333
+ groupName: eventName,
334
+ anchor: hasAnchor ? String(Math.random()) : anchor.event,
335
+ key: "event-".concat(eventId, "-").concat(step),
336
+ children: eventAttrs.map(function (attr) {
337
+ var res = _.cloneDeep(attr);
338
+ res.step = step;
339
+ return res;
340
+ })
341
+ };
342
+ list.push(_group);
343
+ hasAnchor = true;
344
+ } catch (error) {
345
+ console.error("\u83B7\u53D6\u6F0F\u6597\u4E8B\u4EF6 ".concat(id, " \u7684\u5C5E\u6027\u5931\u8D25"), error);
346
+ }
347
+ case 2:
348
+ case "end":
349
+ return _context2.stop();
350
+ }
351
+ }, _loop2);
352
+ });
353
+ _iterator2.s();
354
+ case 5:
355
+ if ((_step2 = _iterator2.n()).done) {
356
+ _context3.next = 9;
357
+ break;
358
+ }
359
+ return _context3.delegateYield(_loop2(), "t0", 7);
360
+ case 7:
361
+ _context3.next = 5;
362
+ break;
363
+ case 9:
364
+ _context3.next = 14;
365
+ break;
366
+ case 11:
367
+ _context3.prev = 11;
368
+ _context3.t1 = _context3["catch"](2);
369
+ _iterator2.e(_context3.t1);
370
+ case 14:
371
+ _context3.prev = 14;
372
+ _iterator2.f();
373
+ return _context3.finish(14);
374
+ case 17:
375
+ case "end":
376
+ return _context3.stop();
377
+ }
378
+ }, _loop, null, [[2, 11, 14, 17]]);
379
+ });
380
+ step = 0;
381
+ case 32:
382
+ if (!(step < funnelEventIdList.length)) {
383
+ _context5.next = 37;
384
+ break;
385
+ }
386
+ return _context5.delegateYield(_loop(step), "t2", 34);
387
+ case 34:
388
+ step++;
389
+ _context5.next = 32;
390
+ break;
391
+ case 37:
392
+ if (enableUserProp) {
393
+ list.push({
394
+ isEvent: false,
395
+ groupName: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5C5E\u6027"),
396
+ key: 'userProps',
397
+ anchor: anchor.user,
398
+ children: (extraUser ? extraUser : []).concat(userPropList.filter(function (item) {
399
+ return realTimeTags ? item.category === 'custom' : true;
400
+ }))
401
+ });
402
+ }
403
+ if (enableEnvProp) {
404
+ list.push({
405
+ isEvent: false,
406
+ groupName: '触发环境',
407
+ key: 'eventEnvProps',
408
+ anchor: anchor.env,
409
+ children: eventEnvList
410
+ });
411
+ }
412
+ setOptionList(list);
413
+ case 40:
414
+ case "end":
415
+ return _context5.stop();
416
+ }
417
+ }, _callee2, null, [[14, 23, 26, 29]]);
418
+ }));
419
+ return function initOptionList() {
420
+ return _ref2.apply(this, arguments);
421
+ };
422
+ }();
423
+ initOptionList();
424
+ }, [anchor, eventGroupList, userPropList, eventEnvList, props.showCommonProp, enableEventProp, enableUserProp, enableEnvProp, extra, extraUser, isHideYeWu, realTimeTags, isNumber, isStrNum, isString, eventAttrsList]);
213
425
  useEffect(function () {
214
426
  setCurrentAttr(props.value);
215
427
  }, [props.value]);
@@ -40,6 +40,7 @@ export interface EventGroup {
40
40
  export interface BasicProp {
41
41
  id?: number;
42
42
  label?: string;
43
+ encryptionType: number;
43
44
  alias?: string;
44
45
  type?: PropType;
45
46
  realTime?: boolean;
@@ -101,6 +102,7 @@ export declare namespace AttributeSelect {
101
102
  isStrNum?: Boolean;
102
103
  isString?: Boolean;
103
104
  isHideYeWu?: Boolean;
105
+ realTimeTags?: Boolean;
104
106
  }
105
107
  interface AttributeExtra {
106
108
  type: string;
@@ -31,6 +31,7 @@ export default function convertAttributeData(store) {
31
31
  propCategory: 'eventProp',
32
32
  type: item.prop_type,
33
33
  realTime: true,
34
+ encryptionType: item.encryption_type,
34
35
  dimensionSub: item.dimension_sub || 'event_attr'
35
36
  };
36
37
  }),
@@ -66,6 +67,7 @@ export default function convertAttributeData(store) {
66
67
  propCategory: 'envProp',
67
68
  type: prop.type,
68
69
  realTime: true,
70
+ encryptionType: prop.encryption_type,
69
71
  dimensionSub: prop.dimension_sub || prop.name
70
72
  };
71
73
  });
@@ -77,6 +79,7 @@ export default function convertAttributeData(store) {
77
79
  category: prop.category,
78
80
  key: "userProp-".concat(prop.name, "-").concat(prop.id || 0),
79
81
  label: prop.text || prop.name,
82
+ encryptionType: prop.encryption_type,
80
83
  name: prop.name,
81
84
  propCategory: 'userProp',
82
85
  type: prop.type,
@@ -5,7 +5,7 @@ export default {
5
5
  type: 'bar',
6
6
  itemStyle: {
7
7
  normal: {
8
- color: '#457DFF'
8
+ color: '#4392E0'
9
9
  }
10
10
  },
11
11
  values: [490, 540, 490, 510, 570, 890, 930]
@@ -27,7 +27,7 @@ export default {
27
27
  stack: 'Ad',
28
28
  itemStyle: {
29
29
  normal: {
30
- color: '#457DFF'
30
+ color: '#4392E0'
31
31
  }
32
32
  },
33
33
  values: [220, 180, 190, 230, 290, 330, 310]
@@ -9,7 +9,7 @@ import { BizChart } from '@zgfe/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();
12
+ var chartRef = useRef(null);
13
13
  var _useState = useState(),
14
14
  _useState2 = _slicedToArray(_useState, 2),
15
15
  chartImg = _useState2[0],
@@ -17,9 +17,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  import React, { useEffect, useState } from 'react';
18
18
  import { BizChart } from '@zgfe/business-lib';
19
19
  import data from './data/data5';
20
- var color = ['#457DFF', '#80E1D9', '#65789B', '#F8BC3B', '#6F66ED', '#66AFED'];
20
+ var color = ['#4392E0', '#80E1D9', '#65789B', '#F8BC3B', '#6F66ED', '#66AFED'];
21
21
  var colorKeyList = {
22
- '#457DFF': ['#5888F4', '#457DFF', '#3F72EA', '#3A69D8', '#3560C5', '#3057B3', '#2B4EA0', '#26458D', '#213C7B', '#1C3368'],
22
+ '#4392E0': ['#5888F4', '#4392E0', '#3F72EA', '#3A69D8', '#3560C5', '#3057B3', '#2B4EA0', '#26458D', '#213C7B', '#1C3368'],
23
23
  '#80E1D9': ['#80E1D9', '#74CCC4', '#69B9B2', '#5FA6A0', '#54948F', '#4A817D', '#3F6F6B', '#355C59', '#2A4A47', '#1F3735'],
24
24
  '#65789B': ['#A0BEF6', '#92ADE0', '#869FCD', '#7990BB', '#65789B', '#586887', '#4B5A74', '#3F4B62', '#333D4F', '#272F3D'],
25
25
  '#F8BC3B': ['#F8BC3B', '#E2AC36', '#D09E32', '#BD902D', '#AB8229', '#987425', '#866620', '#73571C', '#614917', '#4E3B13'],
@@ -141,9 +141,9 @@ export default (function () {
141
141
  var htmlArray = [];
142
142
  htmlArray.push("<div class=\"biz-chart-tooltip-title\">".concat(xLabel, "</div>"));
143
143
  if (totalData.isHasTotalDateKey[params.seriesName]) {
144
- htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(totalData.isHasTotalDateKey[params.seriesName], "</div>\n </div> \n <span class=\"biz-chart-tooltip-value\">").concat(totalData.totalDateValue[totalData.isHasTotalDateKey[params.seriesName]][params.dataIndex], "</span>\n </div>"));
144
+ htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(totalData.isHasTotalDateKey[params.seriesName], "</div>\n </div>\n <span class=\"biz-chart-tooltip-value\">").concat(totalData.totalDateValue[totalData.isHasTotalDateKey[params.seriesName]][params.dataIndex], "</span>\n </div>"));
145
145
  }
146
- htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(params.seriesName, "</div>\n </div> \n <span class=\"biz-chart-tooltip-value\">").concat(params.value, "</span>\n </div>"));
146
+ htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(params.seriesName, "</div>\n </div>\n <span class=\"biz-chart-tooltip-value\">").concat(params.value, "</span>\n </div>"));
147
147
  return htmlArray.join('');
148
148
  };
149
149
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizChart, {
@@ -9,7 +9,7 @@ import { BizChart } from '@zgfe/business-lib';
9
9
  import chartData from './data/data7';
10
10
  import { Button } from 'antd';
11
11
  export default (function () {
12
- var chartRef = useRef();
12
+ var chartRef = useRef(null);
13
13
  var _useState = useState(true),
14
14
  _useState2 = _slicedToArray(_useState, 2),
15
15
  show = _useState2[0],
package/es/chart/index.js CHANGED
@@ -25,11 +25,16 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
25
25
  showList = props.showList,
26
26
  option = props.option,
27
27
  userGroup = props.userGroup,
28
- showAll = props.showAll,
29
- reverseXAxis = props.reverseXAxis,
30
- isCity = props.isCity,
31
- xRotate = props.xRotate,
32
- yRotate = props.yRotate,
28
+ _props$showAll = props.showAll,
29
+ showAll = _props$showAll === void 0 ? false : _props$showAll,
30
+ _props$reverseXAxis = props.reverseXAxis,
31
+ reverseXAxis = _props$reverseXAxis === void 0 ? false : _props$reverseXAxis,
32
+ _props$isCity = props.isCity,
33
+ isCity = _props$isCity === void 0 ? true : _props$isCity,
34
+ _props$xRotate = props.xRotate,
35
+ xRotate = _props$xRotate === void 0 ? 0 : _props$xRotate,
36
+ _props$yRotate = props.yRotate,
37
+ yRotate = _props$yRotate === void 0 ? 0 : _props$yRotate,
33
38
  seriesName = props.seriesName,
34
39
  colors = props.colors,
35
40
  tooltipFormatter = props.tooltipFormatter,
@@ -193,11 +198,4 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
193
198
  }
194
199
  });
195
200
  });
196
- BizChart.defaultProps = {
197
- showAll: false,
198
- reverseXAxis: false,
199
- isCity: true,
200
- xRotate: 0,
201
- yRotate: 0
202
- };
203
201
  export default BizChart;
@@ -48,7 +48,7 @@
48
48
  color: #fff;
49
49
  font-weight: 500;
50
50
  font-size: 8.96px;
51
- background: #457dff;
51
+ background: #4392e0;
52
52
  border-radius: 50%;
53
53
  }
54
54
  .biz-tooltip-name {
@@ -95,7 +95,7 @@
95
95
  color: #fff;
96
96
  font-weight: 500;
97
97
  font-size: 8.96px;
98
- background: #457dff;
98
+ background: #4392e0;
99
99
  border-radius: 50%;
100
100
  }
101
101
  .biz-tooltip-name {
@@ -1 +1 @@
1
- export var chartColors = ['#457DFF', '#80E1D9', '#65789B', '#F8BC3B', '#6F66ED', '#66AFED', '#9661BC', '#FF7557', '#4DB273', '#F08BB4', '#CDDBFD', '#CDF3F0', '#CED4DE', '#FCE7B9', '#D1CEFD', '#D3E7F9', '#DFCFEA', '#FFD1C7', '#BBDEC8', '#FFE0ED'];
1
+ export var chartColors = ['#4392E0', '#80E1D9', '#65789B', '#F8BC3B', '#6F66ED', '#66AFED', '#9661BC', '#FF7557', '#4DB273', '#F08BB4', '#CDDBFD', '#CDF3F0', '#CED4DE', '#FCE7B9', '#D1CEFD', '#D3E7F9', '#DFCFEA', '#FFD1C7', '#BBDEC8', '#FFE0ED'];