@alixpartners/ui-components 1.20.55 → 1.20.56

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 (24) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/dist/esm/components/ApSimpleDropdown/ApSimpleDropdown.styles.js +3 -3
  3. package/dist/esm/components/ApSimpleDropdown/ApSimpleDropdown.styles.js.map +1 -1
  4. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/ApCustomKPIWidget.js +59 -0
  5. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/ApCustomKPIWidget.js.map +1 -0
  6. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/index.js +14 -0
  7. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/index.js.map +1 -0
  8. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/styles.js +20 -0
  9. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/styles.js.map +1 -0
  10. package/dist/esm/components/ApWidgets/ApWidgetBarChart/ApWidgetBarChart.js +113 -0
  11. package/dist/esm/components/ApWidgets/ApWidgetBarChart/ApWidgetBarChart.js.map +1 -0
  12. package/dist/esm/components/ApWidgets/ApWidgetBarChart/index.js +14 -0
  13. package/dist/esm/components/ApWidgets/ApWidgetBarChart/index.js.map +1 -0
  14. package/dist/esm/components/ApWidgets/ApWidgetBarChart/styles.js +11 -0
  15. package/dist/esm/components/ApWidgets/ApWidgetBarChart/styles.js.map +1 -0
  16. package/dist/types/components/ApNotifications/styles.d.ts +9 -6
  17. package/dist/types/components/ApWidgets/ApCustomKPIWidget/ApCustomKPIWidget.d.ts +19 -0
  18. package/dist/types/components/ApWidgets/ApCustomKPIWidget/index.d.ts +1 -0
  19. package/dist/types/components/ApWidgets/ApCustomKPIWidget/styles.d.ts +9 -0
  20. package/dist/types/components/ApWidgets/ApWidgetBarChart/ApWidgetBarChart.d.ts +10 -0
  21. package/dist/types/components/ApWidgets/ApWidgetBarChart/index.d.ts +1 -0
  22. package/dist/types/components/ApWidgets/ApWidgetBarChart/styles.d.ts +1 -0
  23. package/dist/umd/index.js +28 -13
  24. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## 1.20.54 (January 18 , 2022)
1
+ ## 1.20.56 (January 20 , 2022)
2
+
3
+ - Updated `ApSimpleDropdown` component, to behave properly with max width container
4
+
5
+ ## 1.20.55 (January 18 , 2022)
2
6
 
3
7
  - Updated `ApIcon` component, added `more_horiz` icon
4
8
 
@@ -10,7 +10,7 @@ var styled_components_1 = require("styled-components");
10
10
  var theme_1 = require("../../utils/theme");
11
11
  var ApIcon_1 = require("../ApIcon");
12
12
  var ApMenu_1 = require("../ApMenu");
13
- exports.ApSimpleDropdownLabelContainer = styled_components_1.default.button(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 38px;\n border: none;\n font-weight: 500;\n font-size: 13px;\n letter-spacing: 0.3px;\n text-transform: uppercase;\n color: ", ";\n border: 1px solid transparent;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 0 4px 9px;\n background-color: ", ";\n outline: none;\n\n &:hover {\n background-color: ", ";\n }\n\n &:focus {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n border: 1px solid ", ";\n }\n\n ", ";\n\n ", "\n"], ["\n height: 38px;\n border: none;\n font-weight: 500;\n font-size: 13px;\n letter-spacing: 0.3px;\n text-transform: uppercase;\n color: ", ";\n border: 1px solid transparent;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 0 4px 9px;\n background-color: ", ";\n outline: none;\n\n &:hover {\n background-color: ", ";\n }\n\n &:focus {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n border: 1px solid ", ";\n }\n\n ",
13
+ exports.ApSimpleDropdownLabelContainer = styled_components_1.default.button(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n max-width: 100%;\n height: 38px;\n border: none;\n font-weight: 500;\n font-size: 13px;\n letter-spacing: 0.3px;\n text-transform: uppercase;\n color: ", ";\n border: 1px solid transparent;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 0 4px 9px;\n background-color: ", ";\n outline: none;\n\n &:hover {\n background-color: ", ";\n }\n\n &:focus {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n border: 1px solid ", ";\n }\n\n ", ";\n\n ", "\n"], ["\n max-width: 100%;\n height: 38px;\n border: none;\n font-weight: 500;\n font-size: 13px;\n letter-spacing: 0.3px;\n text-transform: uppercase;\n color: ", ";\n border: 1px solid transparent;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 0 4px 9px;\n background-color: ", ";\n outline: none;\n\n &:hover {\n background-color: ", ";\n }\n\n &:focus {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n border: 1px solid ", ";\n }\n\n ",
14
14
  ";\n\n ",
15
15
  "\n"])), theme_1.colors.grey8, theme_1.colors.white, polished_1.rgba(theme_1.colors.green2, 0.1), polished_1.rgba(theme_1.colors.green2, 0.2), polished_1.rgba(theme_1.colors.green2, 0.3), theme_1.colors.green3, function (_a) {
16
16
  var isOpen = _a.isOpen;
@@ -21,8 +21,8 @@ exports.ApSimpleDropdownLabelContainer = styled_components_1.default.button(temp
21
21
  return disabled
22
22
  ? styled_components_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n pointer-events: none;\n background-color: none;\n color: ", ";\n "], ["\n pointer-events: none;\n background-color: none;\n color: ", ";\n "])), theme_1.colors.grey5) : styled_components_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n cursor: pointer;\n "], ["\n cursor: pointer;\n "])));
