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

ay-dialog

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ay-dialog - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

40

dialog.js

@@ -35,19 +35,3 @@ /*! Copyright (c) 2016 Ayogo Health Inc.

// Courtesy of AngularUI Bootstrap's $modal service
var FOCUS_SELECTOR = [
'a[href]',
'area[href]',
'input:not([disabled])',
'button:not([disabled])',
'select:not([disabled])',
'textarea:not([disabled])',
'keygen:not([disabled])',
'iframe',
'object',
'embed',
'[tabindex]:not([disabled]):not([tabindex=""])',
'[contenteditable=true]'
].join(',');
var DIALOG_STYLES = [

@@ -79,2 +63,6 @@ '[hidden] {',

'',
'dialog:focus {',
' outline: 0 none;',
'}',
'',
'dialog[open] {',

@@ -129,17 +117,2 @@ ' visibility: visible;',

var control = el.querySelector(FOCUS_SELECTOR);
if (control) {
if (immediate) {
control.focus();
return;
}
$window.setTimeout(function() {
control.focus();
}, 1);
el.focus();
return;
}
el.focus();

@@ -318,3 +291,8 @@ }

// Ensure the dialog is focusable
if (!el.hasAttribute('tabindex')) {
el.tabIndex = -1;
}
if (('HTMLDialogElement' in $window) &&

@@ -321,0 +299,0 @@ (el instanceof $window.HTMLDialogElement))

{
"name": "ay-dialog",
"version": "1.0.3",
"version": "1.1.0",
"copyright": "Copyright 2016 Ayogo Health Inc.",

@@ -5,0 +5,0 @@ "license": "MIT",

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