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.5.7 to 0.5.8

2

bulma-steps/package.json
{
"name": "bulma-steps",
"version": "0.1.4",
"version": "0.1.5",
"description": "Display steps for a process (like sign-up, or order, form), in different colors, sizes, and states ",

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

@@ -42,2 +42,3 @@ class StepsWizard {

this.previous_btn.addEventListener( 'click', function( e ) {
e.preventDefault();
_this.previous_step();

@@ -49,2 +50,3 @@ } );

this.next_btn.addEventListener( 'click', function( e ) {
e.preventDefault();
_this.next_step();

@@ -51,0 +53,0 @@ } );

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,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(a,b,c,e){if(b){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];d in c||(c[d]={});c=c[d]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Object.assign",function(a){return a?a:function(a,c){for(var b=1;b<arguments.length;b++){var d=arguments[b];if(d)for(var f in d)$jscomp.owns(d,f)&&(a[f]=d[f])}return a}},"es6-impl","es3");
var StepsWizard=function(a,b){a=void 0===a?null:a;b=void 0===b?{}:b;this.options=Object.assign({},{selector:".step-item",selector_content:".step-content",previous_selector:'[data-nav="previous"]',next_selector:'[data-nav="next"]',active_class:"is-active",completed_class:"is-completed",beforeNext:null,onShow:null,onFinish:null,onError:null},b);this.element=a;this.steps=a.querySelectorAll(this.options.selector);this.contents=a.querySelectorAll(this.options.selector_content);this.previous_btn=a.querySelector(this.options.previous_selector);
this.next_btn=a.querySelector(this.options.next_selector);this.init()};StepsWizard.prototype.init=function(){for(var a=0;a<this.steps.length;a++)this.steps[a].setAttribute("data-step-id",a);this.bind();this.start()};StepsWizard.prototype.bind=function(){var a=this;null!=this.previous_btn&&this.previous_btn.addEventListener("click",function(b){a.previous_step()});null!=this.next_btn&&this.next_btn.addEventListener("click",function(b){a.next_step()})};
this.next_btn=a.querySelector(this.options.next_selector);this.init()};StepsWizard.prototype.init=function(){for(var a=0;a<this.steps.length;a++)this.steps[a].setAttribute("data-step-id",a);this.bind();this.start()};StepsWizard.prototype.bind=function(){var a=this;null!=this.previous_btn&&this.previous_btn.addEventListener("click",function(b){b.preventDefault();a.previous_step()});null!=this.next_btn&&this.next_btn.addEventListener("click",function(b){b.preventDefault();a.next_step()})};
StepsWizard.prototype.start=function(){this.activate_step(0);this.updateActions(this.steps[0])};StepsWizard.prototype.get_current_step_id=function(){for(var a=0;a<this.steps.length;a++){var b=this.steps[a];if(b.classList.contains(this.options.active_class))return parseInt(b.getAttribute("data-step-id"))}return null};

@@ -6,0 +6,0 @@ StepsWizard.prototype.updateActions=function(a){a=parseInt(a.getAttribute("data-step-id"));0==a?(null!=this.previous_btn&&this.previous_btn.setAttribute("disabled","disabled"),null!=this.next_btn&&this.next_btn.removeAttribute("disabled","disabled")):a==this.steps.length-1?(null!=this.previous_btn&&this.previous_btn.removeAttribute("disabled","disabled"),null!=this.next_btn&&this.next_btn.setAttribute("disabled","disabled")):(null!=this.previous_btn&&this.previous_btn.removeAttribute("disabled","disabled"),

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

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

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