logitude-dashboard-library 1.2.4 → 1.2.7
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/components-style.scss +25 -9
- package/dist/assets/styles/fonts.scss +3 -0
- package/dist/assets/styles/global.scss +4 -4
- 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 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -6
- 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 +17 -27
- package/dist/App.d.ts +0 -7
- package/dist/features/Dashboard/index.d.ts +0 -1
|
@@ -2,39 +2,55 @@ $blue: #2C99F7;
|
|
|
2
2
|
$bg-color: #F5F6FB;
|
|
3
3
|
$gray: #F5F6FB;
|
|
4
4
|
$green: #22D792;
|
|
5
|
-
$yellow: #FBC445;
|
|
6
|
-
$red: #F74E49;
|
|
5
|
+
$yellow: #FBC445;
|
|
6
|
+
$red: #F74E49;
|
|
7
7
|
$dark-grey: #717585;
|
|
8
8
|
|
|
9
|
-
.form-field{
|
|
9
|
+
.form-field {
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: baseline;
|
|
12
12
|
margin-bottom: 5px;
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
>label {
|
|
14
15
|
margin-right: 15px;
|
|
15
16
|
width: 100px;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
.p-inputtext {
|
|
18
20
|
width: 250px;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
|
-
|
|
23
|
+
|
|
24
|
+
.dialog-footer {
|
|
22
25
|
display: flex;
|
|
23
26
|
justify-content: flex-end;
|
|
24
|
-
|
|
27
|
+
|
|
28
|
+
button {
|
|
25
29
|
margin-left: 10px;
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
|
-
|
|
32
|
+
|
|
33
|
+
.dialog-wrapper {
|
|
29
34
|
min-height: 400px;
|
|
30
|
-
|
|
35
|
+
|
|
31
36
|
display: flex;
|
|
32
37
|
flex-direction: column;
|
|
33
38
|
justify-content: space-between;
|
|
34
39
|
height: 100%;
|
|
35
40
|
}
|
|
36
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;
|
|
37
52
|
|
|
53
|
+
}
|
|
38
54
|
|
|
39
55
|
.App {
|
|
40
56
|
margin: 0 50px;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
box-shadow: 0px 0px 3px 1px #6273842b;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
* {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
9
|
+
// * {
|
|
10
|
+
// // change ReactPrime component default size
|
|
11
|
+
// font-size: 15px;
|
|
12
|
+
// }
|
|
13
13
|
|
|
14
14
|
.container{
|
|
15
15
|
position: relative;
|
|
Binary file
|
package/dist/index.css
CHANGED
|
@@ -1,261 +1,13 @@
|
|
|
1
|
-
@import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
@import "primereact/resources/themes/lara-light-indigo/theme.css";
|
|
2
|
+
@import "primereact/resources/primereact.css";
|
|
3
|
+
@import "primeicons/primeicons.css";
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
display: flex;
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
._dashboard-designer__container__3uhvX > div {
|
|
12
|
-
padding: 0 20px;
|
|
13
|
-
}
|
|
5
|
+
@import "react-grid-layout/css/styles";
|
|
6
|
+
@import "react-resizable/css/styles";
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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";
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
margin: 0 50px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
._dashboard-designer__dashboard-header__2lGnl {
|
|
24
|
-
display: flex;
|
|
25
|
-
justify-content: space-between;
|
|
26
|
-
}
|
|
27
|
-
._dashboard-designer__dashboard-header__2lGnl > div {
|
|
28
|
-
align-items: center;
|
|
29
|
-
display: flex;
|
|
30
|
-
}
|
|
31
|
-
._dashboard-designer__dashboard-header__2lGnl > div > * {
|
|
32
|
-
margin-right: 15px;
|
|
33
|
-
}
|
|
34
|
-
._dashboard-designer__dashboard-header__2lGnl ._dashboard-designer__p-button-icon__18x0U, ._dashboard-designer__dashboard-header__2lGnl i {
|
|
35
|
-
font-size: 28px !important;
|
|
36
|
-
color: black;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
._dashboard-designer__App-link__3MA9L {
|
|
40
|
-
color: #61dafb;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@-webkit-keyframes _dashboard-designer__App-logo-spin__1JEML {
|
|
44
|
-
from {
|
|
45
|
-
transform: rotate(0deg);
|
|
46
|
-
}
|
|
47
|
-
to {
|
|
48
|
-
transform: rotate(360deg);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes _dashboard-designer__App-logo-spin__1JEML {
|
|
53
|
-
from {
|
|
54
|
-
transform: rotate(0deg);
|
|
55
|
-
}
|
|
56
|
-
to {
|
|
57
|
-
transform: rotate(360deg);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
#_dashboard-designer__container__3uhvX {
|
|
61
|
-
height: 100%;
|
|
62
|
-
width: 100%;
|
|
63
|
-
position: absolute;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
._dashboard-designer__react-grid-item__26Nxd {
|
|
67
|
-
background-color: lightblue;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
._dashboard-designer__panel__39fRL {
|
|
71
|
-
background: white !important;
|
|
72
|
-
border-radius: 7px;
|
|
73
|
-
box-shadow: 0px 0px 3px 1px rgba(98, 115, 132, 0.168627451);
|
|
74
|
-
padding: 20px;
|
|
75
|
-
box-sizing: border-box;
|
|
76
|
-
position: relative;
|
|
77
|
-
height: 100%;
|
|
78
|
-
}
|
|
79
|
-
._dashboard-designer__panel__39fRL header {
|
|
80
|
-
display: flex;
|
|
81
|
-
justify-content: space-between;
|
|
82
|
-
align-items: center;
|
|
83
|
-
}
|
|
84
|
-
._dashboard-designer__panel__39fRL header i {
|
|
85
|
-
font-size: 18px;
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
}
|
|
88
|
-
._dashboard-designer__panel__39fRL h1 {
|
|
89
|
-
text-transform: capitalize;
|
|
90
|
-
font-size: 15px;
|
|
91
|
-
font-family: "Roboto Flex";
|
|
92
|
-
color: #061436;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
#_dashboard-designer__container__3uhvX {
|
|
96
|
-
width: 100%;
|
|
97
|
-
height: 100%;
|
|
98
|
-
position: absolute;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
._dashboard-designer__grid-container__3IiJz {
|
|
102
|
-
position: relative;
|
|
103
|
-
}
|
|
104
|
-
._dashboard-designer__grid-container__3IiJz ._dashboard-designer__react-grid-layout__Job3x {
|
|
105
|
-
position: absolute;
|
|
106
|
-
top: 0;
|
|
107
|
-
width: 100%;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
._dashboard-designer__grid__1SnLK {
|
|
111
|
-
display: grid;
|
|
112
|
-
grid-template-columns: repeat(12, 1fr);
|
|
113
|
-
grid-column-gap: 10px;
|
|
114
|
-
grid-row-gap: 10px;
|
|
115
|
-
height: -webkit-fit-content;
|
|
116
|
-
height: -moz-fit-content;
|
|
117
|
-
height: fit-content;
|
|
118
|
-
padding: 10px;
|
|
119
|
-
}
|
|
120
|
-
._dashboard-designer__grid__1SnLK > div {
|
|
121
|
-
box-sizing: border-box;
|
|
122
|
-
border-radius: 7px;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
._dashboard-designer__grid--bordered__NWJ3F > div {
|
|
126
|
-
border: 2px dotted #d0d0d0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
._dashboard-designer__grid--boxes__2hSmL > div {
|
|
130
|
-
background: rgba(0, 0, 0, 0.031372549);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
._dashboard-designer__dashboard-widget__1GwiB {
|
|
134
|
-
height: calc(100% - 40px);
|
|
135
|
-
box-sizing: border-box;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
._dashboard-designer__filter-label__1gJPQ {
|
|
139
|
-
font-size: 12px;
|
|
140
|
-
color: #717585;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
._dashboard-designer__buttons-overlay__3jTkc ._dashboard-designer__p-overlaypanel-content__1pjVN {
|
|
144
|
-
padding: 0 !important;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
._dashboard-designer__buttons-list__1yXJg > div {
|
|
148
|
-
padding: 15px;
|
|
149
|
-
width: 150px;
|
|
150
|
-
cursor: pointer;
|
|
151
|
-
-webkit-user-select: none;
|
|
152
|
-
-moz-user-select: none;
|
|
153
|
-
user-select: none;
|
|
154
|
-
}
|
|
155
|
-
._dashboard-designer__buttons-list__1yXJg > div:hover {
|
|
156
|
-
background: #F5F6FB;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
._dashboard-designer__hidden__33DWa {
|
|
160
|
-
display: none;
|
|
161
|
-
}
|
|
162
|
-
._NewWidget__form-field__3LBx0 {
|
|
163
|
-
display: flex;
|
|
164
|
-
align-items: baseline;
|
|
165
|
-
margin-bottom: 5px;
|
|
166
|
-
}
|
|
167
|
-
._NewWidget__form-field__3LBx0 > label {
|
|
168
|
-
margin-right: 15px;
|
|
169
|
-
width: 100px;
|
|
170
|
-
}
|
|
171
|
-
._NewWidget__form-field__3LBx0 ._NewWidget__p-inputtext__1uVlk {
|
|
172
|
-
width: 250px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
._NewWidget__dialog-footer__2Zju7 {
|
|
176
|
-
display: flex;
|
|
177
|
-
justify-content: flex-end;
|
|
178
|
-
}
|
|
179
|
-
._NewWidget__dialog-footer__2Zju7 button {
|
|
180
|
-
margin-left: 10px;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
._NewWidget__dialog-wrapper__grais {
|
|
184
|
-
min-height: 400px;
|
|
185
|
-
display: flex;
|
|
186
|
-
flex-direction: column;
|
|
187
|
-
justify-content: space-between;
|
|
188
|
-
height: 100%;
|
|
189
|
-
}
|
|
190
|
-
._styles__react-resizable__3s4OD {
|
|
191
|
-
position: relative;
|
|
192
|
-
}
|
|
193
|
-
._styles__react-resizable-handle__3ACrv {
|
|
194
|
-
position: absolute;
|
|
195
|
-
width: 20px;
|
|
196
|
-
height: 20px;
|
|
197
|
-
background-repeat: no-repeat;
|
|
198
|
-
background-origin: content-box;
|
|
199
|
-
box-sizing: border-box;
|
|
200
|
-
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
|
|
201
|
-
background-position: bottom right;
|
|
202
|
-
padding: 0 3px 3px 0;
|
|
203
|
-
}
|
|
204
|
-
._styles__react-resizable-handle-sw__3Dv4b {
|
|
205
|
-
bottom: 0;
|
|
206
|
-
left: 0;
|
|
207
|
-
cursor: sw-resize;
|
|
208
|
-
-webkit-transform: rotate(90deg);
|
|
209
|
-
transform: rotate(90deg);
|
|
210
|
-
}
|
|
211
|
-
._styles__react-resizable-handle-se__1_pdx {
|
|
212
|
-
bottom: 0;
|
|
213
|
-
right: 0;
|
|
214
|
-
cursor: se-resize;
|
|
215
|
-
}
|
|
216
|
-
._styles__react-resizable-handle-nw__3lqDp {
|
|
217
|
-
top: 0;
|
|
218
|
-
left: 0;
|
|
219
|
-
cursor: nw-resize;
|
|
220
|
-
-webkit-transform: rotate(180deg);
|
|
221
|
-
transform: rotate(180deg);
|
|
222
|
-
}
|
|
223
|
-
._styles__react-resizable-handle-ne__1br-A {
|
|
224
|
-
top: 0;
|
|
225
|
-
right: 0;
|
|
226
|
-
cursor: ne-resize;
|
|
227
|
-
-webkit-transform: rotate(270deg);
|
|
228
|
-
transform: rotate(270deg);
|
|
229
|
-
}
|
|
230
|
-
._styles__react-resizable-handle-w__2LU8g,
|
|
231
|
-
._styles__react-resizable-handle-e__12Q3f {
|
|
232
|
-
top: 50%;
|
|
233
|
-
margin-top: -10px;
|
|
234
|
-
cursor: ew-resize;
|
|
235
|
-
}
|
|
236
|
-
._styles__react-resizable-handle-w__2LU8g {
|
|
237
|
-
left: 0;
|
|
238
|
-
-webkit-transform: rotate(135deg);
|
|
239
|
-
transform: rotate(135deg);
|
|
240
|
-
}
|
|
241
|
-
._styles__react-resizable-handle-e__12Q3f {
|
|
242
|
-
right: 0;
|
|
243
|
-
-webkit-transform: rotate(315deg);
|
|
244
|
-
transform: rotate(315deg);
|
|
245
|
-
}
|
|
246
|
-
._styles__react-resizable-handle-n__vogN6,
|
|
247
|
-
._styles__react-resizable-handle-s__25fW6 {
|
|
248
|
-
left: 50%;
|
|
249
|
-
margin-left: -10px;
|
|
250
|
-
cursor: ns-resize;
|
|
251
|
-
}
|
|
252
|
-
._styles__react-resizable-handle-n__vogN6 {
|
|
253
|
-
top: 0;
|
|
254
|
-
-webkit-transform: rotate(225deg);
|
|
255
|
-
transform: rotate(225deg);
|
|
256
|
-
}
|
|
257
|
-
._styles__react-resizable-handle-s__25fW6 {
|
|
258
|
-
bottom: 0;
|
|
259
|
-
-webkit-transform: rotate(45deg);
|
|
260
|
-
transform: rotate(45deg);
|
|
261
|
-
}
|
|
13
|
+
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -749,13 +749,15 @@ var BarChartComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
749
749
|
_inheritsLoose(BarChartComponent, _React$Component);
|
|
750
750
|
|
|
751
751
|
function BarChartComponent(props) {
|
|
752
|
+
var _this$props$widget;
|
|
753
|
+
|
|
752
754
|
var _this;
|
|
753
755
|
|
|
754
756
|
_this = _React$Component.call(this, props) || this;
|
|
755
757
|
_this.data = [];
|
|
756
758
|
var filters = new ApiQueryFilters();
|
|
757
759
|
var dataService = new DataService();
|
|
758
|
-
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) {
|
|
759
761
|
console.log("dataService.getDataByFilters", response);
|
|
760
762
|
_this.data = response.data.Result;
|
|
761
763
|
|
|
@@ -954,11 +956,11 @@ var WidgetCard = function WidgetCard(props, state) {
|
|
|
954
956
|
type: "Area",
|
|
955
957
|
component: AreaChartComponent
|
|
956
958
|
}];
|
|
957
|
-
return React__default.createElement("div",
|
|
959
|
+
return React__default.createElement("div", {
|
|
958
960
|
className: "panel",
|
|
959
961
|
key: props.el.i
|
|
960
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, {
|
|
961
|
-
icon: "
|
|
963
|
+
icon: "pi pi-ellipsis-v",
|
|
962
964
|
className: "p-button-lg p-button-rounded p-button-text",
|
|
963
965
|
onClick: function onClick(e) {
|
|
964
966
|
var _moreBtnToggle$curren;
|
|
@@ -986,7 +988,7 @@ var WidgetCard = function WidgetCard(props, state) {
|
|
|
986
988
|
key: props.el.i,
|
|
987
989
|
dateFilter: props.dateFilter,
|
|
988
990
|
widget: props.widget
|
|
989
|
-
})))
|
|
991
|
+
})));
|
|
990
992
|
};
|
|
991
993
|
|
|
992
994
|
var ResponsiveReactGridLayout = reactGridLayout.WidthProvider(reactGridLayout.Responsive);
|
|
@@ -1065,7 +1067,7 @@ var DashboardDesigner = function DashboardDesigner() {
|
|
|
1065
1067
|
return React__default.createElement("header", {
|
|
1066
1068
|
className: "dashboard-header"
|
|
1067
1069
|
}, React__default.createElement("div", null, React__default.createElement("h1", null, dashboardTitle || "Dashboard"), React__default.createElement(button.Button, {
|
|
1068
|
-
icon: "
|
|
1070
|
+
icon: "pi pi-ellipsis-v",
|
|
1069
1071
|
onClick: function onClick(e) {
|
|
1070
1072
|
var _moreButtonToggle$cur;
|
|
1071
1073
|
|
|
@@ -1366,7 +1368,11 @@ var WidgetTypes = [{
|
|
|
1366
1368
|
}];
|
|
1367
1369
|
|
|
1368
1370
|
var Dashboard = function Dashboard() {
|
|
1369
|
-
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)));
|
|
1370
1376
|
};
|
|
1371
1377
|
|
|
1372
1378
|
module.exports = Dashboard;
|