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

bulma-extensions

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulma-extensions - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

2

bulma-carousel/package.json
{
"name": "bulma-carousel",
"version": "0.3.0",
"version": "0.3.1",
"description": "Display a Image / Content carousel",

@@ -5,0 +5,0 @@ "main": "carousel.sass",

{
"name": "bulma-tagsinput",
"version": "0.1.9",
"version": "0.2.0",
"description": "Bulma.io extension to add interaction on input tags",

@@ -5,0 +5,0 @@ "main": "tagsinput.sass",

@@ -75,3 +75,7 @@ if (typeof Object.assign != 'function') {

this.input.setAttribute('type', inputType);
this.input.setAttribute('placeholder', 'Add a Tag');
if (this.element.getAttribute('placeholder')) {
this.input.setAttribute('placeholder', this.element.getAttribute('placeholder'));
} else {
this.input.setAttribute('placeholder', 'Add a Tag');
}
this.container.appendChild(this.input);

@@ -78,0 +82,0 @@

@@ -5,4 +5,4 @@ var $jscomp={scope:{},owns:function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,d){if(d.get||d.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=d.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);

var MOUSE_EVENTS=["click","touchstart"],KEY_BACKSPACE=8,KEY_TAB=9,KEY_ENTER=13,KEY_LEFT=37,KEY_RIGHT=39,KEY_DELETE=46,KEY_COMMA=188,Tagify=function(a,b){b=void 0===b?{}:b;this.element=a;this.options=Object.assign({},{disabled:!1,delimiter:",",allowDelete:!0,lowercase:!1,uppercase:!1,duplicates:!0},b);this.init()};
Tagify.prototype.init=function(){if(!this.options.disabled){this.tags=[];this.container=document.createElement("div");this.container.className="tagsinput";this.container.classList.add("field");this.container.classList.add("is-grouped");this.container.classList.add("is-grouped-multiline");this.container.classList.add("input");var a=this.element.getAttribute("type");a&&"tags"!==a||(a="text");this.input=document.createElement("input");this.input.setAttribute("type",a);this.input.setAttribute("placeholder",
"Add a Tag");this.container.appendChild(this.input);a=this.element.nextSibling;this.element.parentNode[a?"insertBefore":"appendChild"](this.container,a);this.element.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;opacity:0.01;";this.element.tabIndex=-1;this.enable()}};
Tagify.prototype.init=function(){if(!this.options.disabled){this.tags=[];this.container=document.createElement("div");this.container.className="tagsinput";this.container.classList.add("field");this.container.classList.add("is-grouped");this.container.classList.add("is-grouped-multiline");this.container.classList.add("input");var a=this.element.getAttribute("type");a&&"tags"!==a||(a="text");this.input=document.createElement("input");this.input.setAttribute("type",a);this.element.getAttribute("placeholder")?
this.input.setAttribute("placeholder",this.element.getAttribute("placeholder")):this.input.setAttribute("placeholder","Add a Tag");this.container.appendChild(this.input);a=this.element.nextSibling;this.element.parentNode[a?"insertBefore":"appendChild"](this.container,a);this.element.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;opacity:0.01;";this.element.tabIndex=-1;this.enable()}};
Tagify.prototype.enable=function(){var a=this;this.enabled||this.options.disabled||(this.element.addEventListener("focus",function(){a.container.classList.add("is-focused");a.select(Array.prototype.slice.call(a.container.querySelectorAll(".tag:not(.is-delete)")).pop())}),this.input.addEventListener("focus",function(){a.container.classList.add("is-focused");a.select(Array.prototype.slice.call(a.container.querySelectorAll(".tag:not(.is-delete)")).pop())}),this.input.addEventListener("blur",function(){a.container.classList.remove("is-focused");

@@ -9,0 +9,0 @@ a.select(Array.prototype.slice.call(a.container.querySelectorAll(".tag:not(.is-delete)")).pop());a.savePartial()}),this.input.addEventListener("keydown",function(b){var d=b.charCode||b.keyCode||b.which,c,e=a.container.querySelector(".tag.is-active"),f=Array.prototype.slice.call(a.container.querySelectorAll(".tag:not(.is-delete)")).pop(),g=a.caretAtStart(a.input);e&&(c=a.container.querySelector('[data-tag="'+e.innerHTML.trim()+'"]'));a.setInputWidth();if(d===KEY_ENTER||d===a.options.delimiter.charCodeAt(0)||

{
"name": "bulma-extensions",
"version": "0.6.4",
"version": "0.6.5",
"description": "Set of extensions for Bulma.io CSS Framework",

@@ -5,0 +5,0 @@ "main": "extensions.sass",

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