logitude-dashboard-library 1.2.3 → 1.2.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.
- package/dist/assets/images/logo.png +0 -0
- package/dist/assets/styles/colors.scss +10 -0
- package/dist/assets/styles/components-style.scss +206 -0
- package/dist/assets/styles/fonts.scss +4 -0
- package/dist/assets/styles/global.scss +26 -0
- package/dist/features/Dashboard/DashboardDesigner.d.ts +0 -3
- package/dist/features/Dashboard/NewWidget.d.ts +0 -1
- package/dist/images/logo.png +0 -0
- package/dist/index.css +10 -258
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/styles/colors.scss +10 -0
- package/dist/styles/components-style.scss +190 -0
- package/dist/styles/fonts.scss +1 -0
- package/dist/styles/global.scss +26 -0
- package/package.json +14 -19
- package/dist/App.d.ts +0 -7
- package/dist/features/Dashboard/index.d.ts +0 -1
|
Binary file
|
|
@@ -0,0 +1,206 @@
|
|
|
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
|
+
.form-field {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: baseline;
|
|
12
|
+
margin-bottom: 5px;
|
|
13
|
+
|
|
14
|
+
>label {
|
|
15
|
+
margin-right: 15px;
|
|
16
|
+
width: 100px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.p-inputtext {
|
|
20
|
+
width: 250px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dialog-footer {
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
|
|
28
|
+
button {
|
|
29
|
+
margin-left: 10px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dialog-wrapper {
|
|
34
|
+
min-height: 400px;
|
|
35
|
+
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dashboard-body {
|
|
43
|
+
background: $bg-color;
|
|
44
|
+
height: 100%;
|
|
45
|
+
|
|
46
|
+
margin: 0;
|
|
47
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
48
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
49
|
+
sans-serif;
|
|
50
|
+
-webkit-font-smoothing: antialiased;
|
|
51
|
+
-moz-osx-font-smoothing: grayscale;
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.App {
|
|
56
|
+
margin: 0 50px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dashboard-header {
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
|
|
63
|
+
>div {
|
|
64
|
+
align-items: center;
|
|
65
|
+
display: flex;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
>div>* {
|
|
69
|
+
margin-right: 15px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.p-button-icon,
|
|
73
|
+
i {
|
|
74
|
+
font-size: 28px !important;
|
|
75
|
+
color: black;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
.App-link {
|
|
83
|
+
color: #61dafb;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes App-logo-spin {
|
|
87
|
+
from {
|
|
88
|
+
transform: rotate(0deg);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
to {
|
|
92
|
+
transform: rotate(360deg);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
#container {
|
|
98
|
+
height: 100%;
|
|
99
|
+
width: 100%;
|
|
100
|
+
position: absolute;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
.react-grid-item {
|
|
105
|
+
background-color: lightblue;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.panel {
|
|
109
|
+
background: white !important;
|
|
110
|
+
border-radius: 7px;
|
|
111
|
+
box-shadow: 0px 0px 3px 1px #6273842b;
|
|
112
|
+
padding: 20px;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
position: relative;
|
|
115
|
+
height: 100%;
|
|
116
|
+
|
|
117
|
+
header {
|
|
118
|
+
display: flex;
|
|
119
|
+
justify-content: space-between;
|
|
120
|
+
align-items: center;
|
|
121
|
+
|
|
122
|
+
i {
|
|
123
|
+
font-size: 18px;
|
|
124
|
+
// color: colors.$red;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
h1 {
|
|
130
|
+
text-transform: capitalize;
|
|
131
|
+
font-size: 15px;
|
|
132
|
+
font-family: 'Roboto Flex';
|
|
133
|
+
color: #061436;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
#container {
|
|
139
|
+
width: 100%;
|
|
140
|
+
height: 100%;
|
|
141
|
+
position: absolute;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
.grid-container {
|
|
146
|
+
position: relative;
|
|
147
|
+
|
|
148
|
+
.react-grid-layout {
|
|
149
|
+
position: absolute;
|
|
150
|
+
top: 0;
|
|
151
|
+
width: 100%;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.grid {
|
|
156
|
+
display: grid;
|
|
157
|
+
grid-template-columns: repeat(12, 1fr);
|
|
158
|
+
grid-column-gap: 10px;
|
|
159
|
+
grid-row-gap: 10px;
|
|
160
|
+
height: fit-content;
|
|
161
|
+
padding: 10px;
|
|
162
|
+
|
|
163
|
+
>div {
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
border-radius: 7px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.grid--bordered>div {
|
|
171
|
+
border: 2px dotted #d0d0d0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.grid--boxes>div {
|
|
175
|
+
background: #00000008;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
.dashboard-widget {
|
|
180
|
+
height: calc(100% - 40px);
|
|
181
|
+
box-sizing: border-box;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.filter-label {
|
|
185
|
+
font-size: 12px;
|
|
186
|
+
color: $dark-grey;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.buttons-overlay .p-overlaypanel-content {
|
|
190
|
+
padding: 0 !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.buttons-list>div {
|
|
194
|
+
padding: 15px;
|
|
195
|
+
width: 150px;
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
user-select: none;
|
|
198
|
+
|
|
199
|
+
&:hover {
|
|
200
|
+
background: $bg-color;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.hidden {
|
|
205
|
+
display: none;
|
|
206
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use 'colors.scss';
|
|
2
|
+
|
|
3
|
+
@mixin card {
|
|
4
|
+
background: white !important;
|
|
5
|
+
border-radius: 7px;
|
|
6
|
+
box-shadow: 0px 0px 3px 1px #6273842b;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// * {
|
|
10
|
+
// // change ReactPrime component default size
|
|
11
|
+
// font-size: 15px;
|
|
12
|
+
// }
|
|
13
|
+
|
|
14
|
+
.container{
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
width: 100%;
|
|
18
|
+
>div{
|
|
19
|
+
// width: 50%;
|
|
20
|
+
padding: 0 20px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#chart,.chart{
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "react-grid-layout/css/styles.css";
|
|
3
|
-
import "react-resizable/css/styles.css";
|
|
4
|
-
import "./dashboard-designer.scss";
|
|
5
2
|
import ColumnChartComponent from "./ChartsComponents/ColumnChartComponent";
|
|
6
3
|
declare const DashboardDesigner: () => JSX.Element;
|
|
7
4
|
export declare const layoutGridProps: {
|
|
Binary file
|
package/dist/index.css
CHANGED
|
@@ -1,261 +1,13 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
._3ACrv {
|
|
5
|
-
position: absolute;
|
|
6
|
-
width: 20px;
|
|
7
|
-
height: 20px;
|
|
8
|
-
background-repeat: no-repeat;
|
|
9
|
-
background-origin: content-box;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
|
|
12
|
-
background-position: bottom right;
|
|
13
|
-
padding: 0 3px 3px 0;
|
|
14
|
-
}
|
|
15
|
-
._3Dv4b {
|
|
16
|
-
bottom: 0;
|
|
17
|
-
left: 0;
|
|
18
|
-
cursor: sw-resize;
|
|
19
|
-
-webkit-transform: rotate(90deg);
|
|
20
|
-
transform: rotate(90deg);
|
|
21
|
-
}
|
|
22
|
-
._1_pdx {
|
|
23
|
-
bottom: 0;
|
|
24
|
-
right: 0;
|
|
25
|
-
cursor: se-resize;
|
|
26
|
-
}
|
|
27
|
-
._3lqDp {
|
|
28
|
-
top: 0;
|
|
29
|
-
left: 0;
|
|
30
|
-
cursor: nw-resize;
|
|
31
|
-
-webkit-transform: rotate(180deg);
|
|
32
|
-
transform: rotate(180deg);
|
|
33
|
-
}
|
|
34
|
-
._1br-A {
|
|
35
|
-
top: 0;
|
|
36
|
-
right: 0;
|
|
37
|
-
cursor: ne-resize;
|
|
38
|
-
-webkit-transform: rotate(270deg);
|
|
39
|
-
transform: rotate(270deg);
|
|
40
|
-
}
|
|
41
|
-
._2LU8g,
|
|
42
|
-
._12Q3f {
|
|
43
|
-
top: 50%;
|
|
44
|
-
margin-top: -10px;
|
|
45
|
-
cursor: ew-resize;
|
|
46
|
-
}
|
|
47
|
-
._2LU8g {
|
|
48
|
-
left: 0;
|
|
49
|
-
-webkit-transform: rotate(135deg);
|
|
50
|
-
transform: rotate(135deg);
|
|
51
|
-
}
|
|
52
|
-
._12Q3f {
|
|
53
|
-
right: 0;
|
|
54
|
-
-webkit-transform: rotate(315deg);
|
|
55
|
-
transform: rotate(315deg);
|
|
56
|
-
}
|
|
57
|
-
._vogN6,
|
|
58
|
-
._25fW6 {
|
|
59
|
-
left: 50%;
|
|
60
|
-
margin-left: -10px;
|
|
61
|
-
cursor: ns-resize;
|
|
62
|
-
}
|
|
63
|
-
._vogN6 {
|
|
64
|
-
top: 0;
|
|
65
|
-
-webkit-transform: rotate(225deg);
|
|
66
|
-
transform: rotate(225deg);
|
|
67
|
-
}
|
|
68
|
-
._25fW6 {
|
|
69
|
-
bottom: 0;
|
|
70
|
-
-webkit-transform: rotate(45deg);
|
|
71
|
-
transform: rotate(45deg);
|
|
72
|
-
}
|
|
73
|
-
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&family=Roboto+Flex:opsz@8..144&display=swap");
|
|
74
|
-
* {
|
|
75
|
-
font-size: 15px;
|
|
76
|
-
}
|
|
1
|
+
@import "primereact/resources/themes/lara-light-indigo/theme.css";
|
|
2
|
+
@import "primereact/resources/primereact.css";
|
|
3
|
+
@import "primeicons/primeicons.css";
|
|
77
4
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
display: flex;
|
|
81
|
-
width: 100%;
|
|
82
|
-
}
|
|
83
|
-
._3uhvX > div {
|
|
84
|
-
padding: 0 20px;
|
|
85
|
-
}
|
|
5
|
+
@import "react-grid-layout/css/styles";
|
|
6
|
+
@import "react-resizable/css/styles";
|
|
86
7
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
8
|
+
@import "logitude-dashboard-library/dist/assets/styles/components-style.scss";
|
|
9
|
+
@import "logitude-dashboard-library/dist/assets/styles/colors.scss";
|
|
10
|
+
@import "logitude-dashboard-library/dist/assets/styles/fonts.scss";
|
|
11
|
+
@import "logitude-dashboard-library/dist/assets/styles/global.scss";
|
|
90
12
|
|
|
91
|
-
|
|
92
|
-
margin: 0 50px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
._2lGnl {
|
|
96
|
-
display: flex;
|
|
97
|
-
justify-content: space-between;
|
|
98
|
-
}
|
|
99
|
-
._2lGnl > div {
|
|
100
|
-
align-items: center;
|
|
101
|
-
display: flex;
|
|
102
|
-
}
|
|
103
|
-
._2lGnl > div > * {
|
|
104
|
-
margin-right: 15px;
|
|
105
|
-
}
|
|
106
|
-
._2lGnl ._18x0U, ._2lGnl i {
|
|
107
|
-
font-size: 28px !important;
|
|
108
|
-
color: black;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
._3MA9L {
|
|
112
|
-
color: #61dafb;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@-webkit-keyframes _1JEML {
|
|
116
|
-
from {
|
|
117
|
-
transform: rotate(0deg);
|
|
118
|
-
}
|
|
119
|
-
to {
|
|
120
|
-
transform: rotate(360deg);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@keyframes _1JEML {
|
|
125
|
-
from {
|
|
126
|
-
transform: rotate(0deg);
|
|
127
|
-
}
|
|
128
|
-
to {
|
|
129
|
-
transform: rotate(360deg);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
#_3uhvX {
|
|
133
|
-
height: 100%;
|
|
134
|
-
width: 100%;
|
|
135
|
-
position: absolute;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
._26Nxd {
|
|
139
|
-
background-color: lightblue;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
._39fRL {
|
|
143
|
-
background: white !important;
|
|
144
|
-
border-radius: 7px;
|
|
145
|
-
box-shadow: 0px 0px 3px 1px rgba(98, 115, 132, 0.168627451);
|
|
146
|
-
padding: 20px;
|
|
147
|
-
box-sizing: border-box;
|
|
148
|
-
position: relative;
|
|
149
|
-
height: 100%;
|
|
150
|
-
}
|
|
151
|
-
._39fRL header {
|
|
152
|
-
display: flex;
|
|
153
|
-
justify-content: space-between;
|
|
154
|
-
align-items: center;
|
|
155
|
-
}
|
|
156
|
-
._39fRL header i {
|
|
157
|
-
font-size: 18px;
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
}
|
|
160
|
-
._39fRL h1 {
|
|
161
|
-
text-transform: capitalize;
|
|
162
|
-
font-size: 15px;
|
|
163
|
-
font-family: "Roboto Flex";
|
|
164
|
-
color: #061436;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
#_3uhvX {
|
|
168
|
-
width: 100%;
|
|
169
|
-
height: 100%;
|
|
170
|
-
position: absolute;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
._3IiJz {
|
|
174
|
-
position: relative;
|
|
175
|
-
}
|
|
176
|
-
._3IiJz ._Job3x {
|
|
177
|
-
position: absolute;
|
|
178
|
-
top: 0;
|
|
179
|
-
width: 100%;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
._1SnLK {
|
|
183
|
-
display: grid;
|
|
184
|
-
grid-template-columns: repeat(12, 1fr);
|
|
185
|
-
grid-column-gap: 10px;
|
|
186
|
-
grid-row-gap: 10px;
|
|
187
|
-
height: -webkit-fit-content;
|
|
188
|
-
height: -moz-fit-content;
|
|
189
|
-
height: fit-content;
|
|
190
|
-
padding: 10px;
|
|
191
|
-
}
|
|
192
|
-
._1SnLK > div {
|
|
193
|
-
box-sizing: border-box;
|
|
194
|
-
border-radius: 7px;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
._NWJ3F > div {
|
|
198
|
-
border: 2px dotted #d0d0d0;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
._2hSmL > div {
|
|
202
|
-
background: rgba(0, 0, 0, 0.031372549);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
._1GwiB {
|
|
206
|
-
height: calc(100% - 40px);
|
|
207
|
-
box-sizing: border-box;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
._1gJPQ {
|
|
211
|
-
font-size: 12px;
|
|
212
|
-
color: #717585;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
._3jTkc ._1pjVN {
|
|
216
|
-
padding: 0 !important;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
._1yXJg > div {
|
|
220
|
-
padding: 15px;
|
|
221
|
-
width: 150px;
|
|
222
|
-
cursor: pointer;
|
|
223
|
-
-webkit-user-select: none;
|
|
224
|
-
-moz-user-select: none;
|
|
225
|
-
user-select: none;
|
|
226
|
-
}
|
|
227
|
-
._1yXJg > div:hover {
|
|
228
|
-
background: #F5F6FB;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
._33DWa {
|
|
232
|
-
display: none;
|
|
233
|
-
}
|
|
234
|
-
._3LBx0 {
|
|
235
|
-
display: flex;
|
|
236
|
-
align-items: baseline;
|
|
237
|
-
margin-bottom: 5px;
|
|
238
|
-
}
|
|
239
|
-
._3LBx0 > label {
|
|
240
|
-
margin-right: 15px;
|
|
241
|
-
width: 100px;
|
|
242
|
-
}
|
|
243
|
-
._3LBx0 ._1uVlk {
|
|
244
|
-
width: 250px;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
._2Zju7 {
|
|
248
|
-
display: flex;
|
|
249
|
-
justify-content: flex-end;
|
|
250
|
-
}
|
|
251
|
-
._2Zju7 button {
|
|
252
|
-
margin-left: 10px;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
._grais {
|
|
256
|
-
min-height: 400px;
|
|
257
|
-
display: flex;
|
|
258
|
-
flex-direction: column;
|
|
259
|
-
justify-content: space-between;
|
|
260
|
-
height: 100%;
|
|
261
|
-
}
|
|
13
|
+
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,7 +2,6 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var React__default = _interopDefault(React);
|
|
5
|
-
require('react-grid-layout/css/styles.css');
|
|
6
5
|
var reactGridLayout = require('react-grid-layout');
|
|
7
6
|
var button = require('primereact/button');
|
|
8
7
|
var _ = _interopDefault(require('lodash'));
|
|
@@ -750,13 +749,15 @@ var BarChartComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
750
749
|
_inheritsLoose(BarChartComponent, _React$Component);
|
|
751
750
|
|
|
752
751
|
function BarChartComponent(props) {
|
|
752
|
+
var _this$props$widget;
|
|
753
|
+
|
|
753
754
|
var _this;
|
|
754
755
|
|
|
755
756
|
_this = _React$Component.call(this, props) || this;
|
|
756
757
|
_this.data = [];
|
|
757
758
|
var filters = new ApiQueryFilters();
|
|
758
759
|
var dataService = new DataService();
|
|
759
|
-
dataService.getDataByFilters(filters, _this.props.widget.EntityName || '').then(function (response) {
|
|
760
|
+
if ((_this$props$widget = _this.props.widget) !== null && _this$props$widget !== void 0 && _this$props$widget.EntityName) dataService.getDataByFilters(filters, _this.props.widget.EntityName || '').then(function (response) {
|
|
760
761
|
console.log("dataService.getDataByFilters", response);
|
|
761
762
|
_this.data = response.data.Result;
|
|
762
763
|
|
|
@@ -955,11 +956,11 @@ var WidgetCard = function WidgetCard(props, state) {
|
|
|
955
956
|
type: "Area",
|
|
956
957
|
component: AreaChartComponent
|
|
957
958
|
}];
|
|
958
|
-
return React__default.createElement("div",
|
|
959
|
+
return React__default.createElement("div", {
|
|
959
960
|
className: "panel",
|
|
960
961
|
key: props.el.i
|
|
961
962
|
}, React__default.createElement("header", null, React__default.createElement("h1", null, ((_props$widget = props.widget) === null || _props$widget === void 0 ? void 0 : _props$widget.WidgetName) || "not set"), React__default.createElement(button.Button, {
|
|
962
|
-
icon: "
|
|
963
|
+
icon: "pi pi-ellipsis-v",
|
|
963
964
|
className: "p-button-lg p-button-rounded p-button-text",
|
|
964
965
|
onClick: function onClick(e) {
|
|
965
966
|
var _moreBtnToggle$curren;
|
|
@@ -987,7 +988,7 @@ var WidgetCard = function WidgetCard(props, state) {
|
|
|
987
988
|
key: props.el.i,
|
|
988
989
|
dateFilter: props.dateFilter,
|
|
989
990
|
widget: props.widget
|
|
990
|
-
})))
|
|
991
|
+
})));
|
|
991
992
|
};
|
|
992
993
|
|
|
993
994
|
var ResponsiveReactGridLayout = reactGridLayout.WidthProvider(reactGridLayout.Responsive);
|
|
@@ -1066,7 +1067,7 @@ var DashboardDesigner = function DashboardDesigner() {
|
|
|
1066
1067
|
return React__default.createElement("header", {
|
|
1067
1068
|
className: "dashboard-header"
|
|
1068
1069
|
}, React__default.createElement("div", null, React__default.createElement("h1", null, dashboardTitle || "Dashboard"), React__default.createElement(button.Button, {
|
|
1069
|
-
icon: "
|
|
1070
|
+
icon: "pi pi-ellipsis-v",
|
|
1070
1071
|
onClick: function onClick(e) {
|
|
1071
1072
|
var _moreButtonToggle$cur;
|
|
1072
1073
|
|
|
@@ -1367,7 +1368,11 @@ var WidgetTypes = [{
|
|
|
1367
1368
|
}];
|
|
1368
1369
|
|
|
1369
1370
|
var Dashboard = function Dashboard() {
|
|
1370
|
-
return React.createElement("div",
|
|
1371
|
+
return React.createElement("div", {
|
|
1372
|
+
className: 'dashboard-body'
|
|
1373
|
+
}, React.createElement("div", {
|
|
1374
|
+
className: 'App'
|
|
1375
|
+
}, React.createElement(DashboardDesigner, null)));
|
|
1371
1376
|
};
|
|
1372
1377
|
|
|
1373
1378
|
module.exports = Dashboard;
|