logitude-dashboard-library 3.2.12 → 3.2.14

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,7 @@
1
1
  import { ReactWidgetPM } from "../types/widget";
2
2
  declare const getLabelFormatByDateGroupType: (label: string, widget: ReactWidgetPM, isSecondGrouping?: boolean) => any;
3
- export { getLabelFormatByDateGroupType };
3
+ declare const getDateRangesByCode: (code: string | null) => {
4
+ fromDate: any;
5
+ toDate: any;
6
+ };
7
+ export { getLabelFormatByDateGroupType, getDateRangesByCode };
@@ -1,3 +1,7 @@
1
1
  declare const isNullOrUndefined: (val: any) => boolean;
2
2
  declare const isNullOrUndefinedOrEmpty: (val: any) => boolean;
3
- export { isNullOrUndefined, isNullOrUndefinedOrEmpty };
3
+ declare const getGlobalNumberFormatting: () => {
4
+ thousandsSeparator: string;
5
+ decimalSeparator: string;
6
+ };
7
+ export { isNullOrUndefined, isNullOrUndefinedOrEmpty, getGlobalNumberFormatting };
@@ -278,7 +278,7 @@ $dark-grey: #717585;
278
278
 
279
279
  .header-contents {
280
280
  display: flex;
281
-
281
+
282
282
  .widget-titles-container {
283
283
  display: flex;
284
284
  flex-wrap: wrap;
@@ -326,12 +326,94 @@ $dark-grey: #717585;
326
326
  width: 100%;
327
327
  }
328
328
  }
