logitude-dashboard-library 1.4.4 → 1.4.6

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 (31) hide show
  1. package/dist/assets/fonts/manrope-bold.woff +0 -0
  2. package/dist/assets/fonts/manrope-light.woff +0 -0
  3. package/dist/assets/fonts/manrope-medium.woff +0 -0
  4. package/dist/assets/fonts/manrope-regular.woff +0 -0
  5. package/dist/assets/fonts/manrope-semibold.woff +0 -0
  6. package/dist/assets/fonts/manrope-thin.woff +0 -0
  7. package/dist/assets/styles/dl-dashboard.scss +56 -12
  8. package/dist/features/Dashboard/ChartsComponents/ApexChart.d.ts +0 -1
  9. package/dist/features/Dashboard/ChartsComponents/CustomCharts/CustomChart.d.ts +0 -1
  10. package/dist/features/Dashboard/ChartsComponents/CustomCharts/KpiChart.d.ts +0 -1
  11. package/dist/features/Dashboard/ChartsComponents/FusionChart.d.ts +0 -1
  12. package/dist/features/Dashboard/ChartsComponents/FusionChartDataSoruceBuilder.d.ts +4 -0
  13. package/dist/features/Dashboard/ChartsComponents/FusionChartObjectBuilder.d.ts +2 -2
  14. package/dist/features/Dashboard/ChartsComponents/FusionChartTest.d.ts +0 -1
  15. package/dist/features/Dashboard/ChartsComponents/FusionCharts/FusionChart.d.ts +11 -0
  16. package/dist/features/Dashboard/ChartsComponents/FusionCharts/FusionChartDataSoruceBuilder.d.ts +4 -0
  17. package/dist/features/Dashboard/ChartsComponents/FusionCharts/FusionChartObjectBuilder.d.ts +36 -0
  18. package/dist/features/Dashboard/ChartsComponents/FusionCharts/FusionColors.d.ts +18 -0
  19. package/dist/features/Dashboard/DashboardDesigner.d.ts +0 -1
  20. package/dist/features/Dashboard/WidgetCard.d.ts +0 -1
  21. package/dist/features/Dashboard/dashboard-dialog/dashboard-dialog-component.d.ts +0 -1
  22. package/dist/index.d.ts +0 -1
  23. package/dist/index.js +213 -167
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.modern.js +213 -167
  26. package/dist/index.modern.js.map +1 -1
  27. package/dist/styles/dl-dashboard.scss +141 -25
  28. package/dist/styles/fonts.scss +0 -4
  29. package/package.json +1 -1
  30. package/dist/features/Dashboard/ChartsComponents/CustomChart.d.ts +0 -11
  31. package/dist/features/Dashboard/ChartsComponents/FusionCharts.d.ts +0 -12
@@ -1,4 +1,4 @@
1
- @import url('https://fonts.cdnfonts.com/css/manrope');
1
+ @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
2
2
 
3
3
  $blue: #2C99F7;
4
4
  $bg-color: #ffffff;
