lookbook 2.3.4 → 2.3.6
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/button/component.html.erb +1 -1
- data/app/components/lookbook/button/component.js +10 -3
- data/app/components/lookbook/display_options/editor/component.html.erb +1 -1
- 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 -3
- 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 +160 -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: 02fa4be9a0dea509c0e97aadca5b35bf45ca28b2cb4400e47799ce33174b2ef8
|
4
|
+
data.tar.gz: a4f5c39fa7971778295201304f90e2d9bb0f3ac4b2f39e4d8aa71d7c5d724a1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf042229504dd342668a5150c8359e1027238dd678f49dfe5c2b5e3e383b1d3695423944a93d6035469256cb640c69d062b4e7448c3db98e7c306f3d1a7b1b2a
|
7
|
+
data.tar.gz: ca21facc47d0261841b128d875389edbcbc2f7ef2f537ad5f69ae6e870b6c73e19ed49be69c4b7c1845024fd4d1692f379ddd8762cb918568018c04e7382ed78
|
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
|
|
@@ -6,7 +6,12 @@ export default function buttonComponent() {
|
|
6
6
|
let dropdown = null;
|
7
7
|
|
8
8
|
return {
|
9
|
+
updateAfterNavigate: true,
|
10
|
+
|
9
11
|
init() {
|
12
|
+
this.updateAfterNavigate =
|
13
|
+
this.$el.dataset.updateAfterNavigate !== "false";
|
14
|
+
|
10
15
|
if (this.$refs.tooltip) {
|
11
16
|
tooltip = initTooltip(this, {
|
12
17
|
target: this.$refs.icon,
|
@@ -51,9 +56,11 @@ export default function buttonComponent() {
|
|
51
56
|
updateDropdown() {
|
52
57
|
if (dropdown) {
|
53
58
|
dropdown.hide();
|
54
|
-
this
|
55
|
-
|
56
|
-
|
59
|
+
if (this.updateAfterNavigate) {
|
60
|
+
this.$nextTick(() => {
|
61
|
+
dropdown.setContent(this.dropdownContent);
|
62
|
+
});
|
63
|
+
}
|
57
64
|
}
|
58
65
|
},
|
59
66
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= render_component_tag class: "px-2" do %>
|
2
2
|
<% if fields.many? %>
|
3
|
-
<%= lookbook_render :button, id: "display-options-dropdown-button", icon: :settings, tooltip: "Display options" do |button| %>
|
3
|
+
<%= lookbook_render :button, id: "display-options-dropdown-button", icon: :settings, tooltip: "Display options", data: {update_after_navigate: false} do |button| %>
|
4
4
|
<% button.with_dropdown do %>
|
5
5
|
<div class="p-3 space-y-3">
|
6
6
|
<%= safe_join(fields) %>
|
@@ -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
|
|
data/lib/lookbook/version.rb
CHANGED
@@ -7760,11 +7760,14 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7760
7760
|
* `callback` is executed at the proper times in `throttle` and `end`
|
7761
7761
|
* debounce modes.
|
7762
7762
|
*/ var timeoutID;
|
7763
|
-
var cancelled = false;
|
7764
|
-
|
7763
|
+
var cancelled = false;
|
7764
|
+
// Keep track of the last time `callback` was executed.
|
7765
|
+
var lastExec = 0;
|
7766
|
+
// Function to clear existing timeout
|
7765
7767
|
function clearExistingTimeout() {
|
7766
7768
|
if (timeoutID) clearTimeout(timeoutID);
|
7767
|
-
}
|
7769
|
+
}
|
7770
|
+
// Function to cancel next exec
|
7768
7771
|
function cancel(options) {
|
7769
7772
|
var _ref2 = options || {}, _ref2$upcomingOnly = _ref2.upcomingOnly, upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
7770
7773
|
clearExistingTimeout();
|
@@ -7779,7 +7782,7 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7779
7782
|
var self = this;
|
7780
7783
|
var elapsed = Date.now() - lastExec;
|
7781
7784
|
if (cancelled) return;
|
7782
|
-
|
7785
|
+
// Execute `callback` and update the `lastExec` timestamp.
|
7783
7786
|
function exec() {
|
7784
7787
|
lastExec = Date.now();
|
7785
7788
|
callback.apply(self, arguments_);
|
@@ -7820,7 +7823,8 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7820
7823
|
* execute after `delay` ms.
|
7821
7824
|
*/ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
7822
7825
|
}
|
7823
|
-
wrapper.cancel = cancel;
|
7826
|
+
wrapper.cancel = cancel;
|
7827
|
+
// Return the wrapper function.
|
7824
7828
|
return wrapper;
|
7825
7829
|
}
|
7826
7830
|
/* eslint-disable no-undefined */ /**
|
@@ -8026,7 +8030,102 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
8026
8030
|
}
|
8027
8031
|
|
8028
8032
|
|
8029
|
-
var $
|
8033
|
+
var $a700a883f9bd2df0$exports = {};
|
8034
|
+
var $99486586f6691564$exports = {};
|
8035
|
+
|
8036
|
+
$parcel$defineInteropFlag($99486586f6691564$exports);
|
8037
|
+
|
8038
|
+
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
8039
|
+
function $99486586f6691564$export$2e2bcd8739ae039() {
|
8040
|
+
return {};
|
8041
|
+
}
|
8042
|
+
|
8043
|
+
|
8044
|
+
var $e398acaded942bbe$exports = {};
|
8045
|
+
|
8046
|
+
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
8047
|
+
|
8048
|
+
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
8049
|
+
|
8050
|
+
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
8051
|
+
return {
|
8052
|
+
width: 0,
|
8053
|
+
height: 0,
|
8054
|
+
resizing: false,
|
8055
|
+
target: null,
|
8056
|
+
init () {
|
8057
|
+
this.target = document.querySelector(targetSelector);
|
8058
|
+
if (this.target) {
|
8059
|
+
this.width = Math.round(this.target.clientWidth);
|
8060
|
+
this.height = Math.round(this.target.clientHeight);
|
8061
|
+
this.createObserver();
|
8062
|
+
}
|
8063
|
+
},
|
8064
|
+
createObserver () {
|
8065
|
+
if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
|
8066
|
+
this.width = width;
|
8067
|
+
this.height = height;
|
8068
|
+
});
|
8069
|
+
},
|
8070
|
+
tearDown () {
|
8071
|
+
if (this.observer) this.observer.disconnect();
|
8072
|
+
}
|
8073
|
+
};
|
8074
|
+
}
|
8075
|
+
|
8076
|
+
|
8077
|
+
var $216ef7001f59f21d$exports = {};
|
8078
|
+
|
8079
|
+
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
8080
|
+
|
8081
|
+
$parcel$export($216ef7001f59f21d$exports, "default", () => $216ef7001f59f21d$export$2e2bcd8739ae039);
|
8082
|
+
function $216ef7001f59f21d$export$2e2bcd8739ae039() {
|
8083
|
+
return {};
|
8084
|
+
}
|
8085
|
+
|
8086
|
+
|
8087
|
+
var $47a1c62621be0c54$exports = {};
|
8088
|
+
|
8089
|
+
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
8090
|
+
|
8091
|
+
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
|
8092
|
+
var $4e31c85e11272811$exports = {};
|
8093
|
+
|
8094
|
+
$parcel$defineInteropFlag($4e31c85e11272811$exports);
|
8095
|
+
|
8096
|
+
$parcel$export($4e31c85e11272811$exports, "initClipboard", () => $4e31c85e11272811$export$c6684e6159b21de3);
|
8097
|
+
$parcel$export($4e31c85e11272811$exports, "default", () => $4e31c85e11272811$export$2e2bcd8739ae039);
|
8098
|
+
|
8099
|
+
function $4e31c85e11272811$export$c6684e6159b21de3(context = {}) {
|
8100
|
+
let copyTimeout = null;
|
8101
|
+
return Object.assign(context, {
|
8102
|
+
copied: false,
|
8103
|
+
async copyToClipboard (target = null) {
|
8104
|
+
let targetEl;
|
8105
|
+
if (this.$refs.copyTarget) targetEl = this.$refs.copyTarget;
|
8106
|
+
else if (typeof target === "string") targetEl = document.querySelector(target);
|
8107
|
+
if (!targetEl) {
|
8108
|
+
this.warn("Could not find copy target");
|
8109
|
+
return false;
|
8110
|
+
}
|
8111
|
+
const content = (0, $fb8f79f7dd40b68f$export$6cb344a21ca18aec)(targetEl.innerHTML.trim());
|
8112
|
+
await window.navigator.clipboard.writeText(content);
|
8113
|
+
this.copied = true;
|
8114
|
+
if (copyTimeout) clearTimeout(copyTimeout);
|
8115
|
+
copyTimeout = setTimeout(()=>{
|
8116
|
+
this.copied = false;
|
8117
|
+
this.onCopyComplete();
|
8118
|
+
}, 1000);
|
8119
|
+
return content;
|
8120
|
+
},
|
8121
|
+
onCopyComplete () {}
|
8122
|
+
});
|
8123
|
+
}
|
8124
|
+
function $4e31c85e11272811$export$2e2bcd8739ae039() {
|
8125
|
+
return $4e31c85e11272811$export$c6684e6159b21de3({});
|
8126
|
+
}
|
8127
|
+
|
8128
|
+
|
8030
8129
|
var $cbd28b10fa9798c7$exports = {};
|
8031
8130
|
|
8032
8131
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -11491,7 +11590,9 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11491
11590
|
let tooltip = null;
|
11492
11591
|
let dropdown = null;
|
11493
11592
|
return {
|
11593
|
+
updateAfterNavigate: true,
|
11494
11594
|
init () {
|
11595
|
+
this.updateAfterNavigate = this.$el.dataset.updateAfterNavigate !== "false";
|
11495
11596
|
if (this.$refs.tooltip) tooltip = (0, $7a759511c361f2bd$export$353372104066311a)(this, {
|
11496
11597
|
target: this.$refs.icon
|
11497
11598
|
});
|
@@ -11526,7 +11627,7 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11526
11627
|
updateDropdown () {
|
11527
11628
|
if (dropdown) {
|
11528
11629
|
dropdown.hide();
|
11529
|
-
this.$nextTick(()=>{
|
11630
|
+
if (this.updateAfterNavigate) this.$nextTick(()=>{
|
11530
11631
|
dropdown.setContent(this.dropdownContent);
|
11531
11632
|
});
|
11532
11633
|
}
|
@@ -11545,59 +11646,6 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11545
11646
|
}
|
11546
11647
|
|
11547
11648
|
|
11548
|
-
var $99486586f6691564$exports = {};
|
11549
|
-
|
11550
|
-
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11551
|
-
|
11552
|
-
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11553
|
-
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11554
|
-
return {};
|
11555
|
-
}
|
11556
|
-
|
11557
|
-
|
11558
|
-
var $47a1c62621be0c54$exports = {};
|
11559
|
-
|
11560
|
-
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
11561
|
-
|
11562
|
-
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
|
11563
|
-
var $4e31c85e11272811$exports = {};
|
11564
|
-
|
11565
|
-
$parcel$defineInteropFlag($4e31c85e11272811$exports);
|
11566
|
-
|
11567
|
-
$parcel$export($4e31c85e11272811$exports, "initClipboard", () => $4e31c85e11272811$export$c6684e6159b21de3);
|
11568
|
-
$parcel$export($4e31c85e11272811$exports, "default", () => $4e31c85e11272811$export$2e2bcd8739ae039);
|
11569
|
-
|
11570
|
-
function $4e31c85e11272811$export$c6684e6159b21de3(context = {}) {
|
11571
|
-
let copyTimeout = null;
|
11572
|
-
return Object.assign(context, {
|
11573
|
-
copied: false,
|
11574
|
-
async copyToClipboard (target = null) {
|
11575
|
-
let targetEl;
|
11576
|
-
if (this.$refs.copyTarget) targetEl = this.$refs.copyTarget;
|
11577
|
-
else if (typeof target === "string") targetEl = document.querySelector(target);
|
11578
|
-
if (!targetEl) {
|
11579
|
-
this.warn("Could not find copy target");
|
11580
|
-
return false;
|
11581
|
-
}
|
11582
|
-
const content = (0, $fb8f79f7dd40b68f$export$6cb344a21ca18aec)(targetEl.innerHTML.trim());
|
11583
|
-
await window.navigator.clipboard.writeText(content);
|
11584
|
-
this.copied = true;
|
11585
|
-
if (copyTimeout) clearTimeout(copyTimeout);
|
11586
|
-
copyTimeout = setTimeout(()=>{
|
11587
|
-
this.copied = false;
|
11588
|
-
this.onCopyComplete();
|
11589
|
-
}, 1000);
|
11590
|
-
return content;
|
11591
|
-
},
|
11592
|
-
onCopyComplete () {}
|
11593
|
-
});
|
11594
|
-
}
|
11595
|
-
function $4e31c85e11272811$export$2e2bcd8739ae039() {
|
11596
|
-
return $4e31c85e11272811$export$c6684e6159b21de3({});
|
11597
|
-
}
|
11598
|
-
|
11599
|
-
|
11600
|
-
|
11601
11649
|
function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
11602
11650
|
const button = (0, $cbd28b10fa9798c7$export$2e2bcd8739ae039)();
|
11603
11651
|
return {
|
@@ -11611,48 +11659,6 @@ function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
|
11611
11659
|
}
|
11612
11660
|
|
11613
11661
|
|
11614
|
-
var $e398acaded942bbe$exports = {};
|
11615
|
-
|
11616
|
-
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
11617
|
-
|
11618
|
-
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
11619
|
-
|
11620
|
-
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
11621
|
-
return {
|
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
|
-
}
|
11633
|
-
},
|
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
|
-
});
|
11639
|
-
},
|
11640
|
-
tearDown () {
|
11641
|
-
if (this.observer) this.observer.disconnect();
|
11642
|
-
}
|
11643
|
-
};
|
11644
|
-
}
|
11645
|
-
|
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
11662
|
|
11657
11663
|
var $e9904a14dabf652d$exports = {};
|
11658
11664
|
|
@@ -12273,33 +12279,6 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
|
|
12273
12279
|
}
|
12274
12280
|
|
12275
12281
|
|
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
|
-
|
12303
12282
|
var $0db07828cadc68e0$exports = {};
|
12304
12283
|
|
12305
12284
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12520,22 +12499,49 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12520
12499
|
}
|
12521
12500
|
|
12522
12501
|
|
12523
|
-
$
|
12524
|
-
|
12502
|
+
var $a87dacf5139b5e2f$exports = {};
|
12503
|
+
|
12504
|
+
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12505
|
+
|
12506
|
+
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12507
|
+
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12508
|
+
return {
|
12509
|
+
get store () {
|
12510
|
+
return store || this;
|
12511
|
+
},
|
12512
|
+
get id () {
|
12513
|
+
return this.$root.id;
|
12514
|
+
},
|
12515
|
+
get panels () {
|
12516
|
+
return Array.from(this.$refs.panels.children);
|
12517
|
+
},
|
12518
|
+
isActive (el) {
|
12519
|
+
return this.store.activeTab === this._getRef(el);
|
12520
|
+
},
|
12521
|
+
// protected
|
12522
|
+
_getRef (el) {
|
12523
|
+
return el.getAttribute("x-ref");
|
12524
|
+
}
|
12525
|
+
};
|
12526
|
+
}
|
12527
|
+
|
12528
|
+
|
12529
|
+
$a700a883f9bd2df0$exports = {
|
12525
12530
|
"code": $99486586f6691564$exports,
|
12526
|
-
"copy_button": $47a1c62621be0c54$exports,
|
12527
12531
|
"dimensions_display": $e398acaded942bbe$exports,
|
12528
12532
|
"embed_code_dropdown": $216ef7001f59f21d$exports,
|
12533
|
+
"copy_button": $47a1c62621be0c54$exports,
|
12534
|
+
"button": $cbd28b10fa9798c7$exports,
|
12529
12535
|
"filter": $e9904a14dabf652d$exports,
|
12530
12536
|
"nav": $d92d9d5253f84566$exports,
|
12531
12537
|
"split_layout": $506dabb2bf255b38$exports,
|
12532
|
-
"tab_panels": $a87dacf5139b5e2f$exports,
|
12533
12538
|
"tabs": $0db07828cadc68e0$exports,
|
12534
|
-
"viewport": $6d64716f0b34fdf4$exports
|
12539
|
+
"viewport": $6d64716f0b34fdf4$exports,
|
12540
|
+
"tab_panels": $a87dacf5139b5e2f$exports
|
12535
12541
|
};
|
12536
12542
|
|
12537
12543
|
|
12538
|
-
var $
|
12544
|
+
var $6178ee12f80cbf68$exports = {};
|
12539
12545
|
var $6a9b69d9cc7f810f$exports = {};
|
12540
12546
|
|
12541
12547
|
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
@@ -13603,20 +13609,6 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }
|
|
13603
13609
|
}
|
13604
13610
|
|
13605
13611
|
|
13606
|
-
var $e773f8ef556b41ff$exports = {};
|
13607
|
-
|
13608
|
-
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13609
|
-
|
13610
|
-
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13611
|
-
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13612
|
-
return {
|
13613
|
-
get isNarrowLayout () {
|
13614
|
-
return this.narrow || false;
|
13615
|
-
}
|
13616
|
-
};
|
13617
|
-
}
|
13618
|
-
|
13619
|
-
|
13620
13612
|
var $1a7a7298eec5b755$exports = {};
|
13621
13613
|
|
13622
13614
|
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
@@ -13635,7 +13627,21 @@ function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
|
13635
13627
|
}
|
13636
13628
|
|
13637
13629
|
|
13638
|
-
$
|
13630
|
+
var $e773f8ef556b41ff$exports = {};
|
13631
|
+
|
13632
|
+
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13633
|
+
|
13634
|
+
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13635
|
+
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13636
|
+
return {
|
13637
|
+
get isNarrowLayout () {
|
13638
|
+
return this.narrow || false;
|
13639
|
+
}
|
13640
|
+
};
|
13641
|
+
}
|
13642
|
+
|
13643
|
+
|
13644
|
+
$6178ee12f80cbf68$exports = {
|
13639
13645
|
"display_options": {
|
13640
13646
|
"field": $6a9b69d9cc7f810f$exports
|
13641
13647
|
},
|
@@ -13646,8 +13652,8 @@ $3821a3a183a9a321$exports = {
|
|
13646
13652
|
"item": $9b24cbeb3a465447$exports
|
13647
13653
|
},
|
13648
13654
|
"params": {
|
13649
|
-
"
|
13650
|
-
"
|
13655
|
+
"editor": $1a7a7298eec5b755$exports,
|
13656
|
+
"field": $e773f8ef556b41ff$exports
|
13651
13657
|
}
|
13652
13658
|
};
|
13653
13659
|
|
@@ -13715,8 +13721,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13715
13721
|
// Components
|
13716
13722
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13717
13723
|
[
|
13718
|
-
$
|
13719
|
-
$
|
13724
|
+
$a700a883f9bd2df0$exports,
|
13725
|
+
$6178ee12f80cbf68$exports,
|
13720
13726
|
$d56e5cced44001d2$exports
|
13721
13727
|
].forEach((scripts)=>{
|
13722
13728
|
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
|