lookbook 2.3.3 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/components/lookbook/filter/component.html.erb +2 -2
- data/app/components/lookbook/params/editor/component.rb +1 -1
- data/app/components/lookbook/params/field/component.rb +1 -1
- data/app/components/lookbook/tab_panels/component.rb +1 -1
- data/app/views/layouts/lookbook/skeleton.html.erb +2 -0
- data/app/views/lookbook/previews/preview.html.erb +5 -1
- data/lib/lookbook/engine.rb +3 -5
- data/lib/lookbook/support/errors/config_error.rb +1 -1
- data/lib/lookbook/support/errors/parser_error.rb +1 -1
- data/lib/lookbook/support/errors/preview_template_error.rb +1 -1
- data/lib/lookbook/support/errors/template_error.rb +1 -1
- data/lib/lookbook/support/store.rb +1 -1
- data/lib/lookbook/support/utils/utils.rb +1 -1
- data/lib/lookbook/tags/yard_tag.rb +1 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/js/index.js +154 -154
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aafa502c25c9fa48976fa3410b24dead352e5253734120d508af60971ebdd92
|
4
|
+
data.tar.gz: 980e45362bda082e69a98687b02ea333101d059b3548f9b73594188e00f1d8be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 450347075fce7cbad906c8a980d8418dc27eb086a5069a8154fb6793729f3df6f368591fdcf97fd968ed3b135e75ee009627d508960c75a1518b8bb81c5110ab
|
7
|
+
data.tar.gz: c15aebad98ec449f6f2d61ebe70cc6a22d740ced28ab987a4560970f7716ef68785cba25968cc65c7467df29e20c5c6fe0ad2b60431de0ab50805cf1ceb95a08
|
data/README.md
CHANGED
@@ -49,9 +49,9 @@ To preview changes locally you can run a development version of the docs site:
|
|
49
49
|
|
50
50
|
### Testing
|
51
51
|
|
52
|
-
Lookbook uses [RSpec](https://relishapp.com/rspec)
|
52
|
+
Lookbook uses [RSpec](https://relishapp.com/rspec). [Appraisal](https://github.com/thoughtbot/appraisal) is used to run tests against different Ruby and Rails versions.
|
53
53
|
|
54
|
-
Tests can be run using the `
|
54
|
+
Tests can be run using the `bundle exec appraisal rspec` command.
|
55
55
|
|
56
56
|
The dummy app that the tests are being run against can be viewed by running the `bin/dummy` command and then browsing to http://localhost:9292/lookbook
|
57
57
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
x-on:keydown.f.window="if (!($event.shiftKey || $event.metaKey || $event.ctrlKey || $event.altKey)) { focus(); $event.preventDefault(); $event.stopPropagation(); }"
|
12
12
|
x-on:keydown.stop>
|
13
13
|
<button class="text-lookbook-icon-button-stroke hover:text-lookbook-icon-button-stroke-hover focus:ring-0 focus:outline-none absolute top-1/2 right-3 -translate-y-1/2" x-on:click="clear" x-bind:class="{hidden: !active}">
|
14
|
-
<%= icon :x, size:
|
14
|
+
<%= icon :x, size: 4 %>
|
15
15
|
</button>
|
16
16
|
</div>
|
17
|
-
<% end %>
|
17
|
+
<% end %>
|
@@ -14,7 +14,7 @@ module Lookbook
|
|
14
14
|
styles, html = StylesExtractor.call(render_input)
|
15
15
|
Editor::Component.add_styles(param.input, styles)
|
16
16
|
|
17
|
-
escaped_value = json_escape(param.value.to_s).gsub("\n", '\n')
|
17
|
+
escaped_value = html_escape(json_escape(param.value.to_s).gsub("\n", '\n'))
|
18
18
|
wrapper_attrs = {
|
19
19
|
data: {"param-input": param.input},
|
20
20
|
"x-data": "paramsInputComponent({name: \"#{param.name}\", value: \"#{escaped_value}\"})"
|
@@ -5,6 +5,8 @@
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
7
7
|
|
8
|
+
<%= csrf_meta_tags %>
|
9
|
+
|
8
10
|
<link href="<%= lookbook_asset_path("/css/lookbook.css") %>" rel="stylesheet">
|
9
11
|
<link href="<%= lookbook_asset_path("/css/themes/#{@config.ui_theme}.css") %>" rel="stylesheet">
|
10
12
|
|
@@ -1,6 +1,10 @@
|
|
1
1
|
<% if @render_args[:component] %>
|
2
2
|
<% if defined?(Phlex::SGML) && @render_args[:component].is_a?(Phlex::SGML) %>
|
3
|
-
|
3
|
+
<% if @render_args[:component].method(:call).parameters.include?([:key, :context])%>
|
4
|
+
<%= raw(@render_args[:component].call(context: { rails_view_context: self }, &@render_args[:block])) %>
|
5
|
+
<% else %>
|
6
|
+
<%= raw(@render_args[:component].call(view_context: self, &@render_args[:block])) %>
|
7
|
+
<% end %>
|
4
8
|
<% else %>
|
5
9
|
<%= render(@render_args[:component], @render_args[:args], &@render_args[:block]) %>
|
6
10
|
<% end %>
|
data/lib/lookbook/engine.rb
CHANGED
@@ -14,11 +14,11 @@ module Lookbook
|
|
14
14
|
)
|
15
15
|
end
|
16
16
|
|
17
|
-
initializer "lookbook.set_autoload_paths" do
|
17
|
+
initializer "lookbook.set_autoload_paths", before: :set_autoload_paths do |app|
|
18
18
|
if opts.autoload_previews && opts.preview_paths.any?
|
19
|
-
paths_to_add = opts.preview_paths -
|
19
|
+
paths_to_add = opts.preview_paths - app.config.autoload_paths
|
20
20
|
filtered_paths = paths_to_add.filter { |p| !Engine.component_paths.include?(p) }
|
21
|
-
|
21
|
+
app.config.autoload_paths.concat(filtered_paths) if filtered_paths.any?
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -234,7 +234,6 @@ module Lookbook
|
|
234
234
|
end
|
235
235
|
|
236
236
|
def load_previews(changes = nil)
|
237
|
-
puts "----------------------------- LOADING PREVIEWS"
|
238
237
|
changed_files = [*changes[:added], *changes[:modified]] if changes
|
239
238
|
parser.parse(changed_files) do |code_objects|
|
240
239
|
previews.load(code_objects.all(:class), changes)
|
@@ -245,7 +244,6 @@ module Lookbook
|
|
245
244
|
end
|
246
245
|
|
247
246
|
def load_pages(changes = nil)
|
248
|
-
puts "----------------------------- LOADING PAGES"
|
249
247
|
pages.load(Engine.page_paths, changes)
|
250
248
|
rescue => e
|
251
249
|
Lookbook.logger.error(e)
|
data/lib/lookbook/version.rb
CHANGED
@@ -8026,7 +8026,7 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
8026
8026
|
}
|
8027
8027
|
|
8028
8028
|
|
8029
|
-
var $
|
8029
|
+
var $d93ebb7d29fc0464$exports = {};
|
8030
8030
|
var $cbd28b10fa9798c7$exports = {};
|
8031
8031
|
|
8032
8032
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -11555,39 +11555,6 @@ function $99486586f6691564$export$2e2bcd8739ae039() {
|
|
11555
11555
|
}
|
11556
11556
|
|
11557
11557
|
|
11558
|
-
var $e398acaded942bbe$exports = {};
|
11559
|
-
|
11560
|
-
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
11561
|
-
|
11562
|
-
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
11563
|
-
|
11564
|
-
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
11565
|
-
return {
|
11566
|
-
width: 0,
|
11567
|
-
height: 0,
|
11568
|
-
resizing: false,
|
11569
|
-
target: null,
|
11570
|
-
init () {
|
11571
|
-
this.target = document.querySelector(targetSelector);
|
11572
|
-
if (this.target) {
|
11573
|
-
this.width = Math.round(this.target.clientWidth);
|
11574
|
-
this.height = Math.round(this.target.clientHeight);
|
11575
|
-
this.createObserver();
|
11576
|
-
}
|
11577
|
-
},
|
11578
|
-
createObserver () {
|
11579
|
-
if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
|
11580
|
-
this.width = width;
|
11581
|
-
this.height = height;
|
11582
|
-
});
|
11583
|
-
},
|
11584
|
-
tearDown () {
|
11585
|
-
if (this.observer) this.observer.disconnect();
|
11586
|
-
}
|
11587
|
-
};
|
11588
|
-
}
|
11589
|
-
|
11590
|
-
|
11591
11558
|
var $47a1c62621be0c54$exports = {};
|
11592
11559
|
|
11593
11560
|
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
@@ -11644,41 +11611,49 @@ function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
|
11644
11611
|
}
|
11645
11612
|
|
11646
11613
|
|
11647
|
-
var $
|
11648
|
-
|
11649
|
-
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
11650
|
-
|
11651
|
-
$parcel$export($216ef7001f59f21d$exports, "default", () => $216ef7001f59f21d$export$2e2bcd8739ae039);
|
11652
|
-
function $216ef7001f59f21d$export$2e2bcd8739ae039() {
|
11653
|
-
return {};
|
11654
|
-
}
|
11655
|
-
|
11614
|
+
var $e398acaded942bbe$exports = {};
|
11656
11615
|
|
11657
|
-
|
11616
|
+
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
11658
11617
|
|
11659
|
-
$parcel$
|
11618
|
+
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
11660
11619
|
|
11661
|
-
$
|
11662
|
-
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
11620
|
+
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
11663
11621
|
return {
|
11664
|
-
|
11665
|
-
|
11666
|
-
|
11667
|
-
|
11668
|
-
|
11669
|
-
|
11622
|
+
width: 0,
|
11623
|
+
height: 0,
|
11624
|
+
resizing: false,
|
11625
|
+
target: null,
|
11626
|
+
init () {
|
11627
|
+
this.target = document.querySelector(targetSelector);
|
11628
|
+
if (this.target) {
|
11629
|
+
this.width = Math.round(this.target.clientWidth);
|
11630
|
+
this.height = Math.round(this.target.clientHeight);
|
11631
|
+
this.createObserver();
|
11632
|
+
}
|
11670
11633
|
},
|
11671
|
-
|
11672
|
-
if (
|
11673
|
-
|
11634
|
+
createObserver () {
|
11635
|
+
if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
|
11636
|
+
this.width = width;
|
11637
|
+
this.height = height;
|
11638
|
+
});
|
11674
11639
|
},
|
11675
|
-
|
11676
|
-
this
|
11640
|
+
tearDown () {
|
11641
|
+
if (this.observer) this.observer.disconnect();
|
11677
11642
|
}
|
11678
11643
|
};
|
11679
11644
|
}
|
11680
11645
|
|
11681
11646
|
|
11647
|
+
var $216ef7001f59f21d$exports = {};
|
11648
|
+
|
11649
|
+
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
11650
|
+
|
11651
|
+
$parcel$export($216ef7001f59f21d$exports, "default", () => $216ef7001f59f21d$export$2e2bcd8739ae039);
|
11652
|
+
function $216ef7001f59f21d$export$2e2bcd8739ae039() {
|
11653
|
+
return {};
|
11654
|
+
}
|
11655
|
+
|
11656
|
+
|
11682
11657
|
var $d92d9d5253f84566$exports = {};
|
11683
11658
|
|
11684
11659
|
$parcel$defineInteropFlag($d92d9d5253f84566$exports);
|
@@ -11723,6 +11698,31 @@ function $d92d9d5253f84566$export$2e2bcd8739ae039(store) {
|
|
11723
11698
|
}
|
11724
11699
|
|
11725
11700
|
|
11701
|
+
var $e9904a14dabf652d$exports = {};
|
11702
|
+
|
11703
|
+
$parcel$defineInteropFlag($e9904a14dabf652d$exports);
|
11704
|
+
|
11705
|
+
$parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
|
11706
|
+
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
11707
|
+
return {
|
11708
|
+
focussed: false,
|
11709
|
+
get active () {
|
11710
|
+
return store.active;
|
11711
|
+
},
|
11712
|
+
get text () {
|
11713
|
+
return store.text;
|
11714
|
+
},
|
11715
|
+
clear () {
|
11716
|
+
if (store.raw === "") this.$refs.input.blur();
|
11717
|
+
else store.raw = "";
|
11718
|
+
},
|
11719
|
+
focus () {
|
11720
|
+
this.$refs.input.focus();
|
11721
|
+
}
|
11722
|
+
};
|
11723
|
+
}
|
11724
|
+
|
11725
|
+
|
11726
11726
|
var $506dabb2bf255b38$exports = {};
|
11727
11727
|
|
11728
11728
|
$parcel$defineInteropFlag($506dabb2bf255b38$exports);
|
@@ -12273,6 +12273,33 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
|
|
12273
12273
|
}
|
12274
12274
|
|
12275
12275
|
|
12276
|
+
var $a87dacf5139b5e2f$exports = {};
|
12277
|
+
|
12278
|
+
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12279
|
+
|
12280
|
+
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12281
|
+
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12282
|
+
return {
|
12283
|
+
get store () {
|
12284
|
+
return store || this;
|
12285
|
+
},
|
12286
|
+
get id () {
|
12287
|
+
return this.$root.id;
|
12288
|
+
},
|
12289
|
+
get panels () {
|
12290
|
+
return Array.from(this.$refs.panels.children);
|
12291
|
+
},
|
12292
|
+
isActive (el) {
|
12293
|
+
return this.store.activeTab === this._getRef(el);
|
12294
|
+
},
|
12295
|
+
// protected
|
12296
|
+
_getRef (el) {
|
12297
|
+
return el.getAttribute("x-ref");
|
12298
|
+
}
|
12299
|
+
};
|
12300
|
+
}
|
12301
|
+
|
12302
|
+
|
12276
12303
|
var $0db07828cadc68e0$exports = {};
|
12277
12304
|
|
12278
12305
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12493,49 +12520,22 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12493
12520
|
}
|
12494
12521
|
|
12495
12522
|
|
12496
|
-
|
12497
|
-
|
12498
|
-
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12499
|
-
|
12500
|
-
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12501
|
-
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12502
|
-
return {
|
12503
|
-
get store () {
|
12504
|
-
return store || this;
|
12505
|
-
},
|
12506
|
-
get id () {
|
12507
|
-
return this.$root.id;
|
12508
|
-
},
|
12509
|
-
get panels () {
|
12510
|
-
return Array.from(this.$refs.panels.children);
|
12511
|
-
},
|
12512
|
-
isActive (el) {
|
12513
|
-
return this.store.activeTab === this._getRef(el);
|
12514
|
-
},
|
12515
|
-
// protected
|
12516
|
-
_getRef (el) {
|
12517
|
-
return el.getAttribute("x-ref");
|
12518
|
-
}
|
12519
|
-
};
|
12520
|
-
}
|
12521
|
-
|
12522
|
-
|
12523
|
-
$e3fb13b1820aa7c3$exports = {
|
12523
|
+
$d93ebb7d29fc0464$exports = {
|
12524
12524
|
"button": $cbd28b10fa9798c7$exports,
|
12525
12525
|
"code": $99486586f6691564$exports,
|
12526
|
-
"dimensions_display": $e398acaded942bbe$exports,
|
12527
12526
|
"copy_button": $47a1c62621be0c54$exports,
|
12527
|
+
"dimensions_display": $e398acaded942bbe$exports,
|
12528
12528
|
"embed_code_dropdown": $216ef7001f59f21d$exports,
|
12529
|
-
"filter": $e9904a14dabf652d$exports,
|
12530
12529
|
"nav": $d92d9d5253f84566$exports,
|
12530
|
+
"filter": $e9904a14dabf652d$exports,
|
12531
12531
|
"split_layout": $506dabb2bf255b38$exports,
|
12532
|
+
"tab_panels": $a87dacf5139b5e2f$exports,
|
12532
12533
|
"tabs": $0db07828cadc68e0$exports,
|
12533
|
-
"viewport": $6d64716f0b34fdf4$exports
|
12534
|
-
"tab_panels": $a87dacf5139b5e2f$exports
|
12534
|
+
"viewport": $6d64716f0b34fdf4$exports
|
12535
12535
|
};
|
12536
12536
|
|
12537
12537
|
|
12538
|
-
var $
|
12538
|
+
var $5e362abaad0ffde8$exports = {};
|
12539
12539
|
var $c299e36fa9e271bc$exports = {};
|
12540
12540
|
|
12541
12541
|
$parcel$defineInteropFlag($c299e36fa9e271bc$exports);
|
@@ -13428,6 +13428,63 @@ function $c299e36fa9e271bc$export$2e2bcd8739ae039(id, embedStore) {
|
|
13428
13428
|
}
|
13429
13429
|
|
13430
13430
|
|
13431
|
+
var $9b24cbeb3a465447$exports = {};
|
13432
|
+
|
13433
|
+
$parcel$defineInteropFlag($9b24cbeb3a465447$exports);
|
13434
|
+
|
13435
|
+
$parcel$export($9b24cbeb3a465447$exports, "default", () => $9b24cbeb3a465447$export$2e2bcd8739ae039);
|
13436
|
+
function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }) {
|
13437
|
+
matchers = matchers.map((matcher)=>matcher.replace(/\s/g, "").toLowerCase());
|
13438
|
+
return {
|
13439
|
+
filteredOut: false,
|
13440
|
+
active: false,
|
13441
|
+
get open () {
|
13442
|
+
return this.isCollection && this.isOpen(id);
|
13443
|
+
},
|
13444
|
+
get children () {
|
13445
|
+
return this.$refs.items ? Array.from(this.$refs.items.children) : [];
|
13446
|
+
},
|
13447
|
+
get isCollection () {
|
13448
|
+
return !this.$refs.link;
|
13449
|
+
},
|
13450
|
+
checkActive () {
|
13451
|
+
this.active = this.$refs.link && window.location.pathname === this.$refs.link.getAttribute("href");
|
13452
|
+
},
|
13453
|
+
toggle () {
|
13454
|
+
this.toggleOpen(id);
|
13455
|
+
},
|
13456
|
+
async filter (text) {
|
13457
|
+
if (this.isCollection) {
|
13458
|
+
this.filteredOut = true;
|
13459
|
+
this.children.forEach(async (child)=>{
|
13460
|
+
const data = Alpine.$data(child);
|
13461
|
+
await data.filter(text);
|
13462
|
+
if (!data.filteredOut) this.filteredOut = false;
|
13463
|
+
});
|
13464
|
+
} else this.filteredOut = !this.match(text);
|
13465
|
+
return this;
|
13466
|
+
},
|
13467
|
+
match (text) {
|
13468
|
+
if (text.length) {
|
13469
|
+
const matched = (matchers || []).map((m)=>m.includes(text));
|
13470
|
+
return matched.filter((m)=>m).length;
|
13471
|
+
}
|
13472
|
+
return true;
|
13473
|
+
},
|
13474
|
+
bindings: {
|
13475
|
+
toggle: {
|
13476
|
+
["x-on:click.stop"]: "toggle",
|
13477
|
+
["x-ref"]: "toggle"
|
13478
|
+
},
|
13479
|
+
link: {
|
13480
|
+
[":class"]: "{'!bg-lookbook-nav-item-active':active}",
|
13481
|
+
["x-ref"]: "link"
|
13482
|
+
}
|
13483
|
+
}
|
13484
|
+
};
|
13485
|
+
}
|
13486
|
+
|
13487
|
+
|
13431
13488
|
var $6a9b69d9cc7f810f$exports = {};
|
13432
13489
|
|
13433
13490
|
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
@@ -13546,63 +13603,6 @@ function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value })
|
|
13546
13603
|
}
|
13547
13604
|
|
13548
13605
|
|
13549
|
-
var $9b24cbeb3a465447$exports = {};
|
13550
|
-
|
13551
|
-
$parcel$defineInteropFlag($9b24cbeb3a465447$exports);
|
13552
|
-
|
13553
|
-
$parcel$export($9b24cbeb3a465447$exports, "default", () => $9b24cbeb3a465447$export$2e2bcd8739ae039);
|
13554
|
-
function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }) {
|
13555
|
-
matchers = matchers.map((matcher)=>matcher.replace(/\s/g, "").toLowerCase());
|
13556
|
-
return {
|
13557
|
-
filteredOut: false,
|
13558
|
-
active: false,
|
13559
|
-
get open () {
|
13560
|
-
return this.isCollection && this.isOpen(id);
|
13561
|
-
},
|
13562
|
-
get children () {
|
13563
|
-
return this.$refs.items ? Array.from(this.$refs.items.children) : [];
|
13564
|
-
},
|
13565
|
-
get isCollection () {
|
13566
|
-
return !this.$refs.link;
|
13567
|
-
},
|
13568
|
-
checkActive () {
|
13569
|
-
this.active = this.$refs.link && window.location.pathname === this.$refs.link.getAttribute("href");
|
13570
|
-
},
|
13571
|
-
toggle () {
|
13572
|
-
this.toggleOpen(id);
|
13573
|
-
},
|
13574
|
-
async filter (text) {
|
13575
|
-
if (this.isCollection) {
|
13576
|
-
this.filteredOut = true;
|
13577
|
-
this.children.forEach(async (child)=>{
|
13578
|
-
const data = Alpine.$data(child);
|
13579
|
-
await data.filter(text);
|
13580
|
-
if (!data.filteredOut) this.filteredOut = false;
|
13581
|
-
});
|
13582
|
-
} else this.filteredOut = !this.match(text);
|
13583
|
-
return this;
|
13584
|
-
},
|
13585
|
-
match (text) {
|
13586
|
-
if (text.length) {
|
13587
|
-
const matched = (matchers || []).map((m)=>m.includes(text));
|
13588
|
-
return matched.filter((m)=>m).length;
|
13589
|
-
}
|
13590
|
-
return true;
|
13591
|
-
},
|
13592
|
-
bindings: {
|
13593
|
-
toggle: {
|
13594
|
-
["x-on:click.stop"]: "toggle",
|
13595
|
-
["x-ref"]: "toggle"
|
13596
|
-
},
|
13597
|
-
link: {
|
13598
|
-
[":class"]: "{'!bg-lookbook-nav-item-active':active}",
|
13599
|
-
["x-ref"]: "link"
|
13600
|
-
}
|
13601
|
-
}
|
13602
|
-
};
|
13603
|
-
}
|
13604
|
-
|
13605
|
-
|
13606
13606
|
var $1a7a7298eec5b755$exports = {};
|
13607
13607
|
|
13608
13608
|
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
@@ -13635,16 +13635,16 @@ function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
|
13635
13635
|
}
|
13636
13636
|
|
13637
13637
|
|
13638
|
-
$
|
13638
|
+
$5e362abaad0ffde8$exports = {
|
13639
13639
|
"embed": {
|
13640
13640
|
"inspector": $c299e36fa9e271bc$exports
|
13641
13641
|
},
|
13642
|
-
"display_options": {
|
13643
|
-
"field": $6a9b69d9cc7f810f$exports
|
13644
|
-
},
|
13645
13642
|
"nav": {
|
13646
13643
|
"item": $9b24cbeb3a465447$exports
|
13647
13644
|
},
|
13645
|
+
"display_options": {
|
13646
|
+
"field": $6a9b69d9cc7f810f$exports
|
13647
|
+
},
|
13648
13648
|
"params": {
|
13649
13649
|
"editor": $1a7a7298eec5b755$exports,
|
13650
13650
|
"field": $e773f8ef556b41ff$exports
|
@@ -13715,8 +13715,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13715
13715
|
// Components
|
13716
13716
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13717
13717
|
[
|
13718
|
-
$
|
13719
|
-
$
|
13718
|
+
$d93ebb7d29fc0464$exports,
|
13719
|
+
$5e362abaad0ffde8$exports,
|
13720
13720
|
$d56e5cced44001d2$exports
|
13721
13721
|
].forEach((scripts)=>{
|
13722
13722
|
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
|