logitude-dashboard-library 1.2.27 → 1.2.30

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.
@@ -25,10 +25,25 @@ $dark-grey: #717585;
25
25
 
26
26
  .dl-dashboard-header {
27
27
  display: flex;
28
- flex-direction: row-reverse;
28
+ justify-content: space-between;
29
29
 
30
30
  }
31
-
31
+ .dl-flex-row{
32
+ display: flex;
33
+
34
+ flex-direction: row;
35
+ }
36
+ .dl-title-1{
37
+ text-transform: capitalize;
38
+ font-size: 20px;
39
+ font-family: "Roboto Flex";
40
+ color: #061436;
41
+ display: flex;
42
+ align-content: center;
43
+ align-items: center;
44
+ font-weight: bolder;
45
+ padding: 0px 0px 0 13px;
46
+ }
32
47
  .dl-heder-row{
33
48
  width: 100%;
34
49
  display: flex;
@@ -1,6 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import ColumnChartComponent from "./ChartsComponents/ColumnChartComponent";
3
- declare const DashboardDesigner: () => JSX.Element;
3
+ import { RactWidgetPM } from "../../types/widget";
4
+ declare type DashboardDesignerProps = {
5
+ openEditWidget: (widget: RactWidgetPM) => void;
6
+ };
7
+ declare const DashboardDesigner: (props: DashboardDesignerProps) => JSX.Element;
4
8
  export declare const layoutGridProps: {
5
9
  rowHeight: number;
6
10
  className: string;
@@ -1,30 +0,0 @@
1
- import React from "react";
2
- import { DropdownChangeParams } from "primereact/dropdown";
3
- import { Widget } from "../../types/widget";
4
- interface NewWidgetProps {
5
- onOkButton(data: Widget): any;
6
- onCancelButton(): any;
7
- widget: Widget | null;
8
- }
9
- interface NewWidgetState {
10
- Widget: Widget;
11
- objectTables: any[];
12
- objectFields: any[];
13
- }
14
- declare class NewWidget extends React.Component<NewWidgetProps, NewWidgetState> {
15
- constructor(props: NewWidgetProps | Readonly<NewWidgetProps>);
16
- getData(): void;
17
- getObjectTables(): void;
18
- getObjectFields(): void;
19
- selectedTable: any;
20
- onEntityChanged: (e: DropdownChangeParams) => void;
21
- onGroupChanged: (e: DropdownChangeParams) => void;
22
- selectedValueField: {
23
- Id: string | null;
24
- FieldName: string | null;
25
- };
26
- onValueChanged: (e: DropdownChangeParams) => void;
27
- onCalcTypeChanged: (e: DropdownChangeParams) => void;
28
- render(): JSX.Element;
29
- }
30
- export default NewWidget;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import "./styles.module.css";
3
+ import { RactDashboardPM } from './types/Dashboard';
4
+ import { RactWidgetPM } from './types/widget';
3
5
  declare type DashboardProps = {
4
6
  token: string;
5
7
  tenant: number;
6
8
  userId: string;
9
+ dashboard: RactDashboardPM;
10
+ openAddEditWidget: (widget: RactWidgetPM) => void;
11
+ openAddEditDashboard: (dashboard: RactDashboardPM) => void;
12
+ onChangeDashboard: (dashboard: RactDashboardPM) => void;
13
+ onSaveDashboard: (dashboard: RactDashboardPM) => void;
7
14
  };
8
15
  declare const Dashboard: (props: DashboardProps) => JSX.Element;
9
16
  export default Dashboard;