@burdenoff/microfe-planmagnet 2026.930.20 → 2026.930.22

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 (140) hide show
  1. package/dist/node_modules/lodash/_arrayEach.js +14 -0
  2. package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
  3. package/dist/node_modules/lodash/_assignValue.js +17 -0
  4. package/dist/node_modules/lodash/_assignValue.js.map +1 -0
  5. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  6. package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
  7. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  8. package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
  9. package/dist/node_modules/lodash/_baseClone.js +64 -0
  10. package/dist/node_modules/lodash/_baseClone.js.map +1 -0
  11. package/dist/node_modules/lodash/_baseCreate.js +21 -0
  12. package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
  13. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  14. package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
  15. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  16. package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
  17. package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
  18. package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
  19. package/dist/node_modules/lodash/_baseSum.js +17 -0
  20. package/dist/node_modules/lodash/_baseSum.js.map +1 -0
  21. package/dist/node_modules/lodash/_baseUnset.js +26 -0
  22. package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
  23. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  24. package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
  25. package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
  26. package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
  27. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  28. package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
  29. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  30. package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
  31. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  32. package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
  33. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  34. package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
  35. package/dist/node_modules/lodash/_copyArray.js +15 -0
  36. package/dist/node_modules/lodash/_copyArray.js.map +1 -0
  37. package/dist/node_modules/lodash/_copyObject.js +22 -0
  38. package/dist/node_modules/lodash/_copyObject.js.map +1 -0
  39. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  40. package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
  41. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  42. package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
  43. package/dist/node_modules/lodash/_customOmitClone.js +15 -0
  44. package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
  45. package/dist/node_modules/lodash/_flatRest.js +17 -0
  46. package/dist/node_modules/lodash/_flatRest.js.map +1 -0
  47. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  48. package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
  49. package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
  50. package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
  51. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  52. package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
  53. package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
  54. package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
  55. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  56. package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
  57. package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
  58. package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
  59. package/dist/node_modules/lodash/_parent.js +16 -0
  60. package/dist/node_modules/lodash/_parent.js.map +1 -0
  61. package/dist/node_modules/lodash/flatten.js +15 -0
  62. package/dist/node_modules/lodash/flatten.js.map +1 -0
  63. package/dist/node_modules/lodash/isMap.js +14 -0
  64. package/dist/node_modules/lodash/isMap.js.map +1 -0
  65. package/dist/node_modules/lodash/isSet.js +14 -0
  66. package/dist/node_modules/lodash/isSet.js.map +1 -0
  67. package/dist/node_modules/lodash/keysIn.js +17 -0
  68. package/dist/node_modules/lodash/keysIn.js.map +1 -0
  69. package/dist/node_modules/lodash/maxBy.js +17 -0
  70. package/dist/node_modules/lodash/maxBy.js.map +1 -0
  71. package/dist/node_modules/lodash/omit.js +28 -0
  72. package/dist/node_modules/lodash/omit.js.map +1 -0
  73. package/dist/node_modules/lodash/sumBy.js +16 -0
  74. package/dist/node_modules/lodash/sumBy.js.map +1 -0
  75. package/dist/node_modules/recharts/es6/chart/Sankey.js +556 -0
  76. package/dist/node_modules/recharts/es6/chart/Sankey.js.map +1 -0
  77. package/dist/node_modules/recharts/es6/chart/Treemap.js +545 -0
  78. package/dist/node_modules/recharts/es6/chart/Treemap.js.map +1 -0
  79. package/dist/node_modules/recharts/es6/shape/Polygon.js +112 -0
  80. package/dist/node_modules/recharts/es6/shape/Polygon.js.map +1 -0
  81. package/dist/node_modules/recharts/es6/util/Constants.js +31 -0
  82. package/dist/node_modules/recharts/es6/util/Constants.js.map +1 -0
  83. package/dist/node_modules/recharts/es6/util/ReactUtils.js +15 -10
  84. package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
  85. package/dist/planmagnet/automation/AutomationExecutionsPanel.d.ts.map +1 -1
  86. package/dist/planmagnet/automation/AutomationExecutionsPanel.js +43 -39
  87. package/dist/planmagnet/automation/AutomationExecutionsPanel.js.map +1 -1
  88. package/dist/planmagnet/automation/AutomationRuleFields.d.ts +23 -4
  89. package/dist/planmagnet/automation/AutomationRuleFields.d.ts.map +1 -1
  90. package/dist/planmagnet/automation/AutomationRuleFields.js +255 -108
  91. package/dist/planmagnet/automation/AutomationRuleFields.js.map +1 -1
  92. package/dist/planmagnet/automation/automationRuleTypes.d.ts +138 -15
  93. package/dist/planmagnet/automation/automationRuleTypes.d.ts.map +1 -1
  94. package/dist/planmagnet/automation/automationRuleTypes.js +162 -22
  95. package/dist/planmagnet/automation/automationRuleTypes.js.map +1 -1
  96. package/dist/planmagnet/controls/AutomationRuleControls.d.ts.map +1 -1
  97. package/dist/planmagnet/controls/AutomationRuleControls.js +78 -73
  98. package/dist/planmagnet/controls/AutomationRuleControls.js.map +1 -1
  99. package/dist/planmagnet/controls/CompetitorControls.js +7 -7
  100. package/dist/planmagnet/controls/FeatureControls.js +38 -38
  101. package/dist/planmagnet/controls/ProgramControls.js +8 -8
  102. package/dist/planmagnet/dependency/DependencyGraph.js +9 -9
  103. package/dist/planmagnet/dependency/DependencyPanel.js +13 -13
  104. package/dist/planmagnet/pages/ActivityActivityPagePage.js +16 -16
  105. package/dist/planmagnet/pages/ActivityActivityPagePage.js.map +1 -1
  106. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.d.ts.map +1 -1
  107. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +91 -73
  108. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js.map +1 -1
  109. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.d.ts.map +1 -1
  110. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +85 -76
  111. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js.map +1 -1
  112. package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js +18 -18
  113. package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js.map +1 -1
  114. package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.d.ts.map +1 -1
  115. package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js +49 -45
  116. package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js.map +1 -1
  117. package/dist/planmagnet/pages/DashboardDashboardPagePage.js +11 -11
  118. package/dist/planmagnet/pages/DashboardsProjectManagerPagePage.js +5 -5
  119. package/dist/planmagnet/pages/DashboardsTeamUtilizationPagePage.js +5 -5
  120. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js +6 -6
  121. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js.map +1 -1
  122. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js +8 -8
  123. package/dist/planmagnet/pages/ProjectsBudgetsPagePage.js +10 -10
  124. package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +6 -6
  125. package/dist/planmagnet/pages/ProjectsEditProjectPagePage.js +5 -5
  126. package/dist/planmagnet/pages/ProjectsPlanningPagePage.js +8 -8
  127. package/dist/planmagnet/pages/SprintsStartSprintPagePage.js +4 -4
  128. package/dist/planmagnet/pages/analytics/StatusFlowCard.d.ts +8 -0
  129. package/dist/planmagnet/pages/analytics/StatusFlowCard.d.ts.map +1 -0
  130. package/dist/planmagnet/pages/analytics/StatusFlowCard.js +231 -0
  131. package/dist/planmagnet/pages/analytics/StatusFlowCard.js.map +1 -0
  132. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.d.ts +6 -0
  133. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.d.ts.map +1 -0
  134. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.js +364 -0
  135. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.js.map +1 -0
  136. package/dist/planmagnet/people/People.d.ts.map +1 -1
  137. package/dist/planmagnet/people/People.js +30 -17
  138. package/dist/planmagnet/people/People.js.map +1 -1
  139. package/dist/planmagnet/roadmaps/RoadmapControls.js +17 -17
  140. package/package.json +1 -1
