lookbook 1.4.0 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/lookbook/nav/component.rb +1 -1
- data/app/components/lookbook/nav/directory/component.html.erb +2 -0
- data/app/components/lookbook/nav/entity/component.html.erb +2 -0
- data/app/components/lookbook/nav/entity/component.rb +1 -1
- data/app/components/lookbook/nav/item/component.rb +2 -2
- data/app/components/lookbook/params/field/component.rb +1 -1
- data/app/components/lookbook/tabs/component.html.erb +1 -1
- data/app/components/lookbook/tabs/component.js +4 -0
- data/app/views/layouts/lookbook/application.html.erb +52 -50
- data/app/views/layouts/lookbook/shell.html.erb +1 -0
- data/app/views/lookbook/inspector/inputs/_toggle.html.erb +3 -3
- data/lib/lookbook/entities/collections/concerns/hierarchical_collection.rb +0 -4
- data/lib/lookbook/entities/collections/entity_collection.rb +9 -14
- data/lib/lookbook/entities/collections/preview_collection.rb +8 -2
- data/lib/lookbook/entities/collections/preview_example_collection.rb +0 -5
- data/lib/lookbook/entities/concerns/locatable.rb +2 -2
- data/lib/lookbook/entities/concerns/navigable.rb +19 -3
- data/lib/lookbook/entities/entity.rb +5 -0
- data/lib/lookbook/entities/preview.rb +1 -1
- data/lib/lookbook/entities/preview_example.rb +10 -1
- data/lib/lookbook/services/data/resolvers/file_resolver.rb +1 -1
- data/lib/lookbook/support/tree_node.rb +10 -6
- data/lib/lookbook/tags/param_tag.rb +1 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/js/lookbook.js +43 -42
- data/public/lookbook-assets/js/lookbook.js.map +1 -1
- metadata +2 -2
@@ -7705,7 +7705,7 @@ function $5439cede634b2921$var$toCamel(s) {
|
|
7705
7705
|
}
|
7706
7706
|
|
7707
7707
|
|
7708
|
-
var $
|
7708
|
+
var $368fec5c8619cf6d$exports = {};
|
7709
7709
|
var $cbd28b10fa9798c7$exports = {};
|
7710
7710
|
|
7711
7711
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -11228,16 +11228,6 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11228
11228
|
}
|
11229
11229
|
|
11230
11230
|
|
11231
|
-
var $99486586f6691564$exports = {};
|
11232
|
-
|
11233
|
-
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11234
|
-
|
11235
|
-
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11236
|
-
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11237
|
-
return {};
|
11238
|
-
}
|
11239
|
-
|
11240
|
-
|
11241
11231
|
var $47a1c62621be0c54$exports = {};
|
11242
11232
|
|
11243
11233
|
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
@@ -11327,6 +11317,16 @@ function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
|
11327
11317
|
}
|
11328
11318
|
|
11329
11319
|
|
11320
|
+
var $99486586f6691564$exports = {};
|
11321
|
+
|
11322
|
+
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11323
|
+
|
11324
|
+
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11325
|
+
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11326
|
+
return {};
|
11327
|
+
}
|
11328
|
+
|
11329
|
+
|
11330
11330
|
var $e1f51f020443edd4$exports = {};
|
11331
11331
|
|
11332
11332
|
$parcel$defineInteropFlag($e1f51f020443edd4$exports);
|
@@ -12832,6 +12832,33 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
|
|
12832
12832
|
}
|
12833
12833
|
|
12834
12834
|
|
12835
|
+
var $a87dacf5139b5e2f$exports = {};
|
12836
|
+
|
12837
|
+
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12838
|
+
|
12839
|
+
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12840
|
+
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12841
|
+
return {
|
12842
|
+
get store () {
|
12843
|
+
return store || this;
|
12844
|
+
},
|
12845
|
+
get id () {
|
12846
|
+
return this.$root.id;
|
12847
|
+
},
|
12848
|
+
get panels () {
|
12849
|
+
return Array.from(this.$refs.panels.children);
|
12850
|
+
},
|
12851
|
+
isActive (el) {
|
12852
|
+
return this.store.activeTab === this._getRef(el);
|
12853
|
+
},
|
12854
|
+
// protected
|
12855
|
+
_getRef (el) {
|
12856
|
+
return el.getAttribute("x-ref");
|
12857
|
+
}
|
12858
|
+
};
|
12859
|
+
}
|
12860
|
+
|
12861
|
+
|
12835
12862
|
var $0db07828cadc68e0$exports = {};
|
12836
12863
|
|
12837
12864
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12863,6 +12890,7 @@ function $0db07828cadc68e0$export$2e2bcd8739ae039(store) {
|
|
12863
12890
|
},
|
12864
12891
|
init () {
|
12865
12892
|
this.$nextTick(()=>{
|
12893
|
+
if (this.$root.parentElement.offsetWidth === this.$root.offsetWidth) this.visibleTabsCount = this.tabs.length;
|
12866
12894
|
dropdown = (0, $d6f449055c23f07a$export$2e2bcd8739ae039)(this.$refs.dropdownTrigger, {
|
12867
12895
|
content: this.$refs.tabsDropdown,
|
12868
12896
|
theme: "menu",
|
@@ -12924,33 +12952,6 @@ function $0db07828cadc68e0$export$2e2bcd8739ae039(store) {
|
|
12924
12952
|
}
|
12925
12953
|
|
12926
12954
|
|
12927
|
-
var $a87dacf5139b5e2f$exports = {};
|
12928
|
-
|
12929
|
-
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12930
|
-
|
12931
|
-
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12932
|
-
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12933
|
-
return {
|
12934
|
-
get store () {
|
12935
|
-
return store || this;
|
12936
|
-
},
|
12937
|
-
get id () {
|
12938
|
-
return this.$root.id;
|
12939
|
-
},
|
12940
|
-
get panels () {
|
12941
|
-
return Array.from(this.$refs.panels.children);
|
12942
|
-
},
|
12943
|
-
isActive (el) {
|
12944
|
-
return this.store.activeTab === this._getRef(el);
|
12945
|
-
},
|
12946
|
-
// protected
|
12947
|
-
_getRef (el) {
|
12948
|
-
return el.getAttribute("x-ref");
|
12949
|
-
}
|
12950
|
-
};
|
12951
|
-
}
|
12952
|
-
|
12953
|
-
|
12954
12955
|
var $6d64716f0b34fdf4$exports = {};
|
12955
12956
|
|
12956
12957
|
$parcel$defineInteropFlag($6d64716f0b34fdf4$exports);
|
@@ -13078,18 +13079,18 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
13078
13079
|
}
|
13079
13080
|
|
13080
13081
|
|
13081
|
-
$
|
13082
|
+
$368fec5c8619cf6d$exports = {
|
13082
13083
|
"button": $cbd28b10fa9798c7$exports,
|
13083
|
-
"code": $99486586f6691564$exports,
|
13084
13084
|
"copy_button": $47a1c62621be0c54$exports,
|
13085
13085
|
"dimensions_display": $e398acaded942bbe$exports,
|
13086
|
+
"code": $99486586f6691564$exports,
|
13086
13087
|
"embed": $e1f51f020443edd4$exports,
|
13087
13088
|
"filter": $e9904a14dabf652d$exports,
|
13088
13089
|
"icon": $36506012e0c6e9e3$exports,
|
13089
13090
|
"nav": $d92d9d5253f84566$exports,
|
13090
13091
|
"split_layout": $506dabb2bf255b38$exports,
|
13091
|
-
"tabs": $0db07828cadc68e0$exports,
|
13092
13092
|
"tab_panels": $a87dacf5139b5e2f$exports,
|
13093
|
+
"tabs": $0db07828cadc68e0$exports,
|
13093
13094
|
"viewport": $6d64716f0b34fdf4$exports
|
13094
13095
|
};
|
13095
13096
|
|
@@ -13379,7 +13380,7 @@ const $d73574cc5e9b9e72$var$prefix = window.APP_NAME;
|
|
13379
13380
|
// Components
|
13380
13381
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $d709d0f4027033b2$export$2e2bcd8739ae039));
|
13381
13382
|
[
|
13382
|
-
$
|
13383
|
+
$368fec5c8619cf6d$exports,
|
13383
13384
|
$fe98e3f2bf49b28f$exports,
|
13384
13385
|
$6c10158820e535ef$exports
|
13385
13386
|
].forEach((scripts)=>{
|