@flexilla/collapse
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -18,3 +18,3 @@ var r = Object.defineProperty; | ||
t instanceof HTMLElement && t.setAttribute("aria-expanded", e === "open" ? "true" : "false"); | ||
}, a = class a { | ||
}, p = (i, t = document.body) => Array.from(t.querySelectorAll(i)), a = class a { | ||
/** | ||
@@ -57,8 +57,8 @@ * Collapse Component | ||
/** | ||
* auto init collapse components based on the selector provided | ||
* auto init collapse components based on a provided selector | ||
* @param selector {string} default is [data-fx-collapse] | ||
*/ | ||
s(a, "autoInit", (t = "[data-fx-collapse]") => { | ||
const e = Array.from(document.querySelectorAll(t)); | ||
for (const l in e) | ||
const e = p(t); | ||
for (const l of e) | ||
new a(l); | ||
@@ -65,0 +65,0 @@ }); |
@@ -21,3 +21,3 @@ export declare class Collapse { | ||
/** | ||
* auto init collapse components based on the selector provided | ||
* auto init collapse components based on a provided selector | ||
* @param selector {string} default is [data-fx-collapse] | ||
@@ -24,0 +24,0 @@ */ |
{ | ||
"name": "@flexilla/collapse", | ||
"private": false, | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"type": "module", | ||
@@ -65,4 +65,3 @@ "description": "A versatile and interactive collapse component for creating collapsible sections in web applications, conserving space and improving user experience.", | ||
"license": "MIT", | ||
"author": "johnkat-mj", | ||
"gitHead": "8435693ee1ff8e2f9d279b5d4026949530d7d05d" | ||
"author": "johnkat-mj" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
11034