New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@preline/select

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@preline/select - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

53

index.d.ts

@@ -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

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