@deepfuture/dui-cdn 1.4.0 → 1.4.1
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/dui.js +10 -6
- package/dui.min.js +228 -228
- package/package.json +1 -1
package/dui.js
CHANGED
|
@@ -14591,13 +14591,17 @@ var DuiSidebarProviderPrimitive = class extends (_a42 = i8, _open_dec6 = [n7({ t
|
|
|
14591
14591
|
}
|
|
14592
14592
|
connectedCallback() {
|
|
14593
14593
|
super.connectedCallback();
|
|
14594
|
-
if (this.
|
|
14595
|
-
__privateSet(this, _DuiSidebarProviderPrimitive_instances,
|
|
14594
|
+
if (this.collapsible === "always") {
|
|
14595
|
+
__privateSet(this, _DuiSidebarProviderPrimitive_instances, true, isMobile_set);
|
|
14596
|
+
} else {
|
|
14597
|
+
if (this.open === void 0) {
|
|
14598
|
+
__privateSet(this, _DuiSidebarProviderPrimitive_instances, this.defaultOpen, internalOpen_set6);
|
|
14599
|
+
}
|
|
14600
|
+
__privateSet(this, _mediaQuery, matchMedia("(min-width: 768px)"));
|
|
14601
|
+
__privateSet(this, _DuiSidebarProviderPrimitive_instances, !__privateGet(this, _mediaQuery).matches, isMobile_set);
|
|
14602
|
+
__privateSet(this, _boundOnMediaChange, __privateGet(this, _onMediaChange).bind(this));
|
|
14603
|
+
__privateGet(this, _mediaQuery).addEventListener("change", __privateGet(this, _boundOnMediaChange));
|
|
14596
14604
|
}
|
|
14597
|
-
__privateSet(this, _mediaQuery, matchMedia("(min-width: 768px)"));
|
|
14598
|
-
__privateSet(this, _DuiSidebarProviderPrimitive_instances, !__privateGet(this, _mediaQuery).matches, isMobile_set);
|
|
14599
|
-
__privateSet(this, _boundOnMediaChange, __privateGet(this, _onMediaChange).bind(this));
|
|
14600
|
-
__privateGet(this, _mediaQuery).addEventListener("change", __privateGet(this, _boundOnMediaChange));
|
|
14601
14605
|
__privateSet(this, _boundOnKeyDown, __privateGet(this, _onKeyDown6).bind(this));
|
|
14602
14606
|
document.addEventListener("keydown", __privateGet(this, _boundOnKeyDown));
|
|
14603
14607
|
this._ctx = __privateMethod(this, _DuiSidebarProviderPrimitive_instances, buildContext_fn8).call(this);
|