logitude-dashboard-library 1.2.10 → 1.2.11
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.
- package/dist/assets/styles/dl-dashboard.scss +64 -9
- package/dist/features/Dashboard/DashboardDesigner.d.ts +22 -54
- package/dist/index.js +244 -309
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +245 -310
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -40,7 +40,7 @@ $dark-grey: #717585;
|
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.grid {
|
|
43
|
+
.dl-grid {
|
|
44
44
|
display: grid;
|
|
45
45
|
grid-template-columns: repeat(12, 1fr);
|
|
46
46
|
grid-column-gap: 10px;
|
|
@@ -54,6 +54,69 @@ $dark-grey: #717585;
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
}
|
|
57
|
+
.dl-grid-container {
|
|
58
|
+
position: relative;
|
|
59
|
+
|
|
60
|
+
.react-grid-layout {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 0;
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.dl-relativ-container{
|
|
67
|
+
|
|
68
|
+
position: relative;
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
.dl-scroll-container{
|
|
74
|
+
position: absolute;
|
|
75
|
+
left: 0;
|
|
76
|
+
top: 0;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
overflow-y: scroll;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dl-flex-stretch{
|
|
83
|
+
height: 100%;
|
|
84
|
+
flex-direction: row;
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
display: flex;
|
|
87
|
+
place-content: stretch;
|
|
88
|
+
align-items: stretch;
|
|
89
|
+
max-height: 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dl-box {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-flow: column;
|
|
95
|
+
height: 100%;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.dl-box .dl-row {
|
|
99
|
+
border: 1px dotted grey;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.dl-box .dl-row.dl-header {
|
|
103
|
+
flex: 0 1 auto;
|
|
104
|
+
/* The above is shorthand for:
|
|
105
|
+
flex-grow: 0,
|
|
106
|
+
flex-shrink: 1,
|
|
107
|
+
flex-basis: auto
|
|
108
|
+
*/
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.dl-box .dl-row.dl-content {
|
|
112
|
+
flex: 1 1 auto;
|
|
113
|
+
overflow-y: scroll;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.dl-box .dl-row.dl-footer {
|
|
117
|
+
flex: 0 1 40px;
|
|
118
|
+
}
|
|
119
|
+
|
|
57
120
|
|
|
58
121
|
|
|
59
122
|
|
|
@@ -163,15 +226,7 @@ $dark-grey: #717585;
|
|
|
163
226
|
}
|
|
164
227
|
|
|
165
228
|
|
|
166
|
-
.grid-container {
|
|
167
|
-
position: relative;
|
|
168
229
|
|
|
169
|
-
.react-grid-layout {
|
|
170
|
-
position: absolute;
|
|
171
|
-
top: 0;
|
|
172
|
-
width: 100%;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
230
|
|
|
176
231
|
|
|
177
232
|
|
|
@@ -1,56 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
cols: {
|
|
14
|
-
lg: number;
|
|
15
|
-
md: number;
|
|
16
|
-
sm: number;
|
|
17
|
-
xs: number;
|
|
18
|
-
xxs: number;
|
|
19
|
-
};
|
|
20
|
-
useCSSTransforms: boolean;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import ColumnChartComponent from "./ChartsComponents/ColumnChartComponent";
|
|
3
|
+
declare const DashboardDesigner: () => JSX.Element;
|
|
4
|
+
export declare const layoutGridProps: {
|
|
5
|
+
rowHeight: number;
|
|
6
|
+
className: string;
|
|
7
|
+
cols: {
|
|
8
|
+
lg: number;
|
|
9
|
+
md: number;
|
|
10
|
+
sm: number;
|
|
11
|
+
xs: number;
|
|
12
|
+
xxs: number;
|
|
21
13
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
SaveGrid(): void;
|
|
34
|
-
hideDialog: () => void;
|
|
35
|
-
reset(): void;
|
|
36
|
-
setToken(): void;
|
|
37
|
-
changeTitle(i: any): void;
|
|
38
|
-
selectedWidget: any;
|
|
39
|
-
addComponent(componentType: any): void;
|
|
40
|
-
onOkButton: (data: any) => void;
|
|
41
|
-
onCancelButton: () => void;
|
|
42
|
-
saveToStorage: (key: any, value: any) => void;
|
|
43
|
-
getFromStorage: (key: any) => any;
|
|
44
|
-
FindWidget(el: any): any;
|
|
45
|
-
toggleDialog(): void;
|
|
46
|
-
toggleWidget(widget: any): void;
|
|
47
|
-
getRandomInt(min: any, max: any): any;
|
|
48
|
-
widgetToEdit: any;
|
|
49
|
-
renderNewWidgetDialog(): JSX.Element;
|
|
50
|
-
renderPageHeader(): JSX.Element;
|
|
51
|
-
renderGridWidgetsPlaceholder(): JSX.Element;
|
|
52
|
-
renderLayoutGrid(layout: any): JSX.Element;
|
|
53
|
-
renderWidgetComponent(el: any): JSX.Element;
|
|
54
|
-
render(): JSX.Element;
|
|
55
|
-
}
|
|
14
|
+
useCSSTransforms: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const WidgetTypes: {
|
|
17
|
+
Name: string;
|
|
18
|
+
Disabled: boolean;
|
|
19
|
+
}[];
|
|
20
|
+
export declare const widgetComponents: {
|
|
21
|
+
type: string;
|
|
22
|
+
component: typeof ColumnChartComponent;
|
|
23
|
+
}[];
|
|
56
24
|
export default DashboardDesigner;
|