admin-lte 4.0.0-alpha2 → 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.
- package/.bundlewatch.config.json +6 -6
- package/.cache/.eslintcache +1 -1
- package/.cache/.stylelintcache +1 -1
- package/.gitpod.yml +1 -1
- package/README.md +9 -4
- package/dist/assets/img/AdminLTEFullLogo.png +0 -0
- package/dist/css/adminlte.css +879 -418
- package/dist/css/adminlte.css.map +1 -1
- package/dist/css/adminlte.min.css +2 -2
- package/dist/css/adminlte.min.css.map +1 -1
- package/dist/css/adminlte.rtl.css +886 -416
- package/dist/css/adminlte.rtl.css.map +1 -1
- package/dist/css/adminlte.rtl.min.css +2 -2
- package/dist/css/adminlte.rtl.min.css.map +1 -1
- package/dist/js/adminlte.js +178 -96
- package/dist/js/adminlte.js.map +1 -1
- package/dist/js/adminlte.min.js +3 -3
- package/dist/js/adminlte.min.js.map +1 -1
- package/dist/pages/UI/general.html +895 -0
- package/dist/pages/UI/timeline.html +309 -515
- package/dist/pages/docs/browser-support.html +265 -433
- package/dist/pages/docs/color-mode.html +482 -615
- package/dist/pages/docs/components/main-header.html +516 -703
- package/dist/pages/docs/components/main-sidebar.html +550 -0
- package/dist/pages/docs/faq.html +433 -0
- package/dist/pages/docs/how-to-contribute.html +474 -0
- package/dist/pages/docs/introduction.html +463 -0
- package/dist/pages/docs/javascript/treeview.html +453 -0
- package/dist/pages/docs/layout.html +293 -433
- package/dist/pages/docs/license.html +436 -0
- package/dist/pages/examples/lockscreen.html +69 -0
- package/dist/pages/examples/login-v2.html +88 -0
- package/dist/pages/examples/login.html +49 -100
- package/dist/pages/examples/register-v2.html +90 -0
- package/dist/pages/examples/register.html +50 -103
- package/dist/pages/forms/general.html +430 -454
- package/dist/pages/index.html +466 -740
- package/dist/pages/index2.html +672 -1041
- package/dist/pages/index3.html +371 -629
- package/dist/pages/layout/collapsed-sidebar.html +441 -0
- package/dist/pages/layout/fixed-complete.html +541 -0
- package/dist/pages/layout/fixed-sidebar.html +263 -446
- package/dist/pages/layout/layout-rtl.html +263 -445
- package/dist/pages/layout/logo-switch.html +234 -0
- package/dist/pages/layout/sidebar-mini.html +263 -445
- package/dist/pages/layout/unfixed-sidebar.html +263 -445
- package/dist/pages/tables/simple.html +314 -499
- package/dist/pages/widgets/cards.html +326 -629
- package/dist/pages/widgets/info-box.html +348 -674
- package/dist/pages/widgets/small-box.html +279 -465
- package/index.html +6 -10
- package/package.json +34 -30
- package/src/assets/img/AdminLTEFullLogo.png +0 -0
- package/src/config/astro.config.mjs +3 -1
- package/src/html/.prettierrc.js +11 -0
- package/src/html/components/_head.astro +32 -26
- package/src/html/components/_scripts.astro +27 -28
- package/src/html/components/dashboard/_footer.astro +14 -8
- package/src/html/components/dashboard/_sidenav.astro +352 -113
- package/src/html/components/dashboard/_topbar.astro +99 -50
- package/src/html/components/docs/{browser-support/index.md → browser-support.mdx} +2 -1
- package/src/html/components/docs/color-mode.mdx +169 -0
- package/src/html/components/docs/components/{main-header-1.md → main-header.mdx} +60 -21
- package/src/html/components/docs/components/main-sidebar.mdx +129 -0
- package/src/html/components/docs/faq.mdx +11 -0
- package/src/html/components/docs/how-to-contribute.mdx +34 -0
- package/src/html/components/docs/{introduction/index.md → introduction.mdx} +30 -5
- package/src/html/components/docs/license.mdx +9 -0
- package/src/html/components/javascript/treeview.mdx +39 -0
- package/src/html/pages/UI/general.astro +1451 -0
- package/src/html/pages/UI/timeline.astro +111 -48
- package/src/html/pages/docs/browser-support.astro +24 -11
- package/src/html/pages/docs/color-mode.astro +91 -42
- package/src/html/pages/docs/components/main-header.astro +134 -46
- package/src/html/pages/docs/components/main-sidebar.astro +71 -0
- package/src/html/pages/docs/faq.astro +71 -0
- package/src/html/pages/docs/how-to-contribute.astro +71 -0
- package/src/html/pages/docs/{index.astro → introduction.astro} +24 -11
- package/src/html/pages/docs/javascript/treeview.astro +71 -0
- package/src/html/pages/docs/layout.astro +62 -19
- package/src/html/pages/docs/license.astro +71 -0
- package/src/html/pages/examples/lockscreen.astro +63 -0
- package/src/html/pages/examples/login-v2.astro +109 -0
- package/src/html/pages/examples/login.astro +34 -16
- package/src/html/pages/examples/register-v2.astro +116 -0
- package/src/html/pages/examples/register.astro +36 -18
- package/src/html/pages/forms/general.astro +568 -37
- package/src/html/pages/index.astro +403 -157
- package/src/html/pages/index2.astro +715 -255
- package/src/html/pages/index3.astro +298 -197
- package/src/html/pages/layout/collapsed-sidebar.astro +110 -0
- package/src/html/pages/layout/fixed-complete.astro +209 -0
- package/src/html/pages/layout/fixed-sidebar.astro +52 -27
- package/src/html/pages/layout/layout-rtl.astro +53 -28
- package/src/html/pages/layout/logo-switch.astro +212 -0
- package/src/html/pages/layout/sidebar-mini.astro +53 -28
- package/src/html/pages/layout/unfixed-sidebar.astro +51 -27
- package/src/html/pages/tables/simple.astro +226 -86
- package/src/html/pages/widgets/cards.astro +137 -72
- package/src/html/pages/widgets/info-box.astro +96 -41
- package/src/html/pages/widgets/small-box.astro +93 -32
- package/src/scss/_app-content.scss +52 -0
- package/src/scss/_app-footer.scss +1 -1
- package/src/scss/_app-main.scss +6 -5
- package/src/scss/_app-sidebar.scss +244 -70
- package/src/scss/_bootstrap-variables.scss +26 -22
- package/src/scss/_callouts.scss +6 -0
- package/src/scss/_cards.scss +32 -7
- package/src/scss/_compact-mode.scss +79 -0
- package/src/scss/_direct-chat.scss +5 -0
- package/src/scss/_dropdown.scss +1 -0
- package/src/scss/_info-box.scss +2 -10
- package/src/scss/_small-box.scss +0 -3
- package/src/scss/_timeline.scss +1 -0
- package/src/scss/_toasts.scss +33 -0
- package/src/scss/_variables.scss +32 -9
- package/src/scss/adminlte.scss +1 -2
- package/src/scss/mixins/_animations.scss +0 -5
- package/src/scss/pages/_lockscreen.scss +75 -0
- package/src/scss/pages/_login_and_register.scss +1 -3
- package/src/scss/parts/_core.scss +2 -0
- package/src/scss/parts/_extra-components.scss +1 -0
- package/src/scss/parts/_pages.scss +1 -0
- package/src/ts/adminlte.ts +3 -1
- package/src/ts/card-widget.ts +20 -52
- package/src/ts/direct-chat.ts +5 -4
- package/src/ts/fullscreen.ts +110 -0
- package/src/ts/layout.ts +5 -4
- package/src/ts/push-menu.ts +6 -22
- package/src/ts/treeview.ts +34 -11
- package/src/ts/util/index.ts +15 -13
- package/src/utils/index.js +20 -3
- package/.idea/AdminLTE.iml +0 -12
- package/.idea/codeStyles/Project.xml +0 -29
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -7
- package/.idea/modules.xml +0 -8
- package/.idea/php.xml +0 -28
- package/.idea/vcs.xml +0 -6
- package/dist/pages/docs.html +0 -617
- package/src/html/components/docs/color-mode/navbar-html.md +0 -80
- package/src/html/components/docs/color-mode/toggle-script.md +0 -48
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
```html
|
|
2
|
-
<!-- Navbar -->
|
|
3
|
-
<nav class="app-header navbar navbar-expand bg-body">
|
|
4
|
-
<div class="container-fluid">
|
|
5
|
-
<!-- Start navbar links -->
|
|
6
|
-
<ul class="navbar-nav">
|
|
7
|
-
<li class="nav-item">
|
|
8
|
-
<a
|
|
9
|
-
class="nav-link"
|
|
10
|
-
data-lte-toggle="sidebar"
|
|
11
|
-
href="#"
|
|
12
|
-
role="button"><i class="fa-solid fa-bars"></i></a
|
|
13
|
-
>
|
|
14
|
-
</li>
|
|
15
|
-
<li class="nav-item d-none d-md-block">
|
|
16
|
-
<a href="#" class="nav-link">Home</a>
|
|
17
|
-
</li>
|
|
18
|
-
<li class="nav-item d-none d-md-block">
|
|
19
|
-
<a href="#" class="nav-link">Contact</a>
|
|
20
|
-
</li>
|
|
21
|
-
</ul>
|
|
22
|
-
<ul class="navbar-nav ms-auto">
|
|
23
|
-
<li class="nav-item dropdown">
|
|
24
|
-
<button
|
|
25
|
-
class="btn btn-link nav-link py-2 px-0 px-lg-2 dropdown-toggle d-flex align-items-center"
|
|
26
|
-
id="bd-theme"
|
|
27
|
-
type="button"
|
|
28
|
-
aria-expanded="false"
|
|
29
|
-
data-bs-toggle="dropdown"
|
|
30
|
-
data-bs-display="static"
|
|
31
|
-
>
|
|
32
|
-
<span class="theme-icon-active">
|
|
33
|
-
<i class="my-1"></i>
|
|
34
|
-
</span>
|
|
35
|
-
</button>
|
|
36
|
-
<ul
|
|
37
|
-
class="dropdown-menu dropdown-menu-end"
|
|
38
|
-
aria-labelledby="bd-theme"
|
|
39
|
-
style="--bs-dropdown-min-width: 8rem;"
|
|
40
|
-
>
|
|
41
|
-
<li>
|
|
42
|
-
<button
|
|
43
|
-
type="button"
|
|
44
|
-
class="dropdown-item d-flex align-items-center active"
|
|
45
|
-
data-bs-theme-value="light"
|
|
46
|
-
>
|
|
47
|
-
<i class="fa-regular fa-sun me-2"></i>
|
|
48
|
-
Light
|
|
49
|
-
<i class="fa-solid fa-check ms-auto d-none"></i>
|
|
50
|
-
</button>
|
|
51
|
-
</li>
|
|
52
|
-
<li>
|
|
53
|
-
<button
|
|
54
|
-
type="button"
|
|
55
|
-
class="dropdown-item d-flex align-items-center"
|
|
56
|
-
data-bs-theme-value="dark"
|
|
57
|
-
>
|
|
58
|
-
<i class="fa-solid fa-moon me-2"></i>
|
|
59
|
-
Dark
|
|
60
|
-
<i class="fa-solid fa-check ms-auto d-none"></i>
|
|
61
|
-
</button>
|
|
62
|
-
</li>
|
|
63
|
-
<li>
|
|
64
|
-
<button
|
|
65
|
-
type="button"
|
|
66
|
-
class="dropdown-item d-flex align-items-center"
|
|
67
|
-
data-bs-theme-value="auto"
|
|
68
|
-
>
|
|
69
|
-
<i class="fa-solid fa-circle-half-stroke me-2"
|
|
70
|
-
></i>
|
|
71
|
-
Auto
|
|
72
|
-
<i class="fa-solid fa-check ms-auto d-none"></i>
|
|
73
|
-
</button>
|
|
74
|
-
</li>
|
|
75
|
-
</ul>
|
|
76
|
-
</li>
|
|
77
|
-
</ul>
|
|
78
|
-
</div>
|
|
79
|
-
</nav>
|
|
80
|
-
```
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
```js
|
|
2
|
-
// Color Mode Toggler
|
|
3
|
-
(() => {
|
|
4
|
-
'use strict'
|
|
5
|
-
const storedTheme = localStorage.getItem('theme')
|
|
6
|
-
const getPreferredTheme = () => {
|
|
7
|
-
if (storedTheme) {
|
|
8
|
-
return storedTheme
|
|
9
|
-
}
|
|
10
|
-
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
|
11
|
-
}
|
|
12
|
-
const setTheme = function (theme) {
|
|
13
|
-
if (theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
14
|
-
document.documentElement.setAttribute('data-bs-theme', 'dark')
|
|
15
|
-
} else {
|
|
16
|
-
document.documentElement.setAttribute('data-bs-theme', theme)
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
setTheme(getPreferredTheme())
|
|
20
|
-
const showActiveTheme = theme => {
|
|
21
|
-
const activeThemeIcon = document.querySelector('.theme-icon-active i')
|
|
22
|
-
const btnToActive = document.querySelector('[data-bs-theme-value="' + theme + '"]')
|
|
23
|
-
const svgOfActiveBtn = btnToActive.querySelector('i').getAttribute('class')
|
|
24
|
-
document.querySelectorAll('[data-bs-theme-value]').forEach(element => {
|
|
25
|
-
element.classList.remove('active')
|
|
26
|
-
})
|
|
27
|
-
btnToActive.classList.add('active')
|
|
28
|
-
activeThemeIcon.setAttribute('class', svgOfActiveBtn)
|
|
29
|
-
}
|
|
30
|
-
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
|
|
31
|
-
if (storedTheme !== 'light' || storedTheme !== 'dark') {
|
|
32
|
-
setTheme(getPreferredTheme())
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
window.addEventListener('DOMContentLoaded', () => {
|
|
36
|
-
showActiveTheme(getPreferredTheme())
|
|
37
|
-
document.querySelectorAll('[data-bs-theme-value]')
|
|
38
|
-
.forEach(toggle => {
|
|
39
|
-
toggle.addEventListener('click', () => {
|
|
40
|
-
const theme = toggle.getAttribute('data-bs-theme-value')
|
|
41
|
-
localStorage.setItem('theme', theme)
|
|
42
|
-
setTheme(theme)
|
|
43
|
-
showActiveTheme(theme)
|
|
44
|
-
})
|
|
45
|
-
})
|
|
46
|
-
})
|
|
47
|
-
})()
|
|
48
|
-
```
|