@mobiscroll/javascript-lite
Advanced tools
Comparing version 4.8.1 to 4.8.4
@@ -7,6 +7,4 @@ import { Base } from '../core/core'; | ||
export class Form extends Base { | ||
settings: MbscFormOptions; | ||
constructor(element: any, settings: MbscFormOptions); | ||
export class Form extends Base<MbscFormOptions> { | ||
refresh(shallow?: boolean): void; | ||
} |
@@ -43,4 +43,3 @@ import { Base, MbscCoreOptions } from '../core/core'; | ||
export class Frame extends Base { | ||
settings: MbscFrameOptions; | ||
export class Frame<T extends MbscFrameOptions> extends Base<T> { | ||
buttons: object; | ||
@@ -56,4 +55,2 @@ handlers: { | ||
constructor(element: any, settings: MbscFrameOptions); | ||
position(check?: boolean): void; | ||
@@ -69,5 +66,2 @@ attachShow(elm: any, beforeShow?: () => void): void; | ||
isVisible(): boolean; | ||
// type overrides | ||
option(options: string | MbscFrameOptions, value?: any): void; | ||
} |
@@ -8,2 +8,3 @@ import { MbscCoreOptions } from '../core/core'; | ||
enhance?: boolean; | ||
context?: string | HTMLElement; | ||
} | ||
@@ -10,0 +11,0 @@ |
@@ -8,5 +8,2 @@ import { Base, MbscCoreOptions } from '../core/core'; | ||
export class Page extends Base { | ||
settings: MbscPageOptions; | ||
constructor(element: any, settings: MbscPageOptions); | ||
} | ||
export class Page extends Base<MbscPageOptions> { } |
@@ -9,5 +9,3 @@ import { Frame, MbscFrameOptions } from './frame'; | ||
export class Popup extends Frame { | ||
settings: MbscPopupOptions; | ||
constructor(element: any, settings: MbscPopupOptions); | ||
export class Popup extends Frame<MbscPopupOptions> { | ||
} | ||
@@ -14,0 +12,0 @@ |
import { Base, MbscCoreOptions } from '../core/core'; | ||
export class ProgressBase extends Base { | ||
constructor(element: any, settings: MbscCoreOptions); | ||
} | ||
export class ProgressBase<T extends MbscCoreOptions> extends Base<T> { } |
import { ProgressBase } from './progress-base'; | ||
import { MbscFormOptions } from './forms'; | ||
export class Progress extends ProgressBase { | ||
constructor(element: any, settings: any); | ||
export class Progress extends ProgressBase<MbscFormOptions> { | ||
refresh(): void; | ||
@@ -6,0 +6,0 @@ getVal(): number; |
import { Slider } from './slider'; | ||
import { MbscFormOptions } from './forms'; | ||
export class Rating extends Slider { | ||
constructor(element: any, settings: MbscFormOptions); | ||
} | ||
export class Rating extends Slider { } |
@@ -45,7 +45,3 @@ import { Frame, MbscFrameOptions } from './frame'; | ||
export class Scroller extends Frame { | ||
settings: MbscScrollerOptions; | ||
constructor(element: any, settings: MbscScrollerOptions); | ||
export class Scroller<T extends MbscScrollerOptions = MbscScrollerOptions> extends Frame<T> { | ||
setVal(value: any, fill?: boolean, change?: boolean, temp?: boolean, time?: number): void; | ||
@@ -52,0 +48,0 @@ getVal(temp?: boolean): any; |
import { ProgressBase } from './progress-base'; | ||
import { MbscCoreOptions } from '../core/core'; | ||
import { MbscFormOptions } from './forms'; | ||
export class SliderBase extends ProgressBase { | ||
constructor(element: any, settings: MbscCoreOptions); | ||
export class SliderBase extends ProgressBase<MbscFormOptions> { | ||
refresh(): void; | ||
@@ -7,0 +6,0 @@ getVal(): any; |
@@ -5,5 +5,4 @@ import { SliderBase } from './slider-base'; | ||
export class Slider extends SliderBase { | ||
constructor(element: any, settings: MbscFormOptions); | ||
getVal(): number | Array<number>; | ||
setVal(v: number | Array<number>, fill?: boolean, change?: boolean): void; | ||
} | ||
} |
import { Base, MbscCoreOptions } from '../core/core'; | ||
export class Stepper extends Base { | ||
constructor(element: any, settings: MbscCoreOptions); | ||
export class Stepper extends Base<MbscCoreOptions> { | ||
getVal(): number; | ||
setVal(v: number, fill?: boolean, change?: boolean): void; | ||
} | ||
} |
@@ -5,5 +5,4 @@ import { SliderBase } from './slider-base'; | ||
export class Switch extends SliderBase { | ||
constructor(element: any, settings: MbscFormOptions); | ||
setVal(val: boolean, fill?: boolean, change?: boolean): void; | ||
getVal(): boolean; | ||
} | ||
} |
@@ -20,13 +20,13 @@ import { mobiscroll, IMobiscroll } from './mobiscroll'; | ||
export class Base { | ||
settings: MbscCoreOptions; | ||
export class Base<T extends MbscCoreOptions> { | ||
settings: T; | ||
constructor(element: any, settings: MbscCoreOptions); | ||
constructor(element: any, settings: T); | ||
init(settings?: MbscCoreOptions): void; | ||
init(settings?: T): void; | ||
destroy(): void; | ||
tap(el: any, handler: (ev?: any, inst?: any) => void, prevent?: boolean, tolerance?: number, time?: any): void; | ||
trigger(name: string, event?: any): any; | ||
option(options: string | MbscCoreOptions, value?: any): void; | ||
getInst(): Base; | ||
option(options: string | T, value?: any): void; | ||
getInst(): Base<T>; | ||
} | ||
@@ -33,0 +33,0 @@ |
{ | ||
"name": "@mobiscroll/javascript-lite", | ||
"version": "4.8.1", | ||
"version": "4.8.4", | ||
"description": "Framework agnostic UI library for progressive web and hybrid apps", | ||
@@ -5,0 +5,0 @@ "homepage": "https://mobiscroll.com/", |
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1512218
40
18976