@desynova-digital/components 9.1.22 → 9.1.23
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.
- package/_helpers/utils.js +23 -20
- package/atoms/avatar/index.js +2 -1
- package/atoms/badge/index.js +2 -1
- package/atoms/button/button.js +2 -1
- package/atoms/card/index.js +2 -1
- package/atoms/cardStack/index.js +2 -1
- package/atoms/cardV2/cardV2.js +7 -6
- package/atoms/cardV2/content.js +8 -7
- package/atoms/cardV2/thumbnail.js +12 -11
- package/atoms/cardV2/timeline.js +2 -1
- package/atoms/customSelect/customSelect.js +2 -1
- package/atoms/datePicker/datePicker.js +12 -11
- package/atoms/draftInputText/draftInputText.js +45 -44
- package/atoms/dropdown/dropdown.js +2 -1
- package/atoms/dropdownList/dropdownList.js +2 -1
- package/atoms/graphs/circleDonut/circleDonut.js +2 -1
- package/atoms/graphs/circleGraph/circleGraph.js +2 -1
- package/atoms/graphs/circleNested/circleNested.js +2 -1
- package/atoms/graphs/pieChart/pieChart.js +2 -1
- package/atoms/graphs/verticalBarGraph/verticalBarGraph.js +2 -1
- package/atoms/icon/icons.json +1708 -1708
- package/atoms/icon/index.js +2 -1
- package/atoms/inputText/inputText.js +2 -1
- package/atoms/loader/CircleLoader.jsx +93 -93
- package/atoms/loader/ShimmerComponent/CollabShimmerCard.jsx +39 -39
- package/atoms/loader/ShimmerComponent/CollabShimmerCardTray.jsx +24 -24
- package/atoms/loader/ShimmerComponent/FiltersShimmer.jsx +19 -19
- package/atoms/loader/ShimmerComponent/GraphDetailShimmer.jsx +31 -31
- package/atoms/loader/ShimmerComponent/GraphTitleShimmer.jsx +23 -23
- package/atoms/loader/ShimmerComponent/GraphsComponentShimmer.jsx +23 -23
- package/atoms/loader/ShimmerComponent/Shimmer.js +2 -1
- package/atoms/loader/ShimmerComponent/Shimmer.jsx +48 -48
- package/atoms/loader/ThreeDotLoader.jsx +51 -51
- package/atoms/loader/index.js +2 -1
- package/atoms/loader/spinningLoader.jsx +69 -69
- package/atoms/popup/popup.js +2 -1
- package/atoms/radio/index.js +2 -1
- package/atoms/sideBar/sidebar.js +5 -4
- package/atoms/sideBar/sidebar.jsx +249 -249
- package/atoms/tag/index.js +2 -1
- package/atoms/thematicBreak/index.js +2 -1
- package/atoms/timeCodeDisplay/timCodeInput.story.js +1 -1
- package/atoms/timeCodeDisplay/timeCodeDisplay.js +1 -1
- package/atoms/timeCodeInput/timCodeInput.story.js +1 -1
- package/atoms/timeCodeInput/timeCodeInput.js +3 -2
- package/atoms/timeCodeInput/timeCodeMSInput.js +2 -1
- package/atoms/timeCodeInput/timeCodeMainInput.js +9 -8
- package/atoms/timeCodeInput/timeCodeStandardInput.js +2 -1
- package/atoms/timer/timer.js +2 -1
- package/atoms/toast/toast.js +2 -1
- package/atoms/videoCard/index.js +2 -1
- package/atoms/videoCard/videoCard.js +3 -3
- package/components.js +2 -1
- package/molecules/errorScreen/TableErrorScreen.jsx +85 -85
- package/molecules/errorScreen/errorScreen.js +9 -9
- package/molecules/errorScreen/errorScreen.jsx +149 -149
- package/molecules/filter/filter.js +40 -39
- package/molecules/graphDetailCard/graphDetailCard.js +2 -1
- package/molecules/pageHeader/index.js +2 -1
- package/molecules/richTextInput/RichTextInput.js +10 -9
- package/molecules/table/table.js +8 -7
- package/molecules/videoPlayer/videoPlayer.js +6 -6
- package/package.json +2 -2
package/_helpers/utils.js
CHANGED
|
@@ -44,7 +44,7 @@ var convertHHMMSSFF_to_HHMMSS = exports.convertHHMMSSFF_to_HHMMSS = function con
|
|
|
44
44
|
};
|
|
45
45
|
var convertHHMMSSFF_to_HHMMSSmmm = exports.convertHHMMSSFF_to_HHMMSSmmm = function convertHHMMSSFF_to_HHMMSSmmm(timecode) {
|
|
46
46
|
var fps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 25;
|
|
47
|
-
if (!timecode) return "00:00:00
|
|
47
|
+
if (!timecode) return "00:00:00.000";
|
|
48
48
|
var singleFrameMilliseocnds = 1000 / parseInt(fps);
|
|
49
49
|
var upperLimit = 999 % parseInt(fps) * singleFrameMilliseocnds;
|
|
50
50
|
var parts = timecode.split(":").map(Number);
|
|
@@ -63,25 +63,28 @@ var convertHHMMSSFF_to_HHMMSSmmm = exports.convertHHMMSSFF_to_HHMMSSmmm = functi
|
|
|
63
63
|
ff = _map2$4 === void 0 ? 0 : _map2$4;
|
|
64
64
|
var totalMs = ff * (1000 / parseInt(fps));
|
|
65
65
|
var mmm = Math.min(upperLimit, Math.floor(totalMs)).toString().padStart(3, "0");
|
|
66
|
-
return "".concat(hh.toString().padStart(2, "0"), ":").concat(mm.toString().padStart(2, "0"), ":").concat(ss.toString().padStart(2, "0"), "
|
|
66
|
+
return "".concat(hh.toString().padStart(2, "0"), ":").concat(mm.toString().padStart(2, "0"), ":").concat(ss.toString().padStart(2, "0"), ".").concat(mmm);
|
|
67
67
|
};
|
|
68
68
|
var convertHHMMSSmmm_to_HHMMSSFF = exports.convertHHMMSSmmm_to_HHMMSSFF = function convertHHMMSSmmm_to_HHMMSSFF(timecode) {
|
|
69
69
|
var fps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 25;
|
|
70
70
|
if (!timecode) return "00:00:00:00";
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
71
|
+
|
|
72
|
+
// Split milliseconds if present
|
|
73
|
+
var _timecode$split3 = timecode.split("."),
|
|
74
|
+
_timecode$split4 = (0, _slicedToArray2["default"])(_timecode$split3, 2),
|
|
75
|
+
mainTime = _timecode$split4[0],
|
|
76
|
+
_timecode$split4$ = _timecode$split4[1],
|
|
77
|
+
msPart = _timecode$split4$ === void 0 ? "0" : _timecode$split4$;
|
|
78
|
+
var parts = mainTime.split(":").map(Number);
|
|
79
|
+
var _parts = (0, _slicedToArray2["default"])(parts, 3),
|
|
80
|
+
_parts$ = _parts[0],
|
|
81
|
+
hh = _parts$ === void 0 ? 0 : _parts$,
|
|
82
|
+
_parts$2 = _parts[1],
|
|
83
|
+
mm = _parts$2 === void 0 ? 0 : _parts$2,
|
|
84
|
+
_parts$3 = _parts[2],
|
|
85
|
+
ss = _parts$3 === void 0 ? 0 : _parts$3;
|
|
86
|
+
var mmm = parseInt(msPart.padEnd(3, "0").slice(0, 3), 10); // ensure 3 digits
|
|
87
|
+
|
|
85
88
|
var clampedMs = Math.min(Math.max(mmm, 0), 999);
|
|
86
89
|
var frame = Math.ceil(clampedMs / 1000 * fps);
|
|
87
90
|
var ff = frame.toString().padStart(2, "0");
|
|
@@ -125,10 +128,10 @@ var cleanHtml = exports.cleanHtml = function cleanHtml(htmlStr) {
|
|
|
125
128
|
.replace(/\s\s+/g, "").replace(/\t/g, "").replace(/\\"/g, '"').replace(/\n/g, " ");
|
|
126
129
|
};
|
|
127
130
|
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @param {*} htmlStr
|
|
131
|
-
* @returns
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @param {*} htmlStr
|
|
134
|
+
* @returns
|
|
132
135
|
*/
|
|
133
136
|
var htmlToText = exports.htmlToText = function htmlToText(htmlStr) {
|
|
134
137
|
var res = htmlStr === null || htmlStr === void 0 ? void 0 : htmlStr.replace(/<\/?[^>]+>/gi, "");
|
package/atoms/avatar/index.js
CHANGED
|
@@ -12,5 +12,6 @@ Object.defineProperty(exports, "StyledAvatar", {
|
|
|
12
12
|
});
|
|
13
13
|
exports["default"] = void 0;
|
|
14
14
|
var _avatar = _interopRequireWildcard(require("./avatar"));
|
|
15
|
-
function
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
17
|
var _default = exports["default"] = _avatar["default"];
|
package/atoms/badge/index.js
CHANGED
|
@@ -12,5 +12,6 @@ Object.defineProperty(exports, "StyledBadge", {
|
|
|
12
12
|
});
|
|
13
13
|
exports["default"] = void 0;
|
|
14
14
|
var _badge = _interopRequireWildcard(require("./badge"));
|
|
15
|
-
function
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
17
|
var _default = exports["default"] = _badge["default"];
|
package/atoms/button/button.js
CHANGED
|
@@ -18,7 +18,8 @@ var _tokens = require("@desynova-digital/tokens");
|
|
|
18
18
|
var _components = require("../../components");
|
|
19
19
|
var _excluded = ["children"];
|
|
20
20
|
var _templateObject, _templateObject2, _templateObject3;
|
|
21
|
-
function
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
22
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // import colors from "../../../tokens/colors";
|
|
24
25
|
var getAppearences = function getAppearences(key, theme) {
|
package/atoms/card/index.js
CHANGED
|
@@ -12,5 +12,6 @@ Object.defineProperty(exports, "StyledCard", {
|
|
|
12
12
|
});
|
|
13
13
|
exports["default"] = void 0;
|
|
14
14
|
var _card = _interopRequireWildcard(require("./card"));
|
|
15
|
-
function
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
17
|
var _default = exports["default"] = _card["default"];
|
package/atoms/cardStack/index.js
CHANGED
|
@@ -12,5 +12,6 @@ Object.defineProperty(exports, "CardStackBox", {
|
|
|
12
12
|
});
|
|
13
13
|
exports["default"] = void 0;
|
|
14
14
|
var _cardStack = _interopRequireWildcard(require("./cardStack"));
|
|
15
|
-
function
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
17
|
var _default = exports["default"] = _cardStack["default"];
|
package/atoms/cardV2/cardV2.js
CHANGED
|
@@ -14,7 +14,8 @@ var _thumbnail = _interopRequireDefault(require("./thumbnail"));
|
|
|
14
14
|
var _content = _interopRequireDefault(require("./content"));
|
|
15
15
|
var _timeline = _interopRequireDefault(require("./timeline"));
|
|
16
16
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6; // components
|
|
17
|
-
function
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
19
|
var CommonStyles = exports.CommonStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n"])), function (_ref) {
|
|
19
20
|
var margin = _ref.margin,
|
|
20
21
|
padding = _ref.padding,
|
|
@@ -45,11 +46,11 @@ var CardV2 = function CardV2(props) {
|
|
|
45
46
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, type === 'timeline' && /*#__PURE__*/_react["default"].createElement(_timeline["default"], props) || null, /*#__PURE__*/_react["default"].createElement(_thumbnail["default"], props), /*#__PURE__*/_react["default"].createElement(_content["default"], props));
|
|
46
47
|
}, [props]);
|
|
47
48
|
|
|
48
|
-
/**
|
|
49
|
-
* based on width will render the card
|
|
50
|
-
* if width === sm then flex based card
|
|
51
|
-
* else normal
|
|
52
|
-
* @function
|
|
49
|
+
/**
|
|
50
|
+
* based on width will render the card
|
|
51
|
+
* if width === sm then flex based card
|
|
52
|
+
* else normal
|
|
53
|
+
* @function
|
|
53
54
|
*/
|
|
54
55
|
var renderBasedOnWidth = (0, _react.useCallback)(function () {
|
|
55
56
|
if (width === 'sm') {
|
package/atoms/cardV2/content.js
CHANGED
|
@@ -16,7 +16,8 @@ var _cardV = require("./cardV2");
|
|
|
16
16
|
var _icon = _interopRequireDefault(require("../../atoms/icon"));
|
|
17
17
|
var _tokens = require("@desynova-digital/tokens");
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
19
|
-
function
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
20
21
|
var TextEllipsisStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
21
22
|
var ToolTipStyles = (0, _styledComponents["default"])(function (props) {
|
|
22
23
|
return /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, props);
|
|
@@ -70,9 +71,9 @@ var Content = function Content(props) {
|
|
|
70
71
|
tooltipVisibleSection = _useState2[0],
|
|
71
72
|
setTooltipVisibleSection = _useState2[1];
|
|
72
73
|
|
|
73
|
-
/**
|
|
74
|
-
* toogle tooltip -> true / false
|
|
75
|
-
* @function
|
|
74
|
+
/**
|
|
75
|
+
* toogle tooltip -> true / false
|
|
76
|
+
* @function
|
|
76
77
|
*/
|
|
77
78
|
var handleTooltip = (0, _react.useCallback)(function (tooltipSection, tooltipText) {
|
|
78
79
|
return function () {
|
|
@@ -82,9 +83,9 @@ var Content = function Content(props) {
|
|
|
82
83
|
};
|
|
83
84
|
}, []);
|
|
84
85
|
|
|
85
|
-
/**
|
|
86
|
-
* returns filtered list removing undefined from input array
|
|
87
|
-
* @function
|
|
86
|
+
/**
|
|
87
|
+
* returns filtered list removing undefined from input array
|
|
88
|
+
* @function
|
|
88
89
|
*/
|
|
89
90
|
var getTooltipData = function getTooltipData() {
|
|
90
91
|
for (var _len = arguments.length, list = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -18,7 +18,8 @@ var _cardV = require("./cardV2");
|
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6; // atoms
|
|
19
19
|
// tokens
|
|
20
20
|
// styles
|
|
21
|
-
function
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
22
23
|
var OverlayBackgroundStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n background: rgba(0, 0, 0, 0.5);\n"])));
|
|
23
24
|
var assetStyles = {
|
|
24
25
|
"folder": {
|
|
@@ -97,12 +98,12 @@ var Thumbnail = function Thumbnail(props) {
|
|
|
97
98
|
}
|
|
98
99
|
}, [actions && JSON.stringify(actions).length > 0]);
|
|
99
100
|
(0, _react.useEffect)(function () {
|
|
100
|
-
/**
|
|
101
|
-
* will return the hex based status passed
|
|
102
|
-
* eg. status = In Progress -> will format to "in_progress"
|
|
103
|
-
* then it will find its index in CARD_ASSET_STATUS which will
|
|
104
|
-
* return hex
|
|
105
|
-
* @const
|
|
101
|
+
/**
|
|
102
|
+
* will return the hex based status passed
|
|
103
|
+
* eg. status = In Progress -> will format to "in_progress"
|
|
104
|
+
* then it will find its index in CARD_ASSET_STATUS which will
|
|
105
|
+
* return hex
|
|
106
|
+
* @const
|
|
106
107
|
*/
|
|
107
108
|
var index = _tokens2.CARD_ASSET_STATUS.findIndex(function (label) {
|
|
108
109
|
return label.code.includes(card_status || upload_status ? (card_status || upload_status).toLowerCase().split(' ').join('_') : []);
|
|
@@ -130,10 +131,10 @@ var Thumbnail = function Thumbnail(props) {
|
|
|
130
131
|
}
|
|
131
132
|
}, [iframeImageBlockRef, hoverPointerRef, iframeImageRef]);
|
|
132
133
|
|
|
133
|
-
/**
|
|
134
|
-
* will decide thumbnail click based on its condition
|
|
135
|
-
* eg. if task_type === upload then prevent click
|
|
136
|
-
* @function
|
|
134
|
+
/**
|
|
135
|
+
* will decide thumbnail click based on its condition
|
|
136
|
+
* eg. if task_type === upload then prevent click
|
|
137
|
+
* @function
|
|
137
138
|
*/
|
|
138
139
|
var handleThumbnailClick = (0, _react.useCallback)(function (e) {
|
|
139
140
|
if (!isClickPrevented) {
|
package/atoms/cardV2/timeline.js
CHANGED
|
@@ -13,7 +13,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _dateTime = _interopRequireDefault(require("../dateTime"));
|
|
14
14
|
var _tokens = require("@desynova-digital/tokens");
|
|
15
15
|
var _templateObject;
|
|
16
|
-
function
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
17
18
|
var TimelineBlock = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n height: 50px;\n .start-time {\n position: absolute;\n top: 0px;\n .hours {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Medium';\n }\n .seperator {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Light';\n }\n .minutes {\n font-size: 20px;\n color: #fff;\n font-family: 'SFUIText-Light';\n align-self: 1;\n }\n }\n .image-block {\n position: absolute;\n bottom: 0;\n }\n .end-time {\n position: absolute;\n right: 0;\n top: 8px;\n font-size: 10px;\n font-family: 'SFUIText-Light';\n color: #afb2ba;\n .am-pm {\n margin-left: 4px;\n }\n }\n .am-pm {\n font-size: 10px;\n align-self: end;\n font-family: 'SFUIText-Light';\n color: #afb2ba;\n margin-left: 3px;\n }\n"])));
|
|
18
19
|
var Timeline = function Timeline(props) {
|
|
19
20
|
var startTime = props.startTime,
|
|
@@ -21,7 +21,8 @@ var _tokens = require("@desynova-digital/tokens");
|
|
|
21
21
|
var _tag = _interopRequireDefault(require("../tag"));
|
|
22
22
|
var _dropdownList = _interopRequireDefault(require("../dropdownList"));
|
|
23
23
|
var _templateObject, _templateObject2;
|
|
24
|
-
function
|
|
24
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
25
26
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
27
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
28
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
@@ -20,7 +20,8 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
20
20
|
var _icon = _interopRequireDefault(require("../icon"));
|
|
21
21
|
var _tokens = require("@desynova-digital/tokens");
|
|
22
22
|
var _templateObject, _templateObject2;
|
|
23
|
-
function
|
|
23
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
24
25
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
25
26
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
27
|
//'@desynova-digital/tokens'
|
|
@@ -928,15 +929,15 @@ var Weeks = /*#__PURE__*/function (_Component5) {
|
|
|
928
929
|
}(_react.Component);
|
|
929
930
|
var Week = /*#__PURE__*/function (_Component6) {
|
|
930
931
|
function Week(props) {
|
|
931
|
-
var
|
|
932
|
+
var _this10;
|
|
932
933
|
(0, _classCallCheck2["default"])(this, Week);
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
return
|
|
934
|
+
_this10 = _callSuper(this, Week, [props]);
|
|
935
|
+
_this10.buildDays = _this10.buildDays.bind(_this10);
|
|
936
|
+
_this10.isOtherMonth = _this10.isOtherMonth.bind(_this10);
|
|
937
|
+
_this10.getDayClassName = _this10.getDayClassName.bind(_this10);
|
|
938
|
+
_this10.isDisabled = _this10.isDisabled.bind(_this10);
|
|
939
|
+
_this10.onSelect = _this10.onSelect.bind(_this10);
|
|
940
|
+
return _this10;
|
|
940
941
|
}
|
|
941
942
|
(0, _inherits2["default"])(Week, _Component6);
|
|
942
943
|
return (0, _createClass2["default"])(Week, [{
|
|
@@ -1006,11 +1007,11 @@ var Week = /*#__PURE__*/function (_Component6) {
|
|
|
1006
1007
|
return /*#__PURE__*/_react["default"].createElement('div', {
|
|
1007
1008
|
className: 'week'
|
|
1008
1009
|
}, days.map(function (day, i) {
|
|
1009
|
-
var
|
|
1010
|
+
var _this11 = this;
|
|
1010
1011
|
return /*#__PURE__*/_react["default"].createElement('div', {
|
|
1011
1012
|
key: i,
|
|
1012
1013
|
onClick: function onClick() {
|
|
1013
|
-
|
|
1014
|
+
_this11.onSelect(day);
|
|
1014
1015
|
},
|
|
1015
1016
|
className: this.getDayClassName(day)
|
|
1016
1017
|
}, /*#__PURE__*/_react["default"].createElement("span", null, " ", DateUtilities.toDayOfMonthString(day)));
|
|
@@ -19,7 +19,8 @@ var _draftConvert = require("draft-convert");
|
|
|
19
19
|
var _icon = _interopRequireDefault(require("../icon"));
|
|
20
20
|
var _excluded = ["maxLength", "defaultValue", "type", "showLengthCount", "label", "value", "autoFocus", "isFocused"];
|
|
21
21
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
22
|
-
function
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
24
|
var DraftInputTextDiv = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n background: transparent;\n font-family: 'SFUIText-Medium';\n position: relative;\n width:92%;\n margin-bottom:10px;\n margin-top:10px\n display: block;\n > label {\n color: #999999;\n font-size: 14px;\n font-family: inherit;\n position: absolute;\n pointer-events: none;\n left: 0px;\n top: 5px;\n transition: 0.2s ease all;\n -moz-transition: 0.2s ease all;\n -webkit-transition: 0.2s ease all;\n }\n > div:focus ~ label {\n top: -10px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n > div ~ label.floaton {\n top: -10px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n"])));
|
|
24
25
|
var PasswordToggleButton = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n background: none;\n border: none;\n cursor: pointer;\n position: absolute;\n right: 0;\n top: 5px;\n &:focus {\n outline: none;\n }\n"])));
|
|
25
26
|
var CountWrappper = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n position: absolute;\n right: 0px;\n top: 0px;\n background-color: #303f51;\n border-radius: 12px;\n font-size: 12px;\n padding: 5px 10px;\n color: #ffffff;\n"])));
|
|
@@ -56,9 +57,9 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
56
57
|
setEditorState = _useState8[1];
|
|
57
58
|
var editorRef = (0, _react.useRef)(null);
|
|
58
59
|
var _useState9 = (0, _react.useState)(null),
|
|
59
|
-
|
|
60
|
-
listScrollTop =
|
|
61
|
-
setListScrollTop =
|
|
60
|
+
_useState10 = (0, _slicedToArray2["default"])(_useState9, 2),
|
|
61
|
+
listScrollTop = _useState10[0],
|
|
62
|
+
setListScrollTop = _useState10[1];
|
|
62
63
|
var contentLength = editorState.getCurrentContent().getPlainText('').length;
|
|
63
64
|
var scrollObject = localStorage.getItem('scrollObject');
|
|
64
65
|
if (scrollObject && JSON.parse(scrollObject).tableListScrollTop !== listScrollTop) {
|
|
@@ -74,11 +75,11 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
74
75
|
var passwordButton = props.passwordButton;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @param {string} command string representing the keyboard command being invoked
|
|
80
|
-
* @param {object} editorState represents the current state of the editor, including the content, selection, and various editor properties.
|
|
81
|
-
* @returns new Editor State with applied styling
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @param {string} command string representing the keyboard command being invoked
|
|
81
|
+
* @param {object} editorState represents the current state of the editor, including the content, selection, and various editor properties.
|
|
82
|
+
* @returns new Editor State with applied styling
|
|
82
83
|
*/
|
|
83
84
|
var handleKeyCommand = function handleKeyCommand(command, editorState) {
|
|
84
85
|
var newState = _draftJs.RichUtils.handleKeyCommand(editorState, command);
|
|
@@ -89,9 +90,9 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
89
90
|
return 'not-handled';
|
|
90
91
|
};
|
|
91
92
|
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @returns Return the length of text in editor in a synchronous way
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @returns Return the length of text in editor in a synchronous way
|
|
95
96
|
*/
|
|
96
97
|
var _getLengthOfSelectedText = function _getLengthOfSelectedText() {
|
|
97
98
|
var currentSelection = editorState.getSelection();
|
|
@@ -126,11 +127,11 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
126
127
|
return length;
|
|
127
128
|
};
|
|
128
129
|
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @param {string} text The text that is pasted in the editor
|
|
132
|
-
* @param {string} position tells whether we have to check for inserted text or pasted text
|
|
133
|
-
* @returns whether pasting or inserting text is feasible
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @param {string} text The text that is pasted in the editor
|
|
133
|
+
* @param {string} position tells whether we have to check for inserted text or pasted text
|
|
134
|
+
* @returns whether pasting or inserting text is feasible
|
|
134
135
|
*/
|
|
135
136
|
var _handleInput = function _handleInput(text, position) {
|
|
136
137
|
var currentContent = editorState.getCurrentContent();
|
|
@@ -149,27 +150,27 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
149
150
|
}
|
|
150
151
|
};
|
|
151
152
|
|
|
152
|
-
/**
|
|
153
|
-
*
|
|
154
|
-
* @returns calls the function to check before typing the text does not exceed maximum length
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @returns calls the function to check before typing the text does not exceed maximum length
|
|
155
156
|
*/
|
|
156
157
|
var _handleBeforeInput = function _handleBeforeInput() {
|
|
157
158
|
return _handleInput('', 'before');
|
|
158
159
|
};
|
|
159
160
|
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @param {string} pastedText the text that is copy pasted in our editor
|
|
163
|
-
* @returns calls the function to check copying the text does not exceed maximum length
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @param {string} pastedText the text that is copy pasted in our editor
|
|
164
|
+
* @returns calls the function to check copying the text does not exceed maximum length
|
|
164
165
|
*/
|
|
165
166
|
var _handlePastedText = function _handlePastedText(pastedText) {
|
|
166
167
|
return _handleInput(pastedText, 'after');
|
|
167
168
|
};
|
|
168
169
|
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @param {object} newEditorState the newstate of editor when we type any text in our editor
|
|
172
|
-
* @returns the new state of editor
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @param {object} newEditorState the newstate of editor when we type any text in our editor
|
|
173
|
+
* @returns the new state of editor
|
|
173
174
|
*/
|
|
174
175
|
var _handleChange = function _handleChange(newEditorState) {
|
|
175
176
|
var contentState = newEditorState.getCurrentContent();
|
|
@@ -181,10 +182,10 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
181
182
|
}
|
|
182
183
|
};
|
|
183
184
|
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @param {string} htmlString the string that is passed to the parent
|
|
187
|
-
* @returns removes the default <p> tag of draftjs
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @param {string} htmlString the string that is passed to the parent
|
|
188
|
+
* @returns removes the default <p> tag of draftjs
|
|
188
189
|
*/
|
|
189
190
|
var removeOuterPTag = function removeOuterPTag(htmlString) {
|
|
190
191
|
var regex = /^<p>(.*?)<\/p>$/;
|
|
@@ -197,10 +198,10 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
197
198
|
});
|
|
198
199
|
};
|
|
199
200
|
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
* @param {string} html the string that is passed to the parent
|
|
203
|
-
* @returns removes the symbols of special character like commas and convert them back to character
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @param {string} html the string that is passed to the parent
|
|
204
|
+
* @returns removes the symbols of special character like commas and convert them back to character
|
|
204
205
|
*/
|
|
205
206
|
|
|
206
207
|
function decodeHtml(html) {
|
|
@@ -209,8 +210,8 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
209
210
|
return txt.value;
|
|
210
211
|
}
|
|
211
212
|
|
|
212
|
-
/**
|
|
213
|
-
* this useEffect is used to send value to parent component as soon as editor state gets updated
|
|
213
|
+
/**
|
|
214
|
+
* this useEffect is used to send value to parent component as soon as editor state gets updated
|
|
214
215
|
*/
|
|
215
216
|
(0, _react.useEffect)(function () {
|
|
216
217
|
var html = (0, _draftConvert.convertToHTML)(editorState.getCurrentContent());
|
|
@@ -226,8 +227,8 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
226
227
|
}
|
|
227
228
|
}, [editorState]);
|
|
228
229
|
|
|
229
|
-
/**
|
|
230
|
-
* This useEffect handles our focus condition and also updates state when the props value changes
|
|
230
|
+
/**
|
|
231
|
+
* This useEffect handles our focus condition and also updates state when the props value changes
|
|
231
232
|
*/
|
|
232
233
|
(0, _react.useEffect)(function () {
|
|
233
234
|
if (diff && value !== '' && value !== undefined) {
|
|
@@ -247,8 +248,8 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
247
248
|
}
|
|
248
249
|
}
|
|
249
250
|
}, [value]);
|
|
250
|
-
/**
|
|
251
|
-
* This useEffect is used to chnage our value when timeline is changed
|
|
251
|
+
/**
|
|
252
|
+
* This useEffect is used to chnage our value when timeline is changed
|
|
252
253
|
*/
|
|
253
254
|
(0, _react.useEffect)(function () {
|
|
254
255
|
if (listScrollTop !== null) {
|
|
@@ -262,8 +263,8 @@ var DraftInputText = function DraftInputText(_ref) {
|
|
|
262
263
|
}
|
|
263
264
|
}, [listScrollTop]);
|
|
264
265
|
|
|
265
|
-
/**
|
|
266
|
-
* This useEffect is used to focus on Line1 when a new segment is created
|
|
266
|
+
/**
|
|
267
|
+
* This useEffect is used to focus on Line1 when a new segment is created
|
|
267
268
|
*/
|
|
268
269
|
(0, _react.useEffect)(function () {
|
|
269
270
|
if (autoFocus) {
|
|
@@ -18,7 +18,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
18
18
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
19
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
20
|
var _templateObject;
|
|
21
|
-
function
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
22
23
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
23
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
25
|
var propTypes = {
|
|
@@ -15,7 +15,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
var _tokens = require("@desynova-digital/tokens");
|
|
16
16
|
var _icon = _interopRequireDefault(require("../icon"));
|
|
17
17
|
var _templateObject, _templateObject2, _templateObject3;
|
|
18
|
-
function
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
19
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
22
|
var mainprops;
|
|
@@ -18,7 +18,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
18
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
19
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
20
20
|
var _templateObject;
|
|
21
|
-
function
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
22
23
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
23
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
25
|
var propTypes = {};
|
|
@@ -19,7 +19,8 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
19
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
20
|
var _tokens = require("@desynova-digital/tokens");
|
|
21
21
|
var _templateObject, _templateObject2, _templateObject3;
|
|
22
|
-
function
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
24
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
24
25
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
26
|
var CircleGraph = /*#__PURE__*/function (_React$Component) {
|
|
@@ -18,7 +18,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
18
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
19
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
20
20
|
var _templateObject;
|
|
21
|
-
function
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
22
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
25
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
@@ -19,7 +19,8 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
19
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
20
|
var _tokens = require("@desynova-digital/tokens");
|
|
21
21
|
var _templateObject, _templateObject2;
|
|
22
|
-
function
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
24
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
24
25
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
26
|
var PieChart = /*#__PURE__*/function (_React$Component) {
|