@msrajawat298/do-graphs 1.0.0

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.
Files changed (80) hide show
  1. package/README.md +73 -0
  2. package/dist/App.css +72 -0
  3. package/dist/App.js +124 -0
  4. package/dist/App.test.js +8 -0
  5. package/dist/Assets/Fonts/NotoSans-Bold.ttf +0 -0
  6. package/dist/Assets/Fonts/NotoSans-Medium.ttf +0 -0
  7. package/dist/Assets/Fonts/NotoSans-Regular.ttf +0 -0
  8. package/dist/Assets/Fonts/NotoSans-SemiBold.ttf +0 -0
  9. package/dist/Assets/Images/analytic-graph.png +0 -0
  10. package/dist/Assets/Images/bar-graph.png +0 -0
  11. package/dist/Assets/Images/bubble-chart.png +0 -0
  12. package/dist/Assets/Images/coding.png +0 -0
  13. package/dist/Assets/Images/doughnut.png +0 -0
  14. package/dist/Assets/Images/horizontal-bar-graph.png +0 -0
  15. package/dist/Assets/Images/line-chart.png +0 -0
  16. package/dist/Assets/Images/mixed-chart.png +0 -0
  17. package/dist/Assets/Images/pie-chart.png +0 -0
  18. package/dist/Assets/Images/polar-chart.png +0 -0
  19. package/dist/Assets/Images/progress-bar.png +0 -0
  20. package/dist/Assets/Images/scatter-graph.png +0 -0
  21. package/dist/Assets/Images/table.png +0 -0
  22. package/dist/Assets/Images/travel.png +0 -0
  23. package/dist/Bootstrap.min.css +2 -0
  24. package/dist/Components/Charts/Bar/Form.js +231 -0
  25. package/dist/Components/Charts/Bar/Format.js +43 -0
  26. package/dist/Components/Charts/Bar/index.js +106 -0
  27. package/dist/Components/Charts/Chart.css +203 -0
  28. package/dist/Components/Charts/DoughnutAndPie/Form.js +232 -0
  29. package/dist/Components/Charts/DoughnutAndPie/Format.js +52 -0
  30. package/dist/Components/Charts/DoughnutAndPie/index.js +106 -0
  31. package/dist/Components/Charts/DrawGraph.js +32 -0
  32. package/dist/Components/Charts/Line/Form.js +231 -0
  33. package/dist/Components/Charts/Line/Format.js +47 -0
  34. package/dist/Components/Charts/Line/index.js +106 -0
  35. package/dist/Components/Charts/MixedChart/index.js +107 -0
  36. package/dist/Components/Charts/Options.js +139 -0
  37. package/dist/Components/Charts/PolarArea/Form.js +225 -0
  38. package/dist/Components/Charts/PolarArea/Format.js +42 -0
  39. package/dist/Components/Charts/PolarArea/index.js +106 -0
  40. package/dist/Components/Charts/Progess/Form.js +107 -0
  41. package/dist/Components/Charts/Progess/index.js +119 -0
  42. package/dist/Components/Charts/Scatter/Form.js +225 -0
  43. package/dist/Components/Charts/Scatter/Format.js +45 -0
  44. package/dist/Components/Charts/Scatter/index.js +106 -0
  45. package/dist/Components/Charts/Table/Form.js +70 -0
  46. package/dist/Components/Charts/Table/Styles.js +27 -0
  47. package/dist/Components/Charts/Table/index.js +56 -0
  48. package/dist/Components/Common/CustomComponent/index.js +83 -0
  49. package/dist/Components/Common/Menu/DynamicMenu/List.js +43 -0
  50. package/dist/Components/Common/Menu/DynamicMenu/index.css +109 -0
  51. package/dist/Components/Common/Menu/DynamicMenu/index.js +155 -0
  52. package/dist/Components/Common/Menu/index.css +74 -0
  53. package/dist/Components/Common/Menu/index.js +24 -0
  54. package/dist/Components/Common/Model/Model.css +112 -0
  55. package/dist/Components/Common/Model/Model.js +56 -0
  56. package/dist/Components/Common/MultipleSelectDropdown/index.js +124 -0
  57. package/dist/Components/Common/NotFound/index.css +16 -0
  58. package/dist/Components/Common/NotFound/index.js +19 -0
  59. package/dist/Components/Common/Title/Form.js +36 -0
  60. package/dist/Components/Common/Title/Styles.js +16 -0
  61. package/dist/Components/Common/Title/index.js +41 -0
  62. package/dist/Components/Common/Widget/index.css +435 -0
  63. package/dist/Components/Common/Widget/index.js +407 -0
  64. package/dist/Pages/Dashboard/CreatePage.css +23 -0
  65. package/dist/Pages/Dashboard/CreatePage.js +115 -0
  66. package/dist/Pages/Dashboard/index.css +114 -0
  67. package/dist/Pages/Dashboard/index.js +150 -0
  68. package/dist/Pages/LayoutPages/index.css +80 -0
  69. package/dist/Pages/LayoutPages/index.js +143 -0
  70. package/dist/Pages/Layouts/index.js +52 -0
  71. package/dist/Services/Menu.js +58 -0
  72. package/dist/Services/Routing.js +80 -0
  73. package/dist/Utility/Contexts.js +20 -0
  74. package/dist/Utility/Main.js +368 -0
  75. package/dist/Utility/Routes.js +10 -0
  76. package/dist/index.css +13 -0
  77. package/dist/index.js +15 -0
  78. package/dist/reportWebVitals.js +13 -0
  79. package/dist/setupTests.js +5 -0
  80. package/package.json +72 -0
