logitude-dashboard-library 1.4.50 → 1.4.52

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.
@@ -0,0 +1,2 @@
1
+ declare const isNullOrUndefined: (val: any) => boolean;
2
+ export { isNullOrUndefined };
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
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
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
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
+ </svg>
@@ -271,19 +271,68 @@ $dark-grey: #717585;
271
271
  }
272
272
  }
273
273
 
274
- h1 {
275
- text-transform: capitalize;
276
- font-family: 'Manrope', sans-serif;
277
- font-style: normal;
278
- color: #292D30;
279
- margin-top: 0;
280
- margin-bottom: 0;
281
- padding: 12px;
282
- font-size: 12px;
283
- font-weight: 600;
284
- white-space: nowrap;
285
- overflow: hidden;
286
- text-overflow: ellipsis;
274
+ .widget-titles-container {
275
+ display: flex;
276
+ flex-wrap: wrap;
277
+ width: calc(100% - 4rem);
278
+ padding: 0px 12px 12px 12px;
279
+
280
+ .title-container {
281
+ display: flex;
282
+ align-items: center;
283
+ justify-content: left;
284
+ flex: 1;
285
+ white-space: nowrap;
286
+ overflow: hidden;
287
+ text-overflow: ellipsis;
288
+ min-width: 1px;
289
+
290
+ .title {
291
+ text-transform: capitalize;
292
+ font-family: 'Manrope', sans-serif;
293
+ font-style: normal;
294
+ color: #292D30;
295
+ padding-top: 12px;
296
+ margin-top: 0;
297
+ margin-bottom: 0;
298
+ font-size: 12px;
299
+ font-weight: 600;
300
+ white-space: nowrap;
301
+ overflow: hidden;
302
+ text-overflow: ellipsis;
303
+ width: auto;
304
+ }
305
+ }
306
+
307
+ .subtitle {
308
+ font-family: 'Manrope', sans-serif;
309
+ font-style: normal;
310
+ color: #292D30;
311
+ margin-top: 4px;
312
+ font-size: 12px;
313
+ font-weight: 600;
314
+ white-space: nowrap;
315
+ overflow: hidden;
316
+ text-overflow: ellipsis;
317
+ width: 100%;
318
+ }
319
+ }
320
+
321
+ .widget-options-container {
322
+ display: flex;
323
+ align-items: center;
324
+ width: 60px;
325
+ column-gap: 6px;
326
+
327
+ svg {
328
+ width: 20px;
329
+ height: 20px;
330
+ transform: scale(1.2);
331
+
332
+ &:hover {
333
+ cursor: pointer;
334
+ }
335
+ }
287
336
  }
288
337
  }
289
338
 
@@ -313,7 +362,6 @@ $dark-grey: #717585;
313
362
  align-items: flex-start;
314
363
  }
315
364
 
316
-
317
365
  .filter-label {
318
366
  font-size: 12px;
319
367
  color: $dark-grey;
@@ -475,20 +523,20 @@ $dark-grey: #717585;
475
523
 
476
524
  .db-fc-container text {
477
525
  font-family: 'Manrope' !important;
478
- font-size: 10px !important;
526
+ font-size: inherit !important;
479
527
  fill: #323232 !important;
480
528
  fill-opacity: 100 !important;
481
529
  }
482
530
  .db-fc-container tspan {
483
531
  font-family: 'Manrope' !important;
484
- font-size: 10px !important;
532
+ font-size: inherit !important;
485
533
  fill: #323232 !important;
486
534
  fill-opacity: 100 !important;
487
535
  }
488
536
 
489
537
  .db-fc-container * {
490
538
  font-family: 'Manrope' !important;
491
- font-size: 10px !important;
539
+ // font-size: 10px !important;
492
540
  }
493
541
 
494
542
  .db-fc-container>*:first-child {
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
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
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">
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
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
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
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
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
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
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
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">
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
+ </svg>
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { ReactWidgetPM } from "../../../types/widget";
3
3
  import { DataPointSelection } from '../../../types/SeriesMeasure';
4
4
  import { ApexOptions } from "apexcharts";
@@ -9,7 +9,7 @@ declare type ApexChartProps = {
9
9
  dataBinding: DashboardDataBinding;
10
10
  onSelectDataPoint: (dataPointSelection: DataPointSelection) => void;
11
11
  };
12
- declare const ApexChart: (props: ApexChartProps) => JSX.Element;
12
+ declare const ApexChart: (props: ApexChartProps) => React.JSX.Element;
13
13
  export declare type ApexChartArgs = {
14
14
  options: ApexOptions;
15
15
  series: ApexAxisChartSeries | ApexNonAxisChartSeries;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { DashboardDataBinding } from "../../../../types/DashboardDataBinding";
3
3
  import { DataPointSelection } from "../../../../types/SeriesMeasure";
4
4
  import { ReactWidgetPM } from "../../../../types/widget";
@@ -8,5 +8,5 @@ export declare type CustomChartProps = {
8
8
  dataBinding: DashboardDataBinding;
9
9
  onSelectDataPoint: (dataPointSelection: DataPointSelection) => void;
10
10
  };
11
- declare const CustomChart: (props: CustomChartProps) => JSX.Element;
11
+ declare const CustomChart: (props: CustomChartProps) => React.JSX.Element;
12
12
  export default CustomChart;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { CustomChartProps } from "./CustomChart";
3
3
  declare type KpiChartProps = {
4
4
  customChartProps: CustomChartProps;
5
5
  };
6
- declare const KpiChart: (props: KpiChartProps) => JSX.Element;
6
+ declare const KpiChart: (props: KpiChartProps) => React.JSX.Element;
7
7
  export default KpiChart;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare function FusionChartTest(): JSX.Element;
1
+ import React from 'react';
2
+ declare function FusionChartTest(): React.JSX.Element;
3
3
  export default FusionChartTest;
@@ -69,11 +69,13 @@ export interface ChartInfo {
69
69
  sYAxisNameBorderPadding: number;
70
70
  pYAxisNameBorderPadding: number;
71
71
  xAxisNameFont: string;
72
+ xAxisName: string;
72
73
  xAxisNameFontSize: string;
73
74
  xAxisNameFontColor: string;
74
75
  yAxisNameFont: string;
75
76
  yAxisNameFontSize: string;
76
77
  yAxisNameFontColor: string;
78
+ yAxisName: string;
77
79
  adjustDiv: string;
78
80
  }
79
81
  export declare function getSeriesPositionColor(position: number): string | null;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { Layouts } from "react-grid-layout";
2
+ import React from "react";
3
3
  import { ReactWidgetPM } from "../../types/widget";
4
4
  import { DataPointSelection } from "../../types/SeriesMeasure";
5
5
  import { DashboardDataBinding } from "../../types/DashboardDataBinding";
@@ -13,7 +13,7 @@ declare type DashboardDesignerProps = {
13
13
  dataBinding: DashboardDataBinding;
14
14
  onSelectDataPoint: (dataPointSelection: DataPointSelection) => void;
15
15
  };
16
- declare const DashboardDesigner: (props: DashboardDesignerProps) => JSX.Element;
16
+ declare const DashboardDesigner: (props: DashboardDesignerProps) => React.JSX.Element;
17
17
  export declare const layoutGridProps: {
18
18
  rowHeight: number;
19
19
  className: string;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import "./styles.module.css";
3
3
  import { ReactWidgetPM } from './types/widget';
4
4
  import { DashboardDataBinding } from './types/DashboardDataBinding';
@@ -16,5 +16,5 @@ declare type DashboardProps = {
16
16
  openEditWidget: (Widget: ReactWidgetPM) => void;
17
17
  onSelectDataPoint: (dataPointSelection: DataPointSelection) => void;
18
18
  };
19
- declare const Dashboard: (props: DashboardProps) => JSX.Element;
19
+ declare const Dashboard: (props: DashboardProps) => React.JSX.Element;
20
20
  export default Dashboard;