admin-lte 4.0.0-alpha3 → 4.0.0-beta1

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 (100) hide show
  1. package/.cache/.eslintcache +1 -1
  2. package/.cache/.stylelintcache +1 -1
  3. package/README.md +6 -1
  4. package/dist/css/adminlte.css +191 -107
  5. package/dist/css/adminlte.css.map +1 -1
  6. package/dist/css/adminlte.min.css +2 -2
  7. package/dist/css/adminlte.min.css.map +1 -1
  8. package/dist/css/adminlte.rtl.css +198 -105
  9. package/dist/css/adminlte.rtl.css.map +1 -1
  10. package/dist/css/adminlte.rtl.min.css +2 -2
  11. package/dist/css/adminlte.rtl.min.css.map +1 -1
  12. package/dist/js/adminlte.js +138 -36
  13. package/dist/js/adminlte.js.map +1 -1
  14. package/dist/js/adminlte.min.js +3 -3
  15. package/dist/js/adminlte.min.js.map +1 -1
  16. package/dist/pages/UI/general.html +895 -0
  17. package/dist/pages/UI/timeline.html +221 -598
  18. package/dist/pages/docs/browser-support.html +199 -508
  19. package/dist/pages/docs/color-mode.html +339 -684
  20. package/dist/pages/docs/components/main-header.html +428 -826
  21. package/dist/pages/docs/components/main-sidebar.html +301 -609
  22. package/dist/pages/docs/faq.html +187 -497
  23. package/dist/pages/docs/how-to-contribute.html +189 -498
  24. package/dist/pages/docs/introduction.html +208 -512
  25. package/dist/pages/docs/javascript/treeview.html +197 -506
  26. package/dist/pages/docs/layout.html +187 -498
  27. package/dist/pages/docs/license.html +187 -497
  28. package/dist/pages/examples/lockscreen.html +21 -59
  29. package/dist/pages/examples/login-v2.html +35 -95
  30. package/dist/pages/examples/login.html +33 -89
  31. package/dist/pages/examples/register-v2.html +37 -102
  32. package/dist/pages/examples/register.html +34 -92
  33. package/dist/pages/forms/general.html +279 -765
  34. package/dist/pages/index.html +303 -806
  35. package/dist/pages/index2.html +495 -1188
  36. package/dist/pages/index3.html +243 -662
  37. package/dist/pages/layout/collapsed-sidebar.html +194 -519
  38. package/dist/pages/layout/fixed-complete.html +193 -519
  39. package/dist/pages/layout/fixed-sidebar.html +194 -520
  40. package/dist/pages/layout/layout-rtl.html +194 -519
  41. package/dist/pages/layout/logo-switch.html +111 -310
  42. package/dist/pages/layout/sidebar-mini.html +194 -519
  43. package/dist/pages/layout/unfixed-sidebar.html +193 -517
  44. package/dist/pages/tables/simple.html +261 -650
  45. package/dist/pages/widgets/cards.html +256 -704
  46. package/dist/pages/widgets/info-box.html +278 -787
  47. package/dist/pages/widgets/small-box.html +210 -547
  48. package/package.json +33 -32
  49. package/src/html/components/_head.astro +5 -15
  50. package/src/html/components/_scripts.astro +5 -17
  51. package/src/html/components/dashboard/_footer.astro +2 -2
  52. package/src/html/components/dashboard/_sidenav.astro +12 -3
  53. package/src/html/components/dashboard/_topbar.astro +9 -1
  54. package/src/html/components/docs/introduction.mdx +5 -5
  55. package/src/html/pages/UI/general.astro +1451 -0
  56. package/src/html/pages/docs/color-mode.astro +4 -2
  57. package/src/html/pages/docs/components/main-header.astro +3 -2
  58. package/src/html/pages/docs/layout.astro +1 -1
  59. package/src/html/pages/examples/lockscreen.astro +3 -3
  60. package/src/html/pages/forms/general.astro +8 -8
  61. package/src/html/pages/index.astro +32 -23
  62. package/src/html/pages/index2.astro +100 -72
  63. package/src/html/pages/index3.astro +12 -12
  64. package/src/html/pages/tables/simple.astro +20 -20
  65. package/src/html/pages/widgets/cards.astro +3 -3
  66. package/src/html/pages/widgets/small-box.astro +1 -1
  67. package/src/scss/_app-main.scss +4 -0
  68. package/src/scss/_app-sidebar.scss +2 -2
  69. package/src/scss/_bootstrap-variables.scss +26 -22
  70. package/src/scss/_callouts.scss +6 -0
  71. package/src/scss/_cards.scss +1 -0
  72. package/src/scss/_direct-chat.scss +5 -0
  73. package/src/scss/_dropdown.scss +1 -0
  74. package/src/scss/_info-box.scss +2 -10
  75. package/src/scss/_timeline.scss +1 -0
  76. package/src/scss/_toasts.scss +33 -0
  77. package/src/scss/_variables.scss +11 -5
  78. package/src/scss/adminlte.scss +1 -2
  79. package/src/scss/pages/_lockscreen.scss +1 -0
  80. package/src/scss/pages/_login_and_register.scss +1 -0
  81. package/src/scss/parts/_extra-components.scss +1 -0
  82. package/src/ts/adminlte.ts +3 -1
  83. package/src/ts/card-widget.ts +3 -2
  84. package/src/ts/direct-chat.ts +3 -2
  85. package/src/ts/fullscreen.ts +110 -0
  86. package/src/ts/layout.ts +3 -2
  87. package/src/ts/push-menu.ts +3 -2
  88. package/src/ts/treeview.ts +20 -3
  89. package/src/ts/util/index.ts +1 -1
  90. package/.idea/AdminLTE.iml +0 -16
  91. package/.idea/codeStyles/Project.xml +0 -53
  92. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  93. package/.idea/dbnavigator.xml +0 -421
  94. package/.idea/git_toolbox_prj.xml +0 -15
  95. package/.idea/inspectionProfiles/Project_Default.xml +0 -7
  96. package/.idea/jsLibraryMappings.xml +0 -6
  97. package/.idea/jsLinters/eslint.xml +0 -6
  98. package/.idea/modules.xml +0 -8
  99. package/.idea/php.xml +0 -28
  100. package/.idea/vcs.xml +0 -12
