@preline/select
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -0,1 +1,11 @@ | ||
export interface ISingleOptionOptions { | ||
description: string; | ||
icon: string; | ||
} | ||
export interface ISingleOption { | ||
title: string; | ||
val: string; | ||
options?: ISingleOptionOptions | null; | ||
} | ||
export interface ISelectOptions { | ||
@@ -27,4 +37,4 @@ value?: string | string[]; | ||
searchPlaceholder?: string; | ||
searchNoItemsText?: string; | ||
searchNoItemsClasses?: string; | ||
searchNoResultText?: string | null; | ||
searchNoResultClasses?: string | null; | ||
optionTemplate?: string; | ||
@@ -35,7 +45,11 @@ optionTag?: string; | ||
iconClasses?: string; | ||
isAddTagOnEnter?: boolean; | ||
} | ||
export interface ISelect { | ||
options?: ISelectOptions; | ||
destroy(): void; | ||
open(): void; | ||
close(): void; | ||
addOption(items: ISingleOption | ISingleOption[]): void; | ||
removeOption(values: string | string[]): void; | ||
recalculateDirection(): void; | ||
@@ -53,19 +67,10 @@ } | ||
constructor(el: E, options: O, events?: any); | ||
isIOS(): boolean; | ||
isIpadOS(): boolean; | ||
createCollection(collection: any[], element: any): void; | ||
fireEvent(evt: string, payload?: any): any; | ||
dispatch(evt: string, element: any, payload?: any): void; | ||
on(evt: string, cb: Function): void; | ||
afterTransition(el: HTMLElement, callback: Function): void; | ||
onTransitionEnd(el: HTMLElement, cb: Function): void; | ||
getClassProperty(el: HTMLElement, prop: string, val?: string): string; | ||
getClassPropertyAlt(el: HTMLElement, prop?: string, val?: string): string; | ||
htmlToElement(html: string): HTMLElement; | ||
classToClassList(classes: string, target: HTMLElement, splitter?: string): void; | ||
debounce(func: Function, timeout?: number): (...args: any[]) => void; | ||
checkIfFormElement(target: HTMLElement): boolean; | ||
static isEnoughSpace(el: HTMLElement, toggle: HTMLElement, preferredPosition?: "top" | "bottom" | "auto", space?: number, wrapper?: HTMLElement | null): boolean; | ||
static isParentOrElementHidden(element: any): any; | ||
} | ||
export interface ICollectionItem<T> { | ||
id: string | number; | ||
element: T; | ||
} | ||
declare class HSSelect extends HSBasePlugin<ISelectOptions> implements ISelect { | ||
@@ -96,2 +101,4 @@ value: string | string[] | null; | ||
private readonly searchWrapperClasses; | ||
private searchNoResultText; | ||
private searchNoResultClasses; | ||
private readonly optionTag; | ||
@@ -112,3 +119,5 @@ private readonly optionTemplate; | ||
private search; | ||
private searchNoResult; | ||
private selectOptions; | ||
private readonly isAddTagOnEnter; | ||
constructor(el: HTMLElement, options?: ISelectOptions); | ||
@@ -130,4 +139,8 @@ private init; | ||
private buildOption; | ||
private destroyOption; | ||
private buildOriginalOption; | ||
private destroyOriginalOption; | ||
private onSelectOption; | ||
private addSelectOption; | ||
private removeSelectOption; | ||
private resetTagsInputField; | ||
@@ -141,9 +154,11 @@ private clearSelections; | ||
private searchOptions; | ||
private eraseToggleIcon; | ||
private eraseToggleTitle; | ||
destroy(): void; | ||
open(): boolean; | ||
close(): boolean; | ||
addOption(items: ISingleOption | ISingleOption[]): void; | ||
removeOption(values: string | string[]): void; | ||
recalculateDirection(): void; | ||
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSSelect | { | ||
id: number; | ||
element: HSSelect; | ||
}; | ||
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSSelect | ICollectionItem<HSSelect>; | ||
static autoInit(): void; | ||
@@ -150,0 +165,0 @@ static close(target: HTMLElement | string): void; |
{ | ||
"name": "@preline/select", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.", | ||
@@ -9,28 +9,3 @@ "main": "index.js", | ||
"homepage": "https://preline.co/plugins.html", | ||
"keywords": [ | ||
"preline", | ||
"html", | ||
"css", | ||
"next", | ||
"nuxt", | ||
"vue", | ||
"react", | ||
"angular", | ||
"javascript", | ||
"typescript", | ||
"tailwind", | ||
"tailwind components", | ||
"tailwind elements", | ||
"tailwind library", | ||
"tailwind sections", | ||
"tailwind css", | ||
"tailwind ui", | ||
"tailwind css react", | ||
"tailwind css vue", | ||
"tailwind css angular", | ||
"tailwind css laravel", | ||
"tailwindcss plugin", | ||
"tailwindcss plugins", | ||
"select" | ||
], | ||
"keywords": ["preline", "html", "css", "next", "nuxt", "vue", "react", "angular", "javascript", "typescript", "tailwind", "tailwind components", "tailwind elements", "tailwind library", "tailwind sections", "tailwind css", "tailwind ui", "tailwind css react", "tailwind css vue", "tailwind css angular", "tailwind css laravel", "tailwindcss plugin", "tailwindcss plugins", "accordion"], | ||
"author": "Htmlstream", | ||
@@ -41,2 +16,2 @@ "license": "MIT", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
191
34374
1