logitude-dashboard-library 1.2.6 → 1.2.9
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 +214 -0
- package/dist/features/Dashboard/DashboardDesigner.d.ts +54 -22
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +346 -295
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +347 -296
- package/dist/index.modern.js.map +1 -1
- package/package.json +7 -9
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
$blue: #2C99F7;
|
|
2
|
+
$bg-color: #F5F6FB;
|
|
3
|
+
$gray: #F5F6FB;
|
|
4
|
+
$green: #22D792;
|
|
5
|
+
$yellow: #FBC445;
|
|
6
|
+
$red: #F74E49;
|
|
7
|
+
$dark-grey: #717585;
|
|
8
|
+
|
|
9
|
+
.dl-dashboard-body {
|
|
10
|
+
background: $bg-color;
|
|
11
|
+
height: 100%;
|
|
12
|
+
padding: 2px;
|
|
13
|
+
margin: 0;
|
|
14
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
15
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
16
|
+
sans-serif;
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
border-radius: 12px;
|
|
20
|
+
box-shadow: -1px 1px 24px -2px rgba(94, 94, 94, 0.84);
|
|
21
|
+
-webkit-box-shadow: -1px 1px 24px -2px rgba(94, 94, 94, 0.84);
|
|
22
|
+
-moz-box-shadow: -1px 1px 24px -2px rgba(94, 94, 94, 0.84);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.dl-dashboard-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dl-heder-row{
|
|
33
|
+
width: 100%;
|
|
34
|
+
display: flex;
|
|
35
|
+
padding: 0px 11px;
|
|
36
|
+
flex-direction: row-reverse;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dl-full-hight{
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.grid {
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-columns: repeat(12, 1fr);
|
|
46
|
+
grid-column-gap: 10px;
|
|
47
|
+
grid-row-gap: 10px;
|
|
48
|
+
height: fit-content;
|
|
49
|
+
padding: 10px;
|
|
50
|
+
|
|
51
|
+
>div {
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
border-radius: 7px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
.form-field {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: baseline;
|
|
65
|
+
margin-bottom: 5px;
|
|
66
|
+
|
|
67
|
+
>label {
|
|
68
|
+
margin-right: 15px;
|
|
69
|
+
width: 100px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.p-inputtext {
|
|
73
|
+
width: 250px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dialog-footer {
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: flex-end;
|
|
80
|
+
|
|
81
|
+
button {
|
|
82
|
+
margin-left: 10px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.dialog-wrapper {
|
|
87
|
+
min-height: 400px;
|
|
88
|
+
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
height: 100%;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
.App {
|
|
98
|
+
margin: 0 50px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
.App-link {
|
|
104
|
+
color: #61dafb;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@keyframes App-logo-spin {
|
|
108
|
+
from {
|
|
109
|
+
transform: rotate(0deg);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
to {
|
|
113
|
+
transform: rotate(360deg);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
#container {
|
|
119
|
+
height: 100%;
|
|
120
|
+
width: 100%;
|
|
121
|
+
position: absolute;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
.react-grid-item {
|
|
126
|
+
background-color: lightblue;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.panel {
|
|
130
|
+
background: white !important;
|
|
131
|
+
border-radius: 7px;
|
|
132
|
+
box-shadow: 0px 0px 3px 1px #6273842b;
|
|
133
|
+
padding: 20px;
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
position: relative;
|
|
136
|
+
height: 100%;
|
|
137
|
+
|
|
138
|
+
header {
|
|
139
|
+
display: flex;
|
|
140
|
+
justify-content: space-between;
|
|
141
|
+
align-items: center;
|
|
142
|
+
|
|
143
|
+
i {
|
|
144
|
+
font-size: 18px;
|
|
145
|
+
// color: colors.$red;
|
|
146
|
+
cursor: pointer;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
h1 {
|
|
151
|
+
text-transform: capitalize;
|
|
152
|
+
font-size: 15px;
|
|
153
|
+
font-family: 'Roboto Flex';
|
|
154
|
+
color: #061436;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
#container {
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 100%;
|
|
162
|
+
position: absolute;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
.grid-container {
|
|
167
|
+
position: relative;
|
|
168
|
+
|
|
169
|
+
.react-grid-layout {
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: 0;
|
|
172
|
+
width: 100%;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
.grid--bordered>div {
|
|
179
|
+
border: 2px dotted #d0d0d0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.grid--boxes>div {
|
|
183
|
+
background: #00000008;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
.dashboard-widget {
|
|
188
|
+
height: calc(100% - 40px);
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.filter-label {
|
|
193
|
+
font-size: 12px;
|
|
194
|
+
color: $dark-grey;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.buttons-overlay .p-overlaypanel-content {
|
|
198
|
+
padding: 0 !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.buttons-list>div {
|
|
202
|
+
padding: 15px;
|
|
203
|
+
width: 150px;
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
user-select: none;
|
|
206
|
+
|
|
207
|
+
&:hover {
|
|
208
|
+
background: $bg-color;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.hidden {
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
@@ -1,24 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { WidgetComponent } from "../../types/WidgetComponent";
|
|
3
|
+
import { Widget } from "../../types/widget";
|
|
4
|
+
declare class DashboardDesigner extends React.Component<any, any> {
|
|
5
|
+
moreButtonToggle: any;
|
|
6
|
+
widgetButtonToggle: any;
|
|
7
|
+
addWidgetButtonToggle: any;
|
|
8
|
+
widgetComponents: WidgetComponent[];
|
|
9
|
+
constructor(props: any);
|
|
10
|
+
static layoutGridProps: {
|
|
11
|
+
rowHeight: number;
|
|
12
|
+
className: string;
|
|
13
|
+
cols: {
|
|
14
|
+
lg: number;
|
|
15
|
+
md: number;
|
|
16
|
+
sm: number;
|
|
17
|
+
xs: number;
|
|
18
|
+
xxs: number;
|
|
19
|
+
};
|
|
20
|
+
useCSSTransforms: boolean;
|
|
13
21
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
23
|
+
private UpdatePlaceholderDimensions;
|
|
24
|
+
showMsg: boolean;
|
|
25
|
+
onLayoutChange(layout: any, layouts: any): void;
|
|
26
|
+
deletePanel: (i: any) => void;
|
|
27
|
+
editWidget: (widget: any) => void;
|
|
28
|
+
addPanel: (newWidget: Widget) => void;
|
|
29
|
+
EvaluateNewWidgetPosition(): {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
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
|
+
}
|
|
24
56
|
export default DashboardDesigner;
|
package/dist/index.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@import "react-grid-layout/css/styles";
|
|
6
6
|
@import "react-resizable/css/styles";
|
|
7
7
|
|
|
8
|
-
@import "logitude-dashboard-library/dist/assets/styles/
|
|
8
|
+
@import "logitude-dashboard-library/dist/assets/styles/dl-dashboard.scss";
|
|
9
9
|
@import "logitude-dashboard-library/dist/assets/styles/colors.scss";
|
|
10
10
|
@import "logitude-dashboard-library/dist/assets/styles/fonts.scss";
|
|
11
11
|
@import "logitude-dashboard-library/dist/assets/styles/global.scss";
|
package/dist/index.d.ts
CHANGED