23
23
  });
24
- exports.ApSimpleDropdownLabelText = styled_components_1.default.span(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n white-space: nowrap;\n font-size: 13px;\n letter-spacing: 0.3px;\n line-height: 38px;\n padding: 2px 0 0 4px;\n"], ["\n color: ",
25
- ";\n white-space: nowrap;\n font-size: 13px;\n letter-spacing: 0.3px;\n line-height: 38px;\n padding: 2px 0 0 4px;\n"])), function (_a) {
24
+ exports.ApSimpleDropdownLabelText = styled_components_1.default.span(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 13px;\n letter-spacing: 0.3px;\n line-height: 38px;\n padding: 2px 0 0 4px;\n"], ["\n color: ",
25
+ ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 13px;\n letter-spacing: 0.3px;\n line-height: 38px;\n padding: 2px 0 0 4px;\n"])), function (_a) {
26
26
  var disabled = _a.disabled;
27
27
  return disabled ? "" + theme_1.colors.grey5 : "" + theme_1.colors.grey8;
28
28
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ApSimpleDropdown.styles.js","sourceRoot":"","sources":["../../../../src/components/ApSimpleDropdown/ApSimpleDropdown.styles.tsx"],"names":[],"mappings":";;;;;;;AAAA,qCAA+B;AAC/B,uDAA+C;AAE/C,2CAA0C;AAC1C,oCAAkC;AAClC,oCAA8C;AAMjC,QAAA,8BAA8B,GAAG,2BAAM,CAAC,MAAM,ylBAEzD,gJAOS,EAAY,qKAOD,EAAY,4DAIV,EAAwB,+CAIxB,EAAwB,gDAIxB,EAAwB,2BACxB,EAAa,cAGjC;IASM,SAEN;IASK,IACR,KA5CU,cAAM,CAAC,KAAK,EAOD,cAAM,CAAC,KAAK,EAIV,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAIxB,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAIxB,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxB,cAAM,CAAC,MAAM,EAGjC,UAAC,EAAU;QAAR,MAAM,YAAA;IACT,OAAA,MAAM;QACJ,CAAC,CAAC,uBAAG,qMAAA,gCACmB,EAAa,gGAKlC,KALqB,cAAM,CAAC,MAAM,EAMrC,CAAC,CAAC,E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AAhC,CAAgC,EAChE;AAEY,QAAA,cAAc,GAAG,2BAAM,CAAC,GAAG,6JAAA,2DAG7B,EAAY,2BAEtB,KAFU,cAAM,CAAC,KAAK,EAEtB"}
1
+ {"version":3,"file":"ApSimpleDropdown.styles.js","sourceRoot":"","sources":["../../../../src/components/ApSimpleDropdown/ApSimpleDropdown.styles.tsx"],"names":[],"mappings":";;;;;;;AAAA,qCAA+B;AAC/B,uDAA+C;AAE/C,2CAA0C;AAC1C,oCAAkC;AAClC,oCAA8C;AAMjC,QAAA,8BAA8B,GAAG,2BAAM,CAAC,MAAM,6mBAEzD,oKAQS,EAAY,qKAOD,EAAY,4DAIV,EAAwB,+CAIxB,EAAwB,gDAIxB,EAAwB,2BACxB,EAAa,cAGjC;IASM,SAEN;IASK,IACR,KA5CU,cAAM,CAAC,KAAK,EAOD,cAAM,CAAC,KAAK,EAIV,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAIxB,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAIxB,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxB,cAAM,CAAC,MAAM,EAGjC,UAAC,EAAU;QAAR,MAAM,YAAA;IACT,OAAA,MAAM;QACJ,CAAC,CAAC,uBAAG,qMAAA,gCACmB,EAAa,gGAKlC,KALqB,cAAM,CAAC,MAAM,EAMrC,CAAC,CAAC,EAAE;AARN,CAQM,EAEN,UAAC,EAAY;QAAV,QAAQ,cAAA;IACX,OAAA,QAAQ;QACN,CAAC,CAAC,uBAAG,2KAAA,yFAGQ,EAAY,aACtB,KADU,cAAM,CAAC,KAAK,EAEzB,CAAC,CAAC,uBAAG,2GAAA,wCAEF,IAAA;AARL,CAQK,EACR;AAEY,QAAA,yBAAyB,GAAG,2BAAM,CAAC,IAAI,6PAAa,aACtD;IACyC,2KAQnD,KATU,UAAC,EAAY;QAAV,QAAQ,cAAA;IAClB,OAAA,QAAQ,CAAC,CAAC,CAAC,KAAG,cAAM,CAAC,KAAO,CAAC,CAAC,CAAC,KAAG,cAAM,CAAC,KAAO;AAAhD,CAAgD,EAQnD;AAEY,QAAA,gBAAgB,GAAG,2BAAM,CAAC,mBAAU,CAAC,6cAAA,iRAgB1B,EAAwB,+CAIxB,EAAwB,gDAIxB,EAAwB,cAG5C;IASK,IACR,KArBuB,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAIxB,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAIxB,eAAI,CAAC,cAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAG5C,UAAC,EAAY;QAAV,QAAQ,cAAA;IACX,OAAA,QAAQ;QACN,CAAC,CAAC,uBAAG,2KAAA,yFAGQ,EAAY,aACtB,KADU,cAAM,CAAC,KAAK,EAEzB,CAAC,CAAC,uBAAG,2GAAA,wCAEF,IAAA;AARL,CAQK,EACR;AAEY,QAAA,YAAY,GAAG,2BAAM,CAAC,eAAM,CAAC,sIAAA,4DAG1B,EAAY,KAC3B,KADe,cAAM,CAAC,KAAK,EAC3B;AAEY,QAAA,SAAS,GAAG,2BAAM,CAAC,eAAM,CAAC,8FAAuB,kBAC9C,EAAiD,KAChE,KADe,UAAC,EAAW;QAAT,OAAO,aAAA;IAAO,OAAA,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AAAhC,CAAgC,EAChE;AAEY,QAAA,cAAc,GAAG,2BAAM,CAAC,GAAG,6JAAA,2DAG7B,EAAY,2BAEtB,KAFU,cAAM,CAAC,KAAK,EAEtB"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ApCustomKPIWidget = void 0;
26
+ var React = require("react");
27
+ var ApLoaderDefault_1 = require("../../ApLoaderDefault");
28
+ var ApLoaderText_1 = require("../../ApLoaderText");
29
+ var ApWidgetBigValue_1 = require("../ApWidgetBigValue");
30
+ var ApWidgetBullet_1 = require("../ApWidgetBullet");
31
+ var ApWidgetChangeOverTime_1 = require("../ApWidgetChangeOverTime");
32
+ var ApWidgetName_1 = require("../ApWidgetName");
33
+ var ApWidgetValueType1_1 = require("../ApWidgetValueType1");
34
+ var styles_1 = require("./styles");
35
+ exports.ApCustomKPIWidget = function (_a) {
36
+ var _b = _a.config, config = _b === void 0 ? { name: '' } : _b, data = _a.data, props = __rest(_a, ["config", "data"]);
37
+ return (React.createElement(styles_1.Container, __assign({}, props),
38
+ config && React.createElement(ApWidgetName_1.ApWidgetName, { name: config.name, iconType: config.iconType }),
39
+ !data ? (React.createElement(styles_1.StyledWidgetBody, null,
40
+ React.createElement(ApLoaderDefault_1.ApLoaderDefault, { loaderText: function () { return React.createElement(ApLoaderText_1.ApLoaderText, null); } }))) : (React.createElement(styles_1.ColsWrapper, null,
41
+ React.createElement("div", null,
42
+ React.createElement(styles_1.VarianceContainer, null,
43
+ React.createElement(ApWidgetBigValue_1.ApWidgetBigValue, null, data.value)),
44
+ React.createElement(styles_1.AverageContainer, null,
45
+ React.createElement(ApWidgetChangeOverTime_1.ApWidgetChangeOverTime, { value: data.compareValue && data.compareValue + "%", trend: +data.compareValue }),
46
+ data.valuePairs.map(function (valuePair, index) { return (React.createElement(ApWidgetValueType1_1.ApWidgetValueType1, { key: valuePair.label + index, label: valuePair.label, value: valuePair.value })); })),
47
+ React.createElement(styles_1.AttributesListContainer, null, data.attributes.map(function (attribute, index) { return (React.createElement(ApWidgetBullet_1.ApWidgetBullet, { key: attribute + index, value: attribute })); }))),
48
+ config && config.widthRatio === 2 ? (React.createElement(styles_1.CenterAlign, null,
49
+ React.createElement("svg", { height: 64, viewBox: "0 0 24 24", width: 64 },
50
+ React.createElement("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
51
+ React.createElement("path", { d: "M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z" })))) : null))));
52
+ };
53
+ exports.ApCustomKPIWidget.defaultProps = {
54
+ config: {
55
+ name: '',
56
+ },
57
+ data: null,
58
+ };
59
+ //# sourceMappingURL=ApCustomKPIWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApCustomKPIWidget.js","sourceRoot":"","sources":["../../../../../src/components/ApWidgets/ApCustomKPIWidget/ApCustomKPIWidget.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA8B;AAG9B,yDAAuD;AACvD,mDAAiD;AACjD,wDAAsD;AACtD,oDAAkD;AAClD,oEAAkE;AAClE,gDAA8C;AAC9C,4DAA0D;AAG1D,mCAQiB;AAkBJ,QAAA,iBAAiB,GAAsB,UAAC,EAI5C;IAHP,IAAA,cAAqB,EAArB,MAAM,mBAAG,EAAE,IAAI,EAAE,EAAE,EAAE,KAAA,EACrB,IAAI,UAAA,EACD,KAAK,cAH2C,kBAIpD,CADS;IAER,OAAO,CACL,oBAAC,kBAAS,eAAM,KAAa;QAC1B,MAAM,IAAI,oBAAC,2BAAY,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,E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,CACrE,CACM,CACf,CAAC,CAAC,CAAC,IAAI,CACI,CACf,CACS,CACb,CAAA;AACH,CAAC,CAAA;AAED,yBAAiB,CAAC,YAAY,GAAG;IAC/B,MAAM,EAAE;QACN,IAAI,EAAE,EAAE;KACT;IACD,IAAI,EAAE,IAAI;CACX,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./ApCustomKPIWidget"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ApWidgets/ApCustomKPIWidget/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAmC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.CenterAlign = exports.ColsWrapper = exports.AverageContainer = exports.AttributesListContainer = exports.VarianceContainer = exports.Value = exports.Label = exports.Container = exports.StyledWidgetBody = void 0;
8
+ var styled_components_1 = require("styled-components");
9
+ var theme_1 = require("../../../utils/theme");
10
+ exports.StyledWidgetBody = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n justify-content: center;\n flex-direction: column;\n height: 100%;\n"])));
11
+ exports.Container = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: 20px 12px 20px 24px;\n background: ", ";\n box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: 20px 12px 20px 24px;\n background: ", ";\n box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n"])), theme_1.colors.white);
12
+ exports.Label = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 11px;\n color: ", ";\n"], ["\n font-size: 11px;\n color: ", ";\n"])), theme_1.colors.grey5);
13
+ exports.Value = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 13px;\n font-weight: bold;\n color: ", ";\n margin-top: 8px;\n"], ["\n font-size: 13px;\n font-weight: bold;\n color: ", ";\n margin-top: 8px;\n"])), theme_1.colors.grey7);
14
+ exports.VarianceContainer = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
15
+ exports.AttributesListContainer = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n & > div {\n margin: 0 8px 4px 0;\n }\n"], ["\n & > div {\n margin: 0 8px 4px 0;\n }\n"])));
16
+ exports.AverageContainer = styled_components_1.default(exports.AttributesListContainer)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n & > div {\n flex: 50%;\n }\n margin: 16px 0 12px;\n"], ["\n display: flex;\n justify-content: space-between;\n & > div {\n flex: 50%;\n }\n margin: 16px 0 12px;\n"])));
17
+ exports.ColsWrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n\n & > div {\n flex: 1 1 0;\n width: 50%;\n }\n"], ["\n display: flex;\n\n & > div {\n flex: 1 1 0;\n width: 50%;\n }\n"])));
18
+ exports.CenterAlign = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n & > svg {\n margin: 30px auto;\n fill: ", ";\n }\n"], ["\n display: flex;\n justify-content: center;\n align-items: center;\n\n & > svg {\n margin: 30px auto;\n fill: ", ";\n }\n"])), theme_1.colors.grey3);
19
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
20
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/ApWidgets/ApCustomKPIWidget/styles.tsx"],"names":[],"mappings":";;;;;;;AAAA,uDAAsC;AAEtC,8CAA6C;AAEhC,QAAA,gBAAgB,GAAG,2BAAM,CAAC,GAAG,iKAAA,8FAKzC,KAAA;AAEY,QAAA,SAAS,GAAG,2BAAM,CAAC,GAAG,uSAAA,iHAKnB,EAAY,iHAK3B,KALe,cAAM,CAAC,KAAK,EAK3B;AAEY,QAAA,KAAK,GAAG,2BAAM,CAAC,GAAG,2GAAA,iCAEpB,EAAY,KACtB,KADU,cAAM,CAAC,KAAK,EACtB;AAEY,QAAA,KAAK,GAAG,2BAAM,CAAC,GAAG,qJAAA,uDAGpB,EAAY,yBAEtB,KAFU,cAAM,CAAC,KAAK,EAEtB;AAEY,QAAA,iBAAiB,GAAG,2BAAM,CAAC,GAAG,oJAAA,iFAI1C,KAAA;AAEY,QAAA,uBAAuB,GAAG,2BAAM,CAAC,GAAG,mHAAA,gDAIhD,KAAA;AAEY,QAAA,gBAAgB,GAAG,2BAAM,CAAC,+BAA8B,CAAC,sLAAA,mHAOrE,KAAA;AAEY,QAAA,WAAW,GAAG,2BAAM,CAAC,GAAG,gJAAA,6EAOpC,KAAA;AAEY,QAAA,WAAW,GAAG,2BAAM,CAAC,GAAG,0MAAA,2HAOzB,EAAY,UAEvB,KAFW,cAAM,CAAC,KAAK,EAEvB"}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __spreadArrays = (this && this.__spreadArrays) || function () {
14
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
15
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
16
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
17
+ r[k] = a[j];
18
+ return r;
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.ApWidgetBarChart = void 0;
22
+ var Highcharts = require("highcharts");
23
+ var highcharts_react_official_1 = require("highcharts-react-official");
24
+ var React = require("react");
25
+ var theme_1 = require("../../../utils/theme");
26
+ var styles_1 = require("./styles");
27
+ var defaultOptions = {
28
+ chart: {
29
+ height: 222,
30
+ type: 'column',
31
+ },
32
+ credits: {
33
+ enabled: false,
34
+ },
35
+ legend: {
36
+ align: 'center',
37
+ itemStyle: {
38
+ color: '#333333',
39
+ fontSize: '11px',
40
+ fontWeight: 'normal',
41
+ },
42
+ symbolRadius: 0,
43
+ verticalAlign: 'top',
44
+ x: 16,
45
+ },
46
+ plotOptions: {
47
+ column: {
48
+ borderWidth: 0,
49
+ groupPadding: 0.33,
50
+ pointPadding: 0,
51
+ pointWidth: 3,
52
+ },
53
+ },
54
+ series: [],
55
+ title: {
56
+ text: '',
57
+ },
58
+ tooltip: {
59
+ footerFormat: '</table>',
60
+ headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
61
+ pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
62
+ '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
63
+ shared: true,
64
+ useHTML: true,
65
+ },
66
+ xAxis: {
67
+ labels: {
68
+ style: {
69
+ color: theme_1.colors.grey5,
70
+ fontSize: '11px',
71
+ },
72
+ },
73
+ },
74
+ yAxis: {
75
+ labels: {
76
+ formatter: function () {
77
+ return this.value + '%';
78
+ },
79
+ style: {
80
+ color: theme_1.colors.grey5,
81
+ fontSize: '11px',
82
+ },
83
+ },
84
+ max: 100,
85
+ min: 0,
86
+ tickAmount: 5,
87
+ title: {
88
+ text: '',
89
+ },
90
+ },
91
+ };
92
+ exports.ApWidgetBarChart = function (_a) {
93
+ var data = _a.data;
94
+ var currentPeriodData = data.map(function (item) { return item.values[0]; });
95
+ var prevPeriodData = data.map(function (item) { return item.values[1] || 0; });
96
+ var maxValue = Math.max.apply(Math, __spreadArrays(currentPeriodData, prevPeriodData));
97
+ var yAxisMax = Math.ceil(maxValue / 25) * 25;
98
+ var currentSeries = {
99
+ color: theme_1.colors.chartDarkBlue,
100
+ data: currentPeriodData,
101
+ name: 'Current period',
102
+ };
103
+ var prevSeries = {
104
+ color: theme_1.colors.chartLightBlue,
105
+ data: prevPeriodData,
106
+ name: 'Prior period',
107
+ };
108
+ var hasPrevSeries = prevPeriodData.filter(Boolean).length > 0;
109
+ var options = __assign(__assign({}, defaultOptions), { series: hasPrevSeries ? [currentSeries, prevSeries] : [currentSeries], xAxis: __assign(__assign({}, defaultOptions.xAxis), { categories: data.map(function (item) { return item.label; }) }), yAxis: __assign(__assign({}, defaultOptions.yAxis), { max: yAxisMax }) });
110
+ return (React.createElement(styles_1.Wrapper, null,
111
+ React.createElement(highcharts_react_official_1.default, { highcharts: Highcharts, options: options })));
112
+ };
113
+ //# sourceMappingURL=ApWidgetBarChart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApWidgetBarChart.js","sourceRoot":"","sources":["../../../../../src/components/ApWidgets/ApWidgetBarChart/ApWidgetBarChart.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwC;AACxC,uEAAuD;AACvD,6BAA8B;AAE9B,8CAA6C;AAG7C,mCAAkC;AAWlC,IAAM,cAAc,GAAuB;IACzC,KAAK,EAAE;QACL,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,QAAQ;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,KAAK;KACf;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,SAAS,EAAE;YACT,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,QAAQ;SACrB;QACD,YAAY,EAAE,CAAC;QACf,aAAa,EAAE,KAAK;QACpB,CAAC,EAAE,EAAE;KACN;IACD,WAAW,EAAE;QACX,MAAM,EAAE;YACN,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,IAAI;YAClB,YAAY,EAAE,CAAC;YACf,UAAU,EAAE,CAAC;SACd;KACF;IACD,MAAM,EAAE,EAAE;IACV,KAAK,EAAE;QACL,IAAI,EAAE,EAAE;KACT;IACD,OAAO,EAAE;QACP,YAAY,EAAE,UAAU;QACxB,YAAY,EAAE,wDAAwD;QACtE,WAAW,EACT,qEAAqE;YACrE,yDAAyD;QAC3D,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACd;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,KAAK,EAAE,cAAM,CAAC,KAAK;gBACnB,QAAQ,EAAE,MAAM;aACjB;SACF;KACF;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,SAAS;gBACP,OAAO,IAAI,CAAC,KAAK,GAAG,GAAG,CAAA;YACzB,CAAC;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,cAAM,CAAC,KAAK;g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AI,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,CAAC,KAAK,EAAV,CAAU,CAAC,KAE1C,KAAK,wBACA,cAAc,CAAC,KAAK,KACvB,GAAG,EAAE,QAAQ,MAEhB,CAAA;IAED,OAAO,CACL,oBAAC,gBAAO;QACN,oBAAC,mCAAe,IAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,CACrD,CACX,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./ApWidgetBarChart"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ApWidgets/ApWidgetBarChart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Wrapper = void 0;
8
+ var styled_components_1 = require("styled-components");
9
+ exports.Wrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .highcharts-axis-labels text {\n font-size: 7px;\n }\n"], ["\n .highcharts-axis-labels text {\n font-size: 7px;\n }\n"])));
10
+ var templateObject_1;
11
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/components/ApWidgets/ApWidgetBarChart/styles.ts"],"names":[],"mappings":";;;;;;;AAAA,uDAAsC;AAEzB,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,mIAAA,gEAIhC,KAAA"}
@@ -14,15 +14,18 @@ export declare const PushWrapper: import("styled-components").StyledComponent<"d
14
14
  export declare const PushNotification: import("styled-components").StyledComponent<import("react").SFC<import("./NotificationItem").IProps>, any, {}, never>;
15
15
  export declare const GrouppedNotification: import("styled-components").StyledComponent<"div", any, {}, never>;
16
16
  export declare const GrouppedText: import("styled-components").StyledComponent<"div", any, {}, never>;
17
- export declare const RestyledSnackContainer: import("styled-components").GlobalStyleComponent<Pick<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "prefix" | "children" | "key" | "className" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & {
18
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
19
- }, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "prefix" | "ref" | "children" | "key" | "className" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & Partial<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "prefix" | "children" | "key" | "className" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & {
20
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
21
- }, never>> & Pick<any, string | number | symbol> & Partial<Pick<any, never>>, string | number | symbol> & {
17
+ export declare const RestyledSnackContainer: import("styled-components").GlobalStyleComponent<(Pick<Pick<any, string | number | symbol> & Partial<Pick<any, never>>, string | number | symbol> & {
22
18
  theme?: any;
23
19
  } & {
24
20
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
25
21
  forwardedAs?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
26
- }, import("styled-components").DefaultTheme>;
22
+ }) | (Pick<Pick<any, string | number | symbol> & Partial<Pick<any, never>>, string | number | symbol> & {
23
+ theme?: any;
24
+ } & {
25
+ children?: import("react").ReactNode;
26
+ } & {
27
+ as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
28
+ forwardedAs?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
29
+ }), import("styled-components").DefaultTheme>;
27
30
  export declare const CloseWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
28
31
  export {};
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { IDefaultProps } from '../../../utils/types';
3
+ import { IConfigKeys } from '../types';
4
+ interface IValuePair {
5
+ label: string;
6
+ value: string | number;
7
+ }
8
+ interface IDataProp {
9
+ value: number | string;
10
+ compareValue: number;
11
+ attributes: string[];
12
+ valuePairs: IValuePair[];
13
+ }
14
+ interface IProps extends IDefaultProps {
15
+ config?: IConfigKeys;
16
+ data?: IDataProp | null;
17
+ }
18
+ export declare const ApCustomKPIWidget: React.SFC<IProps>;
19
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ApCustomKPIWidget';
@@ -0,0 +1,9 @@
1
+ export declare const StyledWidgetBody: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const Label: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const Value: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const VarianceContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const AttributesListContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const AverageContainer: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
8
+ export declare const ColsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const CenterAlign: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { IDefaultProps } from '../../../utils/types';
3
+ export interface IBarChartDataItem {
4
+ label: string;
5
+ values: number[];
6
+ }
7
+ export interface IApWidgetBarChartProps extends IDefaultProps {
8
+ data: IBarChartDataItem[];
9
+ }
10
+ export declare const ApWidgetBarChart: React.SFC<IApWidgetBarChartProps>;
@@ -0,0 +1 @@
1
+ export * from './ApWidgetBarChart';
@@ -0,0 +1 @@
1
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;