@ship-ui/core 0.13.27 → 0.13.28
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.
|
@@ -3966,7 +3966,7 @@ class ShipSidenavComponent {
|
|
|
3966
3966
|
return dragPosition;
|
|
3967
3967
|
}, ...(ngDevMode ? [{ debugName: "dragActualPositionX" }] : []));
|
|
3968
3968
|
this.draggingStyle = computed(() => {
|
|
3969
|
-
if (!this.isOverlay())
|
|
3969
|
+
if (!this.isOverlay() || this.disableDrag())
|
|
3970
3970
|
return null;
|
|
3971
3971
|
if (this.isDragging()) {
|
|
3972
3972
|
return `translateX(${this.dragActualPositionX()}px)`;
|
|
@@ -3974,7 +3974,7 @@ class ShipSidenavComponent {
|
|
|
3974
3974
|
return this.isOpen() ? `translateX(${this.openWidth}px)` : `translateX(0px)`;
|
|
3975
3975
|
}, ...(ngDevMode ? [{ debugName: "draggingStyle" }] : []));
|
|
3976
3976
|
this.draggingEffect = effect(() => {
|
|
3977
|
-
if (typeof document === 'undefined')
|
|
3977
|
+
if (typeof document === 'undefined' || this.disableDrag())
|
|
3978
3978
|
return;
|
|
3979
3979
|
if (this.isDragging()) {
|
|
3980
3980
|
document.body.classList.add('dragging');
|
|
@@ -4049,7 +4049,7 @@ class ShipSidenavComponent {
|
|
|
4049
4049
|
}
|
|
4050
4050
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSidenavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4051
4051
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipSidenavComponent, isStandalone: true, selector: "sh-sidenav", inputs: { disableDrag: { classPropertyName: "disableDrag", publicName: "disableDrag", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange" }, host: { properties: { "class.open": "isOpen()", "class.closed": "!isOpen()", "class.is-dragging": "isDragging()" } }, viewQueries: [{ propertyName: "dragImageElement", first: true, predicate: ["dragImageElement"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
4052
|
-
@if (isOverlay()) {
|
|
4052
|
+
@if (isOverlay() && !disableDrag()) {
|
|
4053
4053
|
<div #dragImageElement class="drag-image"></div>
|
|
4054
4054
|
}
|
|
4055
4055
|
|
|
@@ -4061,7 +4061,7 @@ class ShipSidenavComponent {
|
|
|
4061
4061
|
<ng-content select="[sidenav]"></ng-content>
|
|
4062
4062
|
</div>
|
|
4063
4063
|
|
|
4064
|
-
<div class="main-wrap" [style.transform]="draggingStyle()">
|
|
4064
|
+
<div class="main-wrap" [style.transform]="!disableDrag() && draggingStyle()">
|
|
4065
4065
|
@if (isOverlay() && !disableDrag()) {
|
|
4066
4066
|
<div
|
|
4067
4067
|
class="dragable"
|
|
@@ -4090,7 +4090,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
4090
4090
|
args: [{
|
|
4091
4091
|
selector: 'sh-sidenav',
|
|
4092
4092
|
template: `
|
|
4093
|
-
@if (isOverlay()) {
|
|
4093
|
+
@if (isOverlay() && !disableDrag()) {
|
|
4094
4094
|
<div #dragImageElement class="drag-image"></div>
|
|
4095
4095
|
}
|
|
4096
4096
|
|
|
@@ -4102,7 +4102,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
4102
4102
|
<ng-content select="[sidenav]"></ng-content>
|
|
4103
4103
|
</div>
|
|
4104
4104
|
|
|
4105
|
-
<div class="main-wrap" [style.transform]="draggingStyle()">
|
|
4105
|
+
<div class="main-wrap" [style.transform]="!disableDrag() && draggingStyle()">
|
|
4106
4106
|
@if (isOverlay() && !disableDrag()) {
|
|
4107
4107
|
<div
|
|
4108
4108
|
class="dragable"
|