logitude-dashboard-library 1.4.84 → 3.1.2

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.
@@ -1,3 +1,3 @@
1
- <svg viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M3.24985 3.5V1.25C3.24985 0.83579 3.58564 0.5 3.99985 0.5H12.9998C13.4141 0.5 13.7498 0.83579 13.7498 1.25V11.75C13.7498 12.1642 13.4141 12.5 12.9998 12.5H10.7498V14.7493C10.7498 15.1639 10.4124 15.5 9.99475 15.5H1.00499C0.587942 15.5 0.25 15.1665 0.25 14.7493L0.25195 4.25065C0.252025 3.83608 0.58948 3.5 1.00706 3.5H3.24985ZM1.75181 5L1.75014 14H9.24985V5H1.75181ZM4.74985 3.5H10.7498V11H12.2498V2H4.74985V3.5Z" fill="#5FAFDA"/>
3
- </svg>
1
+ <svg viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3.24985 3.5V1.25C3.24985 0.83579 3.58564 0.5 3.99985 0.5H12.9998C13.4141 0.5 13.7498 0.83579 13.7498 1.25V11.75C13.7498 12.1642 13.4141 12.5 12.9998 12.5H10.7498V14.7493C10.7498 15.1639 10.4124 15.5 9.99475 15.5H1.00499C0.587942 15.5 0.25 15.1665 0.25 14.7493L0.25195 4.25065C0.252025 3.83608 0.58948 3.5 1.00706 3.5H3.24985ZM1.75181 5L1.75014 14H9.24985V5H1.75181ZM4.74985 3.5H10.7498V11H12.2498V2H4.74985V3.5Z" fill="#5FAFDA"/>
3
+ </svg>
@@ -1,3 +1,3 @@
1
- <svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M8.99983 3.51152H11.9998V4.7757H10.7998V12.9929C10.7998 13.1605 10.7366 13.3213 10.6241 13.4398C10.5116 13.5584 10.359 13.625 10.1998 13.625H1.79983C1.6407 13.625 1.48809 13.5584 1.37557 13.4398C1.26305 13.3213 1.19983 13.1605 1.19983 12.9929V4.7757H-0.000167847V3.51152H2.99983V1.61525C2.99983 1.4476 3.06305 1.28683 3.17557 1.16829C3.28809 1.04975 3.4407 0.983154 3.59983 0.983154H8.39983C8.55896 0.983154 8.71158 1.04975 8.8241 1.16829C8.93662 1.28683 8.99983 1.4476 8.99983 1.61525V3.51152ZM9.59983 4.7757H2.39983V12.3608H9.59983V4.7757ZM4.19983 6.67197H5.39983V10.4645H4.19983V6.67197ZM6.59983 6.67197H7.79983V10.4645H6.59983V6.67197ZM4.19983 2.24734V3.51152H7.79983V2.24734H4.19983Z" fill="#5FAFDA"/>
3
3
  </svg>
@@ -1,3 +1,3 @@
1
- <svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M8.48527 5.38322L7.54247 4.4404L1.33333 10.6496V11.5924H2.27614L8.48527 5.38322ZM9.42807 4.4404L10.3709 3.4976L9.42807 2.55479L8.48527 3.4976L9.42807 4.4404ZM2.82843 12.9257H0V10.0973L8.95667 1.14058C9.21707 0.880224 9.63913 0.880224 9.89947 1.14058L11.7851 3.02619C12.0455 3.28654 12.0455 3.70865 11.7851 3.969L2.82843 12.9257Z" fill="#5FAFDA"/>
3
3
  </svg>
