@spectrum-web-components/split-view
Advanced tools
Comparing version 0.2.6 to 0.2.7-alpha.1
{ | ||
"name": "@spectrum-web-components/split-view", | ||
"version": "0.2.6", | ||
"version": "0.2.7-alpha.1+ed84dff79", | ||
"publishConfig": { | ||
@@ -46,3 +46,3 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^0.4.3", | ||
"@spectrum-web-components/base": "^0.4.4-alpha.135+ed84dff79", | ||
"tslib": "^2.0.0" | ||
@@ -59,3 +59,3 @@ }, | ||
], | ||
"gitHead": "b425768aaf694ab19ddad4fcab9939c29a2a503b" | ||
"gitHead": "ed84dff79fd23708ed6c63a8114290217d9c17ad" | ||
} |
@@ -1,2 +0,2 @@ | ||
declare const styles: import("@spectrum-web-components/base").CSSResult; | ||
declare const styles: import("@spectrum-web-components/base").CSSResultGroup; | ||
export default styles; |
@@ -1,2 +0,2 @@ | ||
declare const styles: import("@spectrum-web-components/base").CSSResult; | ||
declare const styles: import("@spectrum-web-components/base").CSSResultGroup; | ||
export default styles; |
@@ -14,2 +14,3 @@ /* | ||
import { html, SpectrumElement, property, ifDefined, query, nothing, classMap, } from '@spectrum-web-components/base'; | ||
import { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js'; | ||
import styles from './split-view.css.js'; | ||
@@ -108,4 +109,10 @@ const DEFAULT_MAX_SIZE = 3840; | ||
@keydown=${this.onKeydown} | ||
@pointerdown=${this.onPointerdown} | ||
@pointerup=${this.onPointerup} | ||
${streamingListener({ | ||
start: ['pointerdown', this.onPointerdown], | ||
streamInside: ['pointermove', this.onPointermove], | ||
end: [ | ||
['pointerup', 'pointercancel'], | ||
this.onPointerup, | ||
], | ||
})} | ||
> | ||
@@ -128,6 +135,6 @@ ${this.resizable | ||
if (!this.resizable || (event.button && event.button !== 0)) { | ||
event.preventDefault(); | ||
return; | ||
} | ||
this.splitter.setPointerCapture(event.pointerId); | ||
this.onpointermove = this.onPointermove; | ||
this.offset = this.getOffset(); | ||
@@ -150,3 +157,2 @@ } | ||
this.splitter.releasePointerCapture(event.pointerId); | ||
this.onpointermove = null; | ||
} | ||
@@ -153,0 +159,0 @@ getOffset() { |
@@ -26,2 +26,3 @@ /* | ||
} from '@spectrum-web-components/base'; | ||
import { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js'; | ||
@@ -194,4 +195,10 @@ import { WithSWCResizeObserver } from './types'; | ||
@keydown=${this.onKeydown} | ||
@pointerdown=${this.onPointerdown} | ||
@pointerup=${this.onPointerup} | ||
${streamingListener({ | ||
start: ['pointerdown', this.onPointerdown], | ||
streamInside: ['pointermove', this.onPointermove], | ||
end: [ | ||
['pointerup', 'pointercancel'], | ||
this.onPointerup, | ||
], | ||
})} | ||
> | ||
@@ -216,6 +223,6 @@ ${this.resizable | ||
if (!this.resizable || (event.button && event.button !== 0)) { | ||
event.preventDefault(); | ||
return; | ||
} | ||
this.splitter.setPointerCapture(event.pointerId); | ||
this.onpointermove = this.onPointermove; | ||
this.offset = this.getOffset(); | ||
@@ -241,3 +248,2 @@ } | ||
this.splitter.releasePointerCapture(event.pointerId); | ||
this.onpointermove = null; | ||
} | ||
@@ -244,0 +250,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173931
1823
1