slim-select
Advanced tools
Comparing version 1.4.3 to 1.5.1
{ | ||
"name": "slim-select", | ||
"description": "Slim vanilla javascript select dropdown", | ||
"version": "1.4.3", | ||
"description": "Slim advanced select dropdown", | ||
"version": "1.5.1", | ||
"author": "Brian Voelker <brian@webiswhatido.com> (http://webiswhatido.com)", | ||
@@ -14,5 +14,5 @@ "homepage": "https://slimselectjs.com", | ||
}, | ||
"main": "dist/index.js", | ||
"style": "dist/index.css", | ||
"sass": "src/slim-select/index.scss", | ||
"main": "dist/slimselect.min.js", | ||
"style": "dist/slimselect.min.css", | ||
"sass": "src/slim-select/slimselect.scss", | ||
"repository": { | ||
@@ -29,4 +29,3 @@ "type": "git", | ||
"scripts": { | ||
"prod": "vue-build prod", | ||
"docs": "DOCS=true vue-build prod" | ||
"prod": "sh prod.sh" | ||
}, | ||
@@ -33,0 +32,0 @@ "devDependencies": { |
# Slim Select | ||
Slim vanilla javascript select dropdown | ||
Slim advanced select dropdown | ||
@@ -40,3 +40,4 @@ [![Build Status](https://travis-ci.org/brianvoe/slim-select.svg?branch=master)](https://travis-ci.org/brianvoe/slim-select) | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/slim-select/<current_version>/index.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/slim-select/<current_version>/slimselect.min.js"></script> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slim-select/<current_version>/slimselect.min.css"> | ||
``` | ||
@@ -43,0 +44,0 @@ |
@@ -11,3 +11,3 @@ import Vue from 'vue' | ||
import 'scss/index.scss' | ||
import 'slim-select/index.scss' | ||
import 'slim-select/slimselect.scss' | ||
@@ -14,0 +14,0 @@ Vue.directive('highlightjs', { |
@@ -276,4 +276,11 @@ import SlimSelect from './index' | ||
container.classList.add(this.main.config.search) | ||
if (!this.main.config.showSearch) {container.style.display = 'none'} | ||
// We still want the search to be tabable but not shown | ||
if (!this.main.config.showSearch) { | ||
container.style.height = '0px' | ||
container.style.opacity = '0' | ||
container.style.padding = '0px 0px 0px 0px' | ||
container.style.margin = '0px 0px 0px 0px' | ||
} | ||
var input = document.createElement('input') | ||
@@ -280,0 +287,0 @@ input.type = 'search' |
@@ -33,2 +33,3 @@ import SlimSelect from './index' | ||
contentPosition: string = 'below' | ||
isOnChangeEnabled: boolean = true | ||
constructor (info: constructor) { | ||
@@ -123,3 +124,5 @@ this.main = info.main | ||
this.onDataChange() | ||
if (this.isOnChangeEnabled) { | ||
this.onDataChange() | ||
} | ||
} | ||
@@ -126,0 +129,0 @@ |
@@ -1,2 +0,2 @@ | ||
import './index.scss' | ||
import './slimselect.scss' | ||
@@ -3,0 +3,0 @@ import 'custom-event-polyfill' // Needed for IE to use custom events |
@@ -47,3 +47,6 @@ import SlimSelect from './index' | ||
// Do not trigger onChange callbacks for this event listener | ||
this.main.data.isOnChangeEnabled = false | ||
this.element.dispatchEvent(new CustomEvent('change')) | ||
this.main.data.isOnChangeEnabled = true | ||
} | ||
@@ -50,0 +53,0 @@ |
@@ -28,3 +28,4 @@ var projectRoot = process.cwd() | ||
} else if (process.env.ENVIRONMENT === 'production') { | ||
config.entry.index = './slim-select/index.ts' | ||
config.entry.index = './slim-select/index.ts' // Only used because otherwise vue-build yells at me | ||
config.entry.slimselect = './slim-select/index.ts' | ||
config.output = { | ||
@@ -31,0 +32,0 @@ library: 'SlimSelect', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
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
1155163
52
3189
60