@@ -0,0 +1,112 @@
1
+ import e from "../../../clsx/dist/clsx.js";
2
+ import { filterProps as t } from "../util/ReactUtils.js";
3
+ import n from "react";
4
+ //#region node_modules/recharts/es6/shape/Polygon.js
5
+ var r = [
6
+ "points",
7
+ "className",
8
+ "baseLinePoints",
9
+ "connectNulls"
10
+ ];
11
+ function i() {
12
+ return i = Object.assign ? Object.assign.bind() : function(e) {
13
+ for (var t = 1; t < arguments.length; t++) {
14
+ var n = arguments[t];
15
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
16
+ }
17
+ return e;
18
+ }, i.apply(this, arguments);
19
+ }
20
+ function a(e, t) {
21
+ if (e == null) return {};
22
+ var n = o(e, t), r, i;
23
+ if (Object.getOwnPropertySymbols) {
24
+ var a = Object.getOwnPropertySymbols(e);
25
+ for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
26
+ }
27
+ return n;
28
+ }
29
+ function o(e, t) {
30
+ if (e == null) return {};
31
+ var n = {};
32
+ for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) {
33
+ if (t.indexOf(r) >= 0) continue;
34
+ n[r] = e[r];
35
+ }
36
+ return n;
37
+ }
38
+ function s(e) {
39
+ return d(e) || u(e) || l(e) || c();
40
+ }
41
+ function c() {
42
+ throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
43
+ }
44
+ function l(e, t) {
45
+ if (e) {
46
+ if (typeof e == "string") return f(e, t);
47
+ var n = Object.prototype.toString.call(e).slice(8, -1);
48
+ if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
49
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return f(e, t);
50
+ }
51
+ }
52
+ function u(e) {
53
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
54
+ }
55
+ function d(e) {
56
+ if (Array.isArray(e)) return f(e);
57
+ }
58
+ function f(e, t) {
59
+ (t == null || t > e.length) && (t = e.length);
60
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
61
+ return r;
62
+ }
63
+ var p = function(e) {
64
+ return e && e.x === +e.x && e.y === +e.y;
65
+ }, m = function() {
66
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
67
+ return e.forEach(function(e) {
68
+ p(e) ? t[t.length - 1].push(e) : t[t.length - 1].length > 0 && t.push([]);
69
+ }), p(e[0]) && t[t.length - 1].push(e[0]), t[t.length - 1].length <= 0 && (t = t.slice(0, -1)), t;
70
+ }, h = function(e, t) {
71
+ var n = m(e);
72
+ t && (n = [n.reduce(function(e, t) {
73
+ return [].concat(s(e), s(t));
74
+ }, [])]);
75
+ var r = n.map(function(e) {
76
+ return e.reduce(function(e, t, n) {
77
+ return `${e}${n === 0 ? "M" : "L"}${t.x},${t.y}`;
78
+ }, "");
79
+ }).join("");
80
+ return n.length === 1 ? `${r}Z` : r;
81
+ }, g = function(e, t, n) {
82
+ var r = h(e, n);
83
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${h(t.reverse(), n).slice(1)}`;
84
+ }, _ = function(o) {
85
+ var s = o.points, c = o.className, l = o.baseLinePoints, u = o.connectNulls, d = a(o, r);
86
+ if (!s || !s.length) return null;
87
+ var f = e("recharts-polygon", c);
88
+ if (l && l.length) {
89
+ var p = d.stroke && d.stroke !== "none", m = g(s, l, u);
90
+ return /* @__PURE__ */ n.createElement("g", { className: f }, /* @__PURE__ */ n.createElement("path", i({}, t(d, !0), {
91
+ fill: m.slice(-1) === "Z" ? d.fill : "none",
92
+ stroke: "none",
93
+ d: m
94
+ })), p ? /* @__PURE__ */ n.createElement("path", i({}, t(d, !0), {
95
+ fill: "none",
96
+ d: h(s, u)
97
+ })) : null, p ? /* @__PURE__ */ n.createElement("path", i({}, t(d, !0), {
98
+ fill: "none",
99
+ d: h(l, u)
100
+ })) : null);
101
+ }
102
+ var _ = h(s, u);
103
+ return /* @__PURE__ */ n.createElement("path", i({}, t(d, !0), {
104
+ fill: _.slice(-1) === "Z" ? d.fill : "none",
105
+ className: f,
106
+ d: _
107
+ }));
108
+ };
109
+ //#endregion
110
+ export { _ as Polygon };
111
+
112
+ //# sourceMappingURL=Polygon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Polygon.js","names":[],"sources":["../../../../../node_modules/recharts/es6/shape/Polygon.js"],"sourcesContent":["var _excluded = [\"points\", \"className\", \"baseLinePoints\", \"connectNulls\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _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; }\n/**\n * @fileOverview Polygon\n */\nimport React from 'react';\nimport clsx from 'clsx';\nimport { filterProps } from '../util/ReactUtils';\nvar isValidatePoint = function isValidatePoint(point) {\n return point && point.x === +point.x && point.y === +point.y;\n};\nvar getParsedPoints = function getParsedPoints() {\n var points = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var segmentPoints = [[]];\n points.forEach(function (entry) {\n if (isValidatePoint(entry)) {\n segmentPoints[segmentPoints.length - 1].push(entry);\n } else if (segmentPoints[segmentPoints.length - 1].length > 0) {\n // add another path\n segmentPoints.push([]);\n }\n });\n if (isValidatePoint(points[0])) {\n segmentPoints[segmentPoints.length - 1].push(points[0]);\n }\n if (segmentPoints[segmentPoints.length - 1].length <= 0) {\n segmentPoints = segmentPoints.slice(0, -1);\n }\n return segmentPoints;\n};\nvar getSinglePolygonPath = function getSinglePolygonPath(points, connectNulls) {\n var segmentPoints = getParsedPoints(points);\n if (connectNulls) {\n segmentPoints = [segmentPoints.reduce(function (res, segPoints) {\n return [].concat(_toConsumableArray(res), _toConsumableArray(segPoints));\n }, [])];\n }\n var polygonPath = segmentPoints.map(function (segPoints) {\n return segPoints.reduce(function (path, point, index) {\n return \"\".concat(path).concat(index === 0 ? 'M' : 'L').concat(point.x, \",\").concat(point.y);\n }, '');\n }).join('');\n return segmentPoints.length === 1 ? \"\".concat(polygonPath, \"Z\") : polygonPath;\n};\nvar getRanglePath = function getRanglePath(points, baseLinePoints, connectNulls) {\n var outerPath = getSinglePolygonPath(points, connectNulls);\n return \"\".concat(outerPath.slice(-1) === 'Z' ? outerPath.slice(0, -1) : outerPath, \"L\").concat(getSinglePolygonPath(baseLinePoints.reverse(), connectNulls).slice(1));\n};\nexport var Polygon = function Polygon(props) {\n var points = props.points,\n className = props.className,\n baseLinePoints = props.baseLinePoints,\n connectNulls = props.connectNulls,\n others = _objectWithoutProperties(props, _excluded);\n if (!points || !points.length) {\n return null;\n }\n var layerClass = clsx('recharts-polygon', className);\n if (baseLinePoints && baseLinePoints.length) {\n var hasStroke = others.stroke && others.stroke !== 'none';\n var rangePath = getRanglePath(points, baseLinePoints, connectNulls);\n return /*#__PURE__*/React.createElement(\"g\", {\n className: layerClass\n }, /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(others, true), {\n fill: rangePath.slice(-1) === 'Z' ? others.fill : 'none',\n stroke: \"none\",\n d: rangePath\n })), hasStroke ? /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(others, true), {\n fill: \"none\",\n d: getSinglePolygonPath(points, connectNulls)\n })) : null, hasStroke ? /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(others, true), {\n fill: \"none\",\n d: getSinglePolygonPath(baseLinePoints, connectNulls)\n })) : null);\n }\n var singlePath = getSinglePolygonPath(points, connectNulls);\n return /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(others, true), {\n fill: singlePath.slice(-1) === 'Z' ? others.fill : 'none',\n className: layerClass,\n d: singlePath\n }));\n};"],"x_google_ignoreList":[0],"mappings":";;;;AAAA,IAAI,IAAY;CAAC;CAAU;CAAa;CAAkB;CAAe;AACzE,SAAS,IAAW;AAAsR,QAApR,IAAW,OAAO,SAAS,OAAO,OAAO,MAAM,GAAG,SAAU,GAAQ;AAAE,OAAK,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;GAAE,IAAI,IAAS,UAAU;AAAI,QAAK,IAAI,KAAO,EAAU,CAAI,OAAO,UAAU,eAAe,KAAK,GAAQ,EAAI,KAAI,EAAO,KAAO,EAAO;;AAAY,SAAO;IAAkB,EA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a;AAC3D,QAAoB,kBAAM,cAAc,QAAQ,EAAS,EAAE,EAAE,EAAY,GAAQ,GAAK,EAAE;EACtF,MAAM,EAAW,MAAM,GAAG,KAAK,MAAM,EAAO,OAAO;EACnD,WAAW;EACX,GAAG;EACJ,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ //#region node_modules/recharts/es6/util/Constants.js
2
+ var e = [
3
+ "#1890FF",
4
+ "#66B5FF",
5
+ "#41D9C7",
6
+ "#2FC25B",
7
+ "#6EDB8F",
8
+ "#9AE65C",
9
+ "#FACC14",
10
+ "#E6965C",
11
+ "#57AD71",
12
+ "#223273",
13
+ "#738AE6",
14
+ "#7564CC",
15
+ "#8543E0",
16
+ "#A877ED",
17
+ "#5C8EE6",
18
+ "#13C2C2",
19
+ "#70E0E0",
20
+ "#5CA3E6",
21
+ "#3436C7",
22
+ "#8082FF",
23
+ "#DD81E6",
24
+ "#F04864",
25
+ "#FA7D92",
26
+ "#D598D9"
27
+ ];
28
+ //#endregion
29
+ export { e as COLOR_PANEL };
30
+
31
+ //# sourceMappingURL=Constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.js","names":[],"sources":["../../../../../node_modules/recharts/es6/util/Constants.js"],"sourcesContent":["export var COLOR_PANEL = ['#1890FF', '#66B5FF', '#41D9C7', '#2FC25B', '#6EDB8F', '#9AE65C', '#FACC14', '#E6965C', '#57AD71', '#223273', '#738AE6', '#7564CC', '#8543E0', '#A877ED', '#5C8EE6', '#13C2C2', '#70E0E0', '#5CA3E6', '#3436C7', '#8082FF', '#DD81E6', '#F04864', '#FA7D92', '#D598D9'];"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,IAAc;CAAC;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAU"}
@@ -85,7 +85,12 @@ var M = function(e) {
85
85
  }, I = function(e, t, n, r) {
86
86
  var i = u?.[r] ?? [];
87
87
  return t.startsWith("data-") || !(0, _.default)(e) && (r && i.includes(t) || d.includes(t)) || n && l.includes(t);
88
- }, L = function(e, t, n) {
88
+ }, L = function(e) {
89
+ var t = [];
90
+ return k(e).forEach(function(e) {
91
+ P(e) && t.push(e);
92
+ }), t;
93
+ }, R = function(e, t, n) {
89
94
  if (!e || typeof e == "function" || typeof e == "boolean") return null;
90
95
  var r = e;
91
96
  if (/* @__PURE__ */ p(e) && (r = e.props), !(0, v.default)(r)) return null;
@@ -93,27 +98,27 @@ var M = function(e) {
93
98
  return Object.keys(r).forEach(function(e) {
94
99
  I(r?.[e], e, t, n) && (i[e] = r[e]);
95
100
  }), i;
96
- }, R = function e(t, n) {
101
+ }, z = function e(t, n) {
97
102
  if (t === n) return !0;
98
103
  var r = f.count(t);
99
104
  if (r !== f.count(n)) return !1;
100
105
  if (r === 0) return !0;
101
- if (r === 1) return z(Array.isArray(t) ? t[0] : t, Array.isArray(n) ? n[0] : n);
106
+ if (r === 1) return B(Array.isArray(t) ? t[0] : t, Array.isArray(n) ? n[0] : n);
102
107
  for (var i = 0; i < r; i++) {
103
108
  var a = t[i], o = n[i];
104
109
  if (Array.isArray(a) || Array.isArray(o)) {
105
110
  if (!e(a, o)) return !1;
106
- } else if (!z(a, o)) return !1;
111
+ } else if (!B(a, o)) return !1;
107
112
  }
108
113
  return !0;
109
- }, z = function(e, t) {
114
+ }, B = function(e, t) {
110
115
  if ((0, h.default)(e) && (0, h.default)(t)) return !0;
111
116
  if (!(0, h.default)(e) && !(0, h.default)(t)) {
112
117
  var n = e.props || {}, r = n.children, i = S(n, b), a = t.props || {}, o = a.children, s = S(a, x);
113
- return r && o ? c(i, s) && R(r, o) : !r && !o ? c(i, s) : !1;
118
+ return r && o ? c(i, s) && z(r, o) : !r && !o ? c(i, s) : !1;
114
119
  }
115
120
  return !1;
116
- }, B = function(e, t) {
121
+ }, V = function(e, t) {
117
122
  var n = [], r = {};
118
123
  return k(e).forEach(function(e, i) {
119
124
  if (P(e)) n.push(e);
@@ -125,13 +130,13 @@ var M = function(e) {
125
130
  }
126
131
  }
127
132
  }), n;
128
- }, V = function(e) {
133
+ }, H = function(e) {
129
134
  var t = e && e.type;
130
135
  return t && T[t] ? T[t] : null;
131
- }, H = function(e, t) {
136
+ }, U = function(e, t) {
132
137
  return k(t).indexOf(e);
133
138
  };
134
139
  //#endregion
135
- export { L as filterProps, A as findAllByType, j as findChildByType, E as getDisplayName, V as getReactEventByType, F as hasClipDot, R as isChildrenEqual, H as parseChildIndex, B as renderByOrder, M as validateWidthHeight };
140
+ export { R as filterProps, L as filterSvgElements, A as findAllByType, j as findChildByType, E as getDisplayName, H as getReactEventByType, F as hasClipDot, z as isChildrenEqual, U as parseChildIndex, V as renderByOrder, M as validateWidthHeight };
136
141
 
137
142
  //# sourceMappingURL=ReactUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReactUtils.js","names":[],"sources":["../../../../../node_modules/recharts/es6/util/ReactUtils.js"],"sourcesContent":["var _excluded = [\"children\"],\n _excluded2 = [\"children\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }\nfunction _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); }\nimport get from 'lodash/get';\nimport isNil from 'lodash/isNil';\nimport isString from 'lodash/isString';\nimport isFunction from 'lodash/isFunction';\nimport isObject from 'lodash/isObject';\nimport { Children, isValidElement } from 'react';\nimport { isFragment } from 'react-is';\nimport { isNumber } from './DataUtils';\nimport { shallowEqual } from './ShallowEqual';\nimport { FilteredElementKeyMap, SVGElementPropKeys, EventKeys } from './types';\nvar REACT_BROWSER_EVENT_MAP = {\n click: 'onClick',\n mousedown: 'onMouseDown',\n mouseup: 'onMouseUp',\n mouseover: 'onMouseOver',\n mousemove: 'onMouseMove',\n mouseout: 'onMouseOut',\n mouseenter: 'onMouseEnter',\n mouseleave: 'onMouseLeave',\n touchcancel: 'onTouchCancel',\n touchend: 'onTouchEnd',\n touchmove: 'onTouchMove',\n touchstart: 'onTouchStart',\n contextmenu: 'onContextMenu',\n dblclick: 'onDoubleClick'\n};\nexport var SCALE_TYPES = ['auto', 'linear', 'pow', 'sqrt', 'log', 'identity', 'time', 'band', 'point', 'ordinal', 'quantile', 'quantize', 'utc', 'sequential', 'threshold'];\nexport var LEGEND_TYPES = ['plainline', 'line', 'square', 'rect', 'circle', 'cross', 'diamond', 'star', 'triangle', 'wye', 'none'];\nexport var TOOLTIP_TYPES = ['none'];\n\n/**\n * Get the display name of a component\n * @param {Object} Comp Specified Component\n * @return {String} Display name of Component\n */\nexport var getDisplayName = function getDisplayName(Comp) {\n if (typeof Comp === 'string') {\n return Comp;\n }\n if (!Comp) {\n return '';\n }\n return Comp.displayName || Comp.name || 'Component';\n};\n\n// `toArray` gets called multiple times during the render\n// so we can memoize last invocation (since reference to `children` is the same)\nvar lastChildren = null;\nvar lastResult = null;\nexport var toArray = function toArray(children) {\n if (children === lastChildren && Array.isArray(lastResult)) {\n return lastResult;\n }\n var result = [];\n Children.forEach(children, function (child) {\n if (isNil(child)) return;\n if (isFragment(child)) {\n result = result.concat(toArray(child.props.children));\n } else {\n // @ts-expect-error this could still be Iterable<ReactNode> and TS does not like that\n result.push(child);\n }\n });\n lastResult = result;\n lastChildren = children;\n return result;\n};\n\n/*\n * Find and return all matched children by type.\n * `type` must be a React.ComponentType\n */\nexport function findAllByType(children, type) {\n var result = [];\n var types = [];\n if (Array.isArray(type)) {\n types = type.map(function (t) {\n return getDisplayName(t);\n });\n } else {\n types = [getDisplayName(type)];\n }\n toArray(children).forEach(function (child) {\n var childType = get(child, 'type.displayName') || get(child, 'type.name');\n if (types.indexOf(childType) !== -1) {\n result.push(child);\n }\n });\n return result;\n}\n\n/*\n * Return the first matched child by type, return null otherwise.\n * `type` must be a React.ComponentType\n */\nexport function findChildByType(children, type) {\n var result = findAllByType(children, type);\n return result && result[0];\n}\n\n/*\n * Create a new array of children excluding the ones matched the type\n */\nexport var withoutType = function withoutType(children, type) {\n var newChildren = [];\n var types;\n if (Array.isArray(type)) {\n types = type.map(function (t) {\n return getDisplayName(t);\n });\n } else {\n types = [getDisplayName(type)];\n }\n toArray(children).forEach(function (child) {\n var displayName = get(child, 'type.displayName');\n if (displayName && types.indexOf(displayName) !== -1) {\n return;\n }\n newChildren.push(child);\n });\n return newChildren;\n};\n\n/**\n * validate the width and height props of a chart element\n * @param {Object} el A chart element\n * @return {Boolean} true If the props width and height are number, and greater than 0\n */\nexport var validateWidthHeight = function validateWidthHeight(el) {\n if (!el || !el.props) {\n return false;\n }\n var _el$props = el.props,\n width = _el$props.width,\n height = _el$props.height;\n if (!isNumber(width) || width <= 0 || !isNumber(height) || height <= 0) {\n return false;\n }\n return true;\n};\nvar SVG_TAGS = ['a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor', 'animateMotion', 'animateTransform', 'circle', 'clipPath', 'color-profile', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColormatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'font', 'font-face', 'font-face-format', 'font-face-name', 'font-face-url', 'foreignObject', 'g', 'glyph', 'glyphRef', 'hkern', 'image', 'line', 'lineGradient', 'marker', 'mask', 'metadata', 'missing-glyph', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'script', 'set', 'stop', 'style', 'svg', 'switch', 'symbol', 'text', 'textPath', 'title', 'tref', 'tspan', 'use', 'view', 'vkern'];\nvar isSvgElement = function isSvgElement(child) {\n return child && child.type && isString(child.type) && SVG_TAGS.indexOf(child.type) >= 0;\n};\nexport var hasClipDot = function hasClipDot(dot) {\n return dot && _typeof(dot) === 'object' && 'clipDot' in dot;\n};\n\n/**\n * Checks if the property is valid to spread onto an SVG element or onto a specific component\n * @param {unknown} property property value currently being compared\n * @param {string} key property key currently being compared\n * @param {boolean} includeEvents if events are included in spreadable props\n * @param {boolean} svgElementType checks against map of SVG element types to attributes\n * @returns {boolean} is prop valid\n */\nexport var isValidSpreadableProp = function isValidSpreadableProp(property, key, includeEvents, svgElementType) {\n var _FilteredElementKeyMa;\n /**\n * If the svg element type is explicitly included, check against the filtered element key map\n * to determine if there are attributes that should only exist on that element type.\n * @todo Add an internal cjs version of https://github.com/wooorm/svg-element-attributes for full coverage.\n */\n var matchingElementTypeKeys = (_FilteredElementKeyMa = FilteredElementKeyMap === null || FilteredElementKeyMap === void 0 ? void 0 : FilteredElementKeyMap[svgElementType]) !== null && _FilteredElementKeyMa !== void 0 ? _FilteredElementKeyMa : [];\n return key.startsWith('data-') || !isFunction(property) && (svgElementType && matchingElementTypeKeys.includes(key) || SVGElementPropKeys.includes(key)) || includeEvents && EventKeys.includes(key);\n};\n\n/**\n * Filter all the svg elements of children\n * @param {Array} children The children of a react element\n * @return {Array} All the svg elements\n */\nexport var filterSvgElements = function filterSvgElements(children) {\n var svgElements = [];\n toArray(children).forEach(function (entry) {\n if (isSvgElement(entry)) {\n svgElements.push(entry);\n }\n });\n return svgElements;\n};\nexport var filterProps = function filterProps(props, includeEvents, svgElementType) {\n if (!props || typeof props === 'function' || typeof props === 'boolean') {\n return null;\n }\n var inputProps = props;\n if ( /*#__PURE__*/isValidElement(props)) {\n inputProps = props.props;\n }\n if (!isObject(inputProps)) {\n return null;\n }\n var out = {};\n\n /**\n * Props are blindly spread onto SVG elements. This loop filters out properties that we don't want to spread.\n * Items filtered out are as follows:\n * - functions in properties that are SVG attributes (functions are included when includeEvents is true)\n * - props that are SVG attributes but don't matched the passed svgElementType\n * - any prop that is not in SVGElementPropKeys (or in EventKeys if includeEvents is true)\n */\n Object.keys(inputProps).forEach(function (key) {\n var _inputProps;\n if (isValidSpreadableProp((_inputProps = inputProps) === null || _inputProps === void 0 ? void 0 : _inputProps[key], key, includeEvents, svgElementType)) {\n out[key] = inputProps[key];\n }\n });\n return out;\n};\n\n/**\n * Wether props of children changed\n * @param {Object} nextChildren The latest children\n * @param {Object} prevChildren The prev children\n * @return {Boolean} equal or not\n */\nexport var isChildrenEqual = function isChildrenEqual(nextChildren, prevChildren) {\n if (nextChildren === prevChildren) {\n return true;\n }\n var count = Children.count(nextChildren);\n if (count !== Children.count(prevChildren)) {\n return false;\n }\n if (count === 0) {\n return true;\n }\n if (count === 1) {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n return isSingleChildEqual(Array.isArray(nextChildren) ? nextChildren[0] : nextChildren, Array.isArray(prevChildren) ? prevChildren[0] : prevChildren);\n }\n for (var i = 0; i < count; i++) {\n var nextChild = nextChildren[i];\n var prevChild = prevChildren[i];\n if (Array.isArray(nextChild) || Array.isArray(prevChild)) {\n if (!isChildrenEqual(nextChild, prevChild)) {\n return false;\n }\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n } else if (!isSingleChildEqual(nextChild, prevChild)) {\n return false;\n }\n }\n return true;\n};\nexport var isSingleChildEqual = function isSingleChildEqual(nextChild, prevChild) {\n if (isNil(nextChild) && isNil(prevChild)) {\n return true;\n }\n if (!isNil(nextChild) && !isNil(prevChild)) {\n var _ref = nextChild.props || {},\n nextChildren = _ref.children,\n nextProps = _objectWithoutProperties(_ref, _excluded);\n var _ref2 = prevChild.props || {},\n prevChildren = _ref2.children,\n prevProps = _objectWithoutProperties(_ref2, _excluded2);\n if (nextChildren && prevChildren) {\n return shallowEqual(nextProps, prevProps) && isChildrenEqual(nextChildren, prevChildren);\n }\n if (!nextChildren && !prevChildren) {\n return shallowEqual(nextProps, prevProps);\n }\n return false;\n }\n return false;\n};\nexport var renderByOrder = function renderByOrder(children, renderMap) {\n var elements = [];\n var record = {};\n toArray(children).forEach(function (child, index) {\n if (isSvgElement(child)) {\n elements.push(child);\n } else if (child) {\n var displayName = getDisplayName(child.type);\n var _ref3 = renderMap[displayName] || {},\n handler = _ref3.handler,\n once = _ref3.once;\n if (handler && (!once || !record[displayName])) {\n var results = handler(child, displayName, index);\n elements.push(results);\n record[displayName] = true;\n }\n }\n });\n return elements;\n};\nexport var getReactEventByType = function getReactEventByType(e) {\n var type = e && e.type;\n if (type && REACT_BROWSER_EVENT_MAP[type]) {\n return REACT_BROWSER_EVENT_MAP[type];\n }\n return null;\n};\nexport var parseChildIndex = function parseChildIndex(child, children) {\n return toArray(children).indexOf(child);\n};"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;yJAAI,IAAY,CAAC,WAAW,EAC1B,IAAa,CAAC,WAAW;AAC3B,SAAS,EAAyB,GAAQ,GAAU;AAAE,KAAI,KAAU,KAAM,QAAO,EAAE;CAAE,IAAI,IAAS,EAA8B,GAAQ,EAAS,EAAM,GAAK;AAAG,KAAI,OAAO,uBAAuB;EAAE,IAAI,IAAmB,OAAO,sBAAsB,EAAO;AAAE,OAAK,IAAI,GAAG,IAAI,EAAiB,QAAQ,IAAO,KAAM,EAAiB,IAAQ,IAAS,QAAQ,EAAI,IAAI,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SAAS,EAAE,EAC/B,IAAe,EAAM,UACrB,IAAY,EAAyB,GAAO,EAAW;AAOzD,SANI,KAAgB,IACX,EAAa,GAAW,EAAU,IAAI,EAAgB,GAAc,EAAa,GAEtF,CAAC,KAAgB,CAAC,IACb,EAAa,GAAW,EAAU,GAEpC;;AAET,QAAO;GAEE,IAAgB,SAAuB,GAAU,GAAW;CACrE,IAAI,IAAW,EAAE,EACb,IAAS,EAAE;AAgBf,QAfA,EAAQ,EAAS,CAAC,QAAQ,SAAU,GAAO,GAAO;AAChD,MAAI,EAAa,EAAM,CACrB,GAAS,KAAK,EAAM;WACX,GAAO;GAChB,IAAI,IAAc,EAAe,EAAM,KAAK,EACxC,IAAQ,EAAU,MAAgB,EAAE,EACtC,IAAU,EAAM,SAChB,IAAO,EAAM;AACf,OAAI,MAAY,CAAC,KAAQ,CAAC,EAAO,KAAe;IAC9C,IAAI,IAAU,EAAQ,GAAO,GAAa,EAAM;AAEhD,IADA,EAAS,KAAK,EAAQ,EACtB,EAAO,KAAe;;;GAG1B,EACK;GAEE,IAAsB,SAA6B,GAAG;CAC/D,IAAI,IAAO,KAAK,EAAE;AAIlB,QAHI,KAAQ,EAAwB,KAC3B,EAAwB,KAE1B;GAEE,IAAkB,SAAyB,GAAO,GAAU;AACrE,QAAO,EAAQ,EAAS,CAAC,QAAQ,EAAM"}
1
+ {"version":3,"file":"ReactUtils.js","names":[],"sources":["../../../../../node_modules/recharts/es6/util/ReactUtils.js"],"sourcesContent":["var _excluded = [\"children\"],\n _excluded2 = [\"children\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }\nfunction _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); }\nimport get from 'lodash/get';\nimport isNil from 'lodash/isNil';\nimport isString from 'lodash/isString';\nimport isFunction from 'lodash/isFunction';\nimport isObject from 'lodash/isObject';\nimport { Children, isValidElement } from 'react';\nimport { isFragment } from 'react-is';\nimport { isNumber } from './DataUtils';\nimport { shallowEqual } from './ShallowEqual';\nimport { FilteredElementKeyMap, SVGElementPropKeys, EventKeys } from './types';\nvar REACT_BROWSER_EVENT_MAP = {\n click: 'onClick',\n mousedown: 'onMouseDown',\n mouseup: 'onMouseUp',\n mouseover: 'onMouseOver',\n mousemove: 'onMouseMove',\n mouseout: 'onMouseOut',\n mouseenter: 'onMouseEnter',\n mouseleave: 'onMouseLeave',\n touchcancel: 'onTouchCancel',\n touchend: 'onTouchEnd',\n touchmove: 'onTouchMove',\n touchstart: 'onTouchStart',\n contextmenu: 'onContextMenu',\n dblclick: 'onDoubleClick'\n};\nexport var SCALE_TYPES = ['auto', 'linear', 'pow', 'sqrt', 'log', 'identity', 'time', 'band', 'point', 'ordinal', 'quantile', 'quantize', 'utc', 'sequential', 'threshold'];\nexport var LEGEND_TYPES = ['plainline', 'line', 'square', 'rect', 'circle', 'cross', 'diamond', 'star', 'triangle', 'wye', 'none'];\nexport var TOOLTIP_TYPES = ['none'];\n\n/**\n * Get the display name of a component\n * @param {Object} Comp Specified Component\n * @return {String} Display name of Component\n */\nexport var getDisplayName = function getDisplayName(Comp) {\n if (typeof Comp === 'string') {\n return Comp;\n }\n if (!Comp) {\n return '';\n }\n return Comp.displayName || Comp.name || 'Component';\n};\n\n// `toArray` gets called multiple times during the render\n// so we can memoize last invocation (since reference to `children` is the same)\nvar lastChildren = null;\nvar lastResult = null;\nexport var toArray = function toArray(children) {\n if (children === lastChildren && Array.isArray(lastResult)) {\n return lastResult;\n }\n var result = [];\n Children.forEach(children, function (child) {\n if (isNil(child)) return;\n if (isFragment(child)) {\n result = result.concat(toArray(child.props.children));\n } else {\n // @ts-expect-error this could still be Iterable<ReactNode> and TS does not like that\n result.push(child);\n }\n });\n lastResult = result;\n lastChildren = children;\n return result;\n};\n\n/*\n * Find and return all matched children by type.\n * `type` must be a React.ComponentType\n */\nexport function findAllByType(children, type) {\n var result = [];\n var types = [];\n if (Array.isArray(type)) {\n types = type.map(function (t) {\n return getDisplayName(t);\n });\n } else {\n types = [getDisplayName(type)];\n }\n toArray(children).forEach(function (child) {\n var childType = get(child, 'type.displayName') || get(child, 'type.name');\n if (types.indexOf(childType) !== -1) {\n result.push(child);\n }\n });\n return result;\n}\n\n/*\n * Return the first matched child by type, return null otherwise.\n * `type` must be a React.ComponentType\n */\nexport function findChildByType(children, type) {\n var result = findAllByType(children, type);\n return result && result[0];\n}\n\n/*\n * Create a new array of children excluding the ones matched the type\n */\nexport var withoutType = function withoutType(children, type) {\n var newChildren = [];\n var types;\n if (Array.isArray(type)) {\n types = type.map(function (t) {\n return getDisplayName(t);\n });\n } else {\n types = [getDisplayName(type)];\n }\n toArray(children).forEach(function (child) {\n var displayName = get(child, 'type.displayName');\n if (displayName && types.indexOf(displayName) !== -1) {\n return;\n }\n newChildren.push(child);\n });\n return newChildren;\n};\n\n/**\n * validate the width and height props of a chart element\n * @param {Object} el A chart element\n * @return {Boolean} true If the props width and height are number, and greater than 0\n */\nexport var validateWidthHeight = function validateWidthHeight(el) {\n if (!el || !el.props) {\n return false;\n }\n var _el$props = el.props,\n width = _el$props.width,\n height = _el$props.height;\n if (!isNumber(width) || width <= 0 || !isNumber(height) || height <= 0) {\n return false;\n }\n return true;\n};\nvar SVG_TAGS = ['a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor', 'animateMotion', 'animateTransform', 'circle', 'clipPath', 'color-profile', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColormatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'font', 'font-face', 'font-face-format', 'font-face-name', 'font-face-url', 'foreignObject', 'g', 'glyph', 'glyphRef', 'hkern', 'image', 'line', 'lineGradient', 'marker', 'mask', 'metadata', 'missing-glyph', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'script', 'set', 'stop', 'style', 'svg', 'switch', 'symbol', 'text', 'textPath', 'title', 'tref', 'tspan', 'use', 'view', 'vkern'];\nvar isSvgElement = function isSvgElement(child) {\n return child && child.type && isString(child.type) && SVG_TAGS.indexOf(child.type) >= 0;\n};\nexport var hasClipDot = function hasClipDot(dot) {\n return dot && _typeof(dot) === 'object' && 'clipDot' in dot;\n};\n\n/**\n * Checks if the property is valid to spread onto an SVG element or onto a specific component\n * @param {unknown} property property value currently being compared\n * @param {string} key property key currently being compared\n * @param {boolean} includeEvents if events are included in spreadable props\n * @param {boolean} svgElementType checks against map of SVG element types to attributes\n * @returns {boolean} is prop valid\n */\nexport var isValidSpreadableProp = function isValidSpreadableProp(property, key, includeEvents, svgElementType) {\n var _FilteredElementKeyMa;\n /**\n * If the svg element type is explicitly included, check against the filtered element key map\n * to determine if there are attributes that should only exist on that element type.\n * @todo Add an internal cjs version of https://github.com/wooorm/svg-element-attributes for full coverage.\n */\n var matchingElementTypeKeys = (_FilteredElementKeyMa = FilteredElementKeyMap === null || FilteredElementKeyMap === void 0 ? void 0 : FilteredElementKeyMap[svgElementType]) !== null && _FilteredElementKeyMa !== void 0 ? _FilteredElementKeyMa : [];\n return key.startsWith('data-') || !isFunction(property) && (svgElementType && matchingElementTypeKeys.includes(key) || SVGElementPropKeys.includes(key)) || includeEvents && EventKeys.includes(key);\n};\n\n/**\n * Filter all the svg elements of children\n * @param {Array} children The children of a react element\n * @return {Array} All the svg elements\n */\nexport var filterSvgElements = function filterSvgElements(children) {\n var svgElements = [];\n toArray(children).forEach(function (entry) {\n if (isSvgElement(entry)) {\n svgElements.push(entry);\n }\n });\n return svgElements;\n};\nexport var filterProps = function filterProps(props, includeEvents, svgElementType) {\n if (!props || typeof props === 'function' || typeof props === 'boolean') {\n return null;\n }\n var inputProps = props;\n if ( /*#__PURE__*/isValidElement(props)) {\n inputProps = props.props;\n }\n if (!isObject(inputProps)) {\n return null;\n }\n var out = {};\n\n /**\n * Props are blindly spread onto SVG elements. This loop filters out properties that we don't want to spread.\n * Items filtered out are as follows:\n * - functions in properties that are SVG attributes (functions are included when includeEvents is true)\n * - props that are SVG attributes but don't matched the passed svgElementType\n * - any prop that is not in SVGElementPropKeys (or in EventKeys if includeEvents is true)\n */\n Object.keys(inputProps).forEach(function (key) {\n var _inputProps;\n if (isValidSpreadableProp((_inputProps = inputProps) === null || _inputProps === void 0 ? void 0 : _inputProps[key], key, includeEvents, svgElementType)) {\n out[key] = inputProps[key];\n }\n });\n return out;\n};\n\n/**\n * Wether props of children changed\n * @param {Object} nextChildren The latest children\n * @param {Object} prevChildren The prev children\n * @return {Boolean} equal or not\n */\nexport var isChildrenEqual = function isChildrenEqual(nextChildren, prevChildren) {\n if (nextChildren === prevChildren) {\n return true;\n }\n var count = Children.count(nextChildren);\n if (count !== Children.count(prevChildren)) {\n return false;\n }\n if (count === 0) {\n return true;\n }\n if (count === 1) {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n return isSingleChildEqual(Array.isArray(nextChildren) ? nextChildren[0] : nextChildren, Array.isArray(prevChildren) ? prevChildren[0] : prevChildren);\n }\n for (var i = 0; i < count; i++) {\n var nextChild = nextChildren[i];\n var prevChild = prevChildren[i];\n if (Array.isArray(nextChild) || Array.isArray(prevChild)) {\n if (!isChildrenEqual(nextChild, prevChild)) {\n return false;\n }\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n } else if (!isSingleChildEqual(nextChild, prevChild)) {\n return false;\n }\n }\n return true;\n};\nexport var isSingleChildEqual = function isSingleChildEqual(nextChild, prevChild) {\n if (isNil(nextChild) && isNil(prevChild)) {\n return true;\n }\n if (!isNil(nextChild) && !isNil(prevChild)) {\n var _ref = nextChild.props || {},\n nextChildren = _ref.children,\n nextProps = _objectWithoutProperties(_ref, _excluded);\n var _ref2 = prevChild.props || {},\n prevChildren = _ref2.children,\n prevProps = _objectWithoutProperties(_ref2, _excluded2);\n if (nextChildren && prevChildren) {\n return shallowEqual(nextProps, prevProps) && isChildrenEqual(nextChildren, prevChildren);\n }\n if (!nextChildren && !prevChildren) {\n return shallowEqual(nextProps, prevProps);\n }\n return false;\n }\n return false;\n};\nexport var renderByOrder = function renderByOrder(children, renderMap) {\n var elements = [];\n var record = {};\n toArray(children).forEach(function (child, index) {\n if (isSvgElement(child)) {\n elements.push(child);\n } else if (child) {\n var displayName = getDisplayName(child.type);\n var _ref3 = renderMap[displayName] || {},\n handler = _ref3.handler,\n once = _ref3.once;\n if (handler && (!once || !record[displayName])) {\n var results = handler(child, displayName, index);\n elements.push(results);\n record[displayName] = true;\n }\n }\n });\n return elements;\n};\nexport var getReactEventByType = function getReactEventByType(e) {\n var type = e && e.type;\n if (type && REACT_BROWSER_EVENT_MAP[type]) {\n return REACT_BROWSER_EVENT_MAP[type];\n }\n return null;\n};\nexport var parseChildIndex = function parseChildIndex(child, children) {\n return toArray(children).indexOf(child);\n};"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;yJAAI,IAAY,CAAC,WAAW,EAC1B,IAAa,CAAC,WAAW;AAC3B,SAAS,EAAyB,GA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AS,CAAC,QAAQ,EAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationExecutionsPanel.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/automation/AutomationExecutionsPanel.tsx"],"names":[],"mappings":"AA6DA,wBAAgB,yBAAyB,CAAC,EACxC,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB,2CA+DA"}
1
+ {"version":3,"file":"AutomationExecutionsPanel.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/automation/AutomationExecutionsPanel.tsx"],"names":[],"mappings":"AA8DA,wBAAgB,yBAAyB,CAAC,EACxC,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB,2CAmEA"}
@@ -1,9 +1,10 @@
1
- import { gql as e } from "@apollo/client";
2
- import { useQuery as t } from "@apollo/client/react";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- import { Badge as i } from "@burdenoff/fe-libs/ui";
1
+ import { splitExecutionErrors as e } from "./automationRuleTypes.js";
2
+ import { gql as t } from "@apollo/client";
3
+ import { useQuery as n } from "@apollo/client/react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { Badge as a } from "@burdenoff/fe-libs/ui";
5
6
  //#region src/planmagnet/automation/AutomationExecutionsPanel.tsx
6
- var a = e`
7
+ var o = t`
7
8
  query AutomationExecutionsForRule(
8
9
  $workspaceId: ID!
9
10
  $filter: PlanmagnetAutomationExecutionFilter
@@ -25,7 +26,7 @@ var a = e`
25
26
  }
