Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslan-garaev committed Dec 28, 2023
1 parent 8ce63b7 commit be890a5
Show file tree
Hide file tree
Showing 84 changed files with 3,523 additions and 2,222 deletions.
23 changes: 6 additions & 17 deletions dist/accordion.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

export interface IAccordion {
options?: {};
show(): void;
Expand All @@ -13,22 +14,13 @@ declare class HSBasePlugin<O, E = HTMLElement> implements IBasePlugin<O, E> {
options: O;
events?: any;
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 HSAccordion extends HSBasePlugin<{}> implements IAccordion {
private readonly toggle;
Expand All @@ -39,10 +31,7 @@ declare class HSAccordion extends HSBasePlugin<{}> implements IAccordion {
private init;
show(): boolean;
hide(): boolean;
static getInstance(target: HTMLElement | string, isInstance?: boolean): HTMLElement | {
id: number;
element: HSAccordion;
};
static getInstance(target: HTMLElement | string, isInstance?: boolean): HTMLElement | ICollectionItem<HSAccordion>;
static show(target: HTMLElement): void;
static hide(target: HTMLElement): void;
static autoInit(): void;
Expand Down
19 changes: 17 additions & 2 deletions dist/accordion.js

Large diffs are not rendered by default.

23 changes: 6 additions & 17 deletions dist/carousel.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

export interface ICarouselOptions {
currentIndex: number;
loadingClasses?: string | string[];
Expand All @@ -22,22 +23,13 @@ declare class HSBasePlugin<O, E = HTMLElement> implements IBasePlugin<O, E> {
options: O;
events?: any;
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 HSCarousel extends HSBasePlugin<ICarouselOptions> implements ICarousel {
private readonly inner;
Expand Down Expand Up @@ -70,10 +62,7 @@ declare class HSCarousel extends HSBasePlugin<ICarouselOptions> implements ICaro
goToPrev(): void;
goToNext(): void;
goTo(i: number): void;
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSCarousel | {
id: number;
element: HSCarousel;
};
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSCarousel | ICollectionItem<HSCarousel>;
static autoInit(): void;
}

Expand Down
19 changes: 17 additions & 2 deletions dist/carousel.js

Large diffs are not rendered by default.

23 changes: 6 additions & 17 deletions dist/collapse.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

export interface ICollapse {
options?: {};
show(): void;
Expand All @@ -13,22 +14,13 @@ declare class HSBasePlugin<O, E = HTMLElement> implements IBasePlugin<O, E> {
options: O;
events?: any;
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 HSCollapse extends HSBasePlugin<{}> implements ICollapse {
private readonly contentId;
Expand All @@ -39,10 +31,7 @@ declare class HSCollapse extends HSBasePlugin<{}> implements ICollapse {
private hideAllMegaMenuItems;
show(): boolean;
hide(): boolean;
static getInstance(target: HTMLElement, isInstance?: boolean): HTMLElement | {
id: number;
element: HSCollapse;
};
static getInstance(target: HTMLElement, isInstance?: boolean): HTMLElement | ICollectionItem<HSCollapse>;
static autoInit(): void;
static show(target: HTMLElement): void;
static hide(target: HTMLElement): void;
Expand Down
19 changes: 17 additions & 2 deletions dist/collapse.js

Large diffs are not rendered by default.

23 changes: 6 additions & 17 deletions dist/copy-markup.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

export interface ICopyMarkupOptions {
targetSelector: string;
wrapperSelector: string;
Expand All @@ -16,22 +17,13 @@ declare class HSBasePlugin<O, E = HTMLElement> implements IBasePlugin<O, E> {
options: O;
events?: any;
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 HSCopyMarkup extends HSBasePlugin<ICopyMarkupOptions> implements ICopyMarkup {
private readonly targetSelector;
Expand All @@ -48,10 +40,7 @@ declare class HSCopyMarkup extends HSBasePlugin<ICopyMarkupOptions> implements I
private setWrapper;
private addToItems;
delete(target: HTMLElement): void;
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSCopyMarkup | {
id: number;
element: HSCopyMarkup;
};
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSCopyMarkup | ICollectionItem<HSCopyMarkup>;
static autoInit(): void;
}

Expand Down
19 changes: 17 additions & 2 deletions dist/copy-markup.js

Large diffs are not rendered by default.

23 changes: 6 additions & 17 deletions dist/dropdown.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

export interface IDropdown {
options?: {};
open(): void;
Expand All @@ -17,22 +18,13 @@ declare class HSBasePlugin<O, E = HTMLElement> implements IBasePlugin<O, E> {
options: O;
events?: any;
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 HSDropdown extends HSBasePlugin<{}, IHTMLElementPopper> implements IDropdown {
private static history;
Expand All @@ -52,10 +44,7 @@ declare class HSDropdown extends HSBasePlugin<{}, IHTMLElementPopper> implements
open(): boolean;
close(isAnimated?: boolean): boolean;
forceClearState(): void;
static getInstance(target: HTMLElement | string, isInstance?: boolean): IHTMLElementPopper | {
id: number;
element: HSDropdown;
};
static getInstance(target: HTMLElement | string, isInstance?: boolean): ICollectionItem<HSDropdown> | IHTMLElementPopper;
static autoInit(): void;
static open(target: HTMLElement): void;
static close(target: HTMLElement): void;
Expand Down
19 changes: 17 additions & 2 deletions dist/dropdown.js

Large diffs are not rendered by default.

Loading

0 comments on commit be890a5

Please sign in to comment.