lookbook 1.2.1 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +47 -14
- data/app/assets/lookbook/css/themes/blue.css +4 -2
- data/app/assets/lookbook/css/themes/green.css +66 -0
- data/app/assets/lookbook/css/themes/indigo.css +4 -2
- data/app/assets/lookbook/css/themes/rose.css +66 -0
- data/app/assets/lookbook/css/themes/zinc.css +4 -2
- data/app/components/lookbook/base_component.rb +2 -2
- data/app/components/lookbook/code/component.css +2 -2
- data/app/components/lookbook/code/component.html.erb +3 -2
- data/app/components/lookbook/code/component.rb +13 -2
- data/app/components/lookbook/code/highlight_github.css +406 -0
- data/app/components/lookbook/header/component.html.erb +1 -1
- data/app/components/lookbook/inspector_panel/component.rb +4 -6
- data/app/components/lookbook/nav/component.rb +8 -15
- data/app/components/lookbook/nav/directory/component.html.erb +28 -0
- data/app/components/lookbook/nav/directory/component.rb +4 -0
- data/app/components/lookbook/nav/{item → entity}/component.html.erb +8 -8
- data/app/components/lookbook/nav/entity/component.rb +49 -0
- data/app/components/lookbook/nav/item/component.css +15 -0
- data/app/components/lookbook/nav/item/component.js +4 -0
- data/app/components/lookbook/nav/item/component.rb +13 -56
- data/app/components/lookbook/params/editor/component.html.erb +2 -2
- data/app/components/lookbook/params/editor/component.rb +3 -10
- data/app/components/lookbook/params/field/component.css +3 -3
- data/app/components/lookbook/params/field/component.html.erb +8 -8
- data/app/components/lookbook/params/field/component.rb +21 -72
- data/app/components/lookbook/split_layout/component.html.erb +1 -1
- data/app/components/lookbook/tabs/component.html.erb +1 -1
- data/app/components/lookbook/tabs/component.js +4 -0
- data/app/components/lookbook/tag_component.rb +1 -1
- data/app/components/lookbook/viewport/component.css +1 -1
- data/app/components/lookbook/viewport/component.html.erb +1 -1
- data/app/components/lookbook/viewport/component.rb +1 -1
- data/app/controllers/concerns/lookbook/targetable_concern.rb +131 -0
- data/app/controllers/concerns/lookbook/with_preview_controller_concern.rb +13 -0
- data/app/controllers/lookbook/application_controller.rb +21 -9
- data/app/controllers/lookbook/inspector_controller.rb +45 -0
- data/app/controllers/lookbook/page_controller.rb +13 -9
- data/app/controllers/lookbook/pages_controller.rb +9 -15
- data/app/controllers/lookbook/previews_controller.rb +4 -210
- data/app/helpers/lookbook/application_helper.rb +2 -2
- data/app/helpers/lookbook/output_helper.rb +5 -5
- data/app/helpers/lookbook/page_helper.rb +7 -4
- data/app/views/layouts/lookbook/application.html.erb +40 -38
- data/app/views/layouts/lookbook/page.html.erb +2 -2
- data/app/views/layouts/lookbook/shell.html.erb +3 -2
- data/app/views/layouts/lookbook/skeleton.html.erb +7 -7
- data/app/views/lookbook/index.html.erb +13 -2
- data/app/views/lookbook/{previews → inspector}/inputs/_color.html.erb +0 -0
- data/app/views/lookbook/{previews → inspector}/inputs/_range.html.erb +0 -0
- data/app/views/lookbook/{previews → inspector}/inputs/_select.html.erb +0 -0
- data/app/views/lookbook/{previews → inspector}/inputs/_text.html.erb +0 -0
- data/app/views/lookbook/{previews → inspector}/inputs/_textarea.html.erb +0 -0
- data/app/views/lookbook/{previews → inspector}/inputs/_toggle.html.erb +5 -5
- data/app/views/lookbook/{previews → inspector}/panels/_content.html.erb +0 -0
- data/app/views/lookbook/{previews → inspector}/panels/_notes.html.erb +2 -2
- data/app/views/lookbook/{previews → inspector}/panels/_output.html.erb +0 -0
- data/app/views/lookbook/inspector/panels/_params.html.erb +15 -0
- data/app/views/lookbook/{previews → inspector}/panels/_preview.html.erb +0 -0
- data/app/views/lookbook/{previews → inspector}/panels/_source.html.erb +0 -0
- data/app/views/lookbook/{previews → inspector}/show.html.erb +5 -2
- data/config/app.yml +11 -1
- data/config/inputs.yml +12 -12
- data/config/languages.yml +41 -0
- data/config/panels.yml +6 -6
- data/config/routes.rb +5 -5
- data/config/tags.yml +8 -1
- data/lib/lookbook/engine.rb +103 -130
- data/lib/lookbook/entities/collections/component_collection.rb +4 -0
- data/lib/lookbook/entities/collections/concerns/hierarchical_collection.rb +23 -0
- data/lib/lookbook/entities/collections/entity_collection.rb +61 -0
- data/lib/lookbook/entities/collections/page_collection.rb +30 -0
- data/lib/lookbook/entities/collections/preview_collection.rb +41 -0
- data/lib/lookbook/entities/collections/preview_example_collection.rb +4 -0
- data/lib/lookbook/entities/component.rb +31 -0
- data/lib/lookbook/entities/concerns/annotatable.rb +58 -0
- data/lib/lookbook/entities/concerns/inspectable.rb +44 -0
- data/lib/lookbook/entities/concerns/locatable.rb +73 -0
- data/lib/lookbook/entities/concerns/navigable.rb +43 -0
- data/lib/lookbook/entities/entity.rb +53 -0
- data/lib/lookbook/entities/page.rb +80 -0
- data/lib/lookbook/entities/page_section.rb +43 -0
- data/lib/lookbook/entities/preview.rb +87 -0
- data/lib/lookbook/entities/preview_example.rb +100 -0
- data/lib/lookbook/entities/preview_group.rb +48 -0
- data/lib/lookbook/file_watcher.rb +47 -0
- data/lib/lookbook/lang.rb +12 -35
- data/lib/lookbook/param.rb +99 -0
- data/lib/lookbook/{preview_controller.rb → preview_actions.rb} +14 -3
- data/lib/lookbook/preview_parser.rb +53 -0
- data/lib/lookbook/process.rb +21 -0
- data/lib/lookbook/rendered_example.rb +37 -0
- data/lib/lookbook/services/code/code_beautifier.rb +21 -0
- data/lib/lookbook/services/code/code_highlighter.rb +69 -0
- data/lib/lookbook/services/code/code_indenter.rb +14 -0
- data/lib/lookbook/services/data/parsers/data_parser.rb +22 -0
- data/lib/lookbook/services/data/parsers/json_parser.rb +7 -0
- data/lib/lookbook/services/data/parsers/yaml_parser.rb +7 -0
- data/lib/lookbook/services/data/resolvers/data_resolver.rb +70 -0
- data/lib/lookbook/services/data/resolvers/eval_resolver.rb +10 -0
- data/lib/lookbook/services/data/resolvers/file_resolver.rb +28 -0
- data/lib/lookbook/services/data/resolvers/method_resolver.rb +10 -0
- data/lib/lookbook/services/data/resolvers/yaml_resolver.rb +18 -0
- data/lib/lookbook/services/entities/entity_tree_builder.rb +45 -0
- data/lib/lookbook/services/markdown_renderer.rb +29 -0
- data/lib/lookbook/services/position_prefix_parser.rb +16 -0
- data/lib/lookbook/services/string_value_caster.rb +60 -0
- data/lib/lookbook/services/tags/tag_options_parser.rb +62 -0
- data/lib/lookbook/services/templates/action_view_annotations_handler.rb +21 -0
- data/lib/lookbook/services/templates/action_view_annotations_stripper.rb +15 -0
- data/lib/lookbook/services/templates/frontmatter_extractor.rb +28 -0
- data/lib/lookbook/services/templates/styles_extractor.rb +38 -0
- data/lib/lookbook/services/{search_param_builder.rb → urls/search_param_builder.rb} +1 -1
- data/lib/lookbook/services/{search_param_parser.rb → urls/search_param_parser.rb} +1 -1
- data/lib/lookbook/stores/config_store.rb +12 -9
- data/lib/lookbook/stores/input_store.rb +7 -3
- data/lib/lookbook/stores/panel_store.rb +2 -2
- data/lib/lookbook/stores/tag_store.rb +3 -5
- data/lib/lookbook/support/null_object.rb +10 -0
- data/lib/lookbook/support/service.rb +2 -2
- data/lib/lookbook/support/store.rb +2 -35
- data/lib/lookbook/support/tree_node.rb +87 -0
- data/lib/lookbook/support/utils/path_utils.rb +32 -5
- data/lib/lookbook/support/utils/utils.rb +24 -0
- data/lib/lookbook/tags/component_tag.rb +13 -0
- data/lib/lookbook/tags/custom_tag.rb +61 -0
- data/lib/lookbook/tags/display_tag.rb +15 -0
- data/lib/lookbook/tags/hidden_tag.rb +13 -0
- data/lib/lookbook/tags/id_tag.rb +7 -0
- data/lib/lookbook/tags/label_tag.rb +4 -0
- data/lib/lookbook/tags/logical_path_tag.rb +7 -0
- data/lib/lookbook/tags/param_tag.rb +63 -0
- data/lib/lookbook/tags/position_tag.rb +16 -0
- data/lib/lookbook/tags/source_tag.rb +7 -0
- data/lib/lookbook/tags/tag_provider.rb +18 -0
- data/lib/lookbook/tags/yard_tag.rb +90 -0
- data/lib/lookbook/theme.rb +8 -0
- data/lib/lookbook/version.rb +1 -1
- data/lib/lookbook/websocket.rb +60 -0
- data/lib/lookbook.rb +13 -8
- data/public/lookbook-assets/css/lookbook.css +487 -411
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/css/themes/blue.css +3 -1
- data/public/lookbook-assets/css/themes/blue.css.map +1 -1
- data/public/lookbook-assets/css/themes/green.css +68 -0
- data/public/lookbook-assets/css/themes/green.css.map +1 -0
- data/public/lookbook-assets/css/themes/indigo.css +3 -1
- data/public/lookbook-assets/css/themes/indigo.css.map +1 -1
- data/public/lookbook-assets/css/themes/rose.css +68 -0
- data/public/lookbook-assets/css/themes/rose.css.map +1 -0
- data/public/lookbook-assets/css/themes/zinc.css +3 -1
- data/public/lookbook-assets/css/themes/zinc.css.map +1 -1
- data/public/lookbook-assets/js/embed.js +10 -1
- data/public/lookbook-assets/js/embed.js.map +1 -1
- data/public/lookbook-assets/js/lookbook.js +358 -629
- data/public/lookbook-assets/js/lookbook.js.map +1 -1
- metadata +96 -44
- data/app/components/lookbook/code/highlight_github_light.css +0 -217
- data/app/views/lookbook/previews/panels/_params.html.erb +0 -15
- data/lib/lookbook/code_formatter.rb +0 -68
- data/lib/lookbook/collection.rb +0 -161
- data/lib/lookbook/component.rb +0 -34
- data/lib/lookbook/entity.rb +0 -47
- data/lib/lookbook/markdown.rb +0 -22
- data/lib/lookbook/page.rb +0 -195
- data/lib/lookbook/page_collection.rb +0 -19
- data/lib/lookbook/page_section.rb +0 -29
- data/lib/lookbook/params.rb +0 -157
- data/lib/lookbook/parser.rb +0 -42
- data/lib/lookbook/preview.rb +0 -174
- data/lib/lookbook/preview_collection.rb +0 -23
- data/lib/lookbook/preview_example.rb +0 -93
- data/lib/lookbook/preview_group.rb +0 -62
- data/lib/lookbook/source_inspector.rb +0 -95
- data/lib/lookbook/support/utils/attribute_utils.rb +0 -9
- data/lib/lookbook/tag.rb +0 -122
- data/lib/lookbook/tag_options.rb +0 -111
- data/lib/lookbook/tags.rb +0 -17
- data/lib/lookbook/template_parser.rb +0 -72
- data/lib/lookbook/utils.rb +0 -105
@@ -623,10 +623,15 @@ var $caa9439642c6336c$var$directiveOrder = [
|
|
623
623
|
"ref",
|
624
624
|
"data",
|
625
625
|
"id",
|
626
|
-
"tabs",
|
627
626
|
"radio",
|
627
|
+
"tabs",
|
628
628
|
"switch",
|
629
629
|
"disclosure",
|
630
|
+
"menu",
|
631
|
+
"listbox",
|
632
|
+
"list",
|
633
|
+
"item",
|
634
|
+
"combobox",
|
630
635
|
"bind",
|
631
636
|
"init",
|
632
637
|
"for",
|
@@ -1365,7 +1370,7 @@ var $caa9439642c6336c$var$Alpine = {
|
|
1365
1370
|
get raw () {
|
1366
1371
|
return $caa9439642c6336c$var$raw;
|
1367
1372
|
},
|
1368
|
-
version: "3.10.
|
1373
|
+
version: "3.10.5",
|
1369
1374
|
flushAndStopDeferringMutations: $caa9439642c6336c$var$flushAndStopDeferringMutations,
|
1370
1375
|
dontAutoEvaluateFunctions: $caa9439642c6336c$var$dontAutoEvaluateFunctions,
|
1371
1376
|
disableEffectScheduling: $caa9439642c6336c$var$disableEffectScheduling,
|
@@ -5026,9 +5031,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5026
5031
|
return getChildren(popper);
|
5027
5032
|
}
|
5028
5033
|
function getDelay(isShow) {
|
5029
|
-
if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus")
|
5030
|
-
return 0;
|
5031
|
-
}
|
5034
|
+
if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus") return 0;
|
5032
5035
|
return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
|
5033
5036
|
}
|
5034
5037
|
function handleStyles() {
|
@@ -5036,13 +5039,9 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5036
5039
|
popper.style.zIndex = "" + instance.props.zIndex;
|
5037
5040
|
}
|
5038
5041
|
function invokeHook(hook, args, shouldInvokePropsHook) {
|
5039
|
-
if (shouldInvokePropsHook === void 0)
|
5040
|
-
shouldInvokePropsHook = true;
|
5041
|
-
}
|
5042
|
+
if (shouldInvokePropsHook === void 0) shouldInvokePropsHook = true;
|
5042
5043
|
pluginsHooks.forEach(function(pluginHooks) {
|
5043
|
-
if (pluginHooks[hook])
|
5044
|
-
pluginHooks[hook].apply(void 0, args);
|
5045
|
-
}
|
5044
|
+
if (pluginHooks[hook]) pluginHooks[hook].apply(void 0, args);
|
5046
5045
|
});
|
5047
5046
|
if (shouldInvokePropsHook) {
|
5048
5047
|
var _instance$props;
|
@@ -5051,37 +5050,26 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5051
5050
|
}
|
5052
5051
|
function handleAriaContentAttribute() {
|
5053
5052
|
var aria = instance.props.aria;
|
5054
|
-
if (!aria.content)
|
5055
|
-
return;
|
5056
|
-
}
|
5053
|
+
if (!aria.content) return;
|
5057
5054
|
var attr = "aria-" + aria.content;
|
5058
5055
|
var id2 = popper.id;
|
5059
5056
|
var nodes = normalizeToArray(instance.props.triggerTarget || reference);
|
5060
5057
|
nodes.forEach(function(node) {
|
5061
5058
|
var currentValue = node.getAttribute(attr);
|
5062
|
-
if (instance.state.isVisible)
|
5063
|
-
|
5064
|
-
} else {
|
5059
|
+
if (instance.state.isVisible) node.setAttribute(attr, currentValue ? currentValue + " " + id2 : id2);
|
5060
|
+
else {
|
5065
5061
|
var nextValue = currentValue && currentValue.replace(id2, "").trim();
|
5066
|
-
if (nextValue)
|
5067
|
-
|
5068
|
-
} else {
|
5069
|
-
node.removeAttribute(attr);
|
5070
|
-
}
|
5062
|
+
if (nextValue) node.setAttribute(attr, nextValue);
|
5063
|
+
else node.removeAttribute(attr);
|
5071
5064
|
}
|
5072
5065
|
});
|
5073
5066
|
}
|
5074
5067
|
function handleAriaExpandedAttribute() {
|
5075
|
-
if (hasAriaExpanded || !instance.props.aria.expanded)
|
5076
|
-
return;
|
5077
|
-
}
|
5068
|
+
if (hasAriaExpanded || !instance.props.aria.expanded) return;
|
5078
5069
|
var nodes = normalizeToArray(instance.props.triggerTarget || reference);
|
5079
5070
|
nodes.forEach(function(node) {
|
5080
|
-
if (instance.props.interactive)
|
5081
|
-
|
5082
|
-
} else {
|
5083
|
-
node.removeAttribute("aria-expanded");
|
5084
|
-
}
|
5071
|
+
if (instance.props.interactive) node.setAttribute("aria-expanded", instance.state.isVisible && node === getCurrentTarget() ? "true" : "false");
|
5072
|
+
else node.removeAttribute("aria-expanded");
|
5085
5073
|
});
|
5086
5074
|
}
|
5087
5075
|
function cleanupInteractiveMouseListeners() {
|
@@ -5092,26 +5080,16 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5092
5080
|
}
|
5093
5081
|
function onDocumentPress(event) {
|
5094
5082
|
if (currentInput.isTouch) {
|
5095
|
-
if (didTouchMove || event.type === "mousedown")
|
5096
|
-
return;
|
5097
|
-
}
|
5098
|
-
}
|
5099
|
-
if (instance.props.interactive && popper.contains(event.target)) {
|
5100
|
-
return;
|
5083
|
+
if (didTouchMove || event.type === "mousedown") return;
|
5101
5084
|
}
|
5085
|
+
if (instance.props.interactive && popper.contains(event.target)) return;
|
5102
5086
|
if (getCurrentTarget().contains(event.target)) {
|
5103
|
-
if (currentInput.isTouch)
|
5104
|
-
|
5105
|
-
|
5106
|
-
|
5107
|
-
|
5108
|
-
|
5109
|
-
} else {
|
5110
|
-
invokeHook("onClickOutside", [
|
5111
|
-
instance,
|
5112
|
-
event
|
5113
|
-
]);
|
5114
|
-
}
|
5087
|
+
if (currentInput.isTouch) return;
|
5088
|
+
if (instance.state.isVisible && instance.props.trigger.indexOf("click") >= 0) return;
|
5089
|
+
} else invokeHook("onClickOutside", [
|
5090
|
+
instance,
|
5091
|
+
event
|
5092
|
+
]);
|
5115
5093
|
if (instance.props.hideOnClick === true) {
|
5116
5094
|
instance.clearDelayTimeouts();
|
5117
5095
|
instance.hide();
|
@@ -5119,9 +5097,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5119
5097
|
setTimeout(function() {
|
5120
5098
|
didHideDueToDocumentMouseDown = false;
|
5121
5099
|
});
|
5122
|
-
if (!instance.state.isMounted)
|
5123
|
-
removeDocumentPress();
|
5124
|
-
}
|
5100
|
+
if (!instance.state.isMounted) removeDocumentPress();
|
5125
5101
|
}
|
5126
5102
|
}
|
5127
5103
|
function onTouchMove() {
|
@@ -5146,9 +5122,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5146
5122
|
}
|
5147
5123
|
function onTransitionedOut(duration, callback) {
|
5148
5124
|
onTransitionEnd(duration, function() {
|
5149
|
-
if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper))
|
5150
|
-
callback();
|
5151
|
-
}
|
5125
|
+
if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) callback();
|
5152
5126
|
});
|
5153
5127
|
}
|
5154
5128
|
function onTransitionedIn(duration, callback) {
|
@@ -5162,17 +5136,13 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5162
5136
|
callback();
|
5163
5137
|
}
|
5164
5138
|
}
|
5165
|
-
if (duration === 0)
|
5166
|
-
return callback();
|
5167
|
-
}
|
5139
|
+
if (duration === 0) return callback();
|
5168
5140
|
updateTransitionEndListener(box, "remove", currentTransitionEndListener);
|
5169
5141
|
updateTransitionEndListener(box, "add", listener);
|
5170
5142
|
currentTransitionEndListener = listener;
|
5171
5143
|
}
|
5172
5144
|
function on(eventType, handler, options) {
|
5173
|
-
if (options === void 0)
|
5174
|
-
options = false;
|
5175
|
-
}
|
5145
|
+
if (options === void 0) options = false;
|
5176
5146
|
var nodes = normalizeToArray(instance.props.triggerTarget || reference);
|
5177
5147
|
nodes.forEach(function(node) {
|
5178
5148
|
node.addEventListener(eventType, handler, options);
|
@@ -5194,9 +5164,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5194
5164
|
});
|
5195
5165
|
}
|
5196
5166
|
splitBySpaces(instance.props.trigger).forEach(function(eventType) {
|
5197
|
-
if (eventType === "manual")
|
5198
|
-
return;
|
5199
|
-
}
|
5167
|
+
if (eventType === "manual") return;
|
5200
5168
|
on(eventType, onTrigger);
|
5201
5169
|
switch(eventType){
|
5202
5170
|
case "mouseenter":
|
@@ -5221,47 +5189,32 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5221
5189
|
function onTrigger(event) {
|
5222
5190
|
var _lastTriggerEvent;
|
5223
5191
|
var shouldScheduleClickHide = false;
|
5224
|
-
if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown)
|
5225
|
-
return;
|
5226
|
-
}
|
5192
|
+
if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) return;
|
5227
5193
|
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === "focus";
|
5228
5194
|
lastTriggerEvent = event;
|
5229
5195
|
currentTarget = event.currentTarget;
|
5230
5196
|
handleAriaExpandedAttribute();
|
5231
|
-
if (!instance.state.isVisible && isMouseEvent(event)) {
|
5232
|
-
|
5233
|
-
|
5234
|
-
|
5235
|
-
|
5236
|
-
if (event.type === "click"
|
5237
|
-
|
5238
|
-
} else {
|
5239
|
-
scheduleShow(event);
|
5240
|
-
}
|
5241
|
-
if (event.type === "click") {
|
5242
|
-
isVisibleFromClick = !shouldScheduleClickHide;
|
5243
|
-
}
|
5244
|
-
if (shouldScheduleClickHide && !wasFocused) {
|
5245
|
-
scheduleHide(event);
|
5246
|
-
}
|
5197
|
+
if (!instance.state.isVisible && isMouseEvent(event)) mouseMoveListeners.forEach(function(listener) {
|
5198
|
+
return listener(event);
|
5199
|
+
});
|
5200
|
+
if (event.type === "click" && (instance.props.trigger.indexOf("mouseenter") < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) shouldScheduleClickHide = true;
|
5201
|
+
else scheduleShow(event);
|
5202
|
+
if (event.type === "click") isVisibleFromClick = !shouldScheduleClickHide;
|
5203
|
+
if (shouldScheduleClickHide && !wasFocused) scheduleHide(event);
|
5247
5204
|
}
|
5248
5205
|
function onMouseMove(event) {
|
5249
5206
|
var target = event.target;
|
5250
5207
|
var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
|
5251
|
-
if (event.type === "mousemove" && isCursorOverReferenceOrPopper)
|
5252
|
-
return;
|
5253
|
-
}
|
5208
|
+
if (event.type === "mousemove" && isCursorOverReferenceOrPopper) return;
|
5254
5209
|
var popperTreeData = getNestedPopperTree().concat(popper).map(function(popper2) {
|
5255
5210
|
var _instance$popperInsta;
|
5256
5211
|
var instance2 = popper2._tippy;
|
5257
5212
|
var state2 = (_instance$popperInsta = instance2.popperInstance) == null ? void 0 : _instance$popperInsta.state;
|
5258
|
-
if (state2) {
|
5259
|
-
|
5260
|
-
|
5261
|
-
|
5262
|
-
|
5263
|
-
};
|
5264
|
-
}
|
5213
|
+
if (state2) return {
|
5214
|
+
popperRect: popper2.getBoundingClientRect(),
|
5215
|
+
popperState: state2,
|
5216
|
+
props: props
|
5217
|
+
};
|
5265
5218
|
return null;
|
5266
5219
|
}).filter(Boolean);
|
5267
5220
|
if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
|
@@ -5271,9 +5224,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5271
5224
|
}
|
5272
5225
|
function onMouseLeave(event) {
|
5273
5226
|
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf("click") >= 0 && isVisibleFromClick;
|
5274
|
-
if (shouldBail)
|
5275
|
-
return;
|
5276
|
-
}
|
5227
|
+
if (shouldBail) return;
|
5277
5228
|
if (instance.props.interactive) {
|
5278
5229
|
instance.hideWithInteractivity(event);
|
5279
5230
|
return;
|
@@ -5281,12 +5232,8 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5281
5232
|
scheduleHide(event);
|
5282
5233
|
}
|
5283
5234
|
function onBlurOrFocusOut(event) {
|
5284
|
-
if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget())
|
5285
|
-
|
5286
|
-
}
|
5287
|
-
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
|
5288
|
-
return;
|
5289
|
-
}
|
5235
|
+
if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget()) return;
|
5236
|
+
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) return;
|
5290
5237
|
scheduleHide(event);
|
5291
5238
|
}
|
5292
5239
|
function isEventListenerStopped(event) {
|
@@ -5316,15 +5263,9 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5316
5263
|
"reference-hidden",
|
5317
5264
|
"escaped"
|
5318
5265
|
].forEach(function(attr) {
|
5319
|
-
if (attr === "placement")
|
5320
|
-
|
5321
|
-
|
5322
|
-
if (state2.attributes.popper["data-popper-" + attr]) {
|
5323
|
-
box.setAttribute("data-" + attr, "");
|
5324
|
-
} else {
|
5325
|
-
box.removeAttribute("data-" + attr);
|
5326
|
-
}
|
5327
|
-
}
|
5266
|
+
if (attr === "placement") box.setAttribute("data-placement", state2.placement);
|
5267
|
+
else if (state2.attributes.popper["data-popper-" + attr]) box.setAttribute("data-" + attr, "");
|
5268
|
+
else box.removeAttribute("data-" + attr);
|
5328
5269
|
});
|
5329
5270
|
state2.attributes.popper = {};
|
5330
5271
|
}
|
@@ -5362,15 +5303,13 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5362
5303
|
},
|
5363
5304
|
tippyModifier
|
5364
5305
|
];
|
5365
|
-
if (getIsDefaultRenderFn() && arrow) {
|
5366
|
-
|
5367
|
-
|
5368
|
-
|
5369
|
-
|
5370
|
-
|
5371
|
-
|
5372
|
-
});
|
5373
|
-
}
|
5306
|
+
if (getIsDefaultRenderFn() && arrow) modifiers.push({
|
5307
|
+
name: "arrow",
|
5308
|
+
options: {
|
5309
|
+
element: arrow,
|
5310
|
+
padding: 3
|
5311
|
+
}
|
5312
|
+
});
|
5374
5313
|
modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
|
5375
5314
|
instance.popperInstance = core.createPopper(computedReference, popper, Object.assign({}, popperOptions, {
|
5376
5315
|
placement: placement,
|
@@ -5388,58 +5327,44 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5388
5327
|
var appendTo = instance.props.appendTo;
|
5389
5328
|
var parentNode;
|
5390
5329
|
var node = getCurrentTarget();
|
5391
|
-
if (instance.props.interactive && appendTo === defaultProps.appendTo || appendTo === "parent")
|
5392
|
-
|
5393
|
-
|
5394
|
-
|
5395
|
-
|
5396
|
-
]);
|
5397
|
-
}
|
5398
|
-
if (!parentNode.contains(popper)) {
|
5399
|
-
parentNode.appendChild(popper);
|
5400
|
-
}
|
5330
|
+
if (instance.props.interactive && appendTo === defaultProps.appendTo || appendTo === "parent") parentNode = node.parentNode;
|
5331
|
+
else parentNode = invokeWithArgsOrReturn(appendTo, [
|
5332
|
+
node
|
5333
|
+
]);
|
5334
|
+
if (!parentNode.contains(popper)) parentNode.appendChild(popper);
|
5401
5335
|
createPopperInstance();
|
5402
|
-
|
5403
|
-
|
5404
|
-
|
5405
|
-
|
5406
|
-
|
5407
|
-
|
5408
|
-
|
5409
|
-
|
5410
|
-
|
5411
|
-
|
5412
|
-
|
5413
|
-
|
5414
|
-
|
5415
|
-
|
5416
|
-
].join(" "));
|
5417
|
-
}
|
5336
|
+
warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, [
|
5337
|
+
"Interactive tippy element may not be accessible via keyboard",
|
5338
|
+
"navigation because it is not directly after the reference element",
|
5339
|
+
"in the DOM source order.",
|
5340
|
+
"\n\n",
|
5341
|
+
"Using a wrapper <div> or <span> tag around the reference element",
|
5342
|
+
"solves this by creating a new parentNode context.",
|
5343
|
+
"\n\n",
|
5344
|
+
"Specifying `appendTo: document.body` silences this warning, but it",
|
5345
|
+
"assumes you are using a focus management solution to handle",
|
5346
|
+
"keyboard navigation.",
|
5347
|
+
"\n\n",
|
5348
|
+
"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"
|
5349
|
+
].join(" "));
|
5418
5350
|
}
|
5419
5351
|
function getNestedPopperTree() {
|
5420
5352
|
return arrayFrom(popper.querySelectorAll("[data-tippy-root]"));
|
5421
5353
|
}
|
5422
5354
|
function scheduleShow(event) {
|
5423
5355
|
instance.clearDelayTimeouts();
|
5424
|
-
if (event)
|
5425
|
-
|
5426
|
-
|
5427
|
-
|
5428
|
-
]);
|
5429
|
-
}
|
5356
|
+
if (event) invokeHook("onTrigger", [
|
5357
|
+
instance,
|
5358
|
+
event
|
5359
|
+
]);
|
5430
5360
|
addDocumentPress();
|
5431
5361
|
var delay = getDelay(true);
|
5432
5362
|
var _getNormalizedTouchSe = getNormalizedTouchSettings(), touchValue = _getNormalizedTouchSe[0], touchDelay = _getNormalizedTouchSe[1];
|
5433
|
-
if (currentInput.isTouch && touchValue === "hold" && touchDelay)
|
5434
|
-
|
5435
|
-
}
|
5436
|
-
if (delay) {
|
5437
|
-
showTimeout = setTimeout(function() {
|
5438
|
-
instance.show();
|
5439
|
-
}, delay);
|
5440
|
-
} else {
|
5363
|
+
if (currentInput.isTouch && touchValue === "hold" && touchDelay) delay = touchDelay;
|
5364
|
+
if (delay) showTimeout = setTimeout(function() {
|
5441
5365
|
instance.show();
|
5442
|
-
}
|
5366
|
+
}, delay);
|
5367
|
+
else instance.show();
|
5443
5368
|
}
|
5444
5369
|
function scheduleHide(event) {
|
5445
5370
|
instance.clearDelayTimeouts();
|
@@ -5454,21 +5379,14 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5454
5379
|
if (instance.props.trigger.indexOf("mouseenter") >= 0 && instance.props.trigger.indexOf("click") >= 0 && [
|
5455
5380
|
"mouseleave",
|
5456
5381
|
"mousemove"
|
5457
|
-
].indexOf(event.type) >= 0 && isVisibleFromClick)
|
5458
|
-
return;
|
5459
|
-
}
|
5382
|
+
].indexOf(event.type) >= 0 && isVisibleFromClick) return;
|
5460
5383
|
var delay = getDelay(false);
|
5461
|
-
if (delay) {
|
5462
|
-
|
5463
|
-
|
5464
|
-
|
5465
|
-
|
5466
|
-
|
5467
|
-
} else {
|
5468
|
-
scheduleHideAnimationFrame = requestAnimationFrame(function() {
|
5469
|
-
instance.hide();
|
5470
|
-
});
|
5471
|
-
}
|
5384
|
+
if (delay) hideTimeout = setTimeout(function() {
|
5385
|
+
if (instance.state.isVisible) instance.hide();
|
5386
|
+
}, delay);
|
5387
|
+
else scheduleHideAnimationFrame = requestAnimationFrame(function() {
|
5388
|
+
instance.hide();
|
5389
|
+
});
|
5472
5390
|
}
|
5473
5391
|
function enable() {
|
5474
5392
|
instance.state.isEnabled = true;
|
@@ -5483,12 +5401,8 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5483
5401
|
cancelAnimationFrame(scheduleHideAnimationFrame);
|
5484
5402
|
}
|
5485
5403
|
function setProps(partialProps) {
|
5486
|
-
|
5487
|
-
|
5488
|
-
}
|
5489
|
-
if (instance.state.isDestroyed) {
|
5490
|
-
return;
|
5491
|
-
}
|
5404
|
+
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("setProps"));
|
5405
|
+
if (instance.state.isDestroyed) return;
|
5492
5406
|
invokeHook("onBeforeUpdate", [
|
5493
5407
|
instance,
|
5494
5408
|
partialProps
|
@@ -5504,18 +5418,13 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5504
5418
|
cleanupInteractiveMouseListeners();
|
5505
5419
|
debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
|
5506
5420
|
}
|
5507
|
-
if (prevProps.triggerTarget && !nextProps.triggerTarget) {
|
5508
|
-
|
5509
|
-
|
5510
|
-
|
5511
|
-
} else if (nextProps.triggerTarget) {
|
5512
|
-
reference.removeAttribute("aria-expanded");
|
5513
|
-
}
|
5421
|
+
if (prevProps.triggerTarget && !nextProps.triggerTarget) normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
|
5422
|
+
node.removeAttribute("aria-expanded");
|
5423
|
+
});
|
5424
|
+
else if (nextProps.triggerTarget) reference.removeAttribute("aria-expanded");
|
5514
5425
|
handleAriaExpandedAttribute();
|
5515
5426
|
handleStyles();
|
5516
|
-
if (onUpdate)
|
5517
|
-
onUpdate(prevProps, nextProps);
|
5518
|
-
}
|
5427
|
+
if (onUpdate) onUpdate(prevProps, nextProps);
|
5519
5428
|
if (instance.popperInstance) {
|
5520
5429
|
createPopperInstance();
|
5521
5430
|
getNestedPopperTree().forEach(function(nestedPopper) {
|
@@ -5533,35 +5442,23 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5533
5442
|
});
|
5534
5443
|
}
|
5535
5444
|
function show() {
|
5536
|
-
|
5537
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("show"));
|
5538
|
-
}
|
5445
|
+
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("show"));
|
5539
5446
|
var isAlreadyVisible = instance.state.isVisible;
|
5540
5447
|
var isDestroyed = instance.state.isDestroyed;
|
5541
5448
|
var isDisabled = !instance.state.isEnabled;
|
5542
5449
|
var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
|
5543
5450
|
var duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
|
5544
|
-
if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled)
|
5545
|
-
|
5546
|
-
}
|
5547
|
-
if (getCurrentTarget().hasAttribute("disabled")) {
|
5548
|
-
return;
|
5549
|
-
}
|
5451
|
+
if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) return;
|
5452
|
+
if (getCurrentTarget().hasAttribute("disabled")) return;
|
5550
5453
|
invokeHook("onShow", [
|
5551
5454
|
instance
|
5552
5455
|
], false);
|
5553
|
-
if (instance.props.onShow(instance) === false)
|
5554
|
-
return;
|
5555
|
-
}
|
5456
|
+
if (instance.props.onShow(instance) === false) return;
|
5556
5457
|
instance.state.isVisible = true;
|
5557
|
-
if (getIsDefaultRenderFn())
|
5558
|
-
popper.style.visibility = "visible";
|
5559
|
-
}
|
5458
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = "visible";
|
5560
5459
|
handleStyles();
|
5561
5460
|
addDocumentPress();
|
5562
|
-
if (!instance.state.isMounted)
|
5563
|
-
popper.style.transition = "none";
|
5564
|
-
}
|
5461
|
+
if (!instance.state.isMounted) popper.style.transition = "none";
|
5565
5462
|
if (getIsDefaultRenderFn()) {
|
5566
5463
|
var _getDefaultTemplateCh2 = getDefaultTemplateChildren(), box = _getDefaultTemplateCh2.box, content = _getDefaultTemplateCh2.content;
|
5567
5464
|
setTransitionDuration([
|
@@ -5571,11 +5468,9 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5571
5468
|
}
|
5572
5469
|
onFirstUpdate = function onFirstUpdate2() {
|
5573
5470
|
var _instance$popperInsta2;
|
5574
|
-
if (!instance.state.isVisible || ignoreOnFirstUpdate)
|
5575
|
-
return;
|
5576
|
-
}
|
5471
|
+
if (!instance.state.isVisible || ignoreOnFirstUpdate) return;
|
5577
5472
|
ignoreOnFirstUpdate = true;
|
5578
|
-
|
5473
|
+
popper.offsetHeight;
|
5579
5474
|
popper.style.transition = instance.props.moveTransition;
|
5580
5475
|
if (getIsDefaultRenderFn() && instance.props.animation) {
|
5581
5476
|
var _getDefaultTemplateCh3 = getDefaultTemplateChildren(), _box = _getDefaultTemplateCh3.box, _content = _getDefaultTemplateCh3.content;
|
@@ -5591,46 +5486,36 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5591
5486
|
handleAriaContentAttribute();
|
5592
5487
|
handleAriaExpandedAttribute();
|
5593
5488
|
pushIfUnique(mountedInstances, instance);
|
5594
|
-
(_instance$popperInsta2 = instance.popperInstance) == null
|
5489
|
+
(_instance$popperInsta2 = instance.popperInstance) == null || _instance$popperInsta2.forceUpdate();
|
5595
5490
|
instance.state.isMounted = true;
|
5596
5491
|
invokeHook("onMount", [
|
5597
5492
|
instance
|
5598
5493
|
]);
|
5599
|
-
if (instance.props.animation && getIsDefaultRenderFn()) {
|
5600
|
-
|
5601
|
-
|
5602
|
-
|
5603
|
-
|
5604
|
-
|
5605
|
-
});
|
5606
|
-
}
|
5494
|
+
if (instance.props.animation && getIsDefaultRenderFn()) onTransitionedIn(duration, function() {
|
5495
|
+
instance.state.isShown = true;
|
5496
|
+
invokeHook("onShown", [
|
5497
|
+
instance
|
5498
|
+
]);
|
5499
|
+
});
|
5607
5500
|
};
|
5608
5501
|
mount();
|
5609
5502
|
}
|
5610
5503
|
function hide() {
|
5611
|
-
|
5612
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hide"));
|
5613
|
-
}
|
5504
|
+
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hide"));
|
5614
5505
|
var isAlreadyHidden = !instance.state.isVisible;
|
5615
5506
|
var isDestroyed = instance.state.isDestroyed;
|
5616
5507
|
var isDisabled = !instance.state.isEnabled;
|
5617
5508
|
var duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
|
5618
|
-
if (isAlreadyHidden || isDestroyed || isDisabled)
|
5619
|
-
return;
|
5620
|
-
}
|
5509
|
+
if (isAlreadyHidden || isDestroyed || isDisabled) return;
|
5621
5510
|
invokeHook("onHide", [
|
5622
5511
|
instance
|
5623
5512
|
], false);
|
5624
|
-
if (instance.props.onHide(instance) === false)
|
5625
|
-
return;
|
5626
|
-
}
|
5513
|
+
if (instance.props.onHide(instance) === false) return;
|
5627
5514
|
instance.state.isVisible = false;
|
5628
5515
|
instance.state.isShown = false;
|
5629
5516
|
ignoreOnFirstUpdate = false;
|
5630
5517
|
isVisibleFromClick = false;
|
5631
|
-
if (getIsDefaultRenderFn())
|
5632
|
-
popper.style.visibility = "hidden";
|
5633
|
-
}
|
5518
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = "hidden";
|
5634
5519
|
cleanupInteractiveMouseListeners();
|
5635
5520
|
removeDocumentPress();
|
5636
5521
|
handleStyles();
|
@@ -5650,38 +5535,24 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5650
5535
|
handleAriaContentAttribute();
|
5651
5536
|
handleAriaExpandedAttribute();
|
5652
5537
|
if (instance.props.animation) {
|
5653
|
-
if (getIsDefaultRenderFn())
|
5654
|
-
|
5655
|
-
}
|
5656
|
-
} else {
|
5657
|
-
instance.unmount();
|
5658
|
-
}
|
5538
|
+
if (getIsDefaultRenderFn()) onTransitionedOut(duration, instance.unmount);
|
5539
|
+
} else instance.unmount();
|
5659
5540
|
}
|
5660
5541
|
function hideWithInteractivity(event) {
|
5661
|
-
|
5662
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hideWithInteractivity"));
|
5663
|
-
}
|
5542
|
+
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hideWithInteractivity"));
|
5664
5543
|
getDocument().addEventListener("mousemove", debouncedOnMouseMove);
|
5665
5544
|
pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
|
5666
5545
|
debouncedOnMouseMove(event);
|
5667
5546
|
}
|
5668
5547
|
function unmount() {
|
5669
|
-
|
5670
|
-
|
5671
|
-
|
5672
|
-
if (instance.state.isVisible) {
|
5673
|
-
instance.hide();
|
5674
|
-
}
|
5675
|
-
if (!instance.state.isMounted) {
|
5676
|
-
return;
|
5677
|
-
}
|
5548
|
+
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("unmount"));
|
5549
|
+
if (instance.state.isVisible) instance.hide();
|
5550
|
+
if (!instance.state.isMounted) return;
|
5678
5551
|
destroyPopperInstance();
|
5679
5552
|
getNestedPopperTree().forEach(function(nestedPopper) {
|
5680
5553
|
nestedPopper._tippy.unmount();
|
5681
5554
|
});
|
5682
|
-
if (popper.parentNode)
|
5683
|
-
popper.parentNode.removeChild(popper);
|
5684
|
-
}
|
5555
|
+
if (popper.parentNode) popper.parentNode.removeChild(popper);
|
5685
5556
|
mountedInstances = mountedInstances.filter(function(i) {
|
5686
5557
|
return i !== instance;
|
5687
5558
|
});
|
@@ -5691,12 +5562,8 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
5691
5562
|
]);
|
5692
5563
|
}
|
5693
5564
|
function destroy() {
|
5694
|
-
|
5695
|
-
|
5696
|
-
}
|
5697
|
-
if (instance.state.isDestroyed) {
|
5698
|
-
return;
|
5699
|
-
}
|
5565
|
+
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("destroy"));
|
5566
|
+
if (instance.state.isDestroyed) return;
|
5700
5567
|
instance.clearDelayTimeouts();
|
5701
5568
|
instance.unmount();
|
5702
5569
|
removeListeners();
|
@@ -6460,7 +6327,7 @@ var $5267f0d63de538ba$exports = {};
|
|
6460
6327
|
*/ (function(root, definition) {
|
6461
6328
|
"use strict";
|
6462
6329
|
if (typeof define === "function" && define.amd) define(definition);
|
6463
|
-
else if ($5267f0d63de538ba$exports) $5267f0d63de538ba$exports = definition();
|
6330
|
+
else if (0, $5267f0d63de538ba$exports) $5267f0d63de538ba$exports = definition();
|
6464
6331
|
else root.log = definition();
|
6465
6332
|
})($5267f0d63de538ba$exports, function() {
|
6466
6333
|
"use strict";
|
@@ -6660,7 +6527,7 @@ var $5267f0d63de538ba$exports = {};
|
|
6660
6527
|
var $1ffebed09abdb92f$exports = {};
|
6661
6528
|
(function(root, factory) {
|
6662
6529
|
if (typeof define === "function" && define.amd) define(factory);
|
6663
|
-
else if ($1ffebed09abdb92f$exports) $1ffebed09abdb92f$exports = factory();
|
6530
|
+
else if (0, $1ffebed09abdb92f$exports) $1ffebed09abdb92f$exports = factory();
|
6664
6531
|
else root.prefix = factory(root);
|
6665
6532
|
})($1ffebed09abdb92f$exports, function(root) {
|
6666
6533
|
"use strict";
|
@@ -6925,11 +6792,11 @@ function $aabd7bdddb195dac$export$2e2bcd8739ae039(Alpine, { prefix: prefix }) {
|
|
6925
6792
|
opts: {
|
6926
6793
|
minVerticalSizes: [
|
6927
6794
|
$aabd7bdddb195dac$var$inspector.drawer.minWidth,
|
6928
|
-
$aabd7bdddb195dac$var$inspector.drawer.minWidth
|
6795
|
+
$aabd7bdddb195dac$var$inspector.drawer.minWidth
|
6929
6796
|
],
|
6930
6797
|
minHorizontalSizes: [
|
6931
6798
|
$aabd7bdddb195dac$var$inspector.drawer.minHeight,
|
6932
|
-
$aabd7bdddb195dac$var$inspector.drawer.minHeight
|
6799
|
+
$aabd7bdddb195dac$var$inspector.drawer.minHeight
|
6933
6800
|
]
|
6934
6801
|
}
|
6935
6802
|
},
|
@@ -7838,13 +7705,17 @@ function $5439cede634b2921$var$toCamel(s) {
|
|
7838
7705
|
}
|
7839
7706
|
|
7840
7707
|
|
7841
|
-
var $
|
7708
|
+
var $0c54d9c6f64a406e$exports = {};
|
7842
7709
|
var $cbd28b10fa9798c7$exports = {};
|
7843
7710
|
|
7844
7711
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
7845
7712
|
|
7846
7713
|
$parcel$export($cbd28b10fa9798c7$exports, "default", () => $cbd28b10fa9798c7$export$2e2bcd8739ae039);
|
7847
|
-
|
7714
|
+
/**!
|
7715
|
+
* tippy.js v6.3.7
|
7716
|
+
* (c) 2017-2021 atomiks
|
7717
|
+
* MIT License
|
7718
|
+
*/ function $59d97a6bab2b727e$export$2e2bcd8739ae039(element) {
|
7848
7719
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
7849
7720
|
}
|
7850
7721
|
|
@@ -7940,7 +7811,6 @@ var $dfb41fce0bddd2d8$export$2e2bcd8739ae039 = {
|
|
7940
7811
|
};
|
7941
7812
|
|
7942
7813
|
|
7943
|
-
|
7944
7814
|
var $a435872b5ba665df$export$8960430cfd85939f = Math.max;
|
7945
7815
|
var $a435872b5ba665df$export$96ec731ed4dcb222 = Math.min;
|
7946
7816
|
var $a435872b5ba665df$export$2077e0241d6afd3c = Math.round;
|
@@ -8077,7 +7947,8 @@ function $a195ad21b1cffe79$export$2e2bcd8739ae039(elementOrVirtualElement, offse
|
|
8077
7947
|
y: 0
|
8078
7948
|
};
|
8079
7949
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
8080
|
-
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !== "body" ||
|
7950
|
+
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
7951
|
+
(0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(documentElement)) scroll = (0, $40149fb4267f270e$export$2e2bcd8739ae039)(offsetParent);
|
8081
7952
|
if ((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(offsetParent)) {
|
8082
7953
|
offsets = (0, $b854957821c00430$export$2e2bcd8739ae039)(offsetParent, true);
|
8083
7954
|
offsets.x += offsetParent.clientLeft;
|
@@ -8117,7 +7988,9 @@ function $b1adb38089003474$export$2e2bcd8739ae039(element) {
|
|
8117
7988
|
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element) === "html") return element;
|
8118
7989
|
return(// $FlowFixMe[incompatible-return]
|
8119
7990
|
// $FlowFixMe[prop-missing]
|
8120
|
-
element.assignedSlot ||
|
7991
|
+
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
7992
|
+
element.parentNode || ((0, $1fa2a5446b18c455$export$af51f0f06c0f328a)(element) ? element.host : null) || // ShadowRoot detected
|
7993
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
8121
7994
|
(0, $3e02d6708e2a16ac$export$2e2bcd8739ae039)(element) // fallback
|
8122
7995
|
);
|
8123
7996
|
}
|
@@ -8172,7 +8045,8 @@ function $b7f6a1d3d9524a70$export$2e2bcd8739ae039(element) {
|
|
8172
8045
|
|
8173
8046
|
|
8174
8047
|
function $4acba801a6bfbaa3$var$getTrueOffsetParent(element) {
|
8175
|
-
if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) ||
|
8048
|
+
if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || // https://github.com/popperjs/popper-core/issues/837
|
8049
|
+
(0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position === "fixed") return null;
|
8176
8050
|
return element.offsetParent;
|
8177
8051
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
8178
8052
|
// return the containing block
|
@@ -9436,7 +9310,6 @@ var $d3ca9c4a635d8f8b$export$8f7491d57c8f97a9 = /*#__PURE__*/ (0, $8e357be334f3f
|
|
9436
9310
|
}); // eslint-disable-next-line import/no-unused-modules
|
9437
9311
|
|
9438
9312
|
|
9439
|
-
|
9440
9313
|
var $b013befce1f6217f$export$c96c811c44a42da5 = '<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>';
|
9441
9314
|
var $b013befce1f6217f$var$BOX_CLASS = "tippy-box";
|
9442
9315
|
var $b013befce1f6217f$var$CONTENT_CLASS = "tippy-content";
|
@@ -10024,26 +9897,18 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10024
9897
|
// For touch or keyboard input, force `0` delay for UX reasons
|
10025
9898
|
// Also if the instance is mounted but not visible (transitioning out),
|
10026
9899
|
// ignore delay
|
10027
|
-
if (instance.state.isMounted && !instance.state.isVisible || $b013befce1f6217f$var$currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus")
|
10028
|
-
return 0;
|
10029
|
-
}
|
9900
|
+
if (instance.state.isMounted && !instance.state.isVisible || $b013befce1f6217f$var$currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus") return 0;
|
10030
9901
|
return $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, $b013befce1f6217f$var$defaultProps.delay);
|
10031
9902
|
}
|
10032
9903
|
function handleStyles(fromHide) {
|
10033
|
-
if (fromHide === void 0)
|
10034
|
-
fromHide = false;
|
10035
|
-
}
|
9904
|
+
if (fromHide === void 0) fromHide = false;
|
10036
9905
|
popper.style.pointerEvents = instance.props.interactive && !fromHide ? "" : "none";
|
10037
9906
|
popper.style.zIndex = "" + instance.props.zIndex;
|
10038
9907
|
}
|
10039
9908
|
function invokeHook(hook, args, shouldInvokePropsHook) {
|
10040
|
-
if (shouldInvokePropsHook === void 0)
|
10041
|
-
shouldInvokePropsHook = true;
|
10042
|
-
}
|
9909
|
+
if (shouldInvokePropsHook === void 0) shouldInvokePropsHook = true;
|
10043
9910
|
pluginsHooks.forEach(function(pluginHooks) {
|
10044
|
-
if (pluginHooks[hook])
|
10045
|
-
pluginHooks[hook].apply(pluginHooks, args);
|
10046
|
-
}
|
9911
|
+
if (pluginHooks[hook]) pluginHooks[hook].apply(pluginHooks, args);
|
10047
9912
|
});
|
10048
9913
|
if (shouldInvokePropsHook) {
|
10049
9914
|
var _instance$props;
|
@@ -10052,37 +9917,26 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10052
9917
|
}
|
10053
9918
|
function handleAriaContentAttribute() {
|
10054
9919
|
var aria = instance.props.aria;
|
10055
|
-
if (!aria.content)
|
10056
|
-
return;
|
10057
|
-
}
|
9920
|
+
if (!aria.content) return;
|
10058
9921
|
var attr = "aria-" + aria.content;
|
10059
9922
|
var id = popper.id;
|
10060
9923
|
var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
|
10061
9924
|
nodes.forEach(function(node) {
|
10062
9925
|
var currentValue = node.getAttribute(attr);
|
10063
|
-
if (instance.state.isVisible)
|
10064
|
-
|
10065
|
-
} else {
|
9926
|
+
if (instance.state.isVisible) node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
|
9927
|
+
else {
|
10066
9928
|
var nextValue = currentValue && currentValue.replace(id, "").trim();
|
10067
|
-
if (nextValue)
|
10068
|
-
|
10069
|
-
} else {
|
10070
|
-
node.removeAttribute(attr);
|
10071
|
-
}
|
9929
|
+
if (nextValue) node.setAttribute(attr, nextValue);
|
9930
|
+
else node.removeAttribute(attr);
|
10072
9931
|
}
|
10073
9932
|
});
|
10074
9933
|
}
|
10075
9934
|
function handleAriaExpandedAttribute() {
|
10076
|
-
if (hasAriaExpanded || !instance.props.aria.expanded)
|
10077
|
-
return;
|
10078
|
-
}
|
9935
|
+
if (hasAriaExpanded || !instance.props.aria.expanded) return;
|
10079
9936
|
var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
|
10080
9937
|
nodes.forEach(function(node) {
|
10081
|
-
if (instance.props.interactive)
|
10082
|
-
|
10083
|
-
} else {
|
10084
|
-
node.removeAttribute("aria-expanded");
|
10085
|
-
}
|
9938
|
+
if (instance.props.interactive) node.setAttribute("aria-expanded", instance.state.isVisible && node === getCurrentTarget() ? "true" : "false");
|
9939
|
+
else node.removeAttribute("aria-expanded");
|
10086
9940
|
});
|
10087
9941
|
}
|
10088
9942
|
function cleanupInteractiveMouseListeners() {
|
@@ -10094,29 +9948,20 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10094
9948
|
function onDocumentPress(event) {
|
10095
9949
|
// Moved finger to scroll instead of an intentional tap outside
|
10096
9950
|
if ($b013befce1f6217f$var$currentInput.isTouch) {
|
10097
|
-
if (didTouchMove || event.type === "mousedown")
|
10098
|
-
return;
|
10099
|
-
}
|
9951
|
+
if (didTouchMove || event.type === "mousedown") return;
|
10100
9952
|
}
|
10101
9953
|
var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
|
10102
|
-
if (instance.props.interactive && $b013befce1f6217f$var$actualContains(popper, actualTarget))
|
10103
|
-
|
10104
|
-
} // Clicked on the event listeners target
|
9954
|
+
if (instance.props.interactive && $b013befce1f6217f$var$actualContains(popper, actualTarget)) return;
|
9955
|
+
// Clicked on the event listeners target
|
10105
9956
|
if ($b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference).some(function(el) {
|
10106
9957
|
return $b013befce1f6217f$var$actualContains(el, actualTarget);
|
10107
9958
|
})) {
|
10108
|
-
if ($b013befce1f6217f$var$currentInput.isTouch)
|
10109
|
-
|
10110
|
-
|
10111
|
-
|
10112
|
-
|
10113
|
-
|
10114
|
-
} else {
|
10115
|
-
invokeHook("onClickOutside", [
|
10116
|
-
instance,
|
10117
|
-
event
|
10118
|
-
]);
|
10119
|
-
}
|
9959
|
+
if ($b013befce1f6217f$var$currentInput.isTouch) return;
|
9960
|
+
if (instance.state.isVisible && instance.props.trigger.indexOf("click") >= 0) return;
|
9961
|
+
} else invokeHook("onClickOutside", [
|
9962
|
+
instance,
|
9963
|
+
event
|
9964
|
+
]);
|
10120
9965
|
if (instance.props.hideOnClick === true) {
|
10121
9966
|
instance.clearDelayTimeouts();
|
10122
9967
|
instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
|
@@ -10128,9 +9973,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10128
9973
|
}); // The listener gets added in `scheduleShow()`, but this may be hiding it
|
10129
9974
|
// before it shows, and hide()'s early bail-out behavior can prevent it
|
10130
9975
|
// from being cleaned up
|
10131
|
-
if (!instance.state.isMounted)
|
10132
|
-
removeDocumentPress();
|
10133
|
-
}
|
9976
|
+
if (!instance.state.isMounted) removeDocumentPress();
|
10134
9977
|
}
|
10135
9978
|
}
|
10136
9979
|
function onTouchMove() {
|
@@ -10155,9 +9998,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10155
9998
|
}
|
10156
9999
|
function onTransitionedOut(duration, callback) {
|
10157
10000
|
onTransitionEnd(duration, function() {
|
10158
|
-
if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper))
|
10159
|
-
callback();
|
10160
|
-
}
|
10001
|
+
if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) callback();
|
10161
10002
|
});
|
10162
10003
|
}
|
10163
10004
|
function onTransitionedIn(duration, callback) {
|
@@ -10172,17 +10013,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10172
10013
|
}
|
10173
10014
|
} // Make callback synchronous if duration is 0
|
10174
10015
|
// `transitionend` won't fire otherwise
|
10175
|
-
if (duration === 0)
|
10176
|
-
return callback();
|
10177
|
-
}
|
10016
|
+
if (duration === 0) return callback();
|
10178
10017
|
$b013befce1f6217f$var$updateTransitionEndListener(box, "remove", currentTransitionEndListener);
|
10179
10018
|
$b013befce1f6217f$var$updateTransitionEndListener(box, "add", listener);
|
10180
10019
|
currentTransitionEndListener = listener;
|
10181
10020
|
}
|
10182
10021
|
function on(eventType, handler, options) {
|
10183
|
-
if (options === void 0)
|
10184
|
-
options = false;
|
10185
|
-
}
|
10022
|
+
if (options === void 0) options = false;
|
10186
10023
|
var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
|
10187
10024
|
nodes.forEach(function(node) {
|
10188
10025
|
node.addEventListener(eventType, handler, options);
|
@@ -10204,9 +10041,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10204
10041
|
});
|
10205
10042
|
}
|
10206
10043
|
$b013befce1f6217f$var$splitBySpaces(instance.props.trigger).forEach(function(eventType) {
|
10207
|
-
if (eventType === "manual")
|
10208
|
-
return;
|
10209
|
-
}
|
10044
|
+
if (eventType === "manual") return;
|
10210
10045
|
on(eventType, onTrigger);
|
10211
10046
|
switch(eventType){
|
10212
10047
|
case "mouseenter":
|
@@ -10231,51 +10066,37 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10231
10066
|
function onTrigger(event) {
|
10232
10067
|
var _lastTriggerEvent;
|
10233
10068
|
var shouldScheduleClickHide = false;
|
10234
|
-
if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown)
|
10235
|
-
return;
|
10236
|
-
}
|
10069
|
+
if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) return;
|
10237
10070
|
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === "focus";
|
10238
10071
|
lastTriggerEvent = event;
|
10239
10072
|
currentTarget = event.currentTarget;
|
10240
10073
|
handleAriaExpandedAttribute();
|
10241
|
-
if (!instance.state.isVisible && $b013befce1f6217f$var$isMouseEvent(event))
|
10242
|
-
|
10243
|
-
|
10244
|
-
|
10245
|
-
|
10246
|
-
|
10247
|
-
|
10248
|
-
|
10249
|
-
|
10250
|
-
|
10251
|
-
|
10252
|
-
|
10253
|
-
scheduleShow(event);
|
10254
|
-
}
|
10255
|
-
if (event.type === "click") {
|
10256
|
-
isVisibleFromClick = !shouldScheduleClickHide;
|
10257
|
-
}
|
10258
|
-
if (shouldScheduleClickHide && !wasFocused) {
|
10259
|
-
scheduleHide(event);
|
10260
|
-
}
|
10074
|
+
if (!instance.state.isVisible && $b013befce1f6217f$var$isMouseEvent(event)) // If scrolling, `mouseenter` events can be fired if the cursor lands
|
10075
|
+
// over a new target, but `mousemove` events don't get fired. This
|
10076
|
+
// causes interactive tooltips to get stuck open until the cursor is
|
10077
|
+
// moved
|
10078
|
+
$b013befce1f6217f$var$mouseMoveListeners.forEach(function(listener) {
|
10079
|
+
return listener(event);
|
10080
|
+
});
|
10081
|
+
// Toggle show/hide when clicking click-triggered tooltips
|
10082
|
+
if (event.type === "click" && (instance.props.trigger.indexOf("mouseenter") < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) shouldScheduleClickHide = true;
|
10083
|
+
else scheduleShow(event);
|
10084
|
+
if (event.type === "click") isVisibleFromClick = !shouldScheduleClickHide;
|
10085
|
+
if (shouldScheduleClickHide && !wasFocused) scheduleHide(event);
|
10261
10086
|
}
|
10262
10087
|
function onMouseMove(event) {
|
10263
10088
|
var target = event.target;
|
10264
10089
|
var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
|
10265
|
-
if (event.type === "mousemove" && isCursorOverReferenceOrPopper)
|
10266
|
-
return;
|
10267
|
-
}
|
10090
|
+
if (event.type === "mousemove" && isCursorOverReferenceOrPopper) return;
|
10268
10091
|
var popperTreeData = getNestedPopperTree().concat(popper).map(function(popper) {
|
10269
10092
|
var _instance$popperInsta;
|
10270
10093
|
var instance = popper._tippy;
|
10271
10094
|
var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
|
10272
|
-
if (state) {
|
10273
|
-
|
10274
|
-
|
10275
|
-
|
10276
|
-
|
10277
|
-
};
|
10278
|
-
}
|
10095
|
+
if (state) return {
|
10096
|
+
popperRect: popper.getBoundingClientRect(),
|
10097
|
+
popperState: state,
|
10098
|
+
props: props
|
10099
|
+
};
|
10279
10100
|
return null;
|
10280
10101
|
}).filter(Boolean);
|
10281
10102
|
if ($b013befce1f6217f$var$isCursorOutsideInteractiveBorder(popperTreeData, event)) {
|
@@ -10285,9 +10106,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10285
10106
|
}
|
10286
10107
|
function onMouseLeave(event) {
|
10287
10108
|
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf("click") >= 0 && isVisibleFromClick;
|
10288
|
-
if (shouldBail)
|
10289
|
-
return;
|
10290
|
-
}
|
10109
|
+
if (shouldBail) return;
|
10291
10110
|
if (instance.props.interactive) {
|
10292
10111
|
instance.hideWithInteractivity(event);
|
10293
10112
|
return;
|
@@ -10295,12 +10114,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10295
10114
|
scheduleHide(event);
|
10296
10115
|
}
|
10297
10116
|
function onBlurOrFocusOut(event) {
|
10298
|
-
if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget())
|
10299
|
-
|
10300
|
-
|
10301
|
-
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
|
10302
|
-
return;
|
10303
|
-
}
|
10117
|
+
if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget()) return;
|
10118
|
+
// If focus was moved to within the popper
|
10119
|
+
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) return;
|
10304
10120
|
scheduleHide(event);
|
10305
10121
|
}
|
10306
10122
|
function isEventListenerStopped(event) {
|
@@ -10330,15 +10146,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10330
10146
|
"reference-hidden",
|
10331
10147
|
"escaped"
|
10332
10148
|
].forEach(function(attr) {
|
10333
|
-
if (attr === "placement")
|
10334
|
-
|
10335
|
-
|
10336
|
-
if (state.attributes.popper["data-popper-" + attr]) {
|
10337
|
-
box.setAttribute("data-" + attr, "");
|
10338
|
-
} else {
|
10339
|
-
box.removeAttribute("data-" + attr);
|
10340
|
-
}
|
10341
|
-
}
|
10149
|
+
if (attr === "placement") box.setAttribute("data-placement", state.placement);
|
10150
|
+
else if (state.attributes.popper["data-popper-" + attr]) box.setAttribute("data-" + attr, "");
|
10151
|
+
else box.removeAttribute("data-" + attr);
|
10342
10152
|
});
|
10343
10153
|
state.attributes.popper = {};
|
10344
10154
|
}
|
@@ -10376,15 +10186,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10376
10186
|
},
|
10377
10187
|
tippyModifier
|
10378
10188
|
];
|
10379
|
-
if (getIsDefaultRenderFn() && arrow) {
|
10380
|
-
|
10381
|
-
|
10382
|
-
|
10383
|
-
|
10384
|
-
|
10385
|
-
|
10386
|
-
});
|
10387
|
-
}
|
10189
|
+
if (getIsDefaultRenderFn() && arrow) modifiers.push({
|
10190
|
+
name: "arrow",
|
10191
|
+
options: {
|
10192
|
+
element: arrow,
|
10193
|
+
padding: 3
|
10194
|
+
}
|
10195
|
+
});
|
10388
10196
|
modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
|
10389
10197
|
instance.popperInstance = (0, $d3ca9c4a635d8f8b$export$8f7491d57c8f97a9)(computedReference, popper, Object.assign({}, popperOptions, {
|
10390
10198
|
placement: placement,
|
@@ -10406,61 +10214,33 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10406
10214
|
// If there are clipping issues, the user can specify a different appendTo
|
10407
10215
|
// and ensure focus management is handled correctly manually
|
10408
10216
|
var node = getCurrentTarget();
|
10409
|
-
if (instance.props.interactive && appendTo === $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO || appendTo === "parent")
|
10410
|
-
|
10411
|
-
|
10412
|
-
|
10413
|
-
|
10414
|
-
]);
|
10415
|
-
} // The popper element needs to exist on the DOM before its position can be
|
10217
|
+
if (instance.props.interactive && appendTo === $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO || appendTo === "parent") parentNode = node.parentNode;
|
10218
|
+
else parentNode = $b013befce1f6217f$var$invokeWithArgsOrReturn(appendTo, [
|
10219
|
+
node
|
10220
|
+
]);
|
10221
|
+
// The popper element needs to exist on the DOM before its position can be
|
10416
10222
|
// updated as Popper needs to read its dimensions
|
10417
|
-
if (!parentNode.contains(popper))
|
10418
|
-
parentNode.appendChild(popper);
|
10419
|
-
}
|
10223
|
+
if (!parentNode.contains(popper)) parentNode.appendChild(popper);
|
10420
10224
|
instance.state.isMounted = true;
|
10421
10225
|
createPopperInstance();
|
10422
|
-
/* istanbul ignore else */ if (false) {
|
10423
|
-
// Accessibility check
|
10424
|
-
$b013befce1f6217f$var$warnWhen(instance.props.interactive && appendTo === $b013befce1f6217f$var$defaultProps.appendTo && node.nextElementSibling !== popper, [
|
10425
|
-
"Interactive tippy element may not be accessible via keyboard",
|
10426
|
-
"navigation because it is not directly after the reference element",
|
10427
|
-
"in the DOM source order.",
|
10428
|
-
"\n\n",
|
10429
|
-
"Using a wrapper <div> or <span> tag around the reference element",
|
10430
|
-
"solves this by creating a new parentNode context.",
|
10431
|
-
"\n\n",
|
10432
|
-
"Specifying `appendTo: document.body` silences this warning, but it",
|
10433
|
-
"assumes you are using a focus management solution to handle",
|
10434
|
-
"keyboard navigation.",
|
10435
|
-
"\n\n",
|
10436
|
-
"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"
|
10437
|
-
].join(" "));
|
10438
|
-
}
|
10439
10226
|
}
|
10440
10227
|
function getNestedPopperTree() {
|
10441
10228
|
return $b013befce1f6217f$var$arrayFrom(popper.querySelectorAll("[data-tippy-root]"));
|
10442
10229
|
}
|
10443
10230
|
function scheduleShow(event) {
|
10444
10231
|
instance.clearDelayTimeouts();
|
10445
|
-
if (event)
|
10446
|
-
|
10447
|
-
|
10448
|
-
|
10449
|
-
]);
|
10450
|
-
}
|
10232
|
+
if (event) invokeHook("onTrigger", [
|
10233
|
+
instance,
|
10234
|
+
event
|
10235
|
+
]);
|
10451
10236
|
addDocumentPress();
|
10452
10237
|
var delay = getDelay(true);
|
10453
10238
|
var _getNormalizedTouchSe = getNormalizedTouchSettings(), touchValue = _getNormalizedTouchSe[0], touchDelay = _getNormalizedTouchSe[1];
|
10454
|
-
if ($b013befce1f6217f$var$currentInput.isTouch && touchValue === "hold" && touchDelay)
|
10455
|
-
|
10456
|
-
}
|
10457
|
-
if (delay) {
|
10458
|
-
showTimeout = setTimeout(function() {
|
10459
|
-
instance.show();
|
10460
|
-
}, delay);
|
10461
|
-
} else {
|
10239
|
+
if ($b013befce1f6217f$var$currentInput.isTouch && touchValue === "hold" && touchDelay) delay = touchDelay;
|
10240
|
+
if (delay) showTimeout = setTimeout(function() {
|
10462
10241
|
instance.show();
|
10463
|
-
}
|
10242
|
+
}, delay);
|
10243
|
+
else instance.show();
|
10464
10244
|
}
|
10465
10245
|
function scheduleHide(event) {
|
10466
10246
|
instance.clearDelayTimeouts();
|
@@ -10478,23 +10258,16 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10478
10258
|
if (instance.props.trigger.indexOf("mouseenter") >= 0 && instance.props.trigger.indexOf("click") >= 0 && [
|
10479
10259
|
"mouseleave",
|
10480
10260
|
"mousemove"
|
10481
|
-
].indexOf(event.type) >= 0 && isVisibleFromClick)
|
10482
|
-
return;
|
10483
|
-
}
|
10261
|
+
].indexOf(event.type) >= 0 && isVisibleFromClick) return;
|
10484
10262
|
var delay = getDelay(false);
|
10485
|
-
if (delay) {
|
10486
|
-
|
10487
|
-
|
10488
|
-
|
10489
|
-
|
10490
|
-
|
10491
|
-
|
10492
|
-
|
10493
|
-
// late sometimes, we don't want hide() to be called.
|
10494
|
-
scheduleHideAnimationFrame = requestAnimationFrame(function() {
|
10495
|
-
instance.hide();
|
10496
|
-
});
|
10497
|
-
}
|
10263
|
+
if (delay) hideTimeout = setTimeout(function() {
|
10264
|
+
if (instance.state.isVisible) instance.hide();
|
10265
|
+
}, delay);
|
10266
|
+
else // Fixes a `transitionend` problem when it fires 1 frame too
|
10267
|
+
// late sometimes, we don't want hide() to be called.
|
10268
|
+
scheduleHideAnimationFrame = requestAnimationFrame(function() {
|
10269
|
+
instance.hide();
|
10270
|
+
});
|
10498
10271
|
} // ===========================================================================
|
10499
10272
|
// 🔑 Public methods
|
10500
10273
|
// ===========================================================================
|
@@ -10513,12 +10286,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10513
10286
|
cancelAnimationFrame(scheduleHideAnimationFrame);
|
10514
10287
|
}
|
10515
10288
|
function setProps(partialProps) {
|
10516
|
-
|
10517
|
-
$b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("setProps"));
|
10518
|
-
}
|
10519
|
-
if (instance.state.isDestroyed) {
|
10520
|
-
return;
|
10521
|
-
}
|
10289
|
+
if (instance.state.isDestroyed) return;
|
10522
10290
|
invokeHook("onBeforeUpdate", [
|
10523
10291
|
instance,
|
10524
10292
|
partialProps
|
@@ -10534,18 +10302,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10534
10302
|
cleanupInteractiveMouseListeners();
|
10535
10303
|
debouncedOnMouseMove = $b013befce1f6217f$var$debounce(onMouseMove, nextProps.interactiveDebounce);
|
10536
10304
|
} // Ensure stale aria-expanded attributes are removed
|
10537
|
-
if (prevProps.triggerTarget && !nextProps.triggerTarget) {
|
10538
|
-
|
10539
|
-
|
10540
|
-
|
10541
|
-
} else if (nextProps.triggerTarget) {
|
10542
|
-
reference.removeAttribute("aria-expanded");
|
10543
|
-
}
|
10305
|
+
if (prevProps.triggerTarget && !nextProps.triggerTarget) $b013befce1f6217f$var$normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
|
10306
|
+
node.removeAttribute("aria-expanded");
|
10307
|
+
});
|
10308
|
+
else if (nextProps.triggerTarget) reference.removeAttribute("aria-expanded");
|
10544
10309
|
handleAriaExpandedAttribute();
|
10545
10310
|
handleStyles();
|
10546
|
-
if (onUpdate)
|
10547
|
-
onUpdate(prevProps, nextProps);
|
10548
|
-
}
|
10311
|
+
if (onUpdate) onUpdate(prevProps, nextProps);
|
10549
10312
|
if (instance.popperInstance) {
|
10550
10313
|
createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
|
10551
10314
|
// and the nested ones get re-rendered first.
|
@@ -10568,37 +10331,26 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10568
10331
|
});
|
10569
10332
|
}
|
10570
10333
|
function show() {
|
10571
|
-
/* istanbul ignore else */ if (false) {
|
10572
|
-
$b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("show"));
|
10573
|
-
} // Early bail-out
|
10574
10334
|
var isAlreadyVisible = instance.state.isVisible;
|
10575
10335
|
var isDestroyed = instance.state.isDestroyed;
|
10576
10336
|
var isDisabled = !instance.state.isEnabled;
|
10577
10337
|
var isTouchAndTouchDisabled = $b013befce1f6217f$var$currentInput.isTouch && !instance.props.touch;
|
10578
10338
|
var duration = $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.duration, 0, $b013befce1f6217f$var$defaultProps.duration);
|
10579
|
-
if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled)
|
10580
|
-
|
10581
|
-
} // Normalize `disabled` behavior across browsers.
|
10339
|
+
if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) return;
|
10340
|
+
// Normalize `disabled` behavior across browsers.
|
10582
10341
|
// Firefox allows events on disabled elements, but Chrome doesn't.
|
10583
10342
|
// Using a wrapper element (i.e. <span>) is recommended.
|
10584
|
-
if (getCurrentTarget().hasAttribute("disabled"))
|
10585
|
-
return;
|
10586
|
-
}
|
10343
|
+
if (getCurrentTarget().hasAttribute("disabled")) return;
|
10587
10344
|
invokeHook("onShow", [
|
10588
10345
|
instance
|
10589
10346
|
], false);
|
10590
|
-
if (instance.props.onShow(instance) === false)
|
10591
|
-
return;
|
10592
|
-
}
|
10347
|
+
if (instance.props.onShow(instance) === false) return;
|
10593
10348
|
instance.state.isVisible = true;
|
10594
|
-
if (getIsDefaultRenderFn())
|
10595
|
-
popper.style.visibility = "visible";
|
10596
|
-
}
|
10349
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = "visible";
|
10597
10350
|
handleStyles();
|
10598
10351
|
addDocumentPress();
|
10599
|
-
if (!instance.state.isMounted)
|
10600
|
-
|
10601
|
-
} // If flipping to the opposite side after hiding at least once, the
|
10352
|
+
if (!instance.state.isMounted) popper.style.transition = "none";
|
10353
|
+
// If flipping to the opposite side after hiding at least once, the
|
10602
10354
|
// animation will use the wrong placement without resetting the duration
|
10603
10355
|
if (getIsDefaultRenderFn()) {
|
10604
10356
|
var _getDefaultTemplateCh2 = getDefaultTemplateChildren(), box = _getDefaultTemplateCh2.box, content = _getDefaultTemplateCh2.content;
|
@@ -10609,11 +10361,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10609
10361
|
}
|
10610
10362
|
onFirstUpdate = function onFirstUpdate() {
|
10611
10363
|
var _instance$popperInsta2;
|
10612
|
-
if (!instance.state.isVisible || ignoreOnFirstUpdate)
|
10613
|
-
return;
|
10614
|
-
}
|
10364
|
+
if (!instance.state.isVisible || ignoreOnFirstUpdate) return;
|
10615
10365
|
ignoreOnFirstUpdate = true; // reflow
|
10616
|
-
|
10366
|
+
popper.offsetHeight;
|
10617
10367
|
popper.style.transition = instance.props.moveTransition;
|
10618
10368
|
if (getIsDefaultRenderFn() && instance.props.animation) {
|
10619
10369
|
var _getDefaultTemplateCh3 = getDefaultTemplateChildren(), _box = _getDefaultTemplateCh3.box, _content = _getDefaultTemplateCh3.content;
|
@@ -10630,45 +10380,34 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10630
10380
|
handleAriaExpandedAttribute();
|
10631
10381
|
$b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
|
10632
10382
|
// popper has been positioned for the first time
|
10633
|
-
(_instance$popperInsta2 = instance.popperInstance) == null
|
10383
|
+
(_instance$popperInsta2 = instance.popperInstance) == null || _instance$popperInsta2.forceUpdate();
|
10634
10384
|
invokeHook("onMount", [
|
10635
10385
|
instance
|
10636
10386
|
]);
|
10637
|
-
if (instance.props.animation && getIsDefaultRenderFn()) {
|
10638
|
-
|
10639
|
-
|
10640
|
-
|
10641
|
-
|
10642
|
-
|
10643
|
-
});
|
10644
|
-
}
|
10387
|
+
if (instance.props.animation && getIsDefaultRenderFn()) onTransitionedIn(duration, function() {
|
10388
|
+
instance.state.isShown = true;
|
10389
|
+
invokeHook("onShown", [
|
10390
|
+
instance
|
10391
|
+
]);
|
10392
|
+
});
|
10645
10393
|
};
|
10646
10394
|
mount();
|
10647
10395
|
}
|
10648
10396
|
function hide() {
|
10649
|
-
/* istanbul ignore else */ if (false) {
|
10650
|
-
$b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("hide"));
|
10651
|
-
} // Early bail-out
|
10652
10397
|
var isAlreadyHidden = !instance.state.isVisible;
|
10653
10398
|
var isDestroyed = instance.state.isDestroyed;
|
10654
10399
|
var isDisabled = !instance.state.isEnabled;
|
10655
10400
|
var duration = $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.duration, 1, $b013befce1f6217f$var$defaultProps.duration);
|
10656
|
-
if (isAlreadyHidden || isDestroyed || isDisabled)
|
10657
|
-
return;
|
10658
|
-
}
|
10401
|
+
if (isAlreadyHidden || isDestroyed || isDisabled) return;
|
10659
10402
|
invokeHook("onHide", [
|
10660
10403
|
instance
|
10661
10404
|
], false);
|
10662
|
-
if (instance.props.onHide(instance) === false)
|
10663
|
-
return;
|
10664
|
-
}
|
10405
|
+
if (instance.props.onHide(instance) === false) return;
|
10665
10406
|
instance.state.isVisible = false;
|
10666
10407
|
instance.state.isShown = false;
|
10667
10408
|
ignoreOnFirstUpdate = false;
|
10668
10409
|
isVisibleFromClick = false;
|
10669
|
-
if (getIsDefaultRenderFn())
|
10670
|
-
popper.style.visibility = "hidden";
|
10671
|
-
}
|
10410
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = "hidden";
|
10672
10411
|
cleanupInteractiveMouseListeners();
|
10673
10412
|
removeDocumentPress();
|
10674
10413
|
handleStyles(true);
|
@@ -10688,40 +10427,24 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10688
10427
|
handleAriaContentAttribute();
|
10689
10428
|
handleAriaExpandedAttribute();
|
10690
10429
|
if (instance.props.animation) {
|
10691
|
-
if (getIsDefaultRenderFn())
|
10692
|
-
|
10693
|
-
}
|
10694
|
-
} else {
|
10695
|
-
instance.unmount();
|
10696
|
-
}
|
10430
|
+
if (getIsDefaultRenderFn()) onTransitionedOut(duration, instance.unmount);
|
10431
|
+
} else instance.unmount();
|
10697
10432
|
}
|
10698
10433
|
function hideWithInteractivity(event) {
|
10699
|
-
/* istanbul ignore else */ if (false) {
|
10700
|
-
$b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("hideWithInteractivity"));
|
10701
|
-
}
|
10702
10434
|
getDocument().addEventListener("mousemove", debouncedOnMouseMove);
|
10703
10435
|
$b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mouseMoveListeners, debouncedOnMouseMove);
|
10704
10436
|
debouncedOnMouseMove(event);
|
10705
10437
|
}
|
10706
10438
|
function unmount() {
|
10707
|
-
|
10708
|
-
|
10709
|
-
}
|
10710
|
-
if (instance.state.isVisible) {
|
10711
|
-
instance.hide();
|
10712
|
-
}
|
10713
|
-
if (!instance.state.isMounted) {
|
10714
|
-
return;
|
10715
|
-
}
|
10439
|
+
if (instance.state.isVisible) instance.hide();
|
10440
|
+
if (!instance.state.isMounted) return;
|
10716
10441
|
destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
|
10717
10442
|
// tree by default. This seems mainly for interactive tippies, but we should
|
10718
10443
|
// find a workaround if possible
|
10719
10444
|
getNestedPopperTree().forEach(function(nestedPopper) {
|
10720
10445
|
nestedPopper._tippy.unmount();
|
10721
10446
|
});
|
10722
|
-
if (popper.parentNode)
|
10723
|
-
popper.parentNode.removeChild(popper);
|
10724
|
-
}
|
10447
|
+
if (popper.parentNode) popper.parentNode.removeChild(popper);
|
10725
10448
|
$b013befce1f6217f$var$mountedInstances = $b013befce1f6217f$var$mountedInstances.filter(function(i) {
|
10726
10449
|
return i !== instance;
|
10727
10450
|
});
|
@@ -10731,12 +10454,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10731
10454
|
]);
|
10732
10455
|
}
|
10733
10456
|
function destroy() {
|
10734
|
-
|
10735
|
-
$b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("destroy"));
|
10736
|
-
}
|
10737
|
-
if (instance.state.isDestroyed) {
|
10738
|
-
return;
|
10739
|
-
}
|
10457
|
+
if (instance.state.isDestroyed) return;
|
10740
10458
|
instance.clearDelayTimeouts();
|
10741
10459
|
instance.unmount();
|
10742
10460
|
removeListeners();
|
@@ -11520,6 +11238,39 @@ function $99486586f6691564$export$2e2bcd8739ae039() {
|
|
11520
11238
|
}
|
11521
11239
|
|
11522
11240
|
|
11241
|
+
var $e398acaded942bbe$exports = {};
|
11242
|
+
|
11243
|
+
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
11244
|
+
|
11245
|
+
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
11246
|
+
|
11247
|
+
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
11248
|
+
return {
|
11249
|
+
width: 0,
|
11250
|
+
height: 0,
|
11251
|
+
resizing: false,
|
11252
|
+
target: null,
|
11253
|
+
init () {
|
11254
|
+
this.target = document.querySelector(targetSelector);
|
11255
|
+
if (this.target) {
|
11256
|
+
this.width = Math.round(this.target.clientWidth);
|
11257
|
+
this.height = Math.round(this.target.clientHeight);
|
11258
|
+
this.createObserver();
|
11259
|
+
}
|
11260
|
+
},
|
11261
|
+
createObserver () {
|
11262
|
+
if (this.target) this.observer = (0, $9930d46698775b42$export$a2214cc2adb2dc44)(document.querySelector(targetSelector), ({ width: width , height: height })=>{
|
11263
|
+
this.width = width;
|
11264
|
+
this.height = height;
|
11265
|
+
});
|
11266
|
+
},
|
11267
|
+
tearDown () {
|
11268
|
+
if (this.observer) this.observer.disconnect();
|
11269
|
+
}
|
11270
|
+
};
|
11271
|
+
}
|
11272
|
+
|
11273
|
+
|
11523
11274
|
var $47a1c62621be0c54$exports = {};
|
11524
11275
|
|
11525
11276
|
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
@@ -11576,34 +11327,26 @@ function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
|
11576
11327
|
}
|
11577
11328
|
|
11578
11329
|
|
11579
|
-
var $
|
11580
|
-
|
11581
|
-
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
11330
|
+
var $e9904a14dabf652d$exports = {};
|
11582
11331
|
|
11583
|
-
$parcel$
|
11332
|
+
$parcel$defineInteropFlag($e9904a14dabf652d$exports);
|
11584
11333
|
|
11585
|
-
|
11334
|
+
$parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
|
11335
|
+
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
11586
11336
|
return {
|
11587
|
-
|
11588
|
-
|
11589
|
-
|
11590
|
-
target: null,
|
11591
|
-
init () {
|
11592
|
-
this.target = document.querySelector(targetSelector);
|
11593
|
-
if (this.target) {
|
11594
|
-
this.width = Math.round(this.target.clientWidth);
|
11595
|
-
this.height = Math.round(this.target.clientHeight);
|
11596
|
-
this.createObserver();
|
11597
|
-
}
|
11337
|
+
focussed: false,
|
11338
|
+
get active () {
|
11339
|
+
return store.active;
|
11598
11340
|
},
|
11599
|
-
|
11600
|
-
|
11601
|
-
this.width = width;
|
11602
|
-
this.height = height;
|
11603
|
-
});
|
11341
|
+
get text () {
|
11342
|
+
return store.text;
|
11604
11343
|
},
|
11605
|
-
|
11606
|
-
if (
|
11344
|
+
clear () {
|
11345
|
+
if (store.raw === "") this.$refs.input.blur();
|
11346
|
+
else store.raw = "";
|
11347
|
+
},
|
11348
|
+
focus () {
|
11349
|
+
this.$refs.input.focus();
|
11607
11350
|
}
|
11608
11351
|
};
|
11609
11352
|
}
|
@@ -11615,6 +11358,15 @@ $parcel$defineInteropFlag($e1f51f020443edd4$exports);
|
|
11615
11358
|
|
11616
11359
|
$parcel$export($e1f51f020443edd4$exports, "default", () => $e1f51f020443edd4$export$2e2bcd8739ae039);
|
11617
11360
|
var $ef5e88eaa61efd95$exports = {};
|
11361
|
+
/*
|
11362
|
+
* File: iframeResizer.js
|
11363
|
+
* Desc: Force iframes to size to content.
|
11364
|
+
* Requires: iframeResizer.contentWindow.js to be loaded into the target frame.
|
11365
|
+
* Doc: https://github.com/davidjbradshaw/iframe-resizer
|
11366
|
+
* Author: David J. Bradshaw - dave@bradshaw.net
|
11367
|
+
* Contributor: Jure Mav - jure.mav@gmail.com
|
11368
|
+
* Contributor: Reed Dadoune - reed@dadoune.com
|
11369
|
+
*/ // eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names
|
11618
11370
|
(function(undefined) {
|
11619
11371
|
if (typeof window === "undefined") return; // don't run for server side render
|
11620
11372
|
var count = 0, logEnabled = false, hiddenCheckEnabled = false, msgHeader = "message", msgHeaderLen = msgHeader.length, msgId = "[iFrameSizer]", msgIdLen = msgId.length, pagePosition = null, requestAnimationFrame = window.requestAnimationFrame, resetRequiredMethods = {
|
@@ -12474,31 +12226,6 @@ function $e1f51f020443edd4$export$2e2bcd8739ae039(id, embedStore) {
|
|
12474
12226
|
}
|
12475
12227
|
|
12476
12228
|
|
12477
|
-
var $e9904a14dabf652d$exports = {};
|
12478
|
-
|
12479
|
-
$parcel$defineInteropFlag($e9904a14dabf652d$exports);
|
12480
|
-
|
12481
|
-
$parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
|
12482
|
-
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
12483
|
-
return {
|
12484
|
-
focussed: false,
|
12485
|
-
get active () {
|
12486
|
-
return store.active;
|
12487
|
-
},
|
12488
|
-
get text () {
|
12489
|
-
return store.text;
|
12490
|
-
},
|
12491
|
-
clear () {
|
12492
|
-
if (store.raw === "") this.$refs.input.blur();
|
12493
|
-
else store.raw = "";
|
12494
|
-
},
|
12495
|
-
focus () {
|
12496
|
-
this.$refs.input.focus();
|
12497
|
-
}
|
12498
|
-
};
|
12499
|
-
}
|
12500
|
-
|
12501
|
-
|
12502
12229
|
var $36506012e0c6e9e3$exports = {};
|
12503
12230
|
|
12504
12231
|
$parcel$defineInteropFlag($36506012e0c6e9e3$exports);
|
@@ -13163,6 +12890,7 @@ function $0db07828cadc68e0$export$2e2bcd8739ae039(store) {
|
|
13163
12890
|
},
|
13164
12891
|
init () {
|
13165
12892
|
this.$nextTick(()=>{
|
12893
|
+
if (this.$root.parentElement.offsetWidth === this.$root.offsetWidth) this.visibleTabsCount = this.tabs.length;
|
13166
12894
|
dropdown = (0, $d6f449055c23f07a$export$2e2bcd8739ae039)(this.$refs.dropdownTrigger, {
|
13167
12895
|
content: this.$refs.tabsDropdown,
|
13168
12896
|
theme: "menu",
|
@@ -13351,13 +13079,13 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
13351
13079
|
}
|
13352
13080
|
|
13353
13081
|
|
13354
|
-
$
|
13082
|
+
$0c54d9c6f64a406e$exports = {
|
13355
13083
|
"button": $cbd28b10fa9798c7$exports,
|
13356
13084
|
"code": $99486586f6691564$exports,
|
13357
|
-
"copy_button": $47a1c62621be0c54$exports,
|
13358
13085
|
"dimensions_display": $e398acaded942bbe$exports,
|
13359
|
-
"
|
13086
|
+
"copy_button": $47a1c62621be0c54$exports,
|
13360
13087
|
"filter": $e9904a14dabf652d$exports,
|
13088
|
+
"embed": $e1f51f020443edd4$exports,
|
13361
13089
|
"icon": $36506012e0c6e9e3$exports,
|
13362
13090
|
"nav": $d92d9d5253f84566$exports,
|
13363
13091
|
"split_layout": $506dabb2bf255b38$exports,
|
@@ -13367,7 +13095,7 @@ $1f889267678ff167$exports = {
|
|
13367
13095
|
};
|
13368
13096
|
|
13369
13097
|
|
13370
|
-
var $
|
13098
|
+
var $8d334f4a3d8b76bc$exports = {};
|
13371
13099
|
var $6a9b69d9cc7f810f$exports = {};
|
13372
13100
|
|
13373
13101
|
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
@@ -13486,12 +13214,45 @@ function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name , value: value }
|
|
13486
13214
|
}
|
13487
13215
|
|
13488
13216
|
|
13217
|
+
var $1a7a7298eec5b755$exports = {};
|
13218
|
+
|
13219
|
+
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
13220
|
+
|
13221
|
+
$parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
|
13222
|
+
|
13223
|
+
function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
13224
|
+
return {
|
13225
|
+
narrow: false,
|
13226
|
+
init () {
|
13227
|
+
(0, $9930d46698775b42$export$a2214cc2adb2dc44)(this.$el, ({ width: width })=>{
|
13228
|
+
this.narrow = width < 500;
|
13229
|
+
});
|
13230
|
+
}
|
13231
|
+
};
|
13232
|
+
}
|
13233
|
+
|
13234
|
+
|
13235
|
+
var $e773f8ef556b41ff$exports = {};
|
13236
|
+
|
13237
|
+
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13238
|
+
|
13239
|
+
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13240
|
+
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13241
|
+
return {
|
13242
|
+
get isNarrowLayout () {
|
13243
|
+
return this.narrow || false;
|
13244
|
+
}
|
13245
|
+
};
|
13246
|
+
}
|
13247
|
+
|
13248
|
+
|
13489
13249
|
var $9b24cbeb3a465447$exports = {};
|
13490
13250
|
|
13491
13251
|
$parcel$defineInteropFlag($9b24cbeb3a465447$exports);
|
13492
13252
|
|
13493
13253
|
$parcel$export($9b24cbeb3a465447$exports, "default", () => $9b24cbeb3a465447$export$2e2bcd8739ae039);
|
13494
13254
|
function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id , matchers: matchers }) {
|
13255
|
+
matchers = matchers.map((matcher)=>matcher.replace(/\s/g, "").toLowerCase());
|
13495
13256
|
return {
|
13496
13257
|
filteredOut: false,
|
13497
13258
|
get open () {
|
@@ -13542,48 +13303,16 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id , matchers: matchers
|
|
13542
13303
|
}
|
13543
13304
|
|
13544
13305
|
|
13545
|
-
|
13546
|
-
|
13547
|
-
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
13548
|
-
|
13549
|
-
$parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
|
13550
|
-
|
13551
|
-
function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
13552
|
-
return {
|
13553
|
-
narrow: false,
|
13554
|
-
init () {
|
13555
|
-
(0, $9930d46698775b42$export$a2214cc2adb2dc44)(this.$el, ({ width: width })=>{
|
13556
|
-
this.narrow = width < 500;
|
13557
|
-
});
|
13558
|
-
}
|
13559
|
-
};
|
13560
|
-
}
|
13561
|
-
|
13562
|
-
|
13563
|
-
var $e773f8ef556b41ff$exports = {};
|
13564
|
-
|
13565
|
-
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13566
|
-
|
13567
|
-
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13568
|
-
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13569
|
-
return {
|
13570
|
-
get isNarrowLayout () {
|
13571
|
-
return this.narrow || false;
|
13572
|
-
}
|
13573
|
-
};
|
13574
|
-
}
|
13575
|
-
|
13576
|
-
|
13577
|
-
$fe98e3f2bf49b28f$exports = {
|
13306
|
+
$8d334f4a3d8b76bc$exports = {
|
13578
13307
|
"display_options": {
|
13579
13308
|
"field": $6a9b69d9cc7f810f$exports
|
13580
13309
|
},
|
13581
|
-
"nav": {
|
13582
|
-
"item": $9b24cbeb3a465447$exports
|
13583
|
-
},
|
13584
13310
|
"params": {
|
13585
13311
|
"editor": $1a7a7298eec5b755$exports,
|
13586
13312
|
"field": $e773f8ef556b41ff$exports
|
13313
|
+
},
|
13314
|
+
"nav": {
|
13315
|
+
"item": $9b24cbeb3a465447$exports
|
13587
13316
|
}
|
13588
13317
|
};
|
13589
13318
|
|
@@ -13651,8 +13380,8 @@ const $d73574cc5e9b9e72$var$prefix = window.APP_NAME;
|
|
13651
13380
|
// Components
|
13652
13381
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $d709d0f4027033b2$export$2e2bcd8739ae039));
|
13653
13382
|
[
|
13654
|
-
$
|
13655
|
-
$
|
13383
|
+
$0c54d9c6f64a406e$exports,
|
13384
|
+
$8d334f4a3d8b76bc$exports,
|
13656
13385
|
$6c10158820e535ef$exports
|
13657
13386
|
].forEach((scripts)=>{
|
13658
13387
|
const components = (0, $5439cede634b2921$export$4e811121b221213b)(scripts);
|