baseframe-js
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -26,2 +26,3 @@ import type { Cash } from 'cash-dom'; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
static defaults: IAccessibleMenuDefaults; | ||
@@ -28,0 +29,0 @@ constructor(element: any, options: IAccessibleMenuOptions | StringPluginArgChoices); |
@@ -31,2 +31,3 @@ import $ from 'cash-dom'; | ||
static get version() { return VERSION; } | ||
static get pluginName() { return EVENT_NAME; } | ||
static defaults = DEFAULTS; | ||
@@ -158,3 +159,3 @@ constructor(element, options) { | ||
const elem = focusableElems[i]; | ||
if (!atCurrElem && activeElem.isSameNode(elem)) { | ||
if (!atCurrElem && activeElem?.isSameNode(elem)) { | ||
atCurrElem = true; | ||
@@ -161,0 +162,0 @@ } |
@@ -25,4 +25,5 @@ import type { Cash } from "cash-dom"; | ||
static defaults: ICollapseDefaults; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
constructor(element: HTMLElement, options: ICollapseOptions | StringPluginArgChoices, index?: number); | ||
static get version(): string; | ||
static remove(element: Cash, plugin?: Collapse): void; | ||
@@ -29,0 +30,0 @@ handleEvents(): void; |
@@ -34,2 +34,4 @@ import $ from 'cash-dom'; | ||
static defaults = DEFAULTS; | ||
static get version() { return VERSION; } | ||
static get pluginName() { return EVENT_NAME; } | ||
#transition = transition(); | ||
@@ -52,5 +54,2 @@ constructor(element, options, index) { | ||
} | ||
static get version() { | ||
return VERSION; | ||
} | ||
static remove(element, plugin) { | ||
@@ -57,0 +56,0 @@ $(element).each(function () { |
import $ from 'cash-dom'; | ||
import { capitalize } from '../util/helpers'; | ||
import { lowercaseFirstLetter } from '../util/helpers'; | ||
import store from './Store'; | ||
@@ -14,4 +14,4 @@ const checkIfParamsExist = (setParams, params, notify = true) => { | ||
const extendPlugin = (Plugin, notify, Lib) => { | ||
const DataName = Plugin.name; | ||
const pluginName = capitalize(DataName); | ||
const DataName = Plugin.pluginName; | ||
const pluginName = lowercaseFirstLetter(DataName); | ||
Plugin.Constructor = Plugin; | ||
@@ -18,0 +18,0 @@ Lib.fn.extend({ |
@@ -21,4 +21,2 @@ import type { StringPluginArgChoices } from './types'; | ||
lazyElemObserver: IntersectionObserver; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
static defaults: { | ||
@@ -37,2 +35,4 @@ imgSrcName: string; | ||
}; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
constructor(element: HTMLElement, options: ILazyLoadOptions | StringPluginArgChoices); | ||
@@ -39,0 +39,0 @@ static remove(element: Cash, plugin?: LazyLoad): void; |
@@ -42,5 +42,5 @@ import $ from 'cash-dom'; | ||
lazyElemObserver; | ||
static defaults = DEFAULTS; | ||
static get version() { return VERSION; } | ||
static get pluginName() { return DATA_NAME; } | ||
static defaults = DEFAULTS; | ||
static get pluginName() { return EVENT_NAME; } | ||
constructor(element, options) { | ||
@@ -47,0 +47,0 @@ const s = this; |
@@ -47,4 +47,5 @@ import type { Cash, Selector } from "cash-dom"; | ||
static defaults: IModalDefaults; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
constructor(element: HTMLAnchorElement | HTMLElement | HTMLButtonElement, options: IModalOptions | StringPluginArgChoices); | ||
static get version(): string; | ||
static remove(element: Cash, plugin?: Modal): void; | ||
@@ -51,0 +52,0 @@ handleEvents(): void; |
@@ -49,2 +49,4 @@ import $ from 'cash-dom'; | ||
static defaults = DEFAULTS; | ||
static get version() { return VERSION; } | ||
static get pluginName() { return EVENT_NAME; } | ||
constructor(element, options) { | ||
@@ -66,5 +68,2 @@ const s = this; | ||
} | ||
static get version() { | ||
return VERSION; | ||
} | ||
static remove(element, plugin) { | ||
@@ -71,0 +70,0 @@ $(element).each(function () { |
@@ -28,2 +28,3 @@ import type { Cash } from 'cash-dom'; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
constructor(element: HTMLElement, options: INavDesktopOptions | StringPluginArgChoices); | ||
@@ -30,0 +31,0 @@ static remove(element: Cash, plugin?: NavDesktop): void; |
@@ -22,5 +22,4 @@ import $ from 'cash-dom'; | ||
static defaults = DEFAULTS; | ||
static get version() { | ||
return VERSION; | ||
} | ||
static get version() { return VERSION; } | ||
static get pluginName() { return EVENT_NAME; } | ||
constructor(element, options) { | ||
@@ -27,0 +26,0 @@ const s = this; |
@@ -44,3 +44,2 @@ import type { Cash, Selector } from "cash-dom"; | ||
cssList: NavMobileCssList; | ||
static get version(): string; | ||
static defaults: { | ||
@@ -67,2 +66,4 @@ enableBtn: string; | ||
}; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
constructor(element: HTMLElement, options: INavMobileOptions | StringPluginArgChoices); | ||
@@ -69,0 +70,0 @@ handleEvents(): void; |
@@ -37,4 +37,5 @@ import $ from 'cash-dom'; | ||
cssList; | ||
static defaults = DEFAULTS; | ||
static get version() { return VERSION; } | ||
static defaults = DEFAULTS; | ||
static get pluginName() { return EVENT_NAME; } | ||
#transition = transition(); | ||
@@ -41,0 +42,0 @@ constructor(element, options) { |
@@ -58,4 +58,5 @@ import { Cash } from "cash-dom"; | ||
cssPrevDir: string; | ||
static defaults: IParallaxDefaults; | ||
static get version(): string; | ||
static defaults: IParallaxDefaults; | ||
static get pluginName(): string; | ||
constructor(element: HTMLElement, options: IParallaxOptions | StringPluginArgChoices, index: number); | ||
@@ -62,0 +63,0 @@ handleEvents(): void; |
@@ -53,4 +53,5 @@ import $ from 'cash-dom'; | ||
cssPrevDir; | ||
static defaults = DEFAULTS; | ||
static get version() { return VERSION; } | ||
static defaults = DEFAULTS; | ||
static get pluginName() { return EVENT_NAME; } | ||
constructor(element, options, index) { | ||
@@ -57,0 +58,0 @@ const s = this; |
@@ -37,2 +37,3 @@ import type { Cash } from "cash-dom"; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
constructor(element: HTMLSelectElement, options: ISelectEnhanceOptions | StringPluginArgChoices, index: number); | ||
@@ -39,0 +40,0 @@ mobileOnlyIfNavite(): void; |
@@ -45,5 +45,4 @@ import $ from 'cash-dom'; | ||
static defaults = DEFAULTS; | ||
static get version() { | ||
return VERSION; | ||
} | ||
static get version() { return VERSION; } | ||
static get pluginName() { return EVENT_NAME; } | ||
constructor(element, options, index) { | ||
@@ -50,0 +49,0 @@ const s = this; |
@@ -16,3 +16,2 @@ import type { Cash } from "cash-dom"; | ||
#private; | ||
static get version(): string; | ||
$element: Cash; | ||
@@ -29,2 +28,4 @@ params: ITabsDefaults; | ||
static defaults: ITabsDefaults; | ||
static get version(): string; | ||
static get pluginName(): string; | ||
constructor(element: HTMLElement, options: ITabsOptions | StringPluginArgChoices); | ||
@@ -31,0 +32,0 @@ loadDefaultContent(): void; |
@@ -25,5 +25,2 @@ import $ from 'cash-dom'; | ||
export default class Tabs { | ||
static get version() { | ||
return VERSION; | ||
} | ||
$element; | ||
@@ -40,2 +37,4 @@ params; | ||
static defaults = DEFAULTS; | ||
static get version() { return VERSION; } | ||
static get pluginName() { return EVENT_NAME; } | ||
#transition = transition(); | ||
@@ -42,0 +41,0 @@ constructor(element, options) { |
@@ -22,4 +22,5 @@ import type { Cash, Selector } from "cash-dom"; | ||
export default class Toastr { | ||
static Defaults: IToasterDefaults; | ||
static get version(): string; | ||
static Defaults: IToasterDefaults; | ||
static get pluginName(): string; | ||
static DismissedEventName: string; | ||
@@ -26,0 +27,0 @@ private toastrFinallyTimer; |
@@ -25,4 +25,5 @@ import $ from 'cash-dom'; | ||
export default class Toastr { | ||
static Defaults = DEFAULTS; | ||
static get version() { return VERSION; } | ||
static Defaults = DEFAULTS; | ||
static get pluginName() { return EVENT_NAME; } | ||
static DismissedEventName = 'toastDismissed'; | ||
@@ -29,0 +30,0 @@ toastrFinallyTimer; |
@@ -9,2 +9,3 @@ import type { Cash } from "cash-dom"; | ||
version: string; | ||
pluginName: string; | ||
remove: (element: Cash) => void; | ||
@@ -11,0 +12,0 @@ Constructor?: Function; |
@@ -9,3 +9,3 @@ export default function getType(val: any): string; | ||
export declare const camelCase: (str: string) => string; | ||
export declare const capitalize: (str: string) => string; | ||
export declare const lowercaseFirstLetter: (str: string) => string; | ||
export declare const isMobileOS: () => boolean; |
@@ -33,4 +33,4 @@ // | ||
export const camelCase = (str) => str.replace(/-./g, x => x.toUpperCase()[1]); | ||
export const capitalize = (str) => str.charAt(0).toLowerCase() + str.substring(1); | ||
export const lowercaseFirstLetter = (str) => str.charAt(0).toLowerCase() + str.substring(1); | ||
// device | ||
export const isMobileOS = () => /Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent); |
{ | ||
"name": "baseframe-js", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "A suite of useful Javascript plugins and functions to help with Front-end Development on websites", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
293347
85
3304
1