26
27
  }
27
28
  }
28
- `, o = {
29
+ `, s = {
29
30
  SUCCESS: "success",
30
31
  PARTIAL_FAILURE: "warning",
31
32
  FAILURE: "destructive",
@@ -33,75 +34,78 @@ var a = e`
33
34
  PENDING: "secondary",
34
35
  RUNNING: "secondary"
35
36
  };
36
- function s(e) {
37
+ function c(e) {
37
38
  if (!e || typeof e != "object") return null;
38
39
  let t = e.dispatched;
39
40
  return !Array.isArray(t) || t.length === 0 ? null : t.join(", ");
40
41
  }
41
- function c({ workspaceId: e, ruleId: c }) {
42
- let { data: l, loading: u, error: d } = t(a, {
42
+ function l({ workspaceId: t, ruleId: l }) {
43
+ let { data: u, loading: d, error: f } = n(o, {
43
44
  variables: {
44
- workspaceId: e ?? "",
45
- filter: { ruleId: c },
45
+ workspaceId: t ?? "",
46
+ filter: { ruleId: l },
46
47
  pagination: { first: 20 }
47
48
  },
48
- skip: !e,
49
+ skip: !t,
49
50
  fetchPolicy: "cache-and-network"
50
- }), f = l?.planmagnetAutomationExecutions, p = f?.items ?? [];
51
- return u && !l ? /* @__PURE__ */ n("p", {
51
+ }), p = u?.planmagnetAutomationExecutions, m = p?.items ?? [];
52
+ return d && !u ? /* @__PURE__ */ r("p", {
52
53
  className: "text-sm text-muted-foreground",
53
54
  children: "Loading recent executions…"
54
- }) : d ? /* @__PURE__ */ r("p", {
55
+ }) : f ? /* @__PURE__ */ i("p", {
55
56
  role: "alert",
56
57
  className: "text-sm text-destructive",
57
- children: ["Recent executions could not be loaded: ", d.message]
58
- }) : p.length === 0 ? /* @__PURE__ */ n("p", {
58
+ children: ["Recent executions could not be loaded: ", f.message]
59
+ }) : m.length === 0 ? /* @__PURE__ */ r("p", {
59
60
  className: "text-sm text-muted-foreground",
60
61
  children: "No executions yet. They appear here once the rule fires or is run manually."
61
- }) : /* @__PURE__ */ r("div", {
62
+ }) : /* @__PURE__ */ i("div", {
62
63
  className: "space-y-2",
63
- children: [p.map((e) => {
64
- let t = s(e.result);
65
- return /* @__PURE__ */ n("div", {
64
+ children: [m.map((t) => {
65
+ let n = c(t.result);
66
+ return /* @__PURE__ */ r("div", {
66
67
  className: "flex flex-wrap items-start justify-between gap-2 rounded-md border p-3 text-sm",
67
- children: /* @__PURE__ */ r("div", {
68
+ children: /* @__PURE__ */ i("div", {
68
69
  className: "min-w-0 space-y-1",
69
70
  children: [
70
- /* @__PURE__ */ r("div", {
71
+ /* @__PURE__ */ i("div", {
71
72
  className: "flex items-center gap-2",
72
- children: [/* @__PURE__ */ n(i, {
73
- variant: o[e.status] ?? "secondary",
74
- children: e.status.toLowerCase().replace("_", " ")
75
- }), /* @__PURE__ */ r("span", {
73
+ children: [/* @__PURE__ */ r(a, {
74
+ variant: s[t.status] ?? "secondary",
75
+ children: t.status.toLowerCase().replace("_", " ")
76
+ }), /* @__PURE__ */ i("span", {
76
77
  className: "text-xs text-muted-foreground",
77
- children: [new Date(e.executedAt).toLocaleString(), e.durationMs == null ? "" : ` · ${e.durationMs}ms`]
78
+ children: [new Date(t.executedAt).toLocaleString(), t.durationMs == null ? "" : ` · ${t.durationMs}ms`]
78
79
  })]
79
80
  }),
80
- t && /* @__PURE__ */ r("p", {
81
+ n && /* @__PURE__ */ i("p", {
81
82
  className: "text-xs text-muted-foreground",
82
- children: ["Ran: ", t]
83
+ children: ["Ran: ", n]
83
84
  }),
84
- e.errorMessage && /* @__PURE__ */ n("p", {
85
- role: "alert",
86
- className: "text-xs text-destructive",
87
- children: e.errorMessage
85
+ t.errorMessage && /* @__PURE__ */ r("ul", {
86
+ className: "space-y-0.5",
87
+ children: e(t.errorMessage).map((e, t) => /* @__PURE__ */ r("li", {
88
+ role: "alert",
89
+ className: "text-xs text-destructive",
90
+ children: e
91
+ }, t))
88
92
  })
89
93
  ]
90
94
  })
91
- }, e.id);
92
- }), f && f.totalCount > p.length && /* @__PURE__ */ r("p", {
95
+ }, t.id);
96
+ }), p && p.totalCount > m.length && /* @__PURE__ */ i("p", {
93
97
  className: "text-xs text-muted-foreground",
94
98
  children: [
95
99
  "Showing the ",
96
- p.length,
100
+ m.length,
97
101
  " most recent of ",
98
- f.totalCount,
102
+ p.totalCount,
99
103
  "."
100
104
  ]
101
105
  })]
102
106
  });
103
107
  }
104
108
  //#endregion
105
- export { c as AutomationExecutionsPanel };
109
+ export { l as AutomationExecutionsPanel };
106
110
 
107
111
  //# sourceMappingURL=AutomationExecutionsPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationExecutionsPanel.js","names":[],"sources":["../../../src/planmagnet/automation/AutomationExecutionsPanel.tsx"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Badge } from '@burdenoff/fe-libs/ui';\n\n/**\n * Recent executions for one rule (BOFF-8047, capability register row \"Automation rules\": gate 3/UI was the only\n * gap — `planmagnetAutomationExecutions` has been real and prod-verified since BOFF-7822/8043). Every run this\n * engine has EVER attempted for the rule is here, including a non-match (`SKIPPED`, \"conditions did not match\")\n * from a manual run and a `PARTIAL_FAILURE` where only some declared actions dispatched — so a rule that looks\n * \"successful\" in the header can still show failures here.\n */\n\nconst EXECUTIONS = gql`\n query AutomationExecutionsForRule(\n $workspaceId: ID!\n $filter: PlanmagnetAutomationExecutionFilter\n $pagination: PlanmagnetPaginationInput\n ) {\n planmagnetAutomationExecutions(\n workspaceId: $workspaceId\n filter: $filter\n pagination: $pagination\n ) {\n totalCount\n items {\n id\n status\n errorMessage\n result\n durationMs\n executedAt\n }\n }\n }\n`;\n\ninterface ExecutionRow {\n id: string;\n status: string;\n errorMessage: string | null;\n result: unknown;\n durationMs: number | null;\n executedAt: string;\n}\n\nconst STATUS_VARIANT: Record<string, 'success' | 'warning' | 'destructive' | 'secondary'> = {\n SUCCESS: 'success',\n PARTIAL_FAILURE: 'warning',\n FAILURE: 'destructive',\n SKIPPED: 'secondary',\n PENDING: 'secondary',\n RUNNING: 'secondary',\n};\n\nfunction dispatchedSummary(result: unknown): string | null {\n if (!result || typeof result !== 'object') return null;\n const dispatched = (result as { dispatched?: unknown }).dispatched;\n if (!Array.isArray(dispatched) || dispatched.length === 0) return null;\n return dispatched.join(', ');\n}\n\nexport function AutomationExecutionsPanel({\n workspaceId,\n ruleId,\n}: {\n workspaceId: string | undefined;\n ruleId: string;\n}) {\n const { data, loading, error } = useQuery<{\n planmagnetAutomationExecutions: { totalCount: number; items: ExecutionRow[] };\n }>(EXECUTIONS, {\n variables: { workspaceId: workspaceId ?? '', filter: { ruleId }, pagination: { first: 20 } },\n skip: !workspaceId,\n fetchPolicy: 'cache-and-network',\n });\n\n const list = data?.planmagnetAutomationExecutions;\n const executions = list?.items ?? [];\n\n if (loading && !data)\n return <p className=\"text-sm text-muted-foreground\">Loading recent executions…</p>;\n if (error)\n return (\n <p role=\"alert\" className=\"text-sm text-destructive\">\n Recent executions could not be loaded: {error.message}\n </p>\n );\n if (executions.length === 0)\n return (\n <p className=\"text-sm text-muted-foreground\">\n No executions yet. They appear here once the rule fires or is run manually.\n </p>\n );\n\n return (\n <div className=\"space-y-2\">\n {executions.map((execution) => {\n const dispatched = dispatchedSummary(execution.result);\n return (\n <div\n key={execution.id}\n className=\"flex flex-wrap items-start justify-between gap-2 rounded-md border p-3 text-sm\"\n >\n <div className=\"min-w-0 space-y-1\">\n <div className=\"flex items-center gap-2\">\n <Badge variant={STATUS_VARIANT[execution.status] ?? 'secondary'}>\n {execution.status.toLowerCase().replace('_', ' ')}\n </Badge>\n <span className=\"text-xs text-muted-foreground\">\n {new Date(execution.executedAt).toLocaleString()}\n {execution.durationMs != null ? ` · ${execution.durationMs}ms` : ''}\n </span>\n </div>\n {dispatched && <p className=\"text-xs text-muted-foreground\">Ran: {dispatched}</p>}\n {execution.errorMessage && (\n <p role=\"alert\" className=\"text-xs text-destructive\">\n {execution.errorMessage}\n </p>\n )}\n </div>\n </div>\n );\n })}\n {list && list.totalCount > executions.length && (\n <p className=\"text-xs text-muted-foreground\">\n Showing the {executions.length} most recent of {list.totalCount}.\n </p>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;AAYA,IAAM,IAAa,CAAG;;;;;;;;;;;;;;;;;;;;;;GAiChB,IAAsF;CAC1F,SAAS;CACT,iBAAiB;CACjB,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACV;AAED,SAAS,EAAkB,GAAgC;AACzD,KAAI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WAAU;iBACvB,EAAU;OACT,CAAA;MAEF;;IACF,EApBC,EAAU,GAoBX;IAER,EACD,KAAQ,EAAK,aAAa,EAAW,UACpC,kBAAC,KAAD;GAAG,WAAU;aAAb;IAA6C;IAC9B,EAAW;IAAO;IAAiB,EAAK;IAAW;IAC9D;KAEF"}
1
+ {"version":3,"file":"AutomationExecutionsPanel.js","names":[],"sources":["../../../src/planmagnet/automation/AutomationExecutionsPanel.tsx"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Badge } from '@burdenoff/fe-libs/ui';\nimport { splitExecutionErrors } from './automationRuleTypes';\n\n/**\n * Recent executions for one rule (BOFF-8047, capability register row \"Automation rules\": gate 3/UI was the only\n * gap — `planmagnetAutomationExecutions` has been real and prod-verified since BOFF-7822/8043). Every run this\n * engine has EVER attempted for the rule is here, including a non-match (`SKIPPED`, \"conditions did not match\")\n * from a manual run and a `PARTIAL_FAILURE` where only some declared actions dispatched — so a rule that looks\n * \"successful\" in the header can still show failures here.\n */\n\nconst EXECUTIONS = gql`\n query AutomationExecutionsForRule(\n $workspaceId: ID!\n $filter: PlanmagnetAutomationExecutionFilter\n $pagination: PlanmagnetPaginationInput\n ) {\n planmagnetAutomationExecutions(\n workspaceId: $workspaceId\n filter: $filter\n pagination: $pagination\n ) {\n totalCount\n items {\n id\n status\n errorMessage\n result\n durationMs\n executedAt\n }\n }\n }\n`;\n\ninterface ExecutionRow {\n id: string;\n status: string;\n errorMessage: string | null;\n result: unknown;\n durationMs: number | null;\n executedAt: string;\n}\n\nconst STATUS_VARIANT: Record<string, 'success' | 'warning' | 'destructive' | 'secondary'> = {\n SUCCESS: 'success',\n PARTIAL_FAILURE: 'warning',\n FAILURE: 'destructive',\n SKIPPED: 'secondary',\n PENDING: 'secondary',\n RUNNING: 'secondary',\n};\n\nfunction dispatchedSummary(result: unknown): string | null {\n if (!result || typeof result !== 'object') return null;\n const dispatched = (result as { dispatched?: unknown }).dispatched;\n if (!Array.isArray(dispatched) || dispatched.length === 0) return null;\n return dispatched.join(', ');\n}\n\nexport function AutomationExecutionsPanel({\n workspaceId,\n ruleId,\n}: {\n workspaceId: string | undefined;\n ruleId: string;\n}) {\n const { data, loading, error } = useQuery<{\n planmagnetAutomationExecutions: { totalCount: number; items: ExecutionRow[] };\n }>(EXECUTIONS, {\n variables: { workspaceId: workspaceId ?? '', filter: { ruleId }, pagination: { first: 20 } },\n skip: !workspaceId,\n fetchPolicy: 'cache-and-network',\n });\n\n const list = data?.planmagnetAutomationExecutions;\n const executions = list?.items ?? [];\n\n if (loading && !data)\n return <p className=\"text-sm text-muted-foreground\">Loading recent executions…</p>;\n if (error)\n return (\n <p role=\"alert\" className=\"text-sm text-destructive\">\n Recent executions could not be loaded: {error.message}\n </p>\n );\n if (executions.length === 0)\n return (\n <p className=\"text-sm text-muted-foreground\">\n No executions yet. They appear here once the rule fires or is run manually.\n </p>\n );\n\n return (\n <div className=\"space-y-2\">\n {executions.map((execution) => {\n const dispatched = dispatchedSummary(execution.result);\n return (\n <div\n key={execution.id}\n className=\"flex flex-wrap items-start justify-between gap-2 rounded-md border p-3 text-sm\"\n >\n <div className=\"min-w-0 space-y-1\">\n <div className=\"flex items-center gap-2\">\n <Badge variant={STATUS_VARIANT[execution.status] ?? 'secondary'}>\n {execution.status.toLowerCase().replace('_', ' ')}\n </Badge>\n <span className=\"text-xs text-muted-foreground\">\n {new Date(execution.executedAt).toLocaleString()}\n {execution.durationMs != null ? ` · ${execution.durationMs}ms` : ''}\n </span>\n </div>\n {dispatched && <p className=\"text-xs text-muted-foreground\">Ran: {dispatched}</p>}\n {execution.errorMessage && (\n <ul className=\"space-y-0.5\">\n {splitExecutionErrors(execution.errorMessage).map((line, i) => (\n <li key={i} role=\"alert\" className=\"text-xs text-destructive\">\n {line}\n </li>\n ))}\n </ul>\n )}\n </div>\n </div>\n );\n })}\n {list && list.totalCount > executions.length && (\n <p className=\"text-xs text-muted-foreground\">\n Showing the {executions.length} most recent of {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AAhB,CACG,IAAI,KAAK,EAAU,WAAW,CAAC,gBAAgB,EAC/C,EAAU,cAAc,OAAwC,KAAjC,MAAM,EAAU,WAAW,IACtD;UACH;;MACL,KAAc,kBAAC,KAAD;OAAG,WAAU;iBAAb,CAA6C,SAAM,EAAe;;MAChF,EAAU,gBACT,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAqB,EAAU,aAAa,CAAC,KAAK,GAAM,MACvD,kBAAC,MAAD;QAAY,MAAK;QAAQ,WAAU;kBAChC;QACE,EAFI,EAEJ,CACL;OACC,CAAA;MAEH;;IACF,EAxBC,EAAU,GAwBX;IAER,EACD,KAAQ,EAAK,aAAa,EAAW,UACpC,kBAAC,KAAD;GAAG,WAAU;aAAb;IAA6C;IAC9B,EAAW;IAAO;IAAiB,EAAK;IAAW;IAC9D;KAEF"}
@@ -1,24 +1,43 @@
1
1
  import { RuleAction, RuleCondition, TriggerType } from './automationRuleTypes';
2
2
 
3
- /** The editable shape both the create and edit pages share. */
3
+ /** The editable shape both the create and edit pages share. `conditions` is used for every trigger except
4
+ * `SCHEDULE`, which has its own dedicated shape (`scheduleStatuses`/`scheduleNotUpdatedForDays`) — see
5
+ * `automationRuleTypes.ts`'s `ScheduleConditions` doc comment for why it cannot reuse the generic editor. */
4
6
  export interface AutomationRuleFormState {
5
7
  name: string;
6
8
  description: string;
7
9
  projectId: string;
8
10
  triggerType: TriggerType;
9
11
  conditions: RuleCondition[];
12
+ scheduleStatuses: string[];
13
+ scheduleNotUpdatedForDays: string;
10
14
  actions: RuleAction[];
11
15
  }
12
- /** The actions builder: only the four types the engine can actually dispatch (see automationRuleTypes.ts). */
13
- export declare function ActionsEditor({ actions, onChange, }: {
16
+ /** The actions builder: the five types the engine can dispatch, trigger-aware (BOFF-8047 follow-up —
17
+ * automationRuleTypes.ts's header has the full scope). `POST_TO_CHANNEL` is always visible but disabled (gated
18
+ * off, BOFF-8240). For a trigger in `NO_WORK_ITEM_TRIGGER_TYPES` (the sprint and release triggers), no work-item
19
+ * action can ever dispatch — existing rows stay visible (and removable) so a rule saved before this restriction
20
+ * existed can still be cleaned up, but they are frozen and no new one can be added. */
21
+ export declare function ActionsEditor({ actions, triggerType, onChange, }: {
14
22
  actions: RuleAction[];
23
+ triggerType: TriggerType;
15
24
  onChange: (next: RuleAction[]) => void;
16
25
  }): import("react/jsx-runtime").JSX.Element;
17
- /** The conditions builder. A rule with no conditions always matches — the gate is opt-in (engine default). */
26
+ /** The conditions builder. A rule with no conditions always matches — the gate is opt-in (engine default). Used
27
+ * for every trigger except `SCHEDULE` — see `ScheduleConditionsEditor` below. */
18
28
  export declare function ConditionsEditor({ conditions, onChange, }: {
19
29
  conditions: RuleCondition[];
20
30
  onChange: (next: RuleCondition[]) => void;
21
31
  }): import("react/jsx-runtime").JSX.Element;
32
+ /** The SCHEDULE trigger's own condition editor (AUT-27): statuses (multi-select of `WorkItemStatus`) + "not
33
+ * updated for N days", writing exactly the `{ status, notUpdatedForDays }` shape `parseScheduleConditions`
34
+ * (automation-scheduler.ts) reads — never the generic field/operator/value array. */
35
+ export declare function ScheduleConditionsEditor({ statuses, days, onStatusesChange, onDaysChange, }: {
36
+ statuses: string[];
37
+ days: string;
38
+ onStatusesChange: (next: string[]) => void;
39
+ onDaysChange: (next: string) => void;
40
+ }): import("react/jsx-runtime").JSX.Element;
22
41
  /** Name, description, project, trigger, conditions and actions — the fields create and edit share. */
23
42
  export declare function AutomationRuleFields({ form, onChange, projectLocked, }: {
24
43
  form: AutomationRuleFormState;
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationRuleFields.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/automation/AutomationRuleFields.tsx"],"names":[],"mappings":"AASA,OAAO,EAWL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,+DAA+D;AAC/D,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB;AAyED,8GAA8G;AAC9G,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;CACxC,2CA0EA;AAED,8GAA8G;AAC9G,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,QAAQ,GACT,EAAE;IACD,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,QAAQ,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;CAC3C,2CA4EA;AAED,sGAAsG;AACtG,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,aAAqB,GACtB,EAAE;IACD,IAAI,EAAE,uBAAuB,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAClD,0FAA0F;IAC1F,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,2CA6FA"}
1
+ {"version":3,"file":"AutomationRuleFields.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/automation/AutomationRuleFields.tsx"],"names":[],"mappings":"AASA,OAAO,EAwBL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B;;8GAE8G;AAC9G,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,yB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