@@ -311,7 +311,7 @@ $dark-grey: #717585;
311
311
  h1 {
312
312
  text-transform: capitalize;
313
313
  font-size: 15px;
314
- font-family: 'Manrope';
314
+ font-family: 'Manrope', sans-serif;
315
315
  font-style: normal;
316
316
  color: #292D30;
317
317
  margin-top: 0;
@@ -442,14 +442,14 @@ $dark-grey: #717585;
442
442
 
443
443
 
444
444
  .kpIcontainer {
445
+ width: 100%;
445
446
  height: 100%;
446
- flex-direction: column;
447
+ flex-direction: row;
447
448
  box-sizing: border-box;
448
- display: flex;
449
- place-content: center;
450
- align-items: center;
449
+ display: inline-block;
451
450
  gap: 20px;
452
451
  cursor: pointer;
452
+
453
453
  }
454
454
 
455
455
  .kpIHeader {
@@ -481,15 +481,15 @@ $dark-grey: #717585;
481
481
  }
482
482
 
483
483
  .dl-kpi-arrow-up {
484
- border-left: 10px solid transparent;
485
- border-right: 10px solid transparent;
486
- border-bottom: 10px solid greenyellow;
484
+ border-left: 5px solid transparent;
485
+ border-right: 5px solid transparent;
486
+ border-bottom: 4px solid #4AC76F;
487
487
  }
488
488
 
489
489
  .dl-kpi-arrow-down {
490
- border-left: 10px solid transparent;
491
- border-right: 10px solid transparent;
492
- border-top: 10px solid red;
490
+ border-left: 5px solid transparent;
491
+ border-right: 5px solid transparent;
492
+ border-top: 4px solid red;
493
493
  }
494
494
 
495
495
  .dl-kpi-same-line {
@@ -499,4 +499,48 @@ $dark-grey: #717585;
499
499
 
500
500
  .dl-kpi-margin {
501
501
  margin-right: 4px;
502
+ }
503
+
504
+ .dl-kpi-value{
505
+ height: 31px;
506
+
507
+ font-family: 'Manrope';
508
+ font-style: normal;
509
+ font-weight: 700;
510
+ font-size: 26px;
511
+ line-height: 120%;
512
+ color: #292D30;
513
+ padding-left: 12px;
514
+
515
+ }
516
+ .dl-kpi-unit {
517
+ font-family: 'Manrope';
518
+ font-style: normal;
519
+ font-weight: 600;
520
+ font-size: 20px;
521
+ line-height: 125%;
522
+ color: #292D30;
523
+ padding-left: 4px;
524
+ padding-top: 5px;
525
+
526
+ }
527
+
528
+ .dl-kpi-ratio {
529
+ height: 15px;
530
+ font-family: 'Manrope';
531
+ font-style: normal;
532
+ font-weight: 500;
533
+ font-size: 11px;
534
+ line-height: 15px;
535
+ text-align: right;
536
+
537
+ color: #A4A4A4;
538
+ padding-left: 15px;
539
+ padding-top: 12px;
540
+ padding-right: 10px;
541
+ }
542
+ .dl-kpi-textTrimming {
543
+ overflow: hidden;
544
+ white-space: nowrap;
545
+ text-overflow: ellipsis;
502
546
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ReactWidgetPM } from "../../../types/widget";
3
2
  import { DataPointSelection } from '../../../types/SeriesMeasure';
4
3
  import { ApexOptions } from "apexcharts";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DashboardDataBinding } from "../../../../types/DashboardDataBinding";
3
2
  import { DataPointSelection } from "../../../../types/SeriesMeasure";
4
3
  import { ReactWidgetPM } from "../../../../types/widget";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { KpiChart } from "../../../../types/KpiChart";
3
2
  import { CustomChartProps } from "./CustomChart";
4
3
  declare type KpiChartProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DashboardDataBinding } from "../../../types/DashboardDataBinding";
3
2
  import { DataPointSelection } from "../../../types/SeriesMeasure";
4
3
  import { ReactWidgetPM } from "../../../types/widget";
@@ -0,0 +1,4 @@
1
+ import { SeriesMeasure } from "../../../types/SeriesMeasure";
2
+ import { ChartInfo } from "./FusionChartObjectBuilder";
3
+ export declare function getCategoriesBasedDataSource(chartInfo: ChartInfo, seriesMeasures: SeriesMeasure[]): any;
4
+ export declare function getSimpleDataSource(chartInfo: ChartInfo, seriesMeasures: SeriesMeasure[]): any;
@@ -1,4 +1,4 @@
1
1
  import { ChartObject } from "fusioncharts";
2
2
  import { SeriesMeasure } from "../../../types/SeriesMeasure";
3
- import { FusionChartProps } from "./FusionChart";
4
- export declare function BuildFusionChartObject(seriesMeasures: SeriesMeasure[], props: FusionChartProps): ChartObject;
3
+ import { ReactWidgetPM } from "../../../types/widget";
4
+ export declare function BuildFusionChartObject(seriesMeasures: SeriesMeasure[], widget: ReactWidgetPM): ChartObject;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare function FusionChartTest(): JSX.Element;
3
2
  export default FusionChartTest;