@@ -1,18 +1,18 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
- <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
- width="25" height="25" viewBox="0 0 150.000000 134.000000"
6
- preserveAspectRatio="xMidYMid meet">
7
-
8
- <g transform="translate(0.000000,134.000000) scale(0.100000,-0.100000)"
9
- fill="#ff0000" stroke="none">
10
- <path d="M705 1329 c-17 -4 -42 -21 -57 -36 -41 -44 -638 -1087 -644 -1124 -8
11
- -53 31 -119 86 -146 l44 -23 616 0 616 0 44 23 c83 42 110 118 70 196 -59 117
12
- -605 1050 -628 1074 -14 15 -42 32 -61 37 -41 11 -45 11 -86 -1z m116 -378
13
- c36 -36 38 -86 10 -199 -11 -43 -27 -115 -36 -162 -26 -138 -23 -132 -48 -128
14
- -18 2 -23 12 -30 53 -4 28 -21 113 -39 190 -40 182 -40 210 1 247 44 40 101
15
- 39 142 -1z m-21 -568 c39 -27 49 -45 50 -86 0 -88 -108 -131 -171 -68 -82 82
16
- 26 220 121 154z"/>
17
- </g>
18
- </svg>
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
+ width="25" height="25" viewBox="0 0 150.000000 134.000000"
6
+ preserveAspectRatio="xMidYMid meet">
7
+
8
+ <g transform="translate(0.000000,134.000000) scale(0.100000,-0.100000)"
9
+ fill="#ff0000" stroke="none">
10
+ <path fill='#CF2528' d="M705 1329 c-17 -4 -42 -21 -57 -36 -41 -44 -638 -1087 -644 -1124 -8
11
+ -53 31 -119 86 -146 l44 -23 616 0 616 0 44 23 c83 42 110 118 70 196 -59 117
12
+ -605 1050 -628 1074 -14 15 -42 32 -61 37 -41 11 -45 11 -86 -1z m116 -378
13
+ c36 -36 38 -86 10 -199 -11 -43 -27 -115 -36 -162 -26 -138 -23 -132 -48 -128
14
+ -18 2 -23 12 -30 53 -4 28 -21 113 -39 190 -40 182 -40 210 1 247 44 40 101
15
+ 39 142 -1z m-21 -568 c39 -27 49 -45 50 -86 0 -88 -108 -131 -171 -68 -82 82
16
+ 26 220 121 154z"/>
17
+ </g>
18
+ </svg>
package/dist/index.js CHANGED
@@ -1410,17 +1410,24 @@ var FusionChart = React.forwardRef(function (props, comRef) {
1410
1410
  fusionKey = _useState3[0];
1411
1411
 
1412
1412
  var chartData = React.useRef(null);
1413
+
1414
+ var _useState4 = React.useState(null),
1415
+ resizeTimer = _useState4[0],
1416
+ setResizeTimer = _useState4[1];
1417
+
1413
1418
  var widget = React.useRef();
1414
1419
 
1415
- var _useState4 = React.useState({}),
1416
- args = _useState4[0],
1417
- setArgs = _useState4[1];
1420
+ var _useState5 = React.useState({}),
1421
+ args = _useState5[0],
1422
+ setArgs = _useState5[1];
1418
1423
 
1419
- var _useState5 = React.useState(),
1420
- fChart = _useState5[0],
1421
- setFchart = _useState5[1];
1424
+ var _useState6 = React.useState(),
1425
+ fChart = _useState6[0],
1426
+ setFchart = _useState6[1];
1427
+
1428
+ var _useState7 = React.useState(uuid.v4()),
1429
+ chartContainerId = _useState7[0];
1422
1430
 
1423
- var id = (Math.random() + 1).toString(36).substring(7);
1424
1431
  var progressRef = React.useRef(null);
1425
1432
  var fusionRef = React.useRef(null);
1426
1433
  var fusionChartHelper = React.useRef();
@@ -1428,9 +1435,7 @@ var FusionChart = React.forwardRef(function (props, comRef) {
1428
1435
  var _props$dataBinding;
1429
1436
 
1430
1437
  widget.current = props.widget;
1431
- setTimeout(function () {
1432
- RefreshData();
1433
- }, 500);
1438
+ RefreshData();
1434
1439
  (_props$dataBinding = props.dataBinding) === null || _props$dataBinding === void 0 ? void 0 : _props$dataBinding.widgetUpdated.subscribe(function (updatedWidget) {
1435
1440
  var _widget$current;
1436
1441
 
@@ -1443,22 +1448,19 @@ var FusionChart = React.forwardRef(function (props, comRef) {
1443
1448
  handleData(_data, true);
1444
1449
  }
1445
1450
  });
1446
- }, []);
1447
- React.useEffect(function () {
1448
- var timeout;
1449
-
1450
- var handleResize = function handleResize() {
1451
- clearTimeout(timeout);
1452
- timeout = setTimeout(function () {
1453
- HandleSizeChange();
1454
- }, 200);
1455
- };
1456
-
1457
1451
  window.addEventListener("resize", handleResize);
1458
1452
  return function () {
1459
1453
  return window.removeEventListener("resize", handleResize);
1460
1454
  };
1461
1455
  }, []);
1456
+
1457
+ var handleResize = function handleResize() {
1458
+ clearTimeout(resizeTimer);
1459
+ setResizeTimer(setTimeout(function () {
1460
+ HandleSizeChange();
1461
+ }, 200));
1462
+ };
1463
+
1462
1464
  React.useImperativeHandle(comRef, function () {
1463
1465
  return {
1464
1466
  onResizeFinish: function onResizeFinish() {
@@ -1567,7 +1569,7 @@ var FusionChart = React.forwardRef(function (props, comRef) {
1567
1569
  key: fusionKey,
1568
1570
  className: 'db-fc-container',
1569
1571
  ref: ref,
1570
- id: id
1572
+ id: chartContainerId
1571
1573
  }, React__default.createElement(ReactFC, Object.assign({}, args, {
1572
1574
  "fcEvent-dataplotClick": dataplotClick,
1573
1575
  onRender: renderComplete