329
+
330
+ .widget-table-titles-container {
331
+ display: flex;
332
+ flex: 1;
333
+ align-items: center;
334
+ justify-content: flex-start;
335
+ padding: 0px 12px;
336
+ min-height: 40px;
337
+ min-width: 100px;
338
+ width: 100%;
339
+ max-width: calc(100% - 170px);
340
+ overflow: hidden;
329
341
 
342
+ .title-container {
343
+ display: flex;
344
+ align-items: center;
345
+ justify-content: left;
346
+ white-space: nowrap;
347
+ overflow: hidden;
348
+ text-overflow: ellipsis;
349
+ width: auto;
350
+ max-width: 60%;
351
+
352
+ .title {
353
+ text-transform: capitalize;
354
+ font-family: 'Manrope', sans-serif;
355
+ font-style: normal;
356
+ color: #292D30;
357
+ font-size: 12px;
358
+ font-weight: 600;
359
+ white-space: nowrap;
360
+ overflow: hidden;
361
+ text-overflow: ellipsis;
362
+ width: auto;
363
+ }
364
+ }
365
+
366
+ .subtitle {
367
+ font-family: "Manrope", sans-serif;
368
+ font-style: normal;
369
+ color: #A4A4A4;
370
+ font-size: 12px;
371
+ font-weight: 600;
372
+ white-space: nowrap;
373
+ overflow: hidden;
374
+ text-overflow: ellipsis;
375
+ width: auto;
376
+ max-width: 40%;
377
+ }
378
+
379
+ .titles-vertical-seeparator {
380
+ width: 1px;
381
+ height: 14px;
382
+ background: #D9D9D9;
383
+ margin: 0px 6px;
384
+ }
385
+ }
386
+
387
+ .table-hint-container {
388
+ font-family: "Manrope";
389
+ width: auto;
390
+ max-width: 300px;
391
+ text-overflow: ellipsis;
392
+ overflow: hidden;
393
+ white-space: nowrap;
394
+ min-width: 1px;
395
+ padding-top: 2px;
396
+ font-size: 11px;
397
+ color: #A4A4A4;
398
+ padding-right: 12px;
399
+ align-self: center;
400
+
401
+ .show-more-records {
402
+ color: #5FAFDA;
403
+ cursor: pointer;
404
+ }
405
+
406
+ & > span {
407
+ font-size: 12px;
408
+ }
409
+ }
410
+
330
411
  .widget-options-container {
331
412
  display: flex;
332
413
  align-items: center;
333
414
  width: 68px;
334
415
  column-gap: 6px;
416
+ padding-top: 6px;
335
417
 
336
418
  svg {
337
419
  width: 20px;
@@ -388,25 +470,6 @@ $dark-grey: #717585;
388
470
  align-items: flex-start;
389
471
  }
390
472
 
391
- .table-hint-container {
392
- display: flex;
393
- align-items: center;
394
- justify-content: flex-start;
395
-
396
- .table-rows-number-indicator {
397
- margin: 4px 0px 2px 0px;
398
- color: #939393;
399
- font-size: 11px;
400
- padding-left: 12px;
401
- }
402
- .show-more-records {
403
- font-size: 11px;
404
- color: #1967d2;
405
- cursor: pointer;
406
- margin: 3px 0px 2px 4px;
407
- }
408
- }
409
-
410
473
  .filter-label {
411
474
  font-size: 12px;
412
475
  color: $dark-grey;
@@ -667,16 +730,35 @@ $dark-grey: #717585;
667
730
  color: #292D30;
668
731
  }
669
732
 
670
- .dl-kpi-unit {
733
+ .dl-kpi-unit, .comparison-value-dl-kpi-unit {
671
734
  font-family: 'Manrope';
672
735
  font-style: normal;
673
736
  font-weight: 600;
674
- font-size: 20px;
675
737
  line-height: 125%;
676
738
  color: #292D30;
677
739
  margin-left: 5px;
678
740
  }
679
741
 
742
+ .dl-kpi-unit {
743
+ font-size: 20px;
744
+ }
745
+
746
+ .comparison-value-dl-kpi-unit {
747
+ font-size: 12px;
748
+ }
749
+
750
+ .table-cell {
751
+ font-family: 'Manrope';
752
+ padding: 0px 6px;
753
+ border-radius: 4px;
754
+ white-space: nowrap;
755
+ overflow: hidden;
756
+ text-overflow: ellipsis;
757
+ display: block;
758
+ width: fit-content;
759
+ max-width: 100%;
760
+ }
761
+
680
762
  .dl-kpi-abbreviationSymbol {
681
763
  font-family: 'Manrope';
682
764
  font-style: normal;
@@ -732,12 +814,12 @@ $dark-grey: #717585;
732
814
  .dl-table-chart-container {
733
815
  overflow: auto;
734
816
  position: absolute;
735
- top: 22px;
817
+ top: -1px;
736
818
  right: 0;
737
819
  left: 0;
738
820
  bottom: 0;
739
- height: calc(100% - 35px);
740
- width: calc(100% - 25px);
821
+ height: calc(100% - 10px);
822
+ width: 100%;
741
823
  margin: 0 auto;
742
824
 
743
825
  &::-webkit-scrollbar {
@@ -766,27 +848,27 @@ $dark-grey: #717585;
766
848
  overflow-x: inherit;
767
849
  }
768
850
 
769
-
770
- td,
771
- th {
772
- border: 1px solid #ddd;
773
- padding: 8px;
774
- }
775
-
776
851
  th {
777
852
  text-align: left;
778
853
  font-weight: bold;
779
854
  font-size: 14px;
780
855
  white-space: nowrap;
781
856
  padding: 0px !important;
857
+ position: sticky;
858
+ top: 0px;
859
+ z-index: 1;
860
+ border: 0px !important;
782
861
 
783
862
  .p-column-header-content {
784
863
  padding: 0;
864
+ border: 1px solid #E7E7E6;
865
+ border-width: 0 0 1px 0;
785
866
  }
786
867
 
787
868
  .p-column-title {
788
- font-weight: bold !important;
789
- font-size: 14px;
869
+ font-family: 'Manrope';
870
+ font-weight: 600 !important;
871
+ font-size: 13px;
790
872
  flex: 1;
791
873
  }
792
874
 
@@ -794,13 +876,18 @@ $dark-grey: #717585;
794
876
  display: flex;
795
877
  align-items: center;
796
878
  cursor: pointer;
797
- padding: 1rem 1rem;
879
+ padding: 11px 12px;
798
880
  }
799
881
  }
800
882
 
883
+ th:not(:last-child) .header-content {
884
+ border-right: 1px solid #E7E7E6;
885
+ }
886
+
801
887
  td {
802
- border: 1px solid #ddd;
803
- padding: 0.5rem 1rem !important;
888
+ border: 1px solid #E7E7E6 !important;
889
+ border-width: 0 0 1px 0 !important;
890
+ padding: 0px 6px !important;
804
891
  max-width: 1px;
805
892
  height: 36px;
806
893
  min-width: 140px;
@@ -816,16 +903,16 @@ $dark-grey: #717585;
816
903
  line-height: 10px;
817
904
  }
818
905
 
819
- tbody tr td{
820
- font-size: 14px;
906
+ tbody tr:last-child td {
907
+ border: 0px !important
821
908
  }
822
909
 
823
- tr:nth-child(even) {
824
- background-color: #f2f2f2;
910
+ tbody tr td{
911
+ font-size: 14px;
825
912
  }
826
913
 
827
914
  tr:hover {
828
- background-color: #ddd;
915
+ background-color: #f3f3f3;
829
916
  }
830
917
 
831
918
  .p-datatable .p-sortable-column.p-highlight:not(.p-sortable-disabled):hover,
@@ -909,4 +996,18 @@ $dark-grey: #717585;
909
996
 
910
997
  .fc__tooltip {
911
998
  max-width: 350px !important;
999
+ }
1000
+
1001
+ .border-bottom-light-white {
1002
+ border-bottom: 1px solid #E7E7E6;
1003
+ }
1004
+
1005
+ .padding-left-12 {
1006
+ padding-left: 12px !important;
1007
+ }
1008
+
1009
+ .table-link-cell {
1010
+ color: #1E4AC4 !important;
1011
+ cursor: pointer;
1012
+ text-decoration: underline;
912
1013
  }
@@ -3,5 +3,27 @@ import { CustomChartProps } from "./CustomChart";
3
3
  declare type KpiChartProps = {
4
4
  customChartProps: CustomChartProps;
5
5
  };
6
+ export declare type kPIComparisonSettingsProps = {
7
+ PeriodFieldId: string | null;
8
+ PeriodDateFilter: {
9
+ FieldValue: string | null;
10
+ FieldValue2: string | null;
11
+ DatePickerTextFieldValue: string | null;
12
+ DateTimeValueCode: string;
13
+ DateGroupCode: string | null;
14
+ Operator: string | null;
15
+ };
16
+ ComparePeriodDateFilter: {
17
+ FieldValue: string | null;
18
+ FieldValue2: string | null;
19
+ DatePickerTextFieldValue: string | null;
20
+ DateTimeValueCode: string;
21
+ DateGroupCode: string | null;
22
+ Operator: string | null;
23
+ };
24
+ ComparisonPeriodType: string | null;
25
+ ComparisonIndicator: boolean;
26
+ ComparisonIncrease: string | null;
27
+ };
6
28
  declare const KpiChart: (props: KpiChartProps) => React.JSX.Element;
7
29
  export default KpiChart;
@@ -2,3 +2,4 @@ import { ChartObject } from "fusioncharts";
2
2
  import { SeriesMeasure } from "../../../../types/SeriesMeasure";
3
3
  import { ReactWidgetPM } from "../../../../types/widget";
4
4
  export declare function BuildFusionChartObject(seriesMeasures: SeriesMeasure[], widget: ReactWidgetPM): ChartObject;
5
+ export declare const getGaugeObject: (data: any, widget: ReactWidgetPM) => ChartObject;
@@ -85,6 +85,14 @@ export interface ChartInfo {
85
85
  drawCrossLine: string;
86
86
  palettecolors: string;
87
87
  plotHoverEffect: string;
88
+ numberSuffix: string | null;
89
+ sNumberSuffix: string | null;
90
+ decimalSeparator: string | null;
91
+ thousandSeparator: string | null;
92
+ formatNumberScale: string | null;
93
+ manageResize: string | null;
94
+ valueBelowPivot: string | null;
95
+ showValue: string | null;
88
96
  }
89
97
  export declare function getSeriesPositionColor(position: number): string | null;
90
98
  export declare function getSeriesHoverPositionColor(position: number): string | null;
@@ -31,4 +31,6 @@ export declare const plotColorsDictionary: {
31
31
  plotColor11: string;
32
32
  plotColor12: string;
33
33
  plotColor13: string;
34
+ plotColor14: string;
35
+ plotColor15: string;
34
36
  };
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { DashboardDataBinding } from "../../../../types/DashboardDataBinding";
3
+ import { DataPointSelection } from "../../../../types/SeriesMeasure";
4
+ import { ReactWidgetPM } from "../../../../types/widget";
5
+ export declare type FusionChartProps = {
6
+ widget: ReactWidgetPM | undefined;
7
+ widgetRef: ReactWidgetPM | undefined;
8
+ dataBinding: DashboardDataBinding;
9
+ onSelectDataPoint: (dataPointSelection: DataPointSelection) => void;
10
+ };
11
+ declare const FusionChart: React.ForwardRefExoticComponent<FusionChartProps & React.RefAttributes<unknown>>;
12
+ export default FusionChart;
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ declare type DashboardProps = {
8
8
  token: string;
9
9
  tenant: number;
10
10
  userId: string;
11
+ numberFormatCode?: string | null;
11
12
  isPreviewMode: boolean;
12
13
  widgetData: ReactWidgetPM | undefined;
13
14
  dataBinding: DashboardDataBinding;