@@ -0,0 +1,41 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { faArrowRightLong, faEllipsisVertical } from "@fortawesome/free-solid-svg-icons";
14
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
15
+ import { useContext, useState } from "react";
16
+ import { PopUpContext } from "../../../Utility/Contexts";
17
+ import { ModelTypes, Modules } from "../../../Utility/Main";
18
+ import Model from "../Model/Model";
19
+ var LayoutTitle = function (_a) {
20
+ var _b;
21
+ var id = _a.id;
22
+ var _c = useContext(PopUpContext), title = _c.title, setTitle = _c.setTitle;
23
+ var _d = useState(false), showPopup = _d[0], setshowPopup = _d[1];
24
+ var _e = useState({
25
+ headTitle: '',
26
+ module: '',
27
+ data: {},
28
+ type: ''
29
+ }), modelData = _e[0], setModelData = _e[1];
30
+ var showForm = function (formName, title, data, type) {
31
+ setshowPopup(true);
32
+ setModelData({
33
+ headTitle: title,
34
+ module: formName,
35
+ data: data,
36
+ type: type
37
+ });
38
+ };
39
+ return (_jsxs(PopUpContext.Provider, __assign({ value: { showPopup: showPopup, setshowPopup: setshowPopup, modelData: modelData, setModelData: setModelData, title: title, setTitle: setTitle } }, { children: [_jsxs("div", __assign({ className: 'header-section', style: __assign({}, (_b = title === null || title === void 0 ? void 0 : title.customStyles) === null || _b === void 0 ? void 0 : _b.div) }, { children: [_jsx("div", { children: _jsxs("h4", __assign({ className: 'mar-b-0' }, { children: [title === null || title === void 0 ? void 0 : title.name, " ", _jsx(FontAwesomeIcon, { icon: faArrowRightLong, style: { marginLeft: 5 } })] })) }), _jsx("div", { children: _jsx(FontAwesomeIcon, { style: { marginLeft: 15 }, icon: faEllipsisVertical, size: 'lg', cursor: 'pointer', onClick: function () { return showForm(Modules === null || Modules === void 0 ? void 0 : Modules.TITLE, 'Configure Title Data', { gData: title, layoutId: id }, ModelTypes === null || ModelTypes === void 0 ? void 0 : ModelTypes.SIDE_FORM); } }) })] })), showPopup && _jsx(Model, { headTitle: modelData === null || modelData === void 0 ? void 0 : modelData.headTitle, module: modelData === null || modelData === void 0 ? void 0 : modelData.module, data: modelData === null || modelData === void 0 ? void 0 : modelData.data, type: modelData === null || modelData === void 0 ? void 0 : modelData.type })] })));
40
+ };
41
+ export default LayoutTitle;
@@ -0,0 +1,435 @@
1
+ .widget-section {
2
+ width: 100%;
3
+ height: 100vh;
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: center;
7
+ align-items: center;
8
+ box-sizing: border-box;
9
+ box-shadow: 0 0 5px #dedede;
10
+ border-radius: 5px;
11
+ position: relative;
12
+ overflow: hidden;
13
+ padding: 15px;
14
+ transition: .1s all linear;
15
+ background: #fff;
16
+ .logo{
17
+ position: absolute;
18
+ top: 0;
19
+ left: 0;
20
+ width: 100px;
21
+ height: 100px;
22
+ }
23
+ .wid-progress{
24
+ display: flex;
25
+ flex-direction: row;
26
+ height: 50px;
27
+ width: 100%;
28
+ align-items: center;
29
+ justify-content: center;
30
+ margin-bottom: 50px;
31
+ p{
32
+ width: 50px;
33
+ height: 50px;
34
+ border: 1px solid #fd746c;
35
+ border-radius: 100%;
36
+ font-size: 20px;
37
+ text-align: center;
38
+ margin-bottom: 0;
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: center;
42
+ margin-left: 25px;
43
+ margin-right: 25px;
44
+ color: #fd746c;
45
+ position: relative;
46
+ }
47
+ p::after{
48
+ content: '';
49
+ position: absolute;
50
+ top: 50%;
51
+ right: -100%;
52
+ width: 100%;
53
+ background: #fd746c;
54
+ height: 1px;
55
+ }
56
+ p:nth-child(3)::after{
57
+ display: none;
58
+ }
59
+ .active{
60
+ background: #fd746c;
61
+ color: #fff;
62
+ }
63
+ }
64
+ .bubble-draw{
65
+ position: absolute;
66
+ bottom: 200px;
67
+ left: 100px;
68
+ width: 100px;
69
+ height: 100px;
70
+ background: rgba(255, 144, 104, 0.5);
71
+ border-radius: 100%;
72
+ transition: .1s all linear;
73
+ animation: bubblefloat 10s linear infinite;
74
+ z-index: 0;
75
+ }
76
+
77
+ .widget-top, .chart-select-section{
78
+ z-index: 1;
79
+ }
80
+
81
+ .main-title {
82
+ font-size: 40px;
83
+ font-weight: 700;
84
+ position: relative;
85
+ }
86
+
87
+ .mar-t-20{
88
+ margin-top: 20px;
89
+ }
90
+ .mar-b-50{
91
+ margin-bottom: 50px;
92
+ }
93
+
94
+ .note {
95
+ font-size: 15px;
96
+ opacity: .8;
97
+ }
98
+
99
+ .skp-txt{
100
+ color: #ff9068;
101
+ margin-top: 15px;
102
+ margin-bottom: 0;
103
+ cursor: pointer;
104
+ }
105
+
106
+ .ch-file {
107
+ width: 50%;
108
+ background: linear-gradient(45deg, #fd746c, #ff9068);
109
+ margin-top: 40px;
110
+ padding: 15px;
111
+ font-size: 15px;
112
+ color: #fff;
113
+ text-transform: uppercase;
114
+ box-shadow: 1px 2px 3px #605757;
115
+ }
116
+ .configure-section{
117
+ z-index: 1;
118
+ .form-group{
119
+ width: 90%;
120
+ justify-content: flex-start;
121
+ align-items: center;
122
+ margin-bottom: 15px;
123
+ margin-left: 5%;
124
+ flex-wrap: wrap;
125
+ label{
126
+ width: 40%;
127
+ font-size: 13px;
128
+ font-weight: 500;
129
+ text-align: left;
130
+ }
131
+ input, select{
132
+ width: 60%;
133
+ font-size: 13px;
134
+ height: 40px;
135
+ }
136
+ }
137
+ .dt-frmgrp{
138
+ flex-wrap: wrap;
139
+ justify-content: flex-start;
140
+ align-items: center;
141
+ width: 60%;
142
+ button{
143
+ font-size: 13px;
144
+ border: 1px solid #ccc;
145
+ margin-bottom: 5px;
146
+ margin-left: 5px;
147
+ margin-right: 5px;
148
+ }
149
+ .active{
150
+ background: #ff9068;
151
+ color: #fff;
152
+ }
153
+ }
154
+ }
155
+ .cht-box-section{
156
+ display: flex;
157
+ justify-content: flex-start;
158
+ align-items: center;
159
+ flex-wrap: wrap;
160
+ width: 50%;
161
+ margin-left: 25%;
162
+ .chart-box{
163
+ margin-bottom: 15px;
164
+ cursor: pointer;
165
+ position: relative;
166
+ img{
167
+ width: 50%;
168
+ margin-bottom: 15px;
169
+ }
170
+ p{
171
+ font-size: 12px;
172
+ font-weight: 500;
173
+ margin-bottom: 0;
174
+ border: 1px solid #dedede;
175
+ padding: 5px;
176
+ border-radius: 5px;
177
+ }
178
+ }
179
+ }
180
+ }
181
+
182
+ .widget-section::after{
183
+ content: '';
184
+ position: absolute;
185
+ top: -80px;
186
+ right: -80px;
187
+ width: 350px;
188
+ height: 350px;
189
+ background: rgba(255, 144, 104, 0.2);
190
+ border-radius: 100%;
191
+ transition: .1s all linear;
192
+ }
193
+ .widget-section::before{
194
+ content: '';
195
+ position: absolute;
196
+ bottom: -80px;
197
+ left: -80px;
198
+ width: 350px;
199
+ height: 350px;
200
+ background: rgba(255, 144, 104, 0.2);
201
+ border-radius: 100%;
202
+ transition: .1s all linear;
203
+ }
204
+
205
+ @keyframes bubblefloat {
206
+ 0%{ bottom: 0%; left: 0%; }
207
+ 25%{ bottom: 80%; left: 50%; }
208
+ 50%{ bottom: 0%; left: 50%; }
209
+ 75%{ bottom: 80%; left: 90%; }
210
+ 100%{ bottom: 0%; left: 0%; }
211
+ }
212
+
213
+ .half-widget-section{
214
+ position: fixed;
215
+ width: 25%;
216
+ height: 100vh;
217
+ top: 0;
218
+ right: 0;
219
+ box-sizing: border-box;
220
+ box-shadow: 0 0 5px #dedede;
221
+ border-radius: 5px;
222
+ overflow-y: scroll;
223
+ padding: 15px;
224
+ transition: .1s all linear;
225
+ background: #fff;
226
+ .main-title {
227
+ font-size: 15px;
228
+ font-weight: 600;
229
+ position: relative;
230
+ border-radius: 5px;
231
+ text-align: left;
232
+ margin-bottom: 15px;
233
+ padding: 8px;
234
+ padding-left: 0;
235
+ }
236
+ .note{
237
+ text-align: left;
238
+ font-size: 12px;
239
+ opacity: .8;
240
+ margin-bottom: 20px;
241
+ }
242
+ .or-txt{
243
+ font-weight: 500;
244
+ font-size: 13px;
245
+ position: relative;
246
+ text-align: center;
247
+ }
248
+ .or-txt::after{
249
+ content: '';
250
+ position: absolute;
251
+ top: 50%;
252
+ left: 0;
253
+ width: 45%;
254
+ height: 1px;
255
+ background: #000;
256
+ }
257
+ .or-txt::before{
258
+ content: '';
259
+ position: absolute;
260
+ top: 50%;
261
+ right: 0;
262
+ width: 45%;
263
+ height: 1px;
264
+ background: #000;
265
+ }
266
+ .ch-file {
267
+ width: 100%;
268
+ background: linear-gradient(45deg, #fd746c, #ff9068);
269
+ margin-top: 40px;
270
+ margin-bottom: 30px;
271
+ padding: 10px;
272
+ font-size: 13px;
273
+ color: #fff;
274
+ text-transform: uppercase;
275
+ box-shadow: 1px 2px 3px #605757;
276
+ }
277
+ .mar-t-20{
278
+ margin-top: 20px;
279
+ }
280
+ .mar-b-0{
281
+ margin-bottom: 0;
282
+ }
283
+ .mar-b-50{
284
+ margin-bottom: 50px;
285
+ }
286
+ .sv-btn{
287
+ font-size: 13px;
288
+ margin-bottom: 20px;
289
+ }
290
+ .add-nc{
291
+ opacity: .8;
292
+ font-size: 13px;
293
+ text-align: left;
294
+ margin-bottom: 0;
295
+ }
296
+ .configure-section{
297
+ width: 100%;
298
+ .form-group{
299
+ width: 100%;
300
+ justify-content: flex-start;
301
+ align-items: center;
302
+ margin-bottom: 15px;
303
+ flex-wrap: wrap;
304
+ label{
305
+ width: 40%;
306
+ font-size: 12px;
307
+ font-weight: 500;
308
+ text-align: left;
309
+ }
310
+ input, select{
311
+ width: 60%;
312
+ font-size: 12px;
313
+ height: 40px;
314
+ }
315
+ }
316
+ .dt-frmgrp{
317
+ flex-wrap: wrap;
318
+ justify-content: flex-start;
319
+ align-items: center;
320
+ width: 60%;
321
+ button{
322
+ font-size: 13px;
323
+ border: 1px solid #ccc;
324
+ margin-bottom: 5px;
325
+ margin-left: 5px;
326
+ margin-right: 5px;
327
+ }
328
+ .active{
329
+ background: #ff9068;
330
+ color: #fff;
331
+ }
332
+ }
333
+ }
334
+ .cht-box-section{
335
+ display: flex;
336
+ justify-content: flex-start;
337
+ align-items: center;
338
+ flex-wrap: wrap;
339
+ width: 100%;
340
+ .chart-box{
341
+ margin-bottom: 15px;
342
+ cursor: pointer;
343
+ position: relative;
344
+ img{
345
+ width: 100%;
346
+ margin-bottom: 15px;
347
+ }
348
+ }
349
+ }
350
+ }
351
+
352
+ .chart-box:hover, .chart-active{
353
+ background: #eee;
354
+ border-radius: 5px;
355
+ }
356
+
357
+ .half-widget-section::-webkit-scrollbar{
358
+ width: 2px;
359
+ height: 2px;
360
+ }
361
+ .half-widget-section::-webkit-scrollbar-track{
362
+ border-radius: 10px;
363
+ }
364
+ .half-widget-section::-webkit-scrollbar-thumb{
365
+ background: #ef5323;
366
+ border-radius: 10px;
367
+ }
368
+ .hide-widget-btn{
369
+ position: fixed;
370
+ top: 15px;
371
+ right: 0;
372
+ width: 20px;
373
+ height: 30px;
374
+ text-align: center;
375
+ border-radius: 5px 0 0 5px;
376
+ background: #fd746c;
377
+ z-index: 1;
378
+ button{
379
+ width: 100%;
380
+ height: 100%;
381
+ font-size: 15px;
382
+ color: #fff;
383
+ padding: 0;
384
+ }
385
+ }
386
+
387
+ .cols-btn{
388
+ width: 60%;
389
+ flex-wrap: wrap;
390
+ justify-content: flex-start;
391
+ align-items: center;
392
+ button{
393
+ border: 1px solid #dedede;
394
+ padding: 5px;
395
+ border-radius: 5px;
396
+ margin-left: 5px;
397
+ margin-right: 5px;
398
+ font-size: 13px;
399
+ background: #fff;
400
+ margin-bottom: 5px;
401
+ }
402
+ }
403
+ .w-60{
404
+ width: 60%;
405
+ }
406
+ .w-100{
407
+ width: 100%;
408
+ }
409
+ .gad{
410
+ margin-left: 40%;
411
+ font-size: 12px;
412
+ margin-bottom: 15px;
413
+ }
414
+
415
+ .wid-menu{
416
+ flex-wrap: wrap;
417
+ align-items: center;
418
+ justify-content: space-between;
419
+ select{
420
+ width: 45%;
421
+ font-size: 12px;
422
+ margin-right: 5%;
423
+ }
424
+ button{
425
+ width: 50%;
426
+ font-size: 12px;
427
+ border: 1px solid #ff9068;
428
+ color: #ff9068;
429
+ }
430
+ }
431
+ .pv-btn{
432
+ border: 1px solid #0d6efd;
433
+ color: #0d6efd;
434
+ margin-left: 15px;
435
+ }