@@ -60,8 +60,10 @@ const page = "color-mode";
60
60
  <div class="callout callout-info">
61
61
  <h5 class="fw-bold">Tips</h5>
62
62
  <p>
63
- First Visit
64
- https://getbootstrap.com/docs/5.3/customize/color-modes/
63
+ <a href="https://getbootstrap.com/docs/5.3/customize/color-modes/" target="_blank" rel="noopener noreferrer" class="callout-link">
64
+ Color modes in Bootstrap
65
+ </a> allow you to switch between light and dark modes. You can do this using the data-bs-theme attribute. You can also create your own custom color modes.
66
+
65
67
  </p>
66
68
  </div>
67
69
  </div>
@@ -59,8 +59,9 @@ const distPath = path;
59
59
  <h5 class="fw-bold">Reminder!</h5>
60
60
  <p>
61
61
  AdminLTE uses all of Bootstrap 5 components. It's a good start
62
- to review the [Bootstrap
63
- documentation](https://getbootstrap.com/) to get an idea of the
62
+ to review the <a href="https://getbootstrap.com/" target="_blank" rel="noopener noreferrer" class="callout-link">
63
+ Bootstrap documentation
64
+ </a> to get an idea of the
64
65
  various components that this documentation <b>does not</b> cover.
65
66
  </p>
66
67
  </div>
@@ -55,7 +55,7 @@ const page = "layout";
55
55
  <div class="callout callout-info mb-4">
56
56
  <h5 class="fw-bold">Tips</h5>
57
57
  <p>
58
- The <a href="/starter.html" class="link-primary">
58
+ The <a href="/starter.html" target="_blank" rel="noopener noreferrer" class="callout-link">
59
59
  starter page
60
60
  </a> is a good place to start building your app if you’d like to
61
61
  start from scratch.
@@ -49,11 +49,11 @@ const year = new Date().getFullYear();
49
49
  Enter your password to retrieve your session
50
50
  </div>
51
51
  <div class="text-center">
52
- <a href="login.html">Or sign in as a different user</a>
52
+ <a href="login.html" class="text-decoration-none">Or sign in as a different user</a>
53
53
  </div>
54
54
  <div class="lockscreen-footer text-center">
55
- Copyright © 2014-{year}
56
- <b><a href="https://adminlte.io">AdminLTE.io</a></b><br />
55
+ Copyright © 2014-{year} &nbsp;
56
+ <b><a href="https://adminlte.io" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">AdminLTE.io</a></b> <br />
57
57
  All rights reserved
58
58
  </div>
59
59
  </div>
@@ -58,11 +58,11 @@ const page = "general";
58
58
  <!--begin::Col-->
59
59
  <div class="col-12">
60
60
  <div class="callout callout-info">
61
- For detailed documentaion of Form visit <a
61
+ For detailed documentation of Form visit <a
62
62
  href="https://getbootstrap.com/docs/5.3/forms/overview/"
63
63
  target="_blank"
64
64
  rel="noopener noreferrer"
65
- class="fw-bold"
65
+ class="callout-link"
66
66
  >
67
67
  Bootstrap Form
68
68
  </a>
@@ -72,7 +72,7 @@ const page = "general";
72
72
  <!--begin::Col-->
73
73
  <div class="col-md-6">
74
74
  <!--begin::Quick Example-->
75
- <div class="card card-primary card-outline">
75
+ <div class="card card-primary card-outline mb-4">
76
76
  <!--begin::Header-->
77
77
  <div class="card-header">
78
78
  <div class="card-title">Quick Example</div>
@@ -140,7 +140,7 @@ const page = "general";
140
140
  </div>
141
141
  <!--end::Quick Example-->
142
142
  <!--begin::Input Group-->
143
- <div class="card card-success card-outline">
143
+ <div class="card card-success card-outline mb-4">
144
144
  <!--begin::Header-->
145
145
  <div class="card-header">
146
146
  <div class="card-title">Input Group</div>
@@ -234,7 +234,7 @@ const page = "general";
234
234
  </div>
235
235
  <!--end::Input Group-->
236
236
  <!--begin::Horizontal Form-->
237
- <div class="card card-warning card-outline">
237
+ <div class="card card-warning card-outline mb-4">
238
238
  <!--begin::Header-->
239
239
  <div class="card-header">
240
240
  <div class="card-title">Horizontal Form</div>
@@ -348,7 +348,7 @@ const page = "general";
348
348
  <!--begin::Col-->
349
349
  <div class="col-md-6">
350
350
  <!--begin::Different Height-->
351
- <div class="card card-secondary card-outline">
351
+ <div class="card card-secondary card-outline mb-4">
352
352
  <!--begin::Header-->
353
353
  <div class="card-header">
354
354
  <div class="card-title">Different Height</div>
@@ -381,7 +381,7 @@ const page = "general";
381
381
  </div>
382
382
  <!--end::Different Height-->
383
383
  <!--begin::Different Width-->
384
- <div class="card card-danger card-outline">
384
+ <div class="card card-danger card-outline mb-4">
385
385
  <!--begin::Header-->
386
386
  <div class="card-header">
387
387
  <div class="card-title">Different Width</div>
@@ -425,7 +425,7 @@ const page = "general";
425
425
  </div>
426
426
  <!--end::Different Width-->
427
427
  <!--begin::Form Validation-->
428
- <div class="card card-info card-outline">
428
+ <div class="card card-info card-outline mb-4">
429
429
  <!--begin::Header-->
430
430
  <div class="card-header">
431
431
  <div class="card-title">Form Validation</div>
@@ -11,7 +11,7 @@ const mainPage = "dashboard";
11
11
  const page = "index";
12
12
  ---
13
13
 
14
- <!DOCTYPE html>
14
+ <!doctype html>
15
15
  <html lang="en">
16
16
  <!--begin::Head-->
17
17
  <head>
@@ -91,7 +91,10 @@ const page = "index";
91
91
  d="M2.25 2.25a.75.75 0 000 1.5h1.386c.17 0 .318.114.362.278l2.558 9.592a3.752 3.752 0 00-2.806 3.63c0 .414.336.75.75.75h15.75a.75.75 0 000-1.5H5.378A2.25 2.25 0 017.5 15h11.218a.75.75 0 00.674-.421 60.358 60.358 0 002.96-7.228.75.75 0 00-.525-.965A60.864 60.864 0 005.68 4.509l-.232-.867A1.875 1.875 0 003.636 2.25H2.25zM3.75 20.25a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zM16.5 20.25a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"
92
92
  ></path>
93
93
  </svg>
94
- <a href="#" class="small-box-footer link-light link-underline-opacity-0 link-underline-opacity-50-hover">
94
+ <a
95
+ href="#"
96
+ class="small-box-footer link-light link-underline-opacity-0 link-underline-opacity-50-hover"
97
+ >
95
98
  More info <i class="bi bi-link-45deg"></i>
96
99
  </a>
97
100
  </div>
@@ -117,7 +120,10 @@ const page = "index";
117
120
  d="M18.375 2.25c-1.035 0-1.875.84-1.875 1.875v15.75c0 1.035.84 1.875 1.875 1.875h.75c1.035 0 1.875-.84 1.875-1.875V4.125c0-1.036-.84-1.875-1.875-1.875h-.75zM9.75 8.625c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-.75a1.875 1.875 0 01-1.875-1.875V8.625zM3 13.125c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v6.75c0 1.035-.84 1.875-1.875 1.875h-.75A1.875 1.875 0 013 19.875v-6.75z"
118
121
  ></path>
119
122
  </svg>
120
- <a href="#" class="small-box-footer link-light link-underline-opacity-0 link-underline-opacity-50-hover">
123
+ <a
124
+ href="#"
125
+ class="small-box-footer link-light link-underline-opacity-0 link-underline-opacity-50-hover"
126
+ >
121
127
  More info <i class="bi bi-link-45deg"></i>
122
128
  </a>
123
129
  </div>
@@ -143,7 +149,10 @@ const page = "index";
143
149
  d="M6.25 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM3.25 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 0 01-.363.63 13.067 13.067 0 01-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 01-.364-.63l-.001-.122zM19.75 7.5a.75.75 0 00-1.5 0v2.25H16a.75.75 0 000 1.5h2.25v2.25a.75.75 0 001.5 0v-2.25H22a.75.75 0 000-1.5h-2.25V7.5z"
144
150
  ></path>
145
151
  </svg>
146
- <a href="#" class="small-box-footer link-light link-underline-opacity-0 link-underline-opacity-50-hover">
152
+ <a
153
+ href="#"
154
+ class="small-box-footer link-dark link-underline-opacity-0 link-underline-opacity-50-hover"
155
+ >
147
156
  More info <i class="bi bi-link-45deg"></i>
148
157
  </a>
149
158
  </div>
@@ -176,7 +185,10 @@ const page = "index";
176
185
  d="M12.75 3a.75.75 0 01.75-.75 8.25 8.25 0 018.25 8.25.75.75 0 01-.75.75h-7.5a.75.75 0 01-.75-.75V3z"
177
186
  ></path>
178
187
  </svg>
179
- <a href="#" class="small-box-footer link-light link-underline-opacity-0 link-underline-opacity-50-hover">
188
+ <a
189
+ href="#"
190
+ class="small-box-footer link-light link-underline-opacity-0 link-underline-opacity-50-hover"
191
+ >
180
192
  More info <i class="bi bi-link-45deg"></i>
181
193
  </a>
182
194
  </div>
@@ -201,7 +213,7 @@ const page = "index";
201
213
  <!-- /.card -->
202
214
 
203
215
  <!-- DIRECT CHAT -->
204
- <div class="card direct-chat direct-chat-primary">
216
+ <div class="card direct-chat direct-chat-primary mb-4">
205
217
  <div class="card-header">
206
218
  <h3 class="card-title">Direct Chat</h3>
207
219
 
@@ -510,7 +522,7 @@ const page = "index";
510
522
  <!-- Start col -->
511
523
  <div class="col-lg-5 connectedSortable">
512
524
  <div
513
- class="card mb-4 text-white bg-primary bg-gradient border-primary"
525
+ class="card text-white bg-primary bg-gradient border-primary mb-4"
514
526
  >
515
527
  <div class="card-header border-0">
516
528
  <h3 class="card-title">Sales Value</h3>
@@ -532,15 +544,15 @@ const page = "index";
532
544
  <!--begin::Row-->
533
545
  <div class="row">
534
546
  <div class="col-4 text-center">
535
- <div id="sparkline-1"></div>
547
+ <div id="sparkline-1" class="text-dark"></div>
536
548
  <div class="text-white">Visitors</div>
537
549
  </div>
538
550
  <div class="col-4 text-center">
539
- <div id="sparkline-2"></div>
551
+ <div id="sparkline-2" class="text-dark"></div>
540
552
  <div class="text-white">Online</div>
541
553
  </div>
542
554
  <div class="col-4 text-center">
543
- <div id="sparkline-3"></div>
555
+ <div id="sparkline-3" class="text-dark"></div>
544
556
  <div class="text-white">Sales</div>
545
557
  </div>
546
558
  </div>
@@ -569,8 +581,7 @@ const page = "index";
569
581
  <script
570
582
  src="https://cdn.jsdelivr.net/npm/sortablejs@1.15.0/Sortable.min.js"
571
583
  integrity="sha256-ipiJrswvAR4VAx/th+6zWsdeYmVae0iJuiR+6OqHJHQ="
572
- crossorigin="anonymous"
573
- ></script>
584
+ crossorigin="anonymous"></script>
574
585
 
575
586
  <!-- sortablejs -->
576
587
  <script is:inline>
@@ -579,11 +590,12 @@ const page = "index";
579
590
  connectedSortables.forEach((connectedSortable) => {
580
591
  let sortable = new Sortable(connectedSortable, {
581
592
  group: "shared",
593
+ handle: ".card-header",
582
594
  });
583
595
  });
584
596
 
585
597
  const cardHeaders = document.querySelectorAll(
586
- ".connectedSortable .card-header"
598
+ ".connectedSortable .card-header",
587
599
  );
588
600
  cardHeaders.forEach((cardHeader) => {
589
601
  cardHeader.style.cursor = "move";
@@ -594,8 +606,7 @@ const page = "index";
594
606
  <script
595
607
  src="https://cdn.jsdelivr.net/npm/apexcharts@3.37.1/dist/apexcharts.min.js"
596
608
  integrity="sha256-+vh8GkaU7C9/wbSLIcwq82tQ2wTf44aOHA8HlBMwRI8="
597
- crossorigin="anonymous"
598
- ></script>
609
+ crossorigin="anonymous"></script>
599
610
 
600
611
  <!-- ChartJS -->
601
612
  <script is:inline>
@@ -652,7 +663,7 @@ const page = "index";
652
663
 
653
664
  const sales_chart = new ApexCharts(
654
665
  document.querySelector("#revenue-chart"),
655
- sales_chart_options
666
+ sales_chart_options,
656
667
  );
657
668
  sales_chart.render();
658
669
  </script>
@@ -661,13 +672,11 @@ const page = "index";
661
672
  <script
662
673
  src="https://cdn.jsdelivr.net/npm/jsvectormap@1.5.3/dist/js/jsvectormap.min.js"
663
674
  integrity="sha256-/t1nN2956BT869E6H4V1dnt0X5pAQHPytli+1nTZm2Y="
664
- crossorigin="anonymous"
665
- ></script>
675
+ crossorigin="anonymous"></script>
666
676
  <script
667
677
  src="https://cdn.jsdelivr.net/npm/jsvectormap@1.5.3/dist/maps/world.js"
668
678
  integrity="sha256-XPpPaZlU8S/HWf7FZLAncLg2SAkP8ScUTII89x9D3lY="
669
- crossorigin="anonymous"
670
- ></script>
679
+ crossorigin="anonymous"></script>
671
680
 
672
681
  <!-- jsvectormap -->
673
682
  <script is:inline>
@@ -719,7 +728,7 @@ const page = "index";
719
728
 
720
729
  const sparkline1 = new ApexCharts(
721
730
  document.querySelector("#sparkline-1"),
722
- option_sparkline1
731
+ option_sparkline1,
723
732
  );
724
733
  sparkline1.render();
725
734
 
@@ -750,7 +759,7 @@ const page = "index";
750
759
 
751
760
  const sparkline2 = new ApexCharts(
752
761
  document.querySelector("#sparkline-2"),
753
- option_sparkline2
762
+ option_sparkline2,
754
763
  );
755
764
  sparkline2.render();
756
765
 
@@ -781,7 +790,7 @@ const page = "index";
781
790
 
782
791
  const sparkline3 = new ApexCharts(
783
792
  document.querySelector("#sparkline-3"),
784
- option_sparkline3
793
+ option_sparkline3,
785
794
  );
786
795
  sparkline3.render();
787
796
  </script>
@@ -11,7 +11,7 @@ const mainPage = "dashboard";
11
11
  const page = "index2";
12
12
  ---
13
13
 
14
- <!DOCTYPE html>
14
+ <!doctype html>
15
15
  <html lang="en">
16
16
  <!--begin::Head-->
17
17
  <head>
@@ -309,7 +309,7 @@ const page = "index2";
309
309
  <!-- Start col -->
310
310
  <div class="col-md-8">
311
311
  <!--begin::Row-->
312
- <div class="row">
312
+ <div class="row g-4 mb-4">
313
313
  <div class="col-md-6">
314
314
  <!-- DIRECT CHAT -->
315
315
  <div class="card direct-chat direct-chat-warning">
@@ -329,7 +329,8 @@ const page = "index2";
329
329
  data-lte-toggle="card-collapse"
330
330
  >
331
331
  <i data-lte-icon="expand" class="bi bi-plus-lg"></i>
332
- <i data-lte-icon="collapse" class="bi bi-dash-lg"></i>
332
+ <i data-lte-icon="collapse" class="bi bi-dash-lg"
333
+ ></i>
333
334
  </button>
334
335
  <button
335
336
  type="button"
@@ -622,7 +623,7 @@ const page = "index2";
622
623
 
623
624
  <div class="col-md-6">
624
625
  <!-- USERS LIST -->
625
- <div class="card mb-4">
626
+ <div class="card">
626
627
  <div class="card-header">
627
628
  <h3 class="card-title">Latest Members</h3>
628
629
 
@@ -636,7 +637,8 @@ const page = "index2";
636
637
  data-lte-toggle="card-collapse"
637
638
  >
638
639
  <i data-lte-icon="expand" class="bi bi-plus-lg"></i>
639
- <i data-lte-icon="collapse" class="bi bi-dash-lg"></i>
640
+ <i data-lte-icon="collapse" class="bi bi-dash-lg"
641
+ ></i>
640
642
  </button>
641
643
  <button
642
644
  type="button"
@@ -767,7 +769,7 @@ const page = "index2";
767
769
  </div>
768
770
  <!-- /.card-body -->
769
771
  <div class="card-footer text-center">
770
- <a href="javascript:">View All Users</a>
772
+ <a href="javascript:" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">View All Users</a>
771
773
  </div>
772
774
  <!-- /.card-footer -->
773
775
  </div>
@@ -777,7 +779,7 @@ const page = "index2";
777
779
  </div>
778
780
  <!--end::Row-->
779
781
 
780
- <!-- TABLE: LATEST ORDERS -->
782
+ <!--begin::Latest Order Widget-->
781
783
  <div class="card">
782
784
  <div class="card-header">
783
785
  <h3 class="card-title">Latest Orders</h3>
@@ -815,7 +817,7 @@ const page = "index2";
815
817
  <tbody>
816
818
  <tr>
817
819
  <td>
818
- <a href="pages/examples/invoice.html">OR9842</a>
820
+ <a href="pages/examples/invoice.html" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">OR9842</a>
819
821
  </td>
820
822
  <td>Call of Duty IV</td>
821
823
  <td>
@@ -824,36 +826,24 @@ const page = "index2";
824
826
  </span>
825
827
  </td>
826
828
  <td>
827
- <div
828
- class="sparkbar"
829
- data-color="#00a65a"
830
- data-height="20"
831
- >
832
- 90,80,90,-70,61,-83,63
833
- </div>
829
+ <div id="table-sparkline-1"></div>
834
830
  </td>
835
831
  </tr>
836
832
  <tr>
837
833
  <td>
838
- <a href="pages/examples/invoice.html">OR1848</a>
834
+ <a href="pages/examples/invoice.html" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">OR1848</a>
839
835
  </td>
840
836
  <td>Samsung Smart TV</td>
841
837
  <td>
842
838
  <span class="badge text-bg-warning">Pending</span>
843
839
  </td>
844
840
  <td>
845
- <div
846
- class="sparkbar"
847
- data-color="#f39c12"
848
- data-height="20"
849
- >
850
- 90,80,-90,70,61,-83,68
851
- </div>
841
+ <div id="table-sparkline-2"></div>
852
842
  </td>
853
843
  </tr>
854
844
  <tr>
855
845
  <td>
856
- <a href="pages/examples/invoice.html">OR7429</a>
846
+ <a href="pages/examples/invoice.html" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">OR7429</a>
857
847
  </td>
858
848
  <td>iPhone 6 Plus</td>
859
849
  <td>
@@ -862,54 +852,36 @@ const page = "index2";
862
852
  </span>
863
853
  </td>
864
854
  <td>
865
- <div
866
- class="sparkbar"
867
- data-color="#f56954"
868
- data-height="20"
869
- >
870
- 90,-80,90,70,-61,83,63
871
- </div>
855
+ <div id="table-sparkline-3"></div>
872
856
  </td>
873
857
  </tr>
874
858
  <tr>
875
859
  <td>
876
- <a href="pages/examples/invoice.html">OR7429</a>
860
+ <a href="pages/examples/invoice.html" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">OR7429</a>
877
861
  </td>
878
862
  <td>Samsung Smart TV</td>
879
863
  <td>
880
864
  <span class="badge text-bg-info">Processing</span>
881
865
  </td>
882
866
  <td>
883
- <div
884
- class="sparkbar"
885
- data-color="#00c0ef"
886
- data-height="20"
887
- >
888
- 90,80,-90,70,-61,83,63
889
- </div>
867
+ <div id="table-sparkline-4"></div>
890
868
  </td>
891
869
  </tr>
892
870
  <tr>
893
871
  <td>
894
- <a href="pages/examples/invoice.html">OR1848</a>
872
+ <a href="pages/examples/invoice.html" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">OR1848</a>
895
873
  </td>
896
874
  <td>Samsung Smart TV</td>
897
875
  <td>
898
876
  <span class="badge text-bg-warning">Pending</span>
899
877
  </td>
900
878
  <td>
901
- <div
902
- class="sparkbar"
903
- data-color="#f39c12"
904
- data-height="20"
905
- >
906
- 90,80,-90,70,61,-83,68
907
- </div>
879
+ <div id="table-sparkline-5"></div>
908
880
  </td>
909
881
  </tr>
910
882
  <tr>
911
883
  <td>
912
- <a href="pages/examples/invoice.html">OR7429</a>
884
+ <a href="pages/examples/invoice.html" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">OR7429</a>
913
885
  </td>
914
886
  <td>iPhone 6 Plus</td>
915
887
  <td>
@@ -918,31 +890,19 @@ const page = "index2";
918
890
  </span>
919
891
  </td>
920
892
  <td>
921
- <div
922
- class="sparkbar"
923
- data-color="#f56954"
924
- data-height="20"
925
- >
926
- 90,-80,90,70,-61,83,63
927
- </div>
893
+ <div id="table-sparkline-6"></div>
928
894
  </td>
929
895
  </tr>
930
896
  <tr>
931
897
  <td>
932
- <a href="pages/examples/invoice.html">OR9842</a>
898
+ <a href="pages/examples/invoice.html" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">OR9842</a>
933
899
  </td>
934
900
  <td>Call of Duty IV</td>
935
901
  <td>
936
902
  <span class="badge text-bg-success">Shipped</span>
937
903
  </td>
938
904
  <td>
939
- <div
940
- class="sparkbar"
941
- data-color="#00a65a"
942
- data-height="20"
943
- >
944
- 90,80,90,-70,61,-83,63
945
- </div>
905
+ <div id="table-sparkline-7"></div>
946
906
  </td>
947
907
  </tr>
948
908
  </tbody>
@@ -1063,7 +1023,7 @@ const page = "index2";
1063
1023
  United States of America
1064
1024
  <span class="float-end text-danger">
1065
1025
  <i class="bi bi-arrow-down fs-7"></i>
1066
- 12%
1026
+ 12%
1067
1027
  </span>
1068
1028
  </a>
1069
1029
  </li>
@@ -1233,8 +1193,7 @@ const page = "index2";
1233
1193
  <script
1234
1194
  src="https://cdn.jsdelivr.net/npm/apexcharts@3.37.1/dist/apexcharts.min.js"
1235
1195
  integrity="sha256-+vh8GkaU7C9/wbSLIcwq82tQ2wTf44aOHA8HlBMwRI8="
1236
- crossorigin="anonymous"
1237
- ></script>
1196
+ crossorigin="anonymous"></script>
1238
1197
 
1239
1198
  <script is:inline>
1240
1199
  // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
@@ -1250,7 +1209,7 @@ const page = "index2";
1250
1209
  // - MONTHLY SALES CHART -
1251
1210
  //-----------------------
1252
1211
 
1253
- var sales_chart_options = {
1212
+ const sales_chart_options = {
1254
1213
  series: [
1255
1214
  {
1256
1215
  name: "Digital Goods",
@@ -1297,9 +1256,9 @@ const page = "index2";
1297
1256
  },
1298
1257
  };
1299
1258
 
1300
- var sales_chart = new ApexCharts(
1259
+ const sales_chart = new ApexCharts(
1301
1260
  document.querySelector("#sales-chart"),
1302
- sales_chart_options
1261
+ sales_chart_options,
1303
1262
  );
1304
1263
  sales_chart.render();
1305
1264
 
@@ -1307,11 +1266,80 @@ const page = "index2";
1307
1266
  // - END MONTHLY SALES CHART -
1308
1267
  //---------------------------
1309
1268
 
1269
+ function createSparklineChart(selector, data) {
1270
+ const options = {
1271
+ series: [{ data }],
1272
+ chart: {
1273
+ type: "line",
1274
+ width: 150,
1275
+ height: 30,
1276
+ sparkline: {
1277
+ enabled: true,
1278
+ },
1279
+ },
1280
+ colors: ["var(--bs-primary)"],
1281
+ stroke: {
1282
+ width: 2,
1283
+ },
1284
+ tooltip: {
1285
+ fixed: {
1286
+ enabled: false,
1287
+ },
1288
+ x: {
1289
+ show: false,
1290
+ },
1291
+ y: {
1292
+ title: {
1293
+ formatter: function (seriesName) {
1294
+ return "";
1295
+ },
1296
+ },
1297
+ },
1298
+ marker: {
1299
+ show: false,
1300
+ },
1301
+ },
1302
+ };
1303
+
1304
+ const chart = new ApexCharts(document.querySelector(selector), options);
1305
+ chart.render();
1306
+ }
1307
+
1308
+ const table_sparkline_1_data = [
1309
+ 25, 66, 41, 89, 63, 25, 44, 12, 36, 9, 54,
1310
+ ];
1311
+ const table_sparkline_2_data = [
1312
+ 12, 56, 21, 39, 73, 45, 64, 52, 36, 59, 44,
1313
+ ];
1314
+ const table_sparkline_3_data = [
1315
+ 15, 46, 21, 59, 33, 15, 34, 42, 56, 19, 64,
1316
+ ];
1317
+ const table_sparkline_4_data = [
1318
+ 30, 56, 31, 69, 43, 35, 24, 32, 46, 29, 64,
1319
+ ];
1320
+ const table_sparkline_5_data = [
1321
+ 20, 76, 51, 79, 53, 35, 54, 22, 36, 49, 64,
1322
+ ];
1323
+ const table_sparkline_6_data = [
1324
+ 5, 36, 11, 69, 23, 15, 14, 42, 26, 19, 44,
1325
+ ];
1326
+ const table_sparkline_7_data = [
1327
+ 12, 56, 21, 39, 73, 45, 64, 52, 36, 59, 74,
1328
+ ];
1329
+
1330
+ createSparklineChart("#table-sparkline-1", table_sparkline_1_data);
1331
+ createSparklineChart("#table-sparkline-2", table_sparkline_2_data);
1332
+ createSparklineChart("#table-sparkline-3", table_sparkline_3_data);
1333
+ createSparklineChart("#table-sparkline-4", table_sparkline_4_data);
1334
+ createSparklineChart("#table-sparkline-5", table_sparkline_5_data);
1335
+ createSparklineChart("#table-sparkline-6", table_sparkline_6_data);
1336
+ createSparklineChart("#table-sparkline-7", table_sparkline_7_data);
1337
+
1310
1338
  //-------------
1311
1339
  // - PIE CHART -
1312
1340
  //-------------
1313
1341
 
1314
- var pie_chart_options = {
1342
+ const pie_chart_options = {
1315
1343
  series: [700, 500, 400, 600, 300, 100],
1316
1344
  chart: {
1317
1345
  type: "donut",
@@ -1330,9 +1358,9 @@ const page = "index2";
1330
1358
  ],
1331
1359
  };
1332
1360
 
1333
- var pie_chart = new ApexCharts(
1361
+ const pie_chart = new ApexCharts(
1334
1362
  document.querySelector("#pie-chart"),
1335
- pie_chart_options
1363
+ pie_chart_options,
1336
1364
  );
1337
1365
  pie_chart.render();
1338
1366