@vanduo-oss/framework 1.2.7 → 1.2.9
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/README.md +14 -6
- package/dist/build-info.json +3 -3
- package/dist/vanduo.cjs.js +16 -4
- package/dist/vanduo.cjs.js.map +2 -2
- package/dist/vanduo.cjs.min.js +4 -4
- package/dist/vanduo.cjs.min.js.map +3 -3
- package/dist/vanduo.css +7 -7
- package/dist/vanduo.esm.js +16 -4
- package/dist/vanduo.esm.js.map +2 -2
- package/dist/vanduo.esm.min.js +4 -4
- package/dist/vanduo.esm.min.js.map +3 -3
- package/dist/vanduo.js +16 -4
- package/dist/vanduo.js.map +2 -2
- package/dist/vanduo.min.css +1 -1
- package/dist/vanduo.min.js +4 -4
- package/dist/vanduo.min.js.map +3 -3
- package/js/components/theme-customizer.js +16 -2
- package/js/components/theme-switcher.js +7 -0
- package/package.json +4 -4
package/dist/vanduo.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Vanduo v1.2.
|
|
1
|
+
/*! Vanduo v1.2.9 | Built: 2026-03-14T18:56:04.214Z | git:800b9f0 | development */
|
|
2
2
|
*, :before, :after {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
@@ -52099,7 +52099,7 @@ a.vd-btn, a.vd-btn:hover {
|
|
|
52099
52099
|
position: absolute;
|
|
52100
52100
|
top: 45%;
|
|
52101
52101
|
left: 50%;
|
|
52102
|
-
transform: translate(-50%, -50%)rotate(45deg);
|
|
52102
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
52103
52103
|
}
|
|
52104
52104
|
|
|
52105
52105
|
.checkbox > input[type="checkbox"]:disabled, .vd-form-check > input[type="checkbox"]:disabled {
|
|
@@ -52177,7 +52177,7 @@ a.vd-btn, a.vd-btn:hover {
|
|
|
52177
52177
|
height: .75rem;
|
|
52178
52178
|
position: absolute;
|
|
52179
52179
|
top: 50%;
|
|
52180
|
-
transform: translate(-50%, -60%)rotate(45deg);
|
|
52180
|
+
transform: translate(-50%, -60%) rotate(45deg);
|
|
52181
52181
|
}
|
|
52182
52182
|
|
|
52183
52183
|
.checkbox-input:indeterminate + .checkbox-label:before, .checkbox-input:indeterminate ~ .checkbox-label:before, .vd-form-check-input:indeterminate + .vd-form-check-label:before {
|
|
@@ -53524,7 +53524,7 @@ a.vd-card:active {
|
|
|
53524
53524
|
}
|
|
53525
53525
|
|
|
53526
53526
|
.vd-navbar-toggle.is-active span:first-child, .vd-navbar-burger.is-active span:first-child {
|
|
53527
|
-
transform: rotate(45deg)translate(5px, 5px);
|
|
53527
|
+
transform: rotate(45deg) translate(5px, 5px);
|
|
53528
53528
|
}
|
|
53529
53529
|
|
|
53530
53530
|
.vd-navbar-toggle.is-active span:nth-child(2), .vd-navbar-burger.is-active span:nth-child(2) {
|
|
@@ -53532,7 +53532,7 @@ a.vd-card:active {
|
|
|
53532
53532
|
}
|
|
53533
53533
|
|
|
53534
53534
|
.vd-navbar-toggle.is-active span:nth-child(3), .vd-navbar-burger.is-active span:nth-child(3) {
|
|
53535
|
-
transform: rotate(-45deg)translate(7px, -6px);
|
|
53535
|
+
transform: rotate(-45deg) translate(7px, -6px);
|
|
53536
53536
|
}
|
|
53537
53537
|
|
|
53538
53538
|
.vd-navbar-menu {
|
|
@@ -56046,7 +56046,7 @@ h1 .vd-badge, h2 .vd-badge, h3 .vd-badge, h4 .vd-badge, h5 .vd-badge, h6 .vd-bad
|
|
|
56046
56046
|
}
|
|
56047
56047
|
|
|
56048
56048
|
.vd-offcanvas.is-open {
|
|
56049
|
-
transform: translateX(0)translateY(0);
|
|
56049
|
+
transform: translateX(0) translateY(0);
|
|
56050
56050
|
}
|
|
56051
56051
|
|
|
56052
56052
|
.vd-sidenav-top, .vd-offcanvas-top {
|
|
@@ -62532,7 +62532,7 @@ input.vd-doc-search-input {
|
|
|
62532
62532
|
}
|
|
62533
62533
|
|
|
62534
62534
|
.vd-fab-center:hover {
|
|
62535
|
-
transform: translateX(50%)scale(1.05);
|
|
62535
|
+
transform: translateX(50%) scale(1.05);
|
|
62536
62536
|
}
|
|
62537
62537
|
|
|
62538
62538
|
.vd-fab-secondary {
|
package/dist/vanduo.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Vanduo v1.2.
|
|
1
|
+
/*! Vanduo v1.2.9 | Built: 2026-03-14T18:56:04.214Z | git:800b9f0 | development */
|
|
2
2
|
|
|
3
3
|
// js/utils/lifecycle.js
|
|
4
4
|
(function() {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
// js/vanduo.js
|
|
108
108
|
(function() {
|
|
109
109
|
"use strict";
|
|
110
|
-
const VANDUO_VERSION = true ? "1.2.
|
|
110
|
+
const VANDUO_VERSION = true ? "1.2.9" : "0.0.0-dev";
|
|
111
111
|
const Vanduo2 = {
|
|
112
112
|
version: VANDUO_VERSION,
|
|
113
113
|
components: {},
|
|
@@ -3877,7 +3877,9 @@
|
|
|
3877
3877
|
if (!this.THEME_MODES.includes(mode)) {
|
|
3878
3878
|
mode = this.DEFAULTS.THEME;
|
|
3879
3879
|
}
|
|
3880
|
-
|
|
3880
|
+
this._isApplying = true;
|
|
3881
|
+
const currentMode = this.state.theme;
|
|
3882
|
+
const oldDefault = this.getDefaultPrimary(currentMode);
|
|
3881
3883
|
if (this.state.primary === oldDefault) {
|
|
3882
3884
|
const newDefault = this.getDefaultPrimary(mode);
|
|
3883
3885
|
if (newDefault !== this.state.primary) {
|
|
@@ -3893,10 +3895,17 @@
|
|
|
3893
3895
|
this.savePreference(this.STORAGE_KEYS.THEME, mode);
|
|
3894
3896
|
if (window.Vanduo && window.Vanduo.components.themeSwitcher) {
|
|
3895
3897
|
const themeSwitcher = window.Vanduo.components.themeSwitcher;
|
|
3896
|
-
if (themeSwitcher.state) {
|
|
3898
|
+
if (themeSwitcher.state && themeSwitcher.state.preference !== mode) {
|
|
3897
3899
|
themeSwitcher.state.preference = mode;
|
|
3900
|
+
if (typeof themeSwitcher.setStorageValue === "function") {
|
|
3901
|
+
themeSwitcher.setStorageValue(themeSwitcher.STORAGE_KEY, mode);
|
|
3902
|
+
}
|
|
3903
|
+
if (typeof themeSwitcher.updateUI === "function") {
|
|
3904
|
+
themeSwitcher.updateUI();
|
|
3905
|
+
}
|
|
3898
3906
|
}
|
|
3899
3907
|
}
|
|
3908
|
+
this._isApplying = false;
|
|
3900
3909
|
this.dispatchEvent("mode-change", { mode });
|
|
3901
3910
|
},
|
|
3902
3911
|
/**
|
|
@@ -4312,6 +4321,9 @@
|
|
|
4312
4321
|
this.state.preference = pref;
|
|
4313
4322
|
this.setStorageValue(this.STORAGE_KEY, pref);
|
|
4314
4323
|
this.applyTheme();
|
|
4324
|
+
if (window.ThemeCustomizer && window.ThemeCustomizer.applyTheme && !window.ThemeCustomizer._isApplying) {
|
|
4325
|
+
window.ThemeCustomizer.applyTheme(pref);
|
|
4326
|
+
}
|
|
4315
4327
|
this.updateUI();
|
|
4316
4328
|
},
|
|
4317
4329
|
getStorageValue: function(key, fallback) {
|