@p4ulcristian/iris-layout 0.2.10 → 0.2.11
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.
- package/dist/iris-layout.js +60 -45
- package/dist/styles.css +172 -2
- package/package.json +1 -1
- package/dist/cljs-runtime/cljs.core.js +0 -38746
- package/dist/cljs-runtime/cljs.core.js.map +0 -1
- package/dist/cljs-runtime/cljs.pprint.js +0 -8400
- package/dist/cljs-runtime/cljs.pprint.js.map +0 -1
- package/dist/cljs-runtime/cljs.stacktrace.js +0 -561
- package/dist/cljs-runtime/cljs.stacktrace.js.map +0 -1
- package/dist/cljs-runtime/cljs_env.js +0 -1286
- package/dist/cljs-runtime/clojure.data.js +0 -295
- package/dist/cljs-runtime/clojure.data.js.map +0 -1
- package/dist/cljs-runtime/clojure.set.js +0 -382
- package/dist/cljs-runtime/clojure.set.js.map +0 -1
- package/dist/cljs-runtime/clojure.string.js +0 -480
- package/dist/cljs-runtime/clojure.string.js.map +0 -1
- package/dist/cljs-runtime/clojure.walk.js +0 -132
- package/dist/cljs-runtime/clojure.walk.js.map +0 -1
- package/dist/cljs-runtime/devtools.async.js +0 -90
- package/dist/cljs-runtime/devtools.async.js.map +0 -1
- package/dist/cljs-runtime/devtools.context.js +0 -11
- package/dist/cljs-runtime/devtools.context.js.map +0 -1
- package/dist/cljs-runtime/devtools.core.js +0 -175
- package/dist/cljs-runtime/devtools.core.js.map +0 -1
- package/dist/cljs-runtime/devtools.defaults.js +0 -20
- package/dist/cljs-runtime/devtools.defaults.js.map +0 -1
- package/dist/cljs-runtime/devtools.format.js +0 -631
- package/dist/cljs-runtime/devtools.format.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.budgeting.js +0 -182
- package/dist/cljs-runtime/devtools.formatters.budgeting.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.core.js +0 -220
- package/dist/cljs-runtime/devtools.formatters.core.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.helpers.js +0 -228
- package/dist/cljs-runtime/devtools.formatters.helpers.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.js +0 -261
- package/dist/cljs-runtime/devtools.formatters.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.markup.js +0 -1174
- package/dist/cljs-runtime/devtools.formatters.markup.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.printing.js +0 -313
- package/dist/cljs-runtime/devtools.formatters.printing.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.state.js +0 -325
- package/dist/cljs-runtime/devtools.formatters.state.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.templating.js +0 -666
- package/dist/cljs-runtime/devtools.formatters.templating.js.map +0 -1
- package/dist/cljs-runtime/devtools.hints.js +0 -193
- package/dist/cljs-runtime/devtools.hints.js.map +0 -1
- package/dist/cljs-runtime/devtools.munging.js +0 -1058
- package/dist/cljs-runtime/devtools.munging.js.map +0 -1
- package/dist/cljs-runtime/devtools.prefs.js +0 -87
- package/dist/cljs-runtime/devtools.prefs.js.map +0 -1
- package/dist/cljs-runtime/devtools.preload.js +0 -11
- package/dist/cljs-runtime/devtools.preload.js.map +0 -1
- package/dist/cljs-runtime/devtools.protocols.js +0 -98
- package/dist/cljs-runtime/devtools.protocols.js.map +0 -1
- package/dist/cljs-runtime/devtools.reporter.js +0 -81
- package/dist/cljs-runtime/devtools.reporter.js.map +0 -1
- package/dist/cljs-runtime/devtools.toolbox.js +0 -141
- package/dist/cljs-runtime/devtools.toolbox.js.map +0 -1
- package/dist/cljs-runtime/devtools.util.js +0 -517
- package/dist/cljs-runtime/devtools.util.js.map +0 -1
- package/dist/cljs-runtime/devtools.version.js +0 -9
- package/dist/cljs-runtime/devtools.version.js.map +0 -1
- package/dist/cljs-runtime/goog.array.array.js +0 -659
- package/dist/cljs-runtime/goog.array.array.js.map +0 -9
- package/dist/cljs-runtime/goog.asserts.asserts.js +0 -133
- package/dist/cljs-runtime/goog.asserts.asserts.js.map +0 -9
- package/dist/cljs-runtime/goog.asserts.dom.js +0 -90
- package/dist/cljs-runtime/goog.asserts.dom.js.map +0 -9
- package/dist/cljs-runtime/goog.async.nexttick.js +0 -93
- package/dist/cljs-runtime/goog.async.nexttick.js.map +0 -9
- package/dist/cljs-runtime/goog.base.js +0 -1261
- package/dist/cljs-runtime/goog.base.js.map +0 -9
- package/dist/cljs-runtime/goog.collections.maps.js +0 -82
- package/dist/cljs-runtime/goog.collections.maps.js.map +0 -9
- package/dist/cljs-runtime/goog.debug.entrypointregistry.js +0 -44
- package/dist/cljs-runtime/goog.debug.entrypointregistry.js.map +0 -9
- package/dist/cljs-runtime/goog.debug.error.js +0 -30
- package/dist/cljs-runtime/goog.debug.error.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.asserts.js +0 -40
- package/dist/cljs-runtime/goog.dom.asserts.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.browserfeature.js +0 -21
- package/dist/cljs-runtime/goog.dom.browserfeature.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.dom.js +0 -1087
- package/dist/cljs-runtime/goog.dom.dom.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.element.js +0 -69
- package/dist/cljs-runtime/goog.dom.element.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.htmlelement.js +0 -7
- package/dist/cljs-runtime/goog.dom.htmlelement.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.nodetype.js +0 -6
- package/dist/cljs-runtime/goog.dom.nodetype.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.safe.js +0 -277
- package/dist/cljs-runtime/goog.dom.safe.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.tagname.js +0 -147
- package/dist/cljs-runtime/goog.dom.tagname.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.tags.js +0 -10
- package/dist/cljs-runtime/goog.dom.tags.js.map +0 -9
- package/dist/cljs-runtime/goog.flags.flags.js +0 -12
- package/dist/cljs-runtime/goog.flags.flags.js.map +0 -9
- package/dist/cljs-runtime/goog.fs.blob.js +0 -38
- package/dist/cljs-runtime/goog.fs.blob.js.map +0 -9
- package/dist/cljs-runtime/goog.fs.url.js +0 -37
- package/dist/cljs-runtime/goog.fs.url.js.map +0 -9
- package/dist/cljs-runtime/goog.functions.functions.js +0 -211
- package/dist/cljs-runtime/goog.functions.functions.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safehtml.js +0 -321
- package/dist/cljs-runtime/goog.html.safehtml.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safescript.js +0 -65
- package/dist/cljs-runtime/goog.html.safescript.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safestyle.js +0 -175
- package/dist/cljs-runtime/goog.html.safestyle.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safestylesheet.js +0 -99
- package/dist/cljs-runtime/goog.html.safestylesheet.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safeurl.js +0 -231
- package/dist/cljs-runtime/goog.html.safeurl.js.map +0 -9
- package/dist/cljs-runtime/goog.html.trustedresourceurl.js +0 -123
- package/dist/cljs-runtime/goog.html.trustedresourceurl.js.map +0 -9
- package/dist/cljs-runtime/goog.html.trustedtypes.js +0 -16
- package/dist/cljs-runtime/goog.html.trustedtypes.js.map +0 -9
- package/dist/cljs-runtime/goog.html.uncheckedconversions.js +0 -52
- package/dist/cljs-runtime/goog.html.uncheckedconversions.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.browser.js +0 -352
- package/dist/cljs-runtime/goog.labs.useragent.browser.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.engine.js +0 -73
- package/dist/cljs-runtime/goog.labs.useragent.engine.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js +0 -14
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js +0 -74
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.platform.js +0 -147
- package/dist/cljs-runtime/goog.labs.useragent.platform.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.useragent.js +0 -21
- package/dist/cljs-runtime/goog.labs.useragent.useragent.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.util.js +0 -81
- package/dist/cljs-runtime/goog.labs.useragent.util.js.map +0 -9
- package/dist/cljs-runtime/goog.math.coordinate.js +0 -97
- package/dist/cljs-runtime/goog.math.coordinate.js.map +0 -9
- package/dist/cljs-runtime/goog.math.integer.js +0 -445
- package/dist/cljs-runtime/goog.math.integer.js.map +0 -9
- package/dist/cljs-runtime/goog.math.long.js +0 -437
- package/dist/cljs-runtime/goog.math.long.js.map +0 -9
- package/dist/cljs-runtime/goog.math.math.js +0 -158
- package/dist/cljs-runtime/goog.math.math.js.map +0 -9
- package/dist/cljs-runtime/goog.math.size.js +0 -76
- package/dist/cljs-runtime/goog.math.size.js.map +0 -9
- package/dist/cljs-runtime/goog.object.object.js +0 -284
- package/dist/cljs-runtime/goog.object.object.js.map +0 -9
- package/dist/cljs-runtime/goog.reflect.reflect.js +0 -32
- package/dist/cljs-runtime/goog.reflect.reflect.js.map +0 -9
- package/dist/cljs-runtime/goog.string.const.js +0 -35
- package/dist/cljs-runtime/goog.string.const.js.map +0 -9
- package/dist/cljs-runtime/goog.string.internal.js +0 -119
- package/dist/cljs-runtime/goog.string.internal.js.map +0 -9
- package/dist/cljs-runtime/goog.string.string.js +0 -462
- package/dist/cljs-runtime/goog.string.string.js.map +0 -9
- package/dist/cljs-runtime/goog.string.stringbuffer.js +0 -32
- package/dist/cljs-runtime/goog.string.stringbuffer.js.map +0 -9
- package/dist/cljs-runtime/goog.string.typedstring.js +0 -9
- package/dist/cljs-runtime/goog.string.typedstring.js.map +0 -9
- package/dist/cljs-runtime/goog.structs.structs.js +0 -199
- package/dist/cljs-runtime/goog.structs.structs.js.map +0 -9
- package/dist/cljs-runtime/goog.uri.uri.js +0 -628
- package/dist/cljs-runtime/goog.uri.uri.js.map +0 -9
- package/dist/cljs-runtime/goog.uri.utils.js +0 -326
- package/dist/cljs-runtime/goog.uri.utils.js.map +0 -9
- package/dist/cljs-runtime/goog.useragent.useragent.js +0 -139
- package/dist/cljs-runtime/goog.useragent.useragent.js.map +0 -9
- package/dist/cljs-runtime/iris_layout.components.entity_card_group.js +0 -202
- package/dist/cljs-runtime/iris_layout.components.entity_card_group.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.components.entity_tile.js +0 -327
- package/dist/cljs-runtime/iris_layout.components.entity_tile.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js +0 -33
- package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.components.resizer.js +0 -91
- package/dist/cljs-runtime/iris_layout.components.resizer.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.components.touch_drag.js +0 -385
- package/dist/cljs-runtime/iris_layout.components.touch_drag.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.core.js +0 -876
- package/dist/cljs-runtime/iris_layout.core.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.layout.js +0 -328
- package/dist/cljs-runtime/iris_layout.layout.js.map +0 -1
- package/dist/cljs-runtime/reagent.core.js +0 -993
- package/dist/cljs-runtime/reagent.core.js.map +0 -1
- package/dist/cljs-runtime/reagent.debug.js +0 -75
- package/dist/cljs-runtime/reagent.debug.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.batching.js +0 -270
- package/dist/cljs-runtime/reagent.impl.batching.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.component.js +0 -758
- package/dist/cljs-runtime/reagent.impl.component.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.input.js +0 -175
- package/dist/cljs-runtime/reagent.impl.input.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.protocols.js +0 -99
- package/dist/cljs-runtime/reagent.impl.protocols.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.template.js +0 -660
- package/dist/cljs-runtime/reagent.impl.template.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.util.js +0 -748
- package/dist/cljs-runtime/reagent.impl.util.js.map +0 -1
- package/dist/cljs-runtime/reagent.ratom.js +0 -1668
- package/dist/cljs-runtime/reagent.ratom.js.map +0 -1
- package/dist/cljs-runtime/shadow.esm.esm_import$react.js +0 -5
- package/dist/cljs-runtime/shadow.module.iris-layout.append.js +0 -2
- package/dist/cljs-runtime/shadow.module.iris-layout.prepend.js +0 -2
|
@@ -1,993 +0,0 @@
|
|
|
1
|
-
import "./cljs_env.js";
|
|
2
|
-
import "./cljs.core.js";
|
|
3
|
-
import "./shadow.esm.esm_import$react.js";
|
|
4
|
-
import "./reagent.impl.template.js";
|
|
5
|
-
import "./reagent.impl.component.js";
|
|
6
|
-
import "./reagent.impl.util.js";
|
|
7
|
-
import "./reagent.impl.batching.js";
|
|
8
|
-
import "./reagent.impl.protocols.js";
|
|
9
|
-
import "./reagent.ratom.js";
|
|
10
|
-
import "./reagent.debug.js";
|
|
11
|
-
goog.provide('reagent.core');
|
|
12
|
-
reagent.core.is_client = reagent.impl.util.is_client;
|
|
13
|
-
/**
|
|
14
|
-
* Create a native React element, by calling React.createElement directly.
|
|
15
|
-
*
|
|
16
|
-
* That means the second argument must be a javascript object (or nil), and
|
|
17
|
-
* that any Reagent hiccup forms must be processed with as-element. For example
|
|
18
|
-
* like this:
|
|
19
|
-
*
|
|
20
|
-
* ```cljs
|
|
21
|
-
* (r/create-element "div" #js{:className "foo"}
|
|
22
|
-
* "Hi " (r/as-element [:strong "world!"])
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* which is equivalent to
|
|
26
|
-
*
|
|
27
|
-
* ```cljs
|
|
28
|
-
* [:div.foo "Hi" [:strong "world!"]]
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
reagent.core.create_element = (function reagent$core$create_element(var_args){
|
|
32
|
-
var G__12522 = arguments.length;
|
|
33
|
-
switch (G__12522) {
|
|
34
|
-
case 1:
|
|
35
|
-
return reagent.core.create_element.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
36
|
-
|
|
37
|
-
break;
|
|
38
|
-
case 2:
|
|
39
|
-
return reagent.core.create_element.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
40
|
-
|
|
41
|
-
break;
|
|
42
|
-
case 3:
|
|
43
|
-
return reagent.core.create_element.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)]));
|
|
44
|
-
|
|
45
|
-
break;
|
|
46
|
-
default:
|
|
47
|
-
var args_arr__5751__auto__ = [];
|
|
48
|
-
var len__5726__auto___12562 = arguments.length;
|
|
49
|
-
var i__5727__auto___12563 = (0);
|
|
50
|
-
while(true){
|
|
51
|
-
if((i__5727__auto___12563 < len__5726__auto___12562)){
|
|
52
|
-
args_arr__5751__auto__.push((arguments[i__5727__auto___12563]));
|
|
53
|
-
|
|
54
|
-
var G__12564 = (i__5727__auto___12563 + (1));
|
|
55
|
-
i__5727__auto___12563 = G__12564;
|
|
56
|
-
continue;
|
|
57
|
-
} else {
|
|
58
|
-
}
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
var argseq__5752__auto__ = ((((3) < args_arr__5751__auto__.length))?(new cljs.core.IndexedSeq(args_arr__5751__auto__.slice((3)),(0),null)):null);
|
|
63
|
-
return reagent.core.create_element.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__5752__auto__);
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
(reagent.core.create_element.cljs$core$IFn$_invoke$arity$1 = (function (type){
|
|
69
|
-
return reagent.core.create_element.cljs$core$IFn$_invoke$arity$2(type,null);
|
|
70
|
-
}));
|
|
71
|
-
|
|
72
|
-
(reagent.core.create_element.cljs$core$IFn$_invoke$arity$2 = (function (type,props){
|
|
73
|
-
if((!(cljs.core.map_QMARK_(props)))){
|
|
74
|
-
} else {
|
|
75
|
-
throw (new Error(["Assert failed: ",["Expected a JS object, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([props], 0))].join(''),"\n","(clojure.core/not (clojure.core/map? props))"].join('')));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return shadow.esm.esm_import$react.createElement(type,props);
|
|
79
|
-
}));
|
|
80
|
-
|
|
81
|
-
(reagent.core.create_element.cljs$core$IFn$_invoke$arity$3 = (function (type,props,child){
|
|
82
|
-
if((!(cljs.core.map_QMARK_(props)))){
|
|
83
|
-
} else {
|
|
84
|
-
throw (new Error(["Assert failed: ",["Expected a JS object, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([props], 0))].join(''),"\n","(clojure.core/not (clojure.core/map? props))"].join('')));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return shadow.esm.esm_import$react.createElement(type,props,child);
|
|
88
|
-
}));
|
|
89
|
-
|
|
90
|
-
(reagent.core.create_element.cljs$core$IFn$_invoke$arity$variadic = (function (type,props,child,children){
|
|
91
|
-
if((!(cljs.core.map_QMARK_(props)))){
|
|
92
|
-
} else {
|
|
93
|
-
throw (new Error(["Assert failed: ",["Expected a JS object, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([props], 0))].join(''),"\n","(clojure.core/not (clojure.core/map? props))"].join('')));
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
return cljs.core.apply.cljs$core$IFn$_invoke$arity$5(shadow.esm.esm_import$react.createElement,type,props,child,children);
|
|
97
|
-
}));
|
|
98
|
-
|
|
99
|
-
/** @this {Function} */
|
|
100
|
-
(reagent.core.create_element.cljs$lang$applyTo = (function (seq12518){
|
|
101
|
-
var G__12519 = cljs.core.first(seq12518);
|
|
102
|
-
var seq12518__$1 = cljs.core.next(seq12518);
|
|
103
|
-
var G__12520 = cljs.core.first(seq12518__$1);
|
|
104
|
-
var seq12518__$2 = cljs.core.next(seq12518__$1);
|
|
105
|
-
var G__12521 = cljs.core.first(seq12518__$2);
|
|
106
|
-
var seq12518__$3 = cljs.core.next(seq12518__$2);
|
|
107
|
-
var self__5711__auto__ = this;
|
|
108
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12519,G__12520,G__12521,seq12518__$3);
|
|
109
|
-
}));
|
|
110
|
-
|
|
111
|
-
(reagent.core.create_element.cljs$lang$maxFixedArity = (3));
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Turns a vector of Hiccup syntax into a React element. Returns form
|
|
115
|
-
* unchanged if it is not a vector.
|
|
116
|
-
*/
|
|
117
|
-
reagent.core.as_element = (function reagent$core$as_element(var_args){
|
|
118
|
-
var G__12524 = arguments.length;
|
|
119
|
-
switch (G__12524) {
|
|
120
|
-
case 1:
|
|
121
|
-
return reagent.core.as_element.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
122
|
-
|
|
123
|
-
break;
|
|
124
|
-
case 2:
|
|
125
|
-
return reagent.core.as_element.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
126
|
-
|
|
127
|
-
break;
|
|
128
|
-
default:
|
|
129
|
-
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
(reagent.core.as_element.cljs$core$IFn$_invoke$arity$1 = (function (form){
|
|
135
|
-
return reagent.impl.protocols.as_element(reagent.impl.template._STAR_current_default_compiler_STAR_,form);
|
|
136
|
-
}));
|
|
137
|
-
|
|
138
|
-
(reagent.core.as_element.cljs$core$IFn$_invoke$arity$2 = (function (form,compiler){
|
|
139
|
-
return reagent.impl.protocols.as_element(compiler,form);
|
|
140
|
-
}));
|
|
141
|
-
|
|
142
|
-
(reagent.core.as_element.cljs$lang$maxFixedArity = 2);
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Returns an adapter for a native React class, that may be used
|
|
146
|
-
* just like a Reagent component function or class in Hiccup forms.
|
|
147
|
-
*/
|
|
148
|
-
reagent.core.adapt_react_class = (function reagent$core$adapt_react_class(c){
|
|
149
|
-
if(cljs.core.truth_(c)){
|
|
150
|
-
} else {
|
|
151
|
-
throw (new Error(["Assert failed: ",["Component"," must not be nil"].join(''),"\n","c"].join('')));
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
return reagent.impl.template.adapt_react_class(c);
|
|
155
|
-
});
|
|
156
|
-
/**
|
|
157
|
-
* Returns an adapter for a Reagent component, that may be used from
|
|
158
|
-
* React, for example in JSX. A single argument, props, is passed to
|
|
159
|
-
* the component, converted to a map.
|
|
160
|
-
*/
|
|
161
|
-
reagent.core.reactify_component = (function reagent$core$reactify_component(var_args){
|
|
162
|
-
var G__12526 = arguments.length;
|
|
163
|
-
switch (G__12526) {
|
|
164
|
-
case 1:
|
|
165
|
-
return reagent.core.reactify_component.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
166
|
-
|
|
167
|
-
break;
|
|
168
|
-
case 2:
|
|
169
|
-
return reagent.core.reactify_component.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
170
|
-
|
|
171
|
-
break;
|
|
172
|
-
default:
|
|
173
|
-
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
(reagent.core.reactify_component.cljs$core$IFn$_invoke$arity$1 = (function (c){
|
|
179
|
-
return reagent.core.reactify_component.cljs$core$IFn$_invoke$arity$2(c,reagent.impl.template._STAR_current_default_compiler_STAR_);
|
|
180
|
-
}));
|
|
181
|
-
|
|
182
|
-
(reagent.core.reactify_component.cljs$core$IFn$_invoke$arity$2 = (function (c,compiler){
|
|
183
|
-
if(cljs.core.truth_(c)){
|
|
184
|
-
} else {
|
|
185
|
-
throw (new Error(["Assert failed: ",["Component"," must not be nil"].join(''),"\n","c"].join('')));
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return reagent.impl.component.reactify_component(c,compiler);
|
|
189
|
-
}));
|
|
190
|
-
|
|
191
|
-
(reagent.core.reactify_component.cljs$lang$maxFixedArity = 2);
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Creates JS class based on provided Clojure map, for example:
|
|
195
|
-
*
|
|
196
|
-
* ```cljs
|
|
197
|
-
* {;; Constructor
|
|
198
|
-
* :constructor (fn [this props])
|
|
199
|
-
* :get-initial-state (fn [this])
|
|
200
|
-
* ;; Static methods
|
|
201
|
-
* :get-derived-state-from-props (fn [props state] partial-state)
|
|
202
|
-
* :get-derived-state-from-error (fn [error] partial-state)
|
|
203
|
-
* ;; Methods
|
|
204
|
-
* :get-snapshot-before-update (fn [this old-argv new-argv] snapshot)
|
|
205
|
-
* :should-component-update (fn [this old-argv new-argv])
|
|
206
|
-
* :component-did-mount (fn [this])
|
|
207
|
-
* :component-did-update (fn [this old-argv old-state snapshot])
|
|
208
|
-
* :component-will-unmount (fn [this])
|
|
209
|
-
* :component-did-catch (fn [this error info])
|
|
210
|
-
* :reagent-render (fn [args....])
|
|
211
|
-
* ;; Or alternatively:
|
|
212
|
-
* :render (fn [this])
|
|
213
|
-
* ;; Deprecated methods:
|
|
214
|
-
* :UNSAFE_component-will-receive-props (fn [this new-argv])
|
|
215
|
-
* :UNSAFE_component-will-update (fn [this new-argv new-state])
|
|
216
|
-
* :UNSAFE_component-will-mount (fn [this])}
|
|
217
|
-
* ```
|
|
218
|
-
*
|
|
219
|
-
* Everything is optional, except either :reagent-render or :render.
|
|
220
|
-
*
|
|
221
|
-
* Map keys should use `React.Component` method names (https://reactjs.org/docs/react-component.html),
|
|
222
|
-
* and can be provided in snake-case or camelCase.
|
|
223
|
-
*
|
|
224
|
-
* State can be initialized using constructor, which matches React.Component class,
|
|
225
|
-
* or using getInitialState which matches old React createClass function and is
|
|
226
|
-
* now implemented by Reagent for compatibility.
|
|
227
|
-
*
|
|
228
|
-
* State can usually be anything, e.g. Cljs object. But if using getDerivedState
|
|
229
|
-
* methods, the state has to be plain JS object as React implementation uses
|
|
230
|
-
* Object.assign to merge partial state into the current state.
|
|
231
|
-
*
|
|
232
|
-
* React built-in static methods or properties are automatically defined as statics.
|
|
233
|
-
*/
|
|
234
|
-
reagent.core.create_class = (function reagent$core$create_class(var_args){
|
|
235
|
-
var G__12528 = arguments.length;
|
|
236
|
-
switch (G__12528) {
|
|
237
|
-
case 1:
|
|
238
|
-
return reagent.core.create_class.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
239
|
-
|
|
240
|
-
break;
|
|
241
|
-
case 2:
|
|
242
|
-
return reagent.core.create_class.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
243
|
-
|
|
244
|
-
break;
|
|
245
|
-
default:
|
|
246
|
-
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
|
|
251
|
-
(reagent.core.create_class.cljs$core$IFn$_invoke$arity$1 = (function (spec){
|
|
252
|
-
return reagent.impl.component.create_class(spec,reagent.impl.template._STAR_current_default_compiler_STAR_);
|
|
253
|
-
}));
|
|
254
|
-
|
|
255
|
-
(reagent.core.create_class.cljs$core$IFn$_invoke$arity$2 = (function (spec,compiler){
|
|
256
|
-
return reagent.impl.component.create_class(spec,compiler);
|
|
257
|
-
}));
|
|
258
|
-
|
|
259
|
-
(reagent.core.create_class.cljs$lang$maxFixedArity = 2);
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Returns the current React component (a.k.a `this`) in a component
|
|
263
|
-
* function.
|
|
264
|
-
*/
|
|
265
|
-
reagent.core.current_component = (function reagent$core$current_component(){
|
|
266
|
-
return reagent.impl.component._STAR_current_component_STAR_;
|
|
267
|
-
});
|
|
268
|
-
/**
|
|
269
|
-
* Returns an atom containing a components state.
|
|
270
|
-
*/
|
|
271
|
-
reagent.core.state_atom = (function reagent$core$state_atom(this$){
|
|
272
|
-
if(reagent.impl.component.reagent_component_QMARK_(this$)){
|
|
273
|
-
} else {
|
|
274
|
-
throw (new Error(["Assert failed: ",["Expected a reagent component, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([this$], 0))].join(''),"\n","(comp/reagent-component? this)"].join('')));
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
return reagent.impl.component.state_atom(this$);
|
|
278
|
-
});
|
|
279
|
-
/**
|
|
280
|
-
* Returns the state of a component, as set with replace-state or set-state.
|
|
281
|
-
* Equivalent to `(deref (r/state-atom this))`
|
|
282
|
-
*/
|
|
283
|
-
reagent.core.state = (function reagent$core$state(this$){
|
|
284
|
-
if(reagent.impl.component.reagent_component_QMARK_(this$)){
|
|
285
|
-
} else {
|
|
286
|
-
throw (new Error(["Assert failed: ",["Expected a reagent component, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([this$], 0))].join(''),"\n","(comp/reagent-component? this)"].join('')));
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
return cljs.core.deref(reagent.core.state_atom(this$));
|
|
290
|
-
});
|
|
291
|
-
/**
|
|
292
|
-
* Set state of a component.
|
|
293
|
-
* Equivalent to `(reset! (state-atom this) new-state)`
|
|
294
|
-
*/
|
|
295
|
-
reagent.core.replace_state = (function reagent$core$replace_state(this$,new_state){
|
|
296
|
-
if(reagent.impl.component.reagent_component_QMARK_(this$)){
|
|
297
|
-
} else {
|
|
298
|
-
throw (new Error(["Assert failed: ",["Expected a reagent component, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([this$], 0))].join(''),"\n","(comp/reagent-component? this)"].join('')));
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
if((((new_state == null)) || (cljs.core.map_QMARK_(new_state)))){
|
|
302
|
-
} else {
|
|
303
|
-
throw (new Error(["Assert failed: ",["Expected a valid new state, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([new_state], 0))].join(''),"\n","(clojure.core/or (clojure.core/nil? new-state) (clojure.core/map? new-state))"].join('')));
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
return cljs.core.reset_BANG_(reagent.core.state_atom(this$),new_state);
|
|
307
|
-
});
|
|
308
|
-
/**
|
|
309
|
-
* Merge component state with new-state.
|
|
310
|
-
* Equivalent to `(swap! (state-atom this) merge new-state)`
|
|
311
|
-
*/
|
|
312
|
-
reagent.core.set_state = (function reagent$core$set_state(this$,new_state){
|
|
313
|
-
if(reagent.impl.component.reagent_component_QMARK_(this$)){
|
|
314
|
-
} else {
|
|
315
|
-
throw (new Error(["Assert failed: ",["Expected a reagent component, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([this$], 0))].join(''),"\n","(comp/reagent-component? this)"].join('')));
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
if((((new_state == null)) || (cljs.core.map_QMARK_(new_state)))){
|
|
319
|
-
} else {
|
|
320
|
-
throw (new Error(["Assert failed: ",["Expected a valid new state, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([new_state], 0))].join(''),"\n","(clojure.core/or (clojure.core/nil? new-state) (clojure.core/map? new-state))"].join('')));
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
return cljs.core.swap_BANG_.cljs$core$IFn$_invoke$arity$3(reagent.core.state_atom(this$),cljs.core.merge,new_state);
|
|
324
|
-
});
|
|
325
|
-
/**
|
|
326
|
-
* Force a component to re-render immediately.
|
|
327
|
-
*
|
|
328
|
-
* If the second argument is true, child components will also be
|
|
329
|
-
* re-rendered, even is their arguments have not changed.
|
|
330
|
-
*/
|
|
331
|
-
reagent.core.force_update = (function reagent$core$force_update(var_args){
|
|
332
|
-
var G__12530 = arguments.length;
|
|
333
|
-
switch (G__12530) {
|
|
334
|
-
case 1:
|
|
335
|
-
return reagent.core.force_update.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
336
|
-
|
|
337
|
-
break;
|
|
338
|
-
case 2:
|
|
339
|
-
return reagent.core.force_update.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
340
|
-
|
|
341
|
-
break;
|
|
342
|
-
default:
|
|
343
|
-
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
(reagent.core.force_update.cljs$core$IFn$_invoke$arity$1 = (function (this$){
|
|
349
|
-
return reagent.core.force_update.cljs$core$IFn$_invoke$arity$2(this$,false);
|
|
350
|
-
}));
|
|
351
|
-
|
|
352
|
-
(reagent.core.force_update.cljs$core$IFn$_invoke$arity$2 = (function (this$,deep){
|
|
353
|
-
reagent.ratom.flush_BANG_();
|
|
354
|
-
|
|
355
|
-
reagent.impl.util.force_update(this$,deep);
|
|
356
|
-
|
|
357
|
-
return reagent.impl.batching.flush_after_render();
|
|
358
|
-
}));
|
|
359
|
-
|
|
360
|
-
(reagent.core.force_update.cljs$lang$maxFixedArity = 2);
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Returns the props passed to a component.
|
|
364
|
-
*/
|
|
365
|
-
reagent.core.props = (function reagent$core$props(this$){
|
|
366
|
-
if(reagent.impl.component.reagent_component_QMARK_(this$)){
|
|
367
|
-
} else {
|
|
368
|
-
throw (new Error(["Assert failed: ",["Expected a reagent component, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([this$], 0))].join(''),"\n","(comp/reagent-component? this)"].join('')));
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
return reagent.impl.component.get_props(this$);
|
|
372
|
-
});
|
|
373
|
-
/**
|
|
374
|
-
* Returns the children passed to a component.
|
|
375
|
-
*/
|
|
376
|
-
reagent.core.children = (function reagent$core$children(this$){
|
|
377
|
-
if(reagent.impl.component.reagent_component_QMARK_(this$)){
|
|
378
|
-
} else {
|
|
379
|
-
throw (new Error(["Assert failed: ",["Expected a reagent component, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([this$], 0))].join(''),"\n","(comp/reagent-component? this)"].join('')));
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
return reagent.impl.component.get_children(this$);
|
|
383
|
-
});
|
|
384
|
-
/**
|
|
385
|
-
* Returns the entire Hiccup form passed to the component.
|
|
386
|
-
*/
|
|
387
|
-
reagent.core.argv = (function reagent$core$argv(this$){
|
|
388
|
-
if(reagent.impl.component.reagent_component_QMARK_(this$)){
|
|
389
|
-
} else {
|
|
390
|
-
throw (new Error(["Assert failed: ",["Expected a reagent component, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([this$], 0))].join(''),"\n","(comp/reagent-component? this)"].join('')));
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
return reagent.impl.component.get_argv(this$);
|
|
394
|
-
});
|
|
395
|
-
/**
|
|
396
|
-
* Function which normalizes and combines class values to a string
|
|
397
|
-
*
|
|
398
|
-
* Reagent allows classes to be defined as:
|
|
399
|
-
* - Strings
|
|
400
|
-
* - Named objects (Symbols or Keywords)
|
|
401
|
-
* - Collections of previous types
|
|
402
|
-
*/
|
|
403
|
-
reagent.core.class_names = (function reagent$core$class_names(var_args){
|
|
404
|
-
var G__12535 = arguments.length;
|
|
405
|
-
switch (G__12535) {
|
|
406
|
-
case 0:
|
|
407
|
-
return reagent.core.class_names.cljs$core$IFn$_invoke$arity$0();
|
|
408
|
-
|
|
409
|
-
break;
|
|
410
|
-
case 1:
|
|
411
|
-
return reagent.core.class_names.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
412
|
-
|
|
413
|
-
break;
|
|
414
|
-
case 2:
|
|
415
|
-
return reagent.core.class_names.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
416
|
-
|
|
417
|
-
break;
|
|
418
|
-
default:
|
|
419
|
-
var args_arr__5751__auto__ = [];
|
|
420
|
-
var len__5726__auto___12572 = arguments.length;
|
|
421
|
-
var i__5727__auto___12573 = (0);
|
|
422
|
-
while(true){
|
|
423
|
-
if((i__5727__auto___12573 < len__5726__auto___12572)){
|
|
424
|
-
args_arr__5751__auto__.push((arguments[i__5727__auto___12573]));
|
|
425
|
-
|
|
426
|
-
var G__12574 = (i__5727__auto___12573 + (1));
|
|
427
|
-
i__5727__auto___12573 = G__12574;
|
|
428
|
-
continue;
|
|
429
|
-
} else {
|
|
430
|
-
}
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
var argseq__5752__auto__ = ((((2) < args_arr__5751__auto__.length))?(new cljs.core.IndexedSeq(args_arr__5751__auto__.slice((2)),(0),null)):null);
|
|
435
|
-
return reagent.core.class_names.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__5752__auto__);
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
|
|
440
|
-
(reagent.core.class_names.cljs$core$IFn$_invoke$arity$0 = (function (){
|
|
441
|
-
return null;
|
|
442
|
-
}));
|
|
443
|
-
|
|
444
|
-
(reagent.core.class_names.cljs$core$IFn$_invoke$arity$1 = (function (class$){
|
|
445
|
-
return reagent.impl.util.class_names.cljs$core$IFn$_invoke$arity$1(class$);
|
|
446
|
-
}));
|
|
447
|
-
|
|
448
|
-
(reagent.core.class_names.cljs$core$IFn$_invoke$arity$2 = (function (class1,class2){
|
|
449
|
-
return reagent.impl.util.class_names.cljs$core$IFn$_invoke$arity$2(class1,class2);
|
|
450
|
-
}));
|
|
451
|
-
|
|
452
|
-
(reagent.core.class_names.cljs$core$IFn$_invoke$arity$variadic = (function (class1,class2,others){
|
|
453
|
-
return cljs.core.apply.cljs$core$IFn$_invoke$arity$4(reagent.impl.util.class_names,class1,class2,others);
|
|
454
|
-
}));
|
|
455
|
-
|
|
456
|
-
/** @this {Function} */
|
|
457
|
-
(reagent.core.class_names.cljs$lang$applyTo = (function (seq12532){
|
|
458
|
-
var G__12533 = cljs.core.first(seq12532);
|
|
459
|
-
var seq12532__$1 = cljs.core.next(seq12532);
|
|
460
|
-
var G__12534 = cljs.core.first(seq12532__$1);
|
|
461
|
-
var seq12532__$2 = cljs.core.next(seq12532__$1);
|
|
462
|
-
var self__5711__auto__ = this;
|
|
463
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12533,G__12534,seq12532__$2);
|
|
464
|
-
}));
|
|
465
|
-
|
|
466
|
-
(reagent.core.class_names.cljs$lang$maxFixedArity = (2));
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Utility function that merges some maps, handling `:class` and `:style`.
|
|
470
|
-
*
|
|
471
|
-
* The :class value is always normalized (using `class-names`) even if no
|
|
472
|
-
* merging is done.
|
|
473
|
-
*/
|
|
474
|
-
reagent.core.merge_props = (function reagent$core$merge_props(var_args){
|
|
475
|
-
var G__12540 = arguments.length;
|
|
476
|
-
switch (G__12540) {
|
|
477
|
-
case 0:
|
|
478
|
-
return reagent.core.merge_props.cljs$core$IFn$_invoke$arity$0();
|
|
479
|
-
|
|
480
|
-
break;
|
|
481
|
-
case 1:
|
|
482
|
-
return reagent.core.merge_props.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
483
|
-
|
|
484
|
-
break;
|
|
485
|
-
case 2:
|
|
486
|
-
return reagent.core.merge_props.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
487
|
-
|
|
488
|
-
break;
|
|
489
|
-
default:
|
|
490
|
-
var args_arr__5751__auto__ = [];
|
|
491
|
-
var len__5726__auto___12576 = arguments.length;
|
|
492
|
-
var i__5727__auto___12577 = (0);
|
|
493
|
-
while(true){
|
|
494
|
-
if((i__5727__auto___12577 < len__5726__auto___12576)){
|
|
495
|
-
args_arr__5751__auto__.push((arguments[i__5727__auto___12577]));
|
|
496
|
-
|
|
497
|
-
var G__12578 = (i__5727__auto___12577 + (1));
|
|
498
|
-
i__5727__auto___12577 = G__12578;
|
|
499
|
-
continue;
|
|
500
|
-
} else {
|
|
501
|
-
}
|
|
502
|
-
break;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
var argseq__5752__auto__ = ((((2) < args_arr__5751__auto__.length))?(new cljs.core.IndexedSeq(args_arr__5751__auto__.slice((2)),(0),null)):null);
|
|
506
|
-
return reagent.core.merge_props.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__5752__auto__);
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
|
|
511
|
-
(reagent.core.merge_props.cljs$core$IFn$_invoke$arity$0 = (function (){
|
|
512
|
-
return reagent.impl.util.merge_props.cljs$core$IFn$_invoke$arity$0();
|
|
513
|
-
}));
|
|
514
|
-
|
|
515
|
-
(reagent.core.merge_props.cljs$core$IFn$_invoke$arity$1 = (function (defaults){
|
|
516
|
-
return reagent.impl.util.merge_props.cljs$core$IFn$_invoke$arity$1(defaults);
|
|
517
|
-
}));
|
|
518
|
-
|
|
519
|
-
(reagent.core.merge_props.cljs$core$IFn$_invoke$arity$2 = (function (defaults,props){
|
|
520
|
-
return reagent.impl.util.merge_props.cljs$core$IFn$_invoke$arity$2(defaults,props);
|
|
521
|
-
}));
|
|
522
|
-
|
|
523
|
-
(reagent.core.merge_props.cljs$core$IFn$_invoke$arity$variadic = (function (defaults,props,others){
|
|
524
|
-
return cljs.core.apply.cljs$core$IFn$_invoke$arity$4(reagent.impl.util.merge_props,defaults,props,others);
|
|
525
|
-
}));
|
|
526
|
-
|
|
527
|
-
/** @this {Function} */
|
|
528
|
-
(reagent.core.merge_props.cljs$lang$applyTo = (function (seq12537){
|
|
529
|
-
var G__12538 = cljs.core.first(seq12537);
|
|
530
|
-
var seq12537__$1 = cljs.core.next(seq12537);
|
|
531
|
-
var G__12539 = cljs.core.first(seq12537__$1);
|
|
532
|
-
var seq12537__$2 = cljs.core.next(seq12537__$1);
|
|
533
|
-
var self__5711__auto__ = this;
|
|
534
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12538,G__12539,seq12537__$2);
|
|
535
|
-
}));
|
|
536
|
-
|
|
537
|
-
(reagent.core.merge_props.cljs$lang$maxFixedArity = (2));
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Render dirty components immediately.
|
|
541
|
-
*
|
|
542
|
-
* Note that this may not work in event handlers, since React.js does
|
|
543
|
-
* batching of updates there.
|
|
544
|
-
*/
|
|
545
|
-
reagent.core.flush = (function reagent$core$flush(){
|
|
546
|
-
return reagent.impl.batching.flush();
|
|
547
|
-
});
|
|
548
|
-
/**
|
|
549
|
-
* Like clojure.core/atom, except that it keeps track of derefs.
|
|
550
|
-
* Reagent components that derefs one of these are automatically
|
|
551
|
-
* re-rendered.
|
|
552
|
-
*/
|
|
553
|
-
reagent.core.atom = (function reagent$core$atom(var_args){
|
|
554
|
-
var G__12544 = arguments.length;
|
|
555
|
-
switch (G__12544) {
|
|
556
|
-
case 1:
|
|
557
|
-
return reagent.core.atom.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
558
|
-
|
|
559
|
-
break;
|
|
560
|
-
default:
|
|
561
|
-
var args_arr__5751__auto__ = [];
|
|
562
|
-
var len__5726__auto___12581 = arguments.length;
|
|
563
|
-
var i__5727__auto___12582 = (0);
|
|
564
|
-
while(true){
|
|
565
|
-
if((i__5727__auto___12582 < len__5726__auto___12581)){
|
|
566
|
-
args_arr__5751__auto__.push((arguments[i__5727__auto___12582]));
|
|
567
|
-
|
|
568
|
-
var G__12583 = (i__5727__auto___12582 + (1));
|
|
569
|
-
i__5727__auto___12582 = G__12583;
|
|
570
|
-
continue;
|
|
571
|
-
} else {
|
|
572
|
-
}
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
var argseq__5752__auto__ = ((((1) < args_arr__5751__auto__.length))?(new cljs.core.IndexedSeq(args_arr__5751__auto__.slice((1)),(0),null)):null);
|
|
577
|
-
return reagent.core.atom.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__5752__auto__);
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
|
|
582
|
-
(reagent.core.atom.cljs$core$IFn$_invoke$arity$1 = (function (x){
|
|
583
|
-
return reagent.ratom.atom.cljs$core$IFn$_invoke$arity$1(x);
|
|
584
|
-
}));
|
|
585
|
-
|
|
586
|
-
(reagent.core.atom.cljs$core$IFn$_invoke$arity$variadic = (function (x,rest){
|
|
587
|
-
return cljs.core.apply.cljs$core$IFn$_invoke$arity$3(reagent.ratom.atom,x,rest);
|
|
588
|
-
}));
|
|
589
|
-
|
|
590
|
-
/** @this {Function} */
|
|
591
|
-
(reagent.core.atom.cljs$lang$applyTo = (function (seq12542){
|
|
592
|
-
var G__12543 = cljs.core.first(seq12542);
|
|
593
|
-
var seq12542__$1 = cljs.core.next(seq12542);
|
|
594
|
-
var self__5711__auto__ = this;
|
|
595
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12543,seq12542__$1);
|
|
596
|
-
}));
|
|
597
|
-
|
|
598
|
-
(reagent.core.atom.cljs$lang$maxFixedArity = (1));
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* Takes a function and optional arguments, and returns a derefable
|
|
602
|
-
* containing the output of that function. If the function derefs
|
|
603
|
-
* Reagent atoms (or track, etc), the value will be updated whenever
|
|
604
|
-
* the atom changes.
|
|
605
|
-
*
|
|
606
|
-
* In other words, `@(track foo bar)` will produce the same result
|
|
607
|
-
* as `(foo bar)`, but foo will only be called again when the atoms it
|
|
608
|
-
* depends on changes, and will only trigger updates of components when
|
|
609
|
-
* its result changes.
|
|
610
|
-
*
|
|
611
|
-
* track is lazy, i.e the function is only evaluated on deref.
|
|
612
|
-
*/
|
|
613
|
-
reagent.core.track = (function reagent$core$track(var_args){
|
|
614
|
-
var args__5732__auto__ = [];
|
|
615
|
-
var len__5726__auto___12593 = arguments.length;
|
|
616
|
-
var i__5727__auto___12594 = (0);
|
|
617
|
-
while(true){
|
|
618
|
-
if((i__5727__auto___12594 < len__5726__auto___12593)){
|
|
619
|
-
args__5732__auto__.push((arguments[i__5727__auto___12594]));
|
|
620
|
-
|
|
621
|
-
var G__12595 = (i__5727__auto___12594 + (1));
|
|
622
|
-
i__5727__auto___12594 = G__12595;
|
|
623
|
-
continue;
|
|
624
|
-
} else {
|
|
625
|
-
}
|
|
626
|
-
break;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
var argseq__5733__auto__ = ((((1) < args__5732__auto__.length))?(new cljs.core.IndexedSeq(args__5732__auto__.slice((1)),(0),null)):null);
|
|
630
|
-
return reagent.core.track.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__5733__auto__);
|
|
631
|
-
});
|
|
632
|
-
|
|
633
|
-
(reagent.core.track.cljs$core$IFn$_invoke$arity$variadic = (function (f,args){
|
|
634
|
-
if(cljs.core.ifn_QMARK_(f)){
|
|
635
|
-
} else {
|
|
636
|
-
throw (new Error("Assert failed: (ifn? f)"));
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
return reagent.ratom.make_track(f,args);
|
|
640
|
-
}));
|
|
641
|
-
|
|
642
|
-
(reagent.core.track.cljs$lang$maxFixedArity = (1));
|
|
643
|
-
|
|
644
|
-
/** @this {Function} */
|
|
645
|
-
(reagent.core.track.cljs$lang$applyTo = (function (seq12545){
|
|
646
|
-
var G__12546 = cljs.core.first(seq12545);
|
|
647
|
-
var seq12545__$1 = cljs.core.next(seq12545);
|
|
648
|
-
var self__5711__auto__ = this;
|
|
649
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12546,seq12545__$1);
|
|
650
|
-
}));
|
|
651
|
-
|
|
652
|
-
/**
|
|
653
|
-
* An eager version of track. The function passed is called
|
|
654
|
-
* immediately, and continues to be called when needed, until stopped
|
|
655
|
-
* with dispose!.
|
|
656
|
-
*/
|
|
657
|
-
reagent.core.track_BANG_ = (function reagent$core$track_BANG_(var_args){
|
|
658
|
-
var args__5732__auto__ = [];
|
|
659
|
-
var len__5726__auto___12596 = arguments.length;
|
|
660
|
-
var i__5727__auto___12597 = (0);
|
|
661
|
-
while(true){
|
|
662
|
-
if((i__5727__auto___12597 < len__5726__auto___12596)){
|
|
663
|
-
args__5732__auto__.push((arguments[i__5727__auto___12597]));
|
|
664
|
-
|
|
665
|
-
var G__12598 = (i__5727__auto___12597 + (1));
|
|
666
|
-
i__5727__auto___12597 = G__12598;
|
|
667
|
-
continue;
|
|
668
|
-
} else {
|
|
669
|
-
}
|
|
670
|
-
break;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
var argseq__5733__auto__ = ((((1) < args__5732__auto__.length))?(new cljs.core.IndexedSeq(args__5732__auto__.slice((1)),(0),null)):null);
|
|
674
|
-
return reagent.core.track_BANG_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__5733__auto__);
|
|
675
|
-
});
|
|
676
|
-
|
|
677
|
-
(reagent.core.track_BANG_.cljs$core$IFn$_invoke$arity$variadic = (function (f,args){
|
|
678
|
-
if(cljs.core.ifn_QMARK_(f)){
|
|
679
|
-
} else {
|
|
680
|
-
throw (new Error("Assert failed: (ifn? f)"));
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
return reagent.ratom.make_track_BANG_(f,args);
|
|
684
|
-
}));
|
|
685
|
-
|
|
686
|
-
(reagent.core.track_BANG_.cljs$lang$maxFixedArity = (1));
|
|
687
|
-
|
|
688
|
-
/** @this {Function} */
|
|
689
|
-
(reagent.core.track_BANG_.cljs$lang$applyTo = (function (seq12547){
|
|
690
|
-
var G__12548 = cljs.core.first(seq12547);
|
|
691
|
-
var seq12547__$1 = cljs.core.next(seq12547);
|
|
692
|
-
var self__5711__auto__ = this;
|
|
693
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12548,seq12547__$1);
|
|
694
|
-
}));
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* Stop the result of track! from updating.
|
|
698
|
-
*/
|
|
699
|
-
reagent.core.dispose_BANG_ = (function reagent$core$dispose_BANG_(x){
|
|
700
|
-
return reagent.ratom.dispose_BANG_(x);
|
|
701
|
-
});
|
|
702
|
-
/**
|
|
703
|
-
* Provide a combination of value and callback, that looks like an atom.
|
|
704
|
-
*
|
|
705
|
-
* The first argument can be any value, that will be returned when the
|
|
706
|
-
* result is deref'ed.
|
|
707
|
-
*
|
|
708
|
-
* The second argument should be a function, that is called with the
|
|
709
|
-
* optional extra arguments provided to wrap, and the new value of the
|
|
710
|
-
* resulting 'atom'.
|
|
711
|
-
*
|
|
712
|
-
* Use for example like this:
|
|
713
|
-
*
|
|
714
|
-
* ```cljs
|
|
715
|
-
* (wrap (:foo @state)
|
|
716
|
-
* swap! state assoc :foo)
|
|
717
|
-
* ```
|
|
718
|
-
*
|
|
719
|
-
* Probably useful only for passing to child components.
|
|
720
|
-
*/
|
|
721
|
-
reagent.core.wrap = (function reagent$core$wrap(var_args){
|
|
722
|
-
var args__5732__auto__ = [];
|
|
723
|
-
var len__5726__auto___12602 = arguments.length;
|
|
724
|
-
var i__5727__auto___12603 = (0);
|
|
725
|
-
while(true){
|
|
726
|
-
if((i__5727__auto___12603 < len__5726__auto___12602)){
|
|
727
|
-
args__5732__auto__.push((arguments[i__5727__auto___12603]));
|
|
728
|
-
|
|
729
|
-
var G__12604 = (i__5727__auto___12603 + (1));
|
|
730
|
-
i__5727__auto___12603 = G__12604;
|
|
731
|
-
continue;
|
|
732
|
-
} else {
|
|
733
|
-
}
|
|
734
|
-
break;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
var argseq__5733__auto__ = ((((2) < args__5732__auto__.length))?(new cljs.core.IndexedSeq(args__5732__auto__.slice((2)),(0),null)):null);
|
|
738
|
-
return reagent.core.wrap.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__5733__auto__);
|
|
739
|
-
});
|
|
740
|
-
|
|
741
|
-
(reagent.core.wrap.cljs$core$IFn$_invoke$arity$variadic = (function (value,reset_fn,args){
|
|
742
|
-
if(cljs.core.ifn_QMARK_(reset_fn)){
|
|
743
|
-
} else {
|
|
744
|
-
throw (new Error(["Assert failed: ",["Expected something callable, not ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([reset_fn], 0))].join(''),"\n","(clojure.core/ifn? reset-fn)"].join('')));
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
return reagent.ratom.make_wrapper(value,reset_fn,args);
|
|
748
|
-
}));
|
|
749
|
-
|
|
750
|
-
(reagent.core.wrap.cljs$lang$maxFixedArity = (2));
|
|
751
|
-
|
|
752
|
-
/** @this {Function} */
|
|
753
|
-
(reagent.core.wrap.cljs$lang$applyTo = (function (seq12549){
|
|
754
|
-
var G__12550 = cljs.core.first(seq12549);
|
|
755
|
-
var seq12549__$1 = cljs.core.next(seq12549);
|
|
756
|
-
var G__12551 = cljs.core.first(seq12549__$1);
|
|
757
|
-
var seq12549__$2 = cljs.core.next(seq12549__$1);
|
|
758
|
-
var self__5711__auto__ = this;
|
|
759
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12550,G__12551,seq12549__$2);
|
|
760
|
-
}));
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* Provide a cursor into a Reagent atom.
|
|
764
|
-
*
|
|
765
|
-
* Behaves like a Reagent atom but focuses updates and derefs to
|
|
766
|
-
* the specified path within the wrapped Reagent atom. e.g.,
|
|
767
|
-
*
|
|
768
|
-
* ```cljs
|
|
769
|
-
* (let [c (cursor ra [:nested :content])]
|
|
770
|
-
* ... @c ;; equivalent to (get-in @ra [:nested :content])
|
|
771
|
-
* ... (reset! c 42) ;; equivalent to (swap! ra assoc-in [:nested :content] 42)
|
|
772
|
-
* ... (swap! c inc) ;; equivalence to (swap! ra update-in [:nested :content] inc)
|
|
773
|
-
* )
|
|
774
|
-
* ```
|
|
775
|
-
*
|
|
776
|
-
* The first parameter can also be a function, that should look
|
|
777
|
-
* something like this:
|
|
778
|
-
*
|
|
779
|
-
* ```cljs
|
|
780
|
-
* (defn set-get
|
|
781
|
-
* ([k] (get-in @state k))
|
|
782
|
-
* ([k v] (swap! state assoc-in k v)))
|
|
783
|
-
* ```
|
|
784
|
-
*
|
|
785
|
-
* The function will be called with one argument – the path passed to
|
|
786
|
-
* cursor – when the cursor is deref'ed, and two arguments (path and
|
|
787
|
-
* new value) when the cursor is modified.
|
|
788
|
-
*
|
|
789
|
-
* Given that set-get function, (and that state is a Reagent atom, or
|
|
790
|
-
* another cursor) these cursors are equivalent:
|
|
791
|
-
* `(cursor state [:foo])` and `(cursor set-get [:foo])`.
|
|
792
|
-
*
|
|
793
|
-
* Note that a cursor is lazy: its value will not change until it is
|
|
794
|
-
* used. This may be noticed with add-watch.
|
|
795
|
-
*/
|
|
796
|
-
reagent.core.cursor = (function reagent$core$cursor(src,path){
|
|
797
|
-
return reagent.ratom.cursor(src,path);
|
|
798
|
-
});
|
|
799
|
-
/**
|
|
800
|
-
* Swaps the value of a to be `(apply f current-value-of-atom args)`.
|
|
801
|
-
*
|
|
802
|
-
* rswap! works like swap!, except that recursive calls to rswap! on
|
|
803
|
-
* the same atom are allowed – and it always returns nil.
|
|
804
|
-
*/
|
|
805
|
-
reagent.core.rswap_BANG_ = (function reagent$core$rswap_BANG_(var_args){
|
|
806
|
-
var args__5732__auto__ = [];
|
|
807
|
-
var len__5726__auto___12605 = arguments.length;
|
|
808
|
-
var i__5727__auto___12606 = (0);
|
|
809
|
-
while(true){
|
|
810
|
-
if((i__5727__auto___12606 < len__5726__auto___12605)){
|
|
811
|
-
args__5732__auto__.push((arguments[i__5727__auto___12606]));
|
|
812
|
-
|
|
813
|
-
var G__12607 = (i__5727__auto___12606 + (1));
|
|
814
|
-
i__5727__auto___12606 = G__12607;
|
|
815
|
-
continue;
|
|
816
|
-
} else {
|
|
817
|
-
}
|
|
818
|
-
break;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
var argseq__5733__auto__ = ((((2) < args__5732__auto__.length))?(new cljs.core.IndexedSeq(args__5732__auto__.slice((2)),(0),null)):null);
|
|
822
|
-
return reagent.core.rswap_BANG_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__5733__auto__);
|
|
823
|
-
});
|
|
824
|
-
|
|
825
|
-
(reagent.core.rswap_BANG_.cljs$core$IFn$_invoke$arity$variadic = (function (a,f,args){
|
|
826
|
-
if((((!((a == null))))?(((((a.cljs$lang$protocol_mask$partition1$ & (16384))) || ((cljs.core.PROTOCOL_SENTINEL === a.cljs$core$IAtom$))))?true:(((!a.cljs$lang$protocol_mask$partition1$))?cljs.core.native_satisfies_QMARK_(cljs.core.IAtom,a):false)):cljs.core.native_satisfies_QMARK_(cljs.core.IAtom,a))){
|
|
827
|
-
} else {
|
|
828
|
-
throw (new Error("Assert failed: (satisfies? IAtom a)"));
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
if(cljs.core.ifn_QMARK_(f)){
|
|
832
|
-
} else {
|
|
833
|
-
throw (new Error("Assert failed: (ifn? f)"));
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
if(cljs.core.truth_(a.rswapping)){
|
|
837
|
-
(function (){var or__5002__auto__ = a.rswapfs;
|
|
838
|
-
if(cljs.core.truth_(or__5002__auto__)){
|
|
839
|
-
return or__5002__auto__;
|
|
840
|
-
} else {
|
|
841
|
-
return (a.rswapfs = []);
|
|
842
|
-
}
|
|
843
|
-
})().push((function (p1__12552_SHARP_){
|
|
844
|
-
return cljs.core.apply.cljs$core$IFn$_invoke$arity$3(f,p1__12552_SHARP_,args);
|
|
845
|
-
}));
|
|
846
|
-
} else {
|
|
847
|
-
(a.rswapping = true);
|
|
848
|
-
|
|
849
|
-
try{cljs.core.swap_BANG_.cljs$core$IFn$_invoke$arity$2(a,(function (state){
|
|
850
|
-
var s = cljs.core.apply.cljs$core$IFn$_invoke$arity$3(f,state,args);
|
|
851
|
-
while(true){
|
|
852
|
-
var temp__5806__auto__ = (function (){var G__12557 = a;
|
|
853
|
-
var G__12557__$1 = (((G__12557 == null))?null:G__12557.rswapfs);
|
|
854
|
-
if((G__12557__$1 == null)){
|
|
855
|
-
return null;
|
|
856
|
-
} else {
|
|
857
|
-
return G__12557__$1.shift();
|
|
858
|
-
}
|
|
859
|
-
})();
|
|
860
|
-
if((temp__5806__auto__ == null)){
|
|
861
|
-
return s;
|
|
862
|
-
} else {
|
|
863
|
-
var sf = temp__5806__auto__;
|
|
864
|
-
var G__12611 = (sf.cljs$core$IFn$_invoke$arity$1 ? sf.cljs$core$IFn$_invoke$arity$1(s) : sf.call(null,s));
|
|
865
|
-
s = G__12611;
|
|
866
|
-
continue;
|
|
867
|
-
}
|
|
868
|
-
break;
|
|
869
|
-
}
|
|
870
|
-
}));
|
|
871
|
-
}finally {(a.rswapping = false);
|
|
872
|
-
}}
|
|
873
|
-
|
|
874
|
-
return null;
|
|
875
|
-
}));
|
|
876
|
-
|
|
877
|
-
(reagent.core.rswap_BANG_.cljs$lang$maxFixedArity = (2));
|
|
878
|
-
|
|
879
|
-
/** @this {Function} */
|
|
880
|
-
(reagent.core.rswap_BANG_.cljs$lang$applyTo = (function (seq12553){
|
|
881
|
-
var G__12554 = cljs.core.first(seq12553);
|
|
882
|
-
var seq12553__$1 = cljs.core.next(seq12553);
|
|
883
|
-
var G__12555 = cljs.core.first(seq12553__$1);
|
|
884
|
-
var seq12553__$2 = cljs.core.next(seq12553__$1);
|
|
885
|
-
var self__5711__auto__ = this;
|
|
886
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12554,G__12555,seq12553__$2);
|
|
887
|
-
}));
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* Run f using requestAnimationFrame or equivalent.
|
|
891
|
-
*
|
|
892
|
-
* f will be called just before components are rendered.
|
|
893
|
-
*/
|
|
894
|
-
reagent.core.next_tick = (function reagent$core$next_tick(f){
|
|
895
|
-
return reagent.impl.batching.do_before_flush(f);
|
|
896
|
-
});
|
|
897
|
-
/**
|
|
898
|
-
* Run f using requestAnimationFrame or equivalent.
|
|
899
|
-
*
|
|
900
|
-
* f will be called just after any queued renders in the next animation
|
|
901
|
-
* frame (and even if no renders actually occur).
|
|
902
|
-
*/
|
|
903
|
-
reagent.core.after_render = (function reagent$core$after_render(f){
|
|
904
|
-
return reagent.impl.batching.do_after_render(f);
|
|
905
|
-
});
|
|
906
|
-
/**
|
|
907
|
-
* Works just like clojure.core/partial, but the result can be compared with =
|
|
908
|
-
*/
|
|
909
|
-
reagent.core.partial = (function reagent$core$partial(var_args){
|
|
910
|
-
var args__5732__auto__ = [];
|
|
911
|
-
var len__5726__auto___12612 = arguments.length;
|
|
912
|
-
var i__5727__auto___12613 = (0);
|
|
913
|
-
while(true){
|
|
914
|
-
if((i__5727__auto___12613 < len__5726__auto___12612)){
|
|
915
|
-
args__5732__auto__.push((arguments[i__5727__auto___12613]));
|
|
916
|
-
|
|
917
|
-
var G__12614 = (i__5727__auto___12613 + (1));
|
|
918
|
-
i__5727__auto___12613 = G__12614;
|
|
919
|
-
continue;
|
|
920
|
-
} else {
|
|
921
|
-
}
|
|
922
|
-
break;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
var argseq__5733__auto__ = ((((1) < args__5732__auto__.length))?(new cljs.core.IndexedSeq(args__5732__auto__.slice((1)),(0),null)):null);
|
|
926
|
-
return reagent.core.partial.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__5733__auto__);
|
|
927
|
-
});
|
|
928
|
-
|
|
929
|
-
(reagent.core.partial.cljs$core$IFn$_invoke$arity$variadic = (function (f,args){
|
|
930
|
-
return reagent.impl.util.make_partial_fn(f,args);
|
|
931
|
-
}));
|
|
932
|
-
|
|
933
|
-
(reagent.core.partial.cljs$lang$maxFixedArity = (1));
|
|
934
|
-
|
|
935
|
-
/** @this {Function} */
|
|
936
|
-
(reagent.core.partial.cljs$lang$applyTo = (function (seq12558){
|
|
937
|
-
var G__12559 = cljs.core.first(seq12558);
|
|
938
|
-
var seq12558__$1 = cljs.core.next(seq12558);
|
|
939
|
-
var self__5711__auto__ = this;
|
|
940
|
-
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__12559,seq12558__$1);
|
|
941
|
-
}));
|
|
942
|
-
|
|
943
|
-
/**
|
|
944
|
-
* Creates Compiler object with given `opts`,
|
|
945
|
-
* this can be passed to `render`, `as-element` and other functions to control
|
|
946
|
-
* how they turn the Reagent-style Hiccup into React components and elements.
|
|
947
|
-
*/
|
|
948
|
-
reagent.core.create_compiler = (function reagent$core$create_compiler(opts){
|
|
949
|
-
return reagent.impl.template.create_compiler(opts);
|
|
950
|
-
});
|
|
951
|
-
/**
|
|
952
|
-
* Globally sets the Compiler object used by `render`, `as-element` and other
|
|
953
|
-
* calls by default, when no `compiler` parameter is provided.
|
|
954
|
-
*
|
|
955
|
-
* Use `nil` value to restore the original default compiler.
|
|
956
|
-
*/
|
|
957
|
-
reagent.core.set_default_compiler_BANG_ = (function reagent$core$set_default_compiler_BANG_(compiler){
|
|
958
|
-
return reagent.impl.template.set_default_compiler_BANG_((((compiler == null))?reagent.impl.template.class_compiler:compiler));
|
|
959
|
-
});
|
|
960
|
-
reagent.core.render = (function reagent$core$render(var_args){
|
|
961
|
-
var args__5732__auto__ = [];
|
|
962
|
-
var len__5726__auto___12618 = arguments.length;
|
|
963
|
-
var i__5727__auto___12619 = (0);
|
|
964
|
-
while(true){
|
|
965
|
-
if((i__5727__auto___12619 < len__5726__auto___12618)){
|
|
966
|
-
args__5732__auto__.push((arguments[i__5727__auto___12619]));
|
|
967
|
-
|
|
968
|
-
var G__12620 = (i__5727__auto___12619 + (1));
|
|
969
|
-
i__5727__auto___12619 = G__12620;
|
|
970
|
-
continue;
|
|
971
|
-
} else {
|
|
972
|
-
}
|
|
973
|
-
break;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
var argseq__5733__auto__ = ((((0) < args__5732__auto__.length))?(new cljs.core.IndexedSeq(args__5732__auto__.slice((0)),(0),null)):null);
|
|
977
|
-
return reagent.core.render.cljs$core$IFn$_invoke$arity$variadic(argseq__5733__auto__);
|
|
978
|
-
});
|
|
979
|
-
|
|
980
|
-
(reagent.core.render.cljs$core$IFn$_invoke$arity$variadic = (function (_){
|
|
981
|
-
throw (new Error("Reagent.core/render function was moved to reagent.dom namespace in Reagent v1.0."));
|
|
982
|
-
}));
|
|
983
|
-
|
|
984
|
-
(reagent.core.render.cljs$lang$maxFixedArity = (0));
|
|
985
|
-
|
|
986
|
-
/** @this {Function} */
|
|
987
|
-
(reagent.core.render.cljs$lang$applyTo = (function (seq12560){
|
|
988
|
-
var self__5712__auto__ = this;
|
|
989
|
-
return self__5712__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq(seq12560));
|
|
990
|
-
}));
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
//# sourceMappingURL=reagent.core.js.map
|