awesome-selector
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "awesome-selector", | ||
"description": "React, Angular, Vue, and Typescript compatible selector", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"author": "Mostafa Mohammadzadeh", | ||
@@ -11,5 +11,4 @@ "license": "MIT", | ||
"test": "jest", | ||
"test-cov": "jest --coverage", | ||
"pub": "npm publish", | ||
"deploy": "cd website && npm run build && npm run export && cd .. && find website/out -type d -exec chmod 755 {} \\; && find website/out -type f -exec chmod 644 {} \\; && git add -A && git commit -m \"[deployment auto commit]\" && git ftp push" | ||
"test-cov": "jest --coverage","pub": "npm test || npm update && npm publish", | ||
"dep": "npm update && npm publish && cd website && npm update && npm run build && npm run export && cd .. && find website/out -type d -exec chmod 755 {} \\; && find website/out -type f -exec chmod 644 {} \\; && git add -A && git commit -m \"[deployment auto commit]\" && git ftp push" | ||
}, | ||
@@ -16,0 +15,0 @@ "devDependencies": { |
@@ -67,4 +67,4 @@ declare type option = { | ||
protected addEventToClose(): void; | ||
protected hide(): void; | ||
hide(): void; | ||
} | ||
export {}; |
@@ -99,3 +99,3 @@ //custom types: | ||
//appendCSS: | ||
protected static appendCSS():void{ | ||
protected static appendCSS(){ | ||
if(document.getElementById('selector-style') === null){ | ||
@@ -187,3 +187,3 @@ let head = document.head || document.getElementsByTagName('head')[0]; | ||
//setTitle: | ||
public setTitle(title:string):void{ | ||
public setTitle(title:string){ | ||
this.title = title; | ||
@@ -196,3 +196,3 @@ let titleEl = <HTMLElement> this.view.getElementsByClassName('title')[0]; | ||
//setSearchPlaceholder: | ||
protected setSearchPlaceholder(sph:string):void{ | ||
protected setSearchPlaceholder(sph:string){ | ||
this.searchPlaceholder = sph; | ||
@@ -205,3 +205,3 @@ let searchEl = <HTMLInputElement> this.view.getElementsByClassName('searchInput')[0]; | ||
//setupHeader: | ||
protected setupHeader():void{ | ||
protected setupHeader(){ | ||
let titleEl = <HTMLElement> this.view.getElementsByClassName('title')[0]; | ||
@@ -219,3 +219,3 @@ let searchEl = <HTMLElement> this.view.getElementsByClassName('searchContainer')[0]; | ||
//showRecentSelects: | ||
protected showRecentSelects():void{ | ||
protected showRecentSelects(){ | ||
let recentWrapper = <HTMLElement> this.view.getElementsByClassName('recentSelectsWrapper')[0]; | ||
@@ -236,3 +236,3 @@ let columnNumber = 1; | ||
//showAllOptions: | ||
protected showAllOptions(neSizeCalc:boolean):void{ | ||
protected showAllOptions(neSizeCalc:boolean){ | ||
if(!neSizeCalc) this.fixTheWindow(); | ||
@@ -251,3 +251,3 @@ this.rowsNumber = this.calcRowsNumber(); | ||
//fixTheWindow: | ||
protected fixTheWindow():void{ | ||
protected fixTheWindow(){ | ||
const window = <HTMLElement> this.view.getElementsByClassName('window')[0]; | ||
@@ -261,3 +261,3 @@ const windowWidth = window.offsetWidth; | ||
//releaseTheWindow: | ||
protected releaseTheWindow():void{ | ||
protected releaseTheWindow(){ | ||
const window = <HTMLElement> this.view.getElementsByClassName('window')[0]; | ||
@@ -269,3 +269,3 @@ window.style.width = 'auto'; | ||
//removeAllOptions: | ||
protected removeAllOptions():void{ | ||
protected removeAllOptions(){ | ||
let columnsWrapper = <HTMLElement> this.view.getElementsByClassName('optionsColumnsWrapper')[0]; | ||
@@ -313,3 +313,3 @@ columnsWrapper.innerHTML = ''; | ||
//printColumns: | ||
protected printColumns():void{ | ||
protected printColumns(){ | ||
if(this.optionsToShow.length === 0) return; | ||
@@ -338,3 +338,3 @@ let columnsWrapper = <HTMLElement> this.view.getElementsByClassName('optionsColumnsWrapper')[0]; | ||
//setTheme: | ||
public setTheme(theme?:string):void{ | ||
public setTheme(theme?:string){ | ||
if(theme === undefined) return; | ||
@@ -348,3 +348,3 @@ this.theme == theme; | ||
//setStyle: | ||
public setStyle(style?:object):void{ | ||
public setStyle(style?:object){ | ||
if(style === undefined) return; | ||
@@ -362,3 +362,3 @@ this.style = style; | ||
//show: | ||
protected show():void{ | ||
protected show(){ | ||
const thisView = this; | ||
@@ -485,3 +485,3 @@ setTimeout(() => { | ||
//hide: | ||
protected hide():void{ | ||
public hide(){ | ||
this.view.classList.remove('visible'); | ||
@@ -488,0 +488,0 @@ const thisView = this; |
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
97536