public/lookbook-assets/js/index.js in lookbook-2.0.0.beta.1 vs public/lookbook-assets/js/index.js in lookbook-2.0.0.beta.2
- old
+ new
@@ -7829,11 +7829,11 @@
return $1.toUpperCase().replace("-", "").replace("_", "");
});
}
-var $77553f14666631eb$exports = {};
+var $69e9934f1d83bbc4$exports = {};
var $cbd28b10fa9798c7$exports = {};
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
$parcel$export($cbd28b10fa9798c7$exports, "default", () => $cbd28b10fa9798c7$export$2e2bcd8739ae039);
@@ -11521,54 +11521,10 @@
iconName: iconName
};
}
-var $d92d9d5253f84566$exports = {};
-
-$parcel$defineInteropFlag($d92d9d5253f84566$exports);
-
-$parcel$export($d92d9d5253f84566$exports, "default", () => $d92d9d5253f84566$export$2e2bcd8739ae039);
-function $d92d9d5253f84566$export$2e2bcd8739ae039(store) {
- return {
- empty: false,
- children: [],
- init () {
- this.children = this.$refs.items ? Array.from(this.$refs.items.children) : [];
- },
- isOpen (id) {
- return store.open.includes(id);
- },
- setOpen (id) {
- store.open.push(id);
- },
- setClosed (id) {
- const index = store.open.indexOf(id);
- if (index > -1) store.open.splice(index, 1);
- },
- closeAll () {
- store.open.length = 0;
- },
- toggleOpen (id) {
- this.isOpen(id) ? this.setClosed(id) : this.setOpen(id);
- },
- async filter (text) {
- this.debug(`Filter text: ${text}`);
- await this.$nextTick();
- const filteredStates = await Promise.all(this.children.map(async (child)=>{
- const data = Alpine.$data(child);
- await data.filter(text);
- return data.filteredOut;
- }));
- const matchedChildCount = filteredStates.filter((s)=>!s).length;
- this.empty = matchedChildCount === 0;
- this.debug(`Children matching filter: ${matchedChildCount}/${this.children.length}`);
- }
- };
-}
-
-
var $506dabb2bf255b38$exports = {};
$parcel$defineInteropFlag($506dabb2bf255b38$exports);
$parcel$export($506dabb2bf255b38$exports, "default", () => $506dabb2bf255b38$export$2e2bcd8739ae039);
@@ -12142,10 +12098,54 @@
}
};
}
+var $d92d9d5253f84566$exports = {};
+
+$parcel$defineInteropFlag($d92d9d5253f84566$exports);
+
+$parcel$export($d92d9d5253f84566$exports, "default", () => $d92d9d5253f84566$export$2e2bcd8739ae039);
+function $d92d9d5253f84566$export$2e2bcd8739ae039(store) {
+ return {
+ empty: false,
+ children: [],
+ init () {
+ this.children = this.$refs.items ? Array.from(this.$refs.items.children) : [];
+ },
+ isOpen (id) {
+ return store.open.includes(id);
+ },
+ setOpen (id) {
+ store.open.push(id);
+ },
+ setClosed (id) {
+ const index = store.open.indexOf(id);
+ if (index > -1) store.open.splice(index, 1);
+ },
+ closeAll () {
+ store.open.length = 0;
+ },
+ toggleOpen (id) {
+ this.isOpen(id) ? this.setClosed(id) : this.setOpen(id);
+ },
+ async filter (text) {
+ this.debug(`Filter text: ${text}`);
+ await this.$nextTick();
+ const filteredStates = await Promise.all(this.children.map(async (child)=>{
+ const data = Alpine.$data(child);
+ await data.filter(text);
+ return data.filteredOut;
+ }));
+ const matchedChildCount = filteredStates.filter((s)=>!s).length;
+ this.empty = matchedChildCount === 0;
+ this.debug(`Children matching filter: ${matchedChildCount}/${this.children.length}`);
+ }
+ };
+}
+
+
var $0db07828cadc68e0$exports = {};
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
$parcel$export($0db07828cadc68e0$exports, "default", () => $0db07828cadc68e0$export$2e2bcd8739ae039);
@@ -12362,21 +12362,21 @@
}
};
}
-$77553f14666631eb$exports = {
+$69e9934f1d83bbc4$exports = {
"button": $cbd28b10fa9798c7$exports,
"code": $99486586f6691564$exports,
"copy_button": $47a1c62621be0c54$exports,
"dimensions_display": $e398acaded942bbe$exports,
"embed_code_dropdown": $216ef7001f59f21d$exports,
"filter": $e9904a14dabf652d$exports,
"icon": $36506012e0c6e9e3$exports,
- "nav": $d92d9d5253f84566$exports,
"split_layout": $506dabb2bf255b38$exports,
"tab_panels": $a87dacf5139b5e2f$exports,
+ "nav": $d92d9d5253f84566$exports,
"tabs": $0db07828cadc68e0$exports,
"viewport": $6d64716f0b34fdf4$exports
};
@@ -13547,10 +13547,10 @@
prefix: $939f2ad3cd685486$var$prefix
}));
// Components
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $d709d0f4027033b2$export$2e2bcd8739ae039));
[
- $77553f14666631eb$exports,
+ $69e9934f1d83bbc4$exports,
$f3e1e32f4a1bd6da$exports,
$6c10158820e535ef$exports
].forEach((scripts)=>{
const components = (0, $5439cede634b2921$export$4e811121b221213b)(scripts);
Object.keys(components).forEach((name)=>{