@@ -0,0 +1,11 @@
1
+ import { DashboardDataBinding } from "../../../../types/DashboardDataBinding";
2
+ import { DataPointSelection } from "../../../../types/SeriesMeasure";
3
+ import { ReactWidgetPM } from "../../../../types/widget";
4
+ export declare type FusionChartProps = {
5
+ widget: ReactWidgetPM | undefined;
6
+ widgetRef: ReactWidgetPM | undefined;
7
+ dataBinding: DashboardDataBinding;
8
+ onSelectDataPoint: (dataPointSelection: DataPointSelection) => void;
9
+ };
10
+ declare const FusionChart: (props: FusionChartProps) => JSX.Element;
11
+ export default FusionChart;
@@ -0,0 +1,4 @@
1
+ import { SeriesMeasure } from "../../../../types/SeriesMeasure";
2
+ import { ChartInfo } from "./FusionChartObjectBuilder";
3
+ export declare function getCategoriesBasedDataSource(chartInfo: ChartInfo, seriesMeasures: SeriesMeasure[]): any;
4
+ export declare function getSimpleDataSource(chartInfo: ChartInfo, seriesMeasures: SeriesMeasure[]): any;
@@ -0,0 +1,36 @@
1
+ import { ChartObject } from "fusioncharts";
2
+ import { SeriesMeasure } from "../../../../types/SeriesMeasure";
3
+ import { ReactWidgetPM } from "../../../../types/widget";
4
+ export declare function BuildFusionChartObject(seriesMeasures: SeriesMeasure[], widget: ReactWidgetPM): ChartObject;
5
+ export interface ChartInfo {
6
+ theme: string;
7
+ scrollHeight: string;
8
+ scrollWidth: string;
9
+ scrollPadding: string;
10
+ flatScrollBars: string;
11
+ enableSlicing: string;
12
+ chartLeftMargin: string;
13
+ chartTopMargin: string;
14
+ chartRightMargin: string;
15
+ chartBottomMargin: string;
16
+ baseFont: string;
17
+ baseFontSize: string;
18
+ showPercentValues: string;
19
+ showValues: string;
20
+ showLegend: string;
21
+ lineColor: string;
22
+ vDivLineDashed: string;
23
+ vDivLineDashLen: string;
24
+ divLineDashed: string;
25
+ divLineDashLen: string;
26
+ enableRotation: string;
27
+ legendItemFont: string;
28
+ legendItemFontSize: string;
29
+ legendCaptionFont: string;
30
+ legendCaptionFontSize: string;
31
+ labelFont: string;
32
+ labelFontSize: string;
33
+ plottooltext: string;
34
+ }
35
+ export declare function getTooltip(): string;
36
+ export declare function getSeriesPositionColor(position: number): string | null;
@@ -0,0 +1,18 @@
1
+ export declare const mainYellowColor = "#F6CF33";
2
+ export declare const mainRedColor = "#EE5F77";
3
+ export declare const mainGreenColor = "#4AC76F";
4
+ export declare const mainTurquoiseColor = "#32C7C7";
5
+ export declare const mainBlueColor = "#369CFB";
6
+ export declare const mainPurpleColor = "#935BE0";
7
+ export declare const mainOrangeColor = "#FAAD14";
8
+ export declare const lightYellowColor = "#FBE799";
9
+ export declare const lightRedColor = "#F7AFBB";
10
+ export declare const lightGreenColor = "#A4E3B7";
11
+ export declare const lightTurquoiseColor = "#99E3E3";
12
+ export declare const lightBlueColor = "#9BCDFD";
13
+ export declare const lightPurpleColor = "#C9ADF0";
14
+ export declare const lightOrangeColor = "#FDD689";
15
+ export declare const grey1Color = "#F6F6F6";
16
+ export declare const grey2Color = "#F0F0F0";
17
+ export declare const grey3Color = "#D9D9D9";
18
+ export declare const grey4Color = "#A4A4A4";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Layouts } from "react-grid-layout";
3
2
  import { ReactWidgetPM } from "../../types/widget";
4
3
  import { DataPointSelection } from "../../types/SeriesMeasure";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataPointSelection } from "../../types/SeriesMeasure";
3
2
  import { ReactWidgetPM } from "../../types/widget";
4
3
  import { DashboardDataBinding } from '../../types/DashboardDataBinding';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare type DashboardDialogProps = {
3
2
  display: boolean;
4
3
  onClose: () => void;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./styles.module.css";
3
2
  import { ReactWidgetPM } from './types/widget';
4
3
  import { DashboardDataBinding } from './types/DashboardDataBinding';