Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spectrum-web-components/picker

Package Overview
Dependencies
Maintainers
0
Versions
283
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/picker - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

32

package.json
{
"name": "@spectrum-web-components/picker",
"version": "1.0.0",
"version": "1.0.1",
"publishConfig": {

@@ -85,16 +85,16 @@ "access": "public"

"dependencies": {
"@spectrum-web-components/base": "^1.0.0",
"@spectrum-web-components/button": "^1.0.0",
"@spectrum-web-components/field-label": "^1.0.0",
"@spectrum-web-components/icon": "^1.0.0",
"@spectrum-web-components/icons-ui": "^1.0.0",
"@spectrum-web-components/icons-workflow": "^1.0.0",
"@spectrum-web-components/menu": "^1.0.0",
"@spectrum-web-components/overlay": "^1.0.0",
"@spectrum-web-components/popover": "^1.0.0",
"@spectrum-web-components/progress-circle": "^1.0.0",
"@spectrum-web-components/reactive-controllers": "^1.0.0",
"@spectrum-web-components/shared": "^1.0.0",
"@spectrum-web-components/tooltip": "^1.0.0",
"@spectrum-web-components/tray": "^1.0.0"
"@spectrum-web-components/base": "^1.0.1",
"@spectrum-web-components/button": "^1.0.1",
"@spectrum-web-components/field-label": "^1.0.1",
"@spectrum-web-components/icon": "^1.0.1",
"@spectrum-web-components/icons-ui": "^1.0.1",
"@spectrum-web-components/icons-workflow": "^1.0.1",
"@spectrum-web-components/menu": "^1.0.1",
"@spectrum-web-components/overlay": "^1.0.1",
"@spectrum-web-components/popover": "^1.0.1",
"@spectrum-web-components/progress-circle": "^1.0.1",
"@spectrum-web-components/reactive-controllers": "^1.0.1",
"@spectrum-web-components/shared": "^1.0.1",
"@spectrum-web-components/tooltip": "^1.0.1",
"@spectrum-web-components/tray": "^1.0.1"
},

@@ -112,3 +112,3 @@ "devDependencies": {

],
"gitHead": "5cf5d34645bf9494ebd20f64c42d1619523d2d84"
"gitHead": "b359bc0242712be118c5e3e2cc05f88707d3eeb1"
}

@@ -12,3 +12,3 @@ "use strict";

handlePointerdown(event) {
if (event.button !== 0) {
if (event.button !== 0 || event.pointerType === "touch") {
return;

@@ -15,0 +15,0 @@ }

@@ -1,2 +0,2 @@

"use strict";import{InteractionController as i,InteractionTypes as r}from"./InteractionController.js";export class DesktopController extends i{constructor(){super(...arguments);this.type=r.desktop}handlePointerdown(e){if(e.button!==0)return;this.pointerdownState=this.open,this.preventNextToggle="maybe";let n=0;const t=()=>{cancelAnimationFrame(n),n=requestAnimationFrame(async()=>{document.removeEventListener("pointerup",t),document.removeEventListener("pointercancel",t),this.target.removeEventListener("click",t),requestAnimationFrame(()=>{this.preventNextToggle="no"})})};document.addEventListener("pointerup",t),document.addEventListener("pointercancel",t),this.target.addEventListener("click",t),this.handleActivate()}handleActivate(e){this.enterKeydownOn&&this.enterKeydownOn!==this.target||this.preventNextToggle!=="yes"&&((e==null?void 0:e.type)==="click"&&this.open!==this.pointerdownState||this.host.toggle())}init(){var n;(n=this.abortController)==null||n.abort(),this.abortController=new AbortController;const{signal:e}=this.abortController;this.target.addEventListener("click",t=>this.handleActivate(t),{signal:e}),this.target.addEventListener("pointerdown",t=>this.handlePointerdown(t),{signal:e}),this.target.addEventListener("focus",t=>this.handleButtonFocus(t),{signal:e})}}
"use strict";import{InteractionController as i,InteractionTypes as o}from"./InteractionController.js";export class DesktopController extends i{constructor(){super(...arguments);this.type=o.desktop}handlePointerdown(e){if(e.button!==0||e.pointerType==="touch")return;this.pointerdownState=this.open,this.preventNextToggle="maybe";let n=0;const t=()=>{cancelAnimationFrame(n),n=requestAnimationFrame(async()=>{document.removeEventListener("pointerup",t),document.removeEventListener("pointercancel",t),this.target.removeEventListener("click",t),requestAnimationFrame(()=>{this.preventNextToggle="no"})})};document.addEventListener("pointerup",t),document.addEventListener("pointercancel",t),this.target.addEventListener("click",t),this.handleActivate()}handleActivate(e){this.enterKeydownOn&&this.enterKeydownOn!==this.target||this.preventNextToggle!=="yes"&&((e==null?void 0:e.type)==="click"&&this.open!==this.pointerdownState||this.host.toggle())}init(){var n;(n=this.abortController)==null||n.abort(),this.abortController=new AbortController;const{signal:e}=this.abortController;this.target.addEventListener("click",t=>this.handleActivate(t),{signal:e}),this.target.addEventListener("pointerdown",t=>this.handlePointerdown(t),{signal:e}),this.target.addEventListener("focus",t=>this.handleButtonFocus(t),{signal:e})}}
//# sourceMappingURL=DesktopController.js.map

@@ -434,3 +434,3 @@ "use strict";

this,
"<${this.localName}> needs one of the following to be accessible:",
`<${this.localName}> needs one of the following to be accessible:`,
"https://opensource.adobe.com/spectrum-web-components/components/picker/#accessibility",

@@ -437,0 +437,0 @@ {

@@ -58,3 +58,3 @@ "use strict";

const test = await fixture(html`
<sp-theme scale="medium" color="light">
<sp-theme scale="medium" color="light" system="spectrum">
<sp-field-label for="picker">Where do you live?</sp-field-label>

@@ -61,0 +61,0 @@ <sp-picker

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc