diff --git a/docs/index.html b/docs/index.html
index 448753b..3560fad 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -94,6 +94,271 @@ function A9(fun, a, b, c, d, e, f, g, h, i) {
console.warn('Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets.');
+// EQUALITY
+
+function _Utils_eq(x, y)
+{
+ for (
+ var pair, stack = [], isEqual = _Utils_eqHelp(x, y, 0, stack);
+ isEqual && (pair = stack.pop());
+ isEqual = _Utils_eqHelp(pair.a, pair.b, 0, stack)
+ )
+ {}
+
+ return isEqual;
+}
+
+function _Utils_eqHelp(x, y, depth, stack)
+{
+ if (x === y)
+ {
+ return true;
+ }
+
+ if (typeof x !== 'object' || x === null || y === null)
+ {
+ typeof x === 'function' && _Debug_crash(5);
+ return false;
+ }
+
+ if (depth > 100)
+ {
+ stack.push(_Utils_Tuple2(x,y));
+ return true;
+ }
+
+ /**/
+ if (x.$ === 'Set_elm_builtin')
+ {
+ x = $elm$core$Set$toList(x);
+ y = $elm$core$Set$toList(y);
+ }
+ if (x.$ === 'RBNode_elm_builtin' || x.$ === 'RBEmpty_elm_builtin')
+ {
+ x = $elm$core$Dict$toList(x);
+ y = $elm$core$Dict$toList(y);
+ }
+ //*/
+
+ /**_UNUSED/
+ if (x.$ < 0)
+ {
+ x = $elm$core$Dict$toList(x);
+ y = $elm$core$Dict$toList(y);
+ }
+ //*/
+
+ for (var key in x)
+ {
+ if (!_Utils_eqHelp(x[key], y[key], depth + 1, stack))
+ {
+ return false;
+ }
+ }
+ return true;
+}
+
+var _Utils_equal = F2(_Utils_eq);
+var _Utils_notEqual = F2(function(a, b) { return !_Utils_eq(a,b); });
+
+
+
+// COMPARISONS
+
+// Code in Generate/JavaScript.hs, Basics.js, and List.js depends on
+// the particular integer values assigned to LT, EQ, and GT.
+
+function _Utils_cmp(x, y, ord)
+{
+ if (typeof x !== 'object')
+ {
+ return x === y ? /*EQ*/ 0 : x < y ? /*LT*/ -1 : /*GT*/ 1;
+ }
+
+ /**/
+ if (x instanceof String)
+ {
+ var a = x.valueOf();
+ var b = y.valueOf();
+ return a === b ? 0 : a < b ? -1 : 1;
+ }
+ //*/
+
+ /**_UNUSED/
+ if (typeof x.$ === 'undefined')
+ //*/
+ /**/
+ if (x.$[0] === '#')
+ //*/
+ {
+ return (ord = _Utils_cmp(x.a, y.a))
+ ? ord
+ : (ord = _Utils_cmp(x.b, y.b))
+ ? ord
+ : _Utils_cmp(x.c, y.c);
+ }
+
+ // traverse conses until end of a list or a mismatch
+ for (; x.b && y.b && !(ord = _Utils_cmp(x.a, y.a)); x = x.b, y = y.b) {} // WHILE_CONSES
+ return ord || (x.b ? /*GT*/ 1 : y.b ? /*LT*/ -1 : /*EQ*/ 0);
+}
+
+var _Utils_lt = F2(function(a, b) { return _Utils_cmp(a, b) < 0; });
+var _Utils_le = F2(function(a, b) { return _Utils_cmp(a, b) < 1; });
+var _Utils_gt = F2(function(a, b) { return _Utils_cmp(a, b) > 0; });
+var _Utils_ge = F2(function(a, b) { return _Utils_cmp(a, b) >= 0; });
+
+var _Utils_compare = F2(function(x, y)
+{
+ var n = _Utils_cmp(x, y);
+ return n < 0 ? $elm$core$Basics$LT : n ? $elm$core$Basics$GT : $elm$core$Basics$EQ;
+});
+
+
+// COMMON VALUES
+
+var _Utils_Tuple0_UNUSED = 0;
+var _Utils_Tuple0 = { $: '#0' };
+
+function _Utils_Tuple2_UNUSED(a, b) { return { a: a, b: b }; }
+function _Utils_Tuple2(a, b) { return { $: '#2', a: a, b: b }; }
+
+function _Utils_Tuple3_UNUSED(a, b, c) { return { a: a, b: b, c: c }; }
+function _Utils_Tuple3(a, b, c) { return { $: '#3', a: a, b: b, c: c }; }
+
+function _Utils_chr_UNUSED(c) { return c; }
+function _Utils_chr(c) { return new String(c); }
+
+
+// RECORDS
+
+function _Utils_update(oldRecord, updatedFields)
+{
+ var newRecord = {};
+
+ for (var key in oldRecord)
+ {
+ newRecord[key] = oldRecord[key];
+ }
+
+ for (var key in updatedFields)
+ {
+ newRecord[key] = updatedFields[key];
+ }
+
+ return newRecord;
+}
+
+
+// APPEND
+
+var _Utils_append = F2(_Utils_ap);
+
+function _Utils_ap(xs, ys)
+{
+ // append Strings
+ if (typeof xs === 'string')
+ {
+ return xs + ys;
+ }
+
+ // append Lists
+ if (!xs.b)
+ {
+ return ys;
+ }
+ var root = _List_Cons(xs.a, ys);
+ xs = xs.b
+ for (var curr = root; xs.b; xs = xs.b) // WHILE_CONS
+ {
+ curr = curr.b = _List_Cons(xs.a, ys);
+ }
+ return root;
+}
+
+
+
+var _List_Nil_UNUSED = { $: 0 };
+var _List_Nil = { $: '[]' };
+
+function _List_Cons_UNUSED(hd, tl) { return { $: 1, a: hd, b: tl }; }
+function _List_Cons(hd, tl) { return { $: '::', a: hd, b: tl }; }
+
+
+var _List_cons = F2(_List_Cons);
+
+function _List_fromArray(arr)
+{
+ var out = _List_Nil;
+ for (var i = arr.length; i--; )
+ {
+ out = _List_Cons(arr[i], out);
+ }
+ return out;
+}
+
+function _List_toArray(xs)
+{
+ for (var out = []; xs.b; xs = xs.b) // WHILE_CONS
+ {
+ out.push(xs.a);
+ }
+ return out;
+}
+
+var _List_map2 = F3(function(f, xs, ys)
+{
+ for (var arr = []; xs.b && ys.b; xs = xs.b, ys = ys.b) // WHILE_CONSES
+ {
+ arr.push(A2(f, xs.a, ys.a));
+ }
+ return _List_fromArray(arr);
+});
+
+var _List_map3 = F4(function(f, xs, ys, zs)
+{
+ for (var arr = []; xs.b && ys.b && zs.b; xs = xs.b, ys = ys.b, zs = zs.b) // WHILE_CONSES
+ {
+ arr.push(A3(f, xs.a, ys.a, zs.a));
+ }
+ return _List_fromArray(arr);
+});
+
+var _List_map4 = F5(function(f, ws, xs, ys, zs)
+{
+ for (var arr = []; ws.b && xs.b && ys.b && zs.b; ws = ws.b, xs = xs.b, ys = ys.b, zs = zs.b) // WHILE_CONSES
+ {
+ arr.push(A4(f, ws.a, xs.a, ys.a, zs.a));
+ }
+ return _List_fromArray(arr);
+});
+
+var _List_map5 = F6(function(f, vs, ws, xs, ys, zs)
+{
+ for (var arr = []; vs.b && ws.b && xs.b && ys.b && zs.b; vs = vs.b, ws = ws.b, xs = xs.b, ys = ys.b, zs = zs.b) // WHILE_CONSES
+ {
+ arr.push(A5(f, vs.a, ws.a, xs.a, ys.a, zs.a));
+ }
+ return _List_fromArray(arr);
+});
+
+var _List_sortBy = F2(function(f, xs)
+{
+ return _List_fromArray(_List_toArray(xs).sort(function(a, b) {
+ return _Utils_cmp(f(a), f(b));
+ }));
+});
+
+var _List_sortWith = F2(function(f, xs)
+{
+ return _List_fromArray(_List_toArray(xs).sort(function(a, b) {
+ var ord = A2(f, a, b);
+ return ord === $elm$core$Basics$EQ ? 0 : ord === $elm$core$Basics$LT ? -1 : 1;
+ }));
+});
+
+
+
var _JsArray_empty = [];
function _JsArray_singleton(value)
@@ -542,271 +807,6 @@ function _Debug_regionToString(region)
-// EQUALITY
-
-function _Utils_eq(x, y)
-{
- for (
- var pair, stack = [], isEqual = _Utils_eqHelp(x, y, 0, stack);
- isEqual && (pair = stack.pop());
- isEqual = _Utils_eqHelp(pair.a, pair.b, 0, stack)
- )
- {}
-
- return isEqual;
-}
-
-function _Utils_eqHelp(x, y, depth, stack)
-{
- if (x === y)
- {
- return true;
- }
-
- if (typeof x !== 'object' || x === null || y === null)
- {
- typeof x === 'function' && _Debug_crash(5);
- return false;
- }
-
- if (depth > 100)
- {
- stack.push(_Utils_Tuple2(x,y));
- return true;
- }
-
- /**/
- if (x.$ === 'Set_elm_builtin')
- {
- x = $elm$core$Set$toList(x);
- y = $elm$core$Set$toList(y);
- }
- if (x.$ === 'RBNode_elm_builtin' || x.$ === 'RBEmpty_elm_builtin')
- {
- x = $elm$core$Dict$toList(x);
- y = $elm$core$Dict$toList(y);
- }
- //*/
-
- /**_UNUSED/
- if (x.$ < 0)
- {
- x = $elm$core$Dict$toList(x);
- y = $elm$core$Dict$toList(y);
- }
- //*/
-
- for (var key in x)
- {
- if (!_Utils_eqHelp(x[key], y[key], depth + 1, stack))
- {
- return false;
- }
- }
- return true;
-}
-
-var _Utils_equal = F2(_Utils_eq);
-var _Utils_notEqual = F2(function(a, b) { return !_Utils_eq(a,b); });
-
-
-
-// COMPARISONS
-
-// Code in Generate/JavaScript.hs, Basics.js, and List.js depends on
-// the particular integer values assigned to LT, EQ, and GT.
-
-function _Utils_cmp(x, y, ord)
-{
- if (typeof x !== 'object')
- {
- return x === y ? /*EQ*/ 0 : x < y ? /*LT*/ -1 : /*GT*/ 1;
- }
-
- /**/
- if (x instanceof String)
- {
- var a = x.valueOf();
- var b = y.valueOf();
- return a === b ? 0 : a < b ? -1 : 1;
- }
- //*/
-
- /**_UNUSED/
- if (typeof x.$ === 'undefined')
- //*/
- /**/
- if (x.$[0] === '#')
- //*/
- {
- return (ord = _Utils_cmp(x.a, y.a))
- ? ord
- : (ord = _Utils_cmp(x.b, y.b))
- ? ord
- : _Utils_cmp(x.c, y.c);
- }
-
- // traverse conses until end of a list or a mismatch
- for (; x.b && y.b && !(ord = _Utils_cmp(x.a, y.a)); x = x.b, y = y.b) {} // WHILE_CONSES
- return ord || (x.b ? /*GT*/ 1 : y.b ? /*LT*/ -1 : /*EQ*/ 0);
-}
-
-var _Utils_lt = F2(function(a, b) { return _Utils_cmp(a, b) < 0; });
-var _Utils_le = F2(function(a, b) { return _Utils_cmp(a, b) < 1; });
-var _Utils_gt = F2(function(a, b) { return _Utils_cmp(a, b) > 0; });
-var _Utils_ge = F2(function(a, b) { return _Utils_cmp(a, b) >= 0; });
-
-var _Utils_compare = F2(function(x, y)
-{
- var n = _Utils_cmp(x, y);
- return n < 0 ? $elm$core$Basics$LT : n ? $elm$core$Basics$GT : $elm$core$Basics$EQ;
-});
-
-
-// COMMON VALUES
-
-var _Utils_Tuple0_UNUSED = 0;
-var _Utils_Tuple0 = { $: '#0' };
-
-function _Utils_Tuple2_UNUSED(a, b) { return { a: a, b: b }; }
-function _Utils_Tuple2(a, b) { return { $: '#2', a: a, b: b }; }
-
-function _Utils_Tuple3_UNUSED(a, b, c) { return { a: a, b: b, c: c }; }
-function _Utils_Tuple3(a, b, c) { return { $: '#3', a: a, b: b, c: c }; }
-
-function _Utils_chr_UNUSED(c) { return c; }
-function _Utils_chr(c) { return new String(c); }
-
-
-// RECORDS
-
-function _Utils_update(oldRecord, updatedFields)
-{
- var newRecord = {};
-
- for (var key in oldRecord)
- {
- newRecord[key] = oldRecord[key];
- }
-
- for (var key in updatedFields)
- {
- newRecord[key] = updatedFields[key];
- }
-
- return newRecord;
-}
-
-
-// APPEND
-
-var _Utils_append = F2(_Utils_ap);
-
-function _Utils_ap(xs, ys)
-{
- // append Strings
- if (typeof xs === 'string')
- {
- return xs + ys;
- }
-
- // append Lists
- if (!xs.b)
- {
- return ys;
- }
- var root = _List_Cons(xs.a, ys);
- xs = xs.b
- for (var curr = root; xs.b; xs = xs.b) // WHILE_CONS
- {
- curr = curr.b = _List_Cons(xs.a, ys);
- }
- return root;
-}
-
-
-
-var _List_Nil_UNUSED = { $: 0 };
-var _List_Nil = { $: '[]' };
-
-function _List_Cons_UNUSED(hd, tl) { return { $: 1, a: hd, b: tl }; }
-function _List_Cons(hd, tl) { return { $: '::', a: hd, b: tl }; }
-
-
-var _List_cons = F2(_List_Cons);
-
-function _List_fromArray(arr)
-{
- var out = _List_Nil;
- for (var i = arr.length; i--; )
- {
- out = _List_Cons(arr[i], out);
- }
- return out;
-}
-
-function _List_toArray(xs)
-{
- for (var out = []; xs.b; xs = xs.b) // WHILE_CONS
- {
- out.push(xs.a);
- }
- return out;
-}
-
-var _List_map2 = F3(function(f, xs, ys)
-{
- for (var arr = []; xs.b && ys.b; xs = xs.b, ys = ys.b) // WHILE_CONSES
- {
- arr.push(A2(f, xs.a, ys.a));
- }
- return _List_fromArray(arr);
-});
-
-var _List_map3 = F4(function(f, xs, ys, zs)
-{
- for (var arr = []; xs.b && ys.b && zs.b; xs = xs.b, ys = ys.b, zs = zs.b) // WHILE_CONSES
- {
- arr.push(A3(f, xs.a, ys.a, zs.a));
- }
- return _List_fromArray(arr);
-});
-
-var _List_map4 = F5(function(f, ws, xs, ys, zs)
-{
- for (var arr = []; ws.b && xs.b && ys.b && zs.b; ws = ws.b, xs = xs.b, ys = ys.b, zs = zs.b) // WHILE_CONSES
- {
- arr.push(A4(f, ws.a, xs.a, ys.a, zs.a));
- }
- return _List_fromArray(arr);
-});
-
-var _List_map5 = F6(function(f, vs, ws, xs, ys, zs)
-{
- for (var arr = []; vs.b && ws.b && xs.b && ys.b && zs.b; vs = vs.b, ws = ws.b, xs = xs.b, ys = ys.b, zs = zs.b) // WHILE_CONSES
- {
- arr.push(A5(f, vs.a, ws.a, xs.a, ys.a, zs.a));
- }
- return _List_fromArray(arr);
-});
-
-var _List_sortBy = F2(function(f, xs)
-{
- return _List_fromArray(_List_toArray(xs).sort(function(a, b) {
- return _Utils_cmp(f(a), f(b));
- }));
-});
-
-var _List_sortWith = F2(function(f, xs)
-{
- return _List_fromArray(_List_toArray(xs).sort(function(a, b) {
- var ord = A2(f, a, b);
- return ord === $elm$core$Basics$EQ ? 0 : ord === $elm$core$Basics$LT ? -1 : 1;
- }));
-});
-
-
-
// MATH
var _Basics_add = F2(function(a, b) { return a + b; });
@@ -1888,19 +1888,19 @@ function _Platform_initialize(flagDecoder, args, init, update, subscriptions, st
var result = A2(_Json_run, flagDecoder, _Json_wrap(args ? args['flags'] : undefined));
$elm$core$Result$isOk(result) || _Debug_crash(2 /**/, _Json_errorToString(result.a) /**/);
var managers = {};
- result = init(result.a);
- var model = result.a;
+ var initPair = init(result.a);
+ var model = initPair.a;
var stepper = stepperBuilder(sendToApp, model);
var ports = _Platform_setupEffects(managers, sendToApp);
function sendToApp(msg, viewMetadata)
{
- result = A2(update, msg, model);
- stepper(model = result.a, viewMetadata);
- _Platform_enqueueEffects(managers, result.b, subscriptions(model));
+ var pair = A2(update, msg, model);
+ stepper(model = pair.a, viewMetadata);
+ _Platform_enqueueEffects(managers, pair.b, subscriptions(model));
}
- _Platform_enqueueEffects(managers, result.b, subscriptions(model));
+ _Platform_enqueueEffects(managers, initPair.b, subscriptions(model));
return ports ? { ports: ports } : {};
}
@@ -3931,6 +3931,493 @@ function _VirtualDom_dekey(keyedNode)
+
+// ELEMENT
+
+
+var _Debugger_element;
+
+var _Browser_element = _Debugger_element || F4(function(impl, flagDecoder, debugMetadata, args)
+{
+ return _Platform_initialize(
+ flagDecoder,
+ args,
+ impl.init,
+ impl.update,
+ impl.subscriptions,
+ function(sendToApp, initialModel) {
+ var view = impl.view;
+ /**_UNUSED/
+ var domNode = args['node'];
+ //*/
+ /**/
+ var domNode = args && args['node'] ? args['node'] : _Debug_crash(0);
+ //*/
+ var currNode = _VirtualDom_virtualize(domNode);
+
+ return _Browser_makeAnimator(initialModel, function(model)
+ {
+ var nextNode = view(model);
+ var patches = _VirtualDom_diff(currNode, nextNode);
+ domNode = _VirtualDom_applyPatches(domNode, currNode, patches, sendToApp);
+ currNode = nextNode;
+ });
+ }
+ );
+});
+
+
+
+// DOCUMENT
+
+
+var _Debugger_document;
+
+var _Browser_document = _Debugger_document || F4(function(impl, flagDecoder, debugMetadata, args)
+{
+ return _Platform_initialize(
+ flagDecoder,
+ args,
+ impl.init,
+ impl.update,
+ impl.subscriptions,
+ function(sendToApp, initialModel) {
+ var divertHrefToApp = impl.setup && impl.setup(sendToApp)
+ var view = impl.view;
+ var title = _VirtualDom_doc.title;
+ var bodyNode = _VirtualDom_doc.body;
+ var currNode = _VirtualDom_virtualize(bodyNode);
+ return _Browser_makeAnimator(initialModel, function(model)
+ {
+ _VirtualDom_divertHrefToApp = divertHrefToApp;
+ var doc = view(model);
+ var nextNode = _VirtualDom_node('body')(_List_Nil)(doc.body);
+ var patches = _VirtualDom_diff(currNode, nextNode);
+ bodyNode = _VirtualDom_applyPatches(bodyNode, currNode, patches, sendToApp);
+ currNode = nextNode;
+ _VirtualDom_divertHrefToApp = 0;
+ (title !== doc.title) && (_VirtualDom_doc.title = title = doc.title);
+ });
+ }
+ );
+});
+
+
+
+// ANIMATION
+
+
+var _Browser_cancelAnimationFrame =
+ typeof cancelAnimationFrame !== 'undefined'
+ ? cancelAnimationFrame
+ : function(id) { clearTimeout(id); };
+
+var _Browser_requestAnimationFrame =
+ typeof requestAnimationFrame !== 'undefined'
+ ? requestAnimationFrame
+ : function(callback) { return setTimeout(callback, 1000 / 60); };
+
+
+function _Browser_makeAnimator(model, draw)
+{
+ draw(model);
+
+ var state = 0;
+
+ function updateIfNeeded()
+ {
+ state = state === 1
+ ? 0
+ : ( _Browser_requestAnimationFrame(updateIfNeeded), draw(model), 1 );
+ }
+
+ return function(nextModel, isSync)
+ {
+ model = nextModel;
+
+ isSync
+ ? ( draw(model),
+ state === 2 && (state = 1)
+ )
+ : ( state === 0 && _Browser_requestAnimationFrame(updateIfNeeded),
+ state = 2
+ );
+ };
+}
+
+
+
+// APPLICATION
+
+
+function _Browser_application(impl)
+{
+ var onUrlChange = impl.onUrlChange;
+ var onUrlRequest = impl.onUrlRequest;
+ var key = function() { key.a(onUrlChange(_Browser_getUrl())); };
+
+ return _Browser_document({
+ setup: function(sendToApp)
+ {
+ key.a = sendToApp;
+ _Browser_window.addEventListener('popstate', key);
+ _Browser_window.navigator.userAgent.indexOf('Trident') < 0 || _Browser_window.addEventListener('hashchange', key);
+
+ return F2(function(domNode, event)
+ {
+ if (!event.ctrlKey && !event.metaKey && !event.shiftKey && event.button < 1 && !domNode.target && !domNode.hasAttribute('download'))
+ {
+ event.preventDefault();
+ var href = domNode.href;
+ var curr = _Browser_getUrl();
+ var next = $elm$url$Url$fromString(href).a;
+ sendToApp(onUrlRequest(
+ (next
+ && curr.protocol === next.protocol
+ && curr.host === next.host
+ && curr.port_.a === next.port_.a
+ )
+ ? $elm$browser$Browser$Internal(next)
+ : $elm$browser$Browser$External(href)
+ ));
+ }
+ });
+ },
+ init: function(flags)
+ {
+ return A3(impl.init, flags, _Browser_getUrl(), key);
+ },
+ view: impl.view,
+ update: impl.update,
+ subscriptions: impl.subscriptions
+ });
+}
+
+function _Browser_getUrl()
+{
+ return $elm$url$Url$fromString(_VirtualDom_doc.location.href).a || _Debug_crash(1);
+}
+
+var _Browser_go = F2(function(key, n)
+{
+ return A2($elm$core$Task$perform, $elm$core$Basics$never, _Scheduler_binding(function() {
+ n && history.go(n);
+ key();
+ }));
+});
+
+var _Browser_pushUrl = F2(function(key, url)
+{
+ return A2($elm$core$Task$perform, $elm$core$Basics$never, _Scheduler_binding(function() {
+ history.pushState({}, '', url);
+ key();
+ }));
+});
+
+var _Browser_replaceUrl = F2(function(key, url)
+{
+ return A2($elm$core$Task$perform, $elm$core$Basics$never, _Scheduler_binding(function() {
+ history.replaceState({}, '', url);
+ key();
+ }));
+});
+
+
+
+// GLOBAL EVENTS
+
+
+var _Browser_fakeNode = { addEventListener: function() {}, removeEventListener: function() {} };
+var _Browser_doc = typeof document !== 'undefined' ? document : _Browser_fakeNode;
+var _Browser_window = typeof window !== 'undefined' ? window : _Browser_fakeNode;
+
+var _Browser_on = F3(function(node, eventName, sendToSelf)
+{
+ return _Scheduler_spawn(_Scheduler_binding(function(callback)
+ {
+ function handler(event) { _Scheduler_rawSpawn(sendToSelf(event)); }
+ node.addEventListener(eventName, handler, _VirtualDom_passiveSupported && { passive: true });
+ return function() { node.removeEventListener(eventName, handler); };
+ }));
+});
+
+var _Browser_decodeEvent = F2(function(decoder, event)
+{
+ var result = _Json_runHelp(decoder, event);
+ return $elm$core$Result$isOk(result) ? $elm$core$Maybe$Just(result.a) : $elm$core$Maybe$Nothing;
+});
+
+
+
+// PAGE VISIBILITY
+
+
+function _Browser_visibilityInfo()
+{
+ return (typeof _VirtualDom_doc.hidden !== 'undefined')
+ ? { hidden: 'hidden', change: 'visibilitychange' }
+ :
+ (typeof _VirtualDom_doc.mozHidden !== 'undefined')
+ ? { hidden: 'mozHidden', change: 'mozvisibilitychange' }
+ :
+ (typeof _VirtualDom_doc.msHidden !== 'undefined')
+ ? { hidden: 'msHidden', change: 'msvisibilitychange' }
+ :
+ (typeof _VirtualDom_doc.webkitHidden !== 'undefined')
+ ? { hidden: 'webkitHidden', change: 'webkitvisibilitychange' }
+ : { hidden: 'hidden', change: 'visibilitychange' };
+}
+
+
+
+// ANIMATION FRAMES
+
+
+function _Browser_rAF()
+{
+ return _Scheduler_binding(function(callback)
+ {
+ var id = _Browser_requestAnimationFrame(function() {
+ callback(_Scheduler_succeed(Date.now()));
+ });
+
+ return function() {
+ _Browser_cancelAnimationFrame(id);
+ };
+ });
+}
+
+
+function _Browser_now()
+{
+ return _Scheduler_binding(function(callback)
+ {
+ callback(_Scheduler_succeed(Date.now()));
+ });
+}
+
+
+
+// DOM STUFF
+
+
+function _Browser_withNode(id, doStuff)
+{
+ return _Scheduler_binding(function(callback)
+ {
+ _Browser_requestAnimationFrame(function() {
+ var node = document.getElementById(id);
+ callback(node
+ ? _Scheduler_succeed(doStuff(node))
+ : _Scheduler_fail($elm$browser$Browser$Dom$NotFound(id))
+ );
+ });
+ });
+}
+
+
+function _Browser_withWindow(doStuff)
+{
+ return _Scheduler_binding(function(callback)
+ {
+ _Browser_requestAnimationFrame(function() {
+ callback(_Scheduler_succeed(doStuff()));
+ });
+ });
+}
+
+
+// FOCUS and BLUR
+
+
+var _Browser_call = F2(function(functionName, id)
+{
+ return _Browser_withNode(id, function(node) {
+ node[functionName]();
+ return _Utils_Tuple0;
+ });
+});
+
+
+
+// WINDOW VIEWPORT
+
+
+function _Browser_getViewport()
+{
+ return {
+ scene: _Browser_getScene(),
+ viewport: {
+ x: _Browser_window.pageXOffset,
+ y: _Browser_window.pageYOffset,
+ width: _Browser_doc.documentElement.clientWidth,
+ height: _Browser_doc.documentElement.clientHeight
+ }
+ };
+}
+
+function _Browser_getScene()
+{
+ var body = _Browser_doc.body;
+ var elem = _Browser_doc.documentElement;
+ return {
+ width: Math.max(body.scrollWidth, body.offsetWidth, elem.scrollWidth, elem.offsetWidth, elem.clientWidth),
+ height: Math.max(body.scrollHeight, body.offsetHeight, elem.scrollHeight, elem.offsetHeight, elem.clientHeight)
+ };
+}
+
+var _Browser_setViewport = F2(function(x, y)
+{
+ return _Browser_withWindow(function()
+ {
+ _Browser_window.scroll(x, y);
+ return _Utils_Tuple0;
+ });
+});
+
+
+
+// ELEMENT VIEWPORT
+
+
+function _Browser_getViewportOf(id)
+{
+ return _Browser_withNode(id, function(node)
+ {
+ return {
+ scene: {
+ width: node.scrollWidth,
+ height: node.scrollHeight
+ },
+ viewport: {
+ x: node.scrollLeft,
+ y: node.scrollTop,
+ width: node.clientWidth,
+ height: node.clientHeight
+ }
+ };
+ });
+}
+
+
+var _Browser_setViewportOf = F3(function(id, x, y)
+{
+ return _Browser_withNode(id, function(node)
+ {
+ node.scrollLeft = x;
+ node.scrollTop = y;
+ return _Utils_Tuple0;
+ });
+});
+
+
+
+// ELEMENT
+
+
+function _Browser_getElement(id)
+{
+ return _Browser_withNode(id, function(node)
+ {
+ var rect = node.getBoundingClientRect();
+ var x = _Browser_window.pageXOffset;
+ var y = _Browser_window.pageYOffset;
+ return {
+ scene: _Browser_getScene(),
+ viewport: {
+ x: x,
+ y: y,
+ width: _Browser_doc.documentElement.clientWidth,
+ height: _Browser_doc.documentElement.clientHeight
+ },
+ element: {
+ x: x + rect.left,
+ y: y + rect.top,
+ width: rect.width,
+ height: rect.height
+ }
+ };
+ });
+}
+
+
+
+// LOAD and RELOAD
+
+
+function _Browser_reload(skipCache)
+{
+ return A2($elm$core$Task$perform, $elm$core$Basics$never, _Scheduler_binding(function(callback)
+ {
+ _VirtualDom_doc.location.reload(skipCache);
+ }));
+}
+
+function _Browser_load(url)
+{
+ return A2($elm$core$Task$perform, $elm$core$Basics$never, _Scheduler_binding(function(callback)
+ {
+ try
+ {
+ _Browser_window.location = url;
+ }
+ catch(err)
+ {
+ // Only Firefox can throw a NS_ERROR_MALFORMED_URI exception here.
+ // Other browsers reload the page, so let's be consistent about that.
+ _VirtualDom_doc.location.reload(false);
+ }
+ }));
+}
+
+
+
+function _Time_now(millisToPosix)
+{
+ return _Scheduler_binding(function(callback)
+ {
+ callback(_Scheduler_succeed(millisToPosix(Date.now())));
+ });
+}
+
+var _Time_setInterval = F2(function(interval, task)
+{
+ return _Scheduler_binding(function(callback)
+ {
+ var id = setInterval(function() { _Scheduler_rawSpawn(task); }, interval);
+ return function() { clearInterval(id); };
+ });
+});
+
+function _Time_here()
+{
+ return _Scheduler_binding(function(callback)
+ {
+ callback(_Scheduler_succeed(
+ A2($elm$time$Time$customZone, -(new Date().getTimezoneOffset()), _List_Nil)
+ ));
+ });
+}
+
+
+function _Time_getZoneName()
+{
+ return _Scheduler_binding(function(callback)
+ {
+ try
+ {
+ var name = $elm$time$Time$Name(Intl.DateTimeFormat().resolvedOptions().timeZone);
+ }
+ catch (e)
+ {
+ var name = $elm$time$Time$Offset(new Date().getTimezoneOffset());
+ }
+ callback(_Scheduler_succeed(name));
+ });
+}
+
+
+
var _Bitwise_and = F2(function(a, b)
{
return a & b;
@@ -3965,31 +4452,10 @@ var _Bitwise_shiftRightZfBy = F2(function(offset, a)
{
return a >>> offset;
});
+var $elm$core$Basics$EQ = {$: 'EQ'};
+var $elm$core$Basics$GT = {$: 'GT'};
+var $elm$core$Basics$LT = {$: 'LT'};
var $elm$core$List$cons = _List_cons;
-var $elm$core$Elm$JsArray$foldr = _JsArray_foldr;
-var $elm$core$Array$foldr = F3(
- function (func, baseCase, _v0) {
- var tree = _v0.c;
- var tail = _v0.d;
- var helper = F2(
- function (node, acc) {
- if (node.$ === 'SubTree') {
- var subTree = node.a;
- return A3($elm$core$Elm$JsArray$foldr, helper, acc, subTree);
- } else {
- var values = node.a;
- return A3($elm$core$Elm$JsArray$foldr, func, acc, values);
- }
- });
- return A3(
- $elm$core$Elm$JsArray$foldr,
- helper,
- A3($elm$core$Elm$JsArray$foldr, func, baseCase, tail),
- tree);
- });
-var $elm$core$Array$toList = function (array) {
- return A3($elm$core$Array$foldr, $elm$core$List$cons, _List_Nil, array);
-};
var $elm$core$Dict$foldr = F3(
function (func, acc, t) {
foldr:
@@ -4042,9 +4508,30 @@ var $elm$core$Set$toList = function (_v0) {
var dict = _v0.a;
return $elm$core$Dict$keys(dict);
};
-var $elm$core$Basics$EQ = {$: 'EQ'};
-var $elm$core$Basics$GT = {$: 'GT'};
-var $elm$core$Basics$LT = {$: 'LT'};
+var $elm$core$Elm$JsArray$foldr = _JsArray_foldr;
+var $elm$core$Array$foldr = F3(
+ function (func, baseCase, _v0) {
+ var tree = _v0.c;
+ var tail = _v0.d;
+ var helper = F2(
+ function (node, acc) {
+ if (node.$ === 'SubTree') {
+ var subTree = node.a;
+ return A3($elm$core$Elm$JsArray$foldr, helper, acc, subTree);
+ } else {
+ var values = node.a;
+ return A3($elm$core$Elm$JsArray$foldr, func, acc, values);
+ }
+ });
+ return A3(
+ $elm$core$Elm$JsArray$foldr,
+ helper,
+ A3($elm$core$Elm$JsArray$foldr, func, baseCase, tail),
+ tree);
+ });
+var $elm$core$Array$toList = function (array) {
+ return A3($elm$core$Array$foldr, $elm$core$List$cons, _List_Nil, array);
+};
var $elm$core$Result$Err = function (a) {
return {$: 'Err', a: a};
};
@@ -4455,216 +4942,161 @@ var $elm$virtual_dom$VirtualDom$toHandlerInt = function (handler) {
return 3;
}
};
-var $elm$virtual_dom$VirtualDom$attribute = F2(
- function (key, value) {
- return A2(
- _VirtualDom_attribute,
- _VirtualDom_noOnOrFormAction(key),
- _VirtualDom_noJavaScriptOrHtmlUri(value));
+var $elm$browser$Browser$External = function (a) {
+ return {$: 'External', a: a};
+};
+var $elm$browser$Browser$Internal = function (a) {
+ return {$: 'Internal', a: a};
+};
+var $elm$core$Basics$identity = function (x) {
+ return x;
+};
+var $elm$browser$Browser$Dom$NotFound = function (a) {
+ return {$: 'NotFound', a: a};
+};
+var $elm$url$Url$Http = {$: 'Http'};
+var $elm$url$Url$Https = {$: 'Https'};
+var $elm$url$Url$Url = F6(
+ function (protocol, host, port_, path, query, fragment) {
+ return {fragment: fragment, host: host, path: path, port_: port_, protocol: protocol, query: query};
});
-var $elm$html$Html$Attributes$attribute = $elm$virtual_dom$VirtualDom$attribute;
-var $elm$html$Html$div = _VirtualDom_node('div');
-var $mdgriffith$elm_ui$Internal$Model$Colored = F3(
- function (a, b, c) {
- return {$: 'Colored', a: a, b: b, c: c};
+var $elm$core$String$contains = _String_contains;
+var $elm$core$String$length = _String_length;
+var $elm$core$String$slice = _String_slice;
+var $elm$core$String$dropLeft = F2(
+ function (n, string) {
+ return (n < 1) ? string : A3(
+ $elm$core$String$slice,
+ n,
+ $elm$core$String$length(string),
+ string);
});
-var $mdgriffith$elm_ui$Internal$Model$StyleClass = F2(
- function (a, b) {
- return {$: 'StyleClass', a: a, b: b};
+var $elm$core$String$indexes = _String_indexes;
+var $elm$core$String$isEmpty = function (string) {
+ return string === '';
+};
+var $elm$core$String$left = F2(
+ function (n, string) {
+ return (n < 1) ? '' : A3($elm$core$String$slice, 0, n, string);
});
-var $mdgriffith$elm_ui$Internal$Flag$Flag = function (a) {
- return {$: 'Flag', a: a};
-};
-var $mdgriffith$elm_ui$Internal$Flag$Second = function (a) {
- return {$: 'Second', a: a};
-};
-var $elm$core$Bitwise$shiftLeftBy = _Bitwise_shiftLeftBy;
-var $mdgriffith$elm_ui$Internal$Flag$flag = function (i) {
- return (i > 31) ? $mdgriffith$elm_ui$Internal$Flag$Second(1 << (i - 32)) : $mdgriffith$elm_ui$Internal$Flag$Flag(1 << i);
-};
-var $mdgriffith$elm_ui$Internal$Flag$fontColor = $mdgriffith$elm_ui$Internal$Flag$flag(14);
-var $elm$core$Basics$round = _Basics_round;
-var $mdgriffith$elm_ui$Internal$Model$floatClass = function (x) {
- return $elm$core$String$fromInt(
- $elm$core$Basics$round(x * 255));
-};
-var $mdgriffith$elm_ui$Internal$Model$formatColorClass = function (_v0) {
- var red = _v0.a;
- var green = _v0.b;
- var blue = _v0.c;
- var alpha = _v0.d;
- return $mdgriffith$elm_ui$Internal$Model$floatClass(red) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(green) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(blue) + ('-' + $mdgriffith$elm_ui$Internal$Model$floatClass(alpha))))));
-};
-var $mdgriffith$elm_ui$Element$Font$color = function (fontColor) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$fontColor,
- A3(
- $mdgriffith$elm_ui$Internal$Model$Colored,
- 'fc-' + $mdgriffith$elm_ui$Internal$Model$formatColorClass(fontColor),
- 'color',
- fontColor));
-};
-var $mdgriffith$elm_ui$Internal$Model$Rgba = F4(
- function (a, b, c, d) {
- return {$: 'Rgba', a: a, b: b, c: c, d: d};
- });
-var $mdgriffith$elm_ui$Element$rgb255 = F3(
- function (red, green, blue) {
- return A4($mdgriffith$elm_ui$Internal$Model$Rgba, red / 255, green / 255, blue / 255, 1);
- });
-var $Orasund$elm_ui_framework$Framework$Color$darkerGrey = A3($mdgriffith$elm_ui$Element$rgb255, 18, 18, 18);
-var $mdgriffith$elm_ui$Internal$Flag$bgColor = $mdgriffith$elm_ui$Internal$Flag$flag(8);
-var $mdgriffith$elm_ui$Element$Background$color = function (clr) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$bgColor,
- A3(
- $mdgriffith$elm_ui$Internal$Model$Colored,
- 'bg-' + $mdgriffith$elm_ui$Internal$Model$formatColorClass(clr),
- 'background-color',
- clr));
-};
-var $mdgriffith$elm_ui$Internal$Flag$borderColor = $mdgriffith$elm_ui$Internal$Flag$flag(28);
-var $mdgriffith$elm_ui$Element$Border$color = function (clr) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$borderColor,
- A3(
- $mdgriffith$elm_ui$Internal$Model$Colored,
- 'bc-' + $mdgriffith$elm_ui$Internal$Model$formatColorClass(clr),
- 'border-color',
- clr));
-};
-var $Orasund$elm_ui_framework$Framework$Color$lighterGrey = A3($mdgriffith$elm_ui$Element$rgb255, 245, 245, 245);
-var $Orasund$elm_ui_framework$Framework$Color$light = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
- ]);
-var $mdgriffith$elm_ui$Internal$Model$FontSize = function (a) {
- return {$: 'FontSize', a: a};
-};
-var $mdgriffith$elm_ui$Internal$Flag$fontSize = $mdgriffith$elm_ui$Internal$Flag$flag(4);
-var $mdgriffith$elm_ui$Element$Font$size = function (i) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$fontSize,
- $mdgriffith$elm_ui$Internal$Model$FontSize(i));
-};
-var $Orasund$elm_ui_framework$Framework$layoutAttributes = _Utils_ap(
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Font$size(16),
- $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey)
- ]),
- $Orasund$elm_ui_framework$Framework$Color$light);
-var $mdgriffith$elm_ui$Internal$Model$FocusStyleOption = function (a) {
- return {$: 'FocusStyleOption', a: a};
-};
-var $mdgriffith$elm_ui$Element$focusStyle = $mdgriffith$elm_ui$Internal$Model$FocusStyleOption;
-var $elm$core$List$singleton = function (value) {
- return _List_fromArray(
- [value]);
-};
-var $Orasund$elm_ui_framework$Framework$Color$turquoise = A3($mdgriffith$elm_ui$Element$rgb255, 0, 209, 178);
-var $Orasund$elm_ui_framework$Framework$layoutOptions = $elm$core$List$singleton(
- $mdgriffith$elm_ui$Element$focusStyle(
- {
- backgroundColor: $elm$core$Maybe$Nothing,
- borderColor: $elm$core$Maybe$Just($Orasund$elm_ui_framework$Framework$Color$turquoise),
- shadow: $elm$core$Maybe$Just(
- {
- blur: 10,
- color: $Orasund$elm_ui_framework$Framework$Color$turquoise,
- offset: _Utils_Tuple2(0, 0),
- size: 1
- })
- }));
-var $mdgriffith$elm_ui$Internal$Style$classes = {above: 'a', active: 'atv', alignBottom: 'ab', alignCenterX: 'cx', alignCenterY: 'cy', alignContainerBottom: 'acb', alignContainerCenterX: 'accx', alignContainerCenterY: 'accy', alignContainerRight: 'acr', alignLeft: 'al', alignRight: 'ar', alignTop: 'at', alignedHorizontally: 'ah', alignedVertically: 'av', any: 's', behind: 'bh', below: 'b', bold: 'w7', borderDashed: 'bd', borderDotted: 'bdt', borderNone: 'bn', borderSolid: 'bs', capturePointerEvents: 'cpe', clip: 'cp', clipX: 'cpx', clipY: 'cpy', column: 'c', container: 'ctr', contentBottom: 'cb', contentCenterX: 'ccx', contentCenterY: 'ccy', contentLeft: 'cl', contentRight: 'cr', contentTop: 'ct', cursorPointer: 'cptr', cursorText: 'ctxt', focus: 'fcs', focusedWithin: 'focus-within', fullSize: 'fs', grid: 'g', hasBehind: 'hbh', heightContent: 'hc', heightExact: 'he', heightFill: 'hf', heightFillPortion: 'hfp', hover: 'hv', imageContainer: 'ic', inFront: 'fr', inputMultiline: 'iml', inputMultilineFiller: 'imlf', inputMultilineParent: 'imlp', inputMultilineWrapper: 'implw', inputText: 'it', italic: 'i', link: 'lnk', nearby: 'nb', noTextSelection: 'notxt', onLeft: 'ol', onRight: 'or', opaque: 'oq', overflowHidden: 'oh', page: 'pg', paragraph: 'p', passPointerEvents: 'ppe', root: 'ui', row: 'r', scrollbars: 'sb', scrollbarsX: 'sbx', scrollbarsY: 'sby', seButton: 'sbt', single: 'e', sizeByCapital: 'cap', spaceEvenly: 'sev', strike: 'sk', text: 't', textCenter: 'tc', textExtraBold: 'w8', textExtraLight: 'w2', textHeavy: 'w9', textJustify: 'tj', textJustifyAll: 'tja', textLeft: 'tl', textLight: 'w3', textMedium: 'w5', textNormalWeight: 'w4', textRight: 'tr', textSemiBold: 'w6', textThin: 'w1', textUnitalicized: 'tun', transition: 'ts', transparent: 'clr', underline: 'u', widthContent: 'wc', widthExact: 'we', widthFill: 'wf', widthFillPortion: 'wfp', wrapped: 'wrp'};
-var $mdgriffith$elm_ui$Internal$Model$Attr = function (a) {
- return {$: 'Attr', a: a};
-};
-var $elm$json$Json$Encode$string = _Json_wrap;
-var $elm$html$Html$Attributes$stringProperty = F2(
- function (key, string) {
- return A2(
- _VirtualDom_property,
- key,
- $elm$json$Json$Encode$string(string));
- });
-var $elm$html$Html$Attributes$class = $elm$html$Html$Attributes$stringProperty('className');
-var $mdgriffith$elm_ui$Internal$Model$htmlClass = function (cls) {
- return $mdgriffith$elm_ui$Internal$Model$Attr(
- $elm$html$Html$Attributes$class(cls));
-};
-var $mdgriffith$elm_ui$Internal$Model$OnlyDynamic = F2(
- function (a, b) {
- return {$: 'OnlyDynamic', a: a, b: b};
- });
-var $mdgriffith$elm_ui$Internal$Model$StaticRootAndDynamic = F2(
- function (a, b) {
- return {$: 'StaticRootAndDynamic', a: a, b: b};
- });
-var $mdgriffith$elm_ui$Internal$Model$Unkeyed = function (a) {
- return {$: 'Unkeyed', a: a};
-};
-var $mdgriffith$elm_ui$Internal$Model$AsEl = {$: 'AsEl'};
-var $mdgriffith$elm_ui$Internal$Model$asEl = $mdgriffith$elm_ui$Internal$Model$AsEl;
-var $mdgriffith$elm_ui$Internal$Model$Generic = {$: 'Generic'};
-var $mdgriffith$elm_ui$Internal$Model$div = $mdgriffith$elm_ui$Internal$Model$Generic;
-var $mdgriffith$elm_ui$Internal$Model$NoNearbyChildren = {$: 'NoNearbyChildren'};
-var $mdgriffith$elm_ui$Internal$Model$columnClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.column);
-var $mdgriffith$elm_ui$Internal$Model$gridClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.grid);
-var $mdgriffith$elm_ui$Internal$Model$pageClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.page);
-var $mdgriffith$elm_ui$Internal$Model$paragraphClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.paragraph);
-var $mdgriffith$elm_ui$Internal$Model$rowClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.row);
-var $mdgriffith$elm_ui$Internal$Model$singleClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.single);
-var $mdgriffith$elm_ui$Internal$Model$contextClasses = function (context) {
- switch (context.$) {
- case 'AsRow':
- return $mdgriffith$elm_ui$Internal$Model$rowClass;
- case 'AsColumn':
- return $mdgriffith$elm_ui$Internal$Model$columnClass;
- case 'AsEl':
- return $mdgriffith$elm_ui$Internal$Model$singleClass;
- case 'AsGrid':
- return $mdgriffith$elm_ui$Internal$Model$gridClass;
- case 'AsParagraph':
- return $mdgriffith$elm_ui$Internal$Model$paragraphClass;
- default:
- return $mdgriffith$elm_ui$Internal$Model$pageClass;
- }
-};
-var $mdgriffith$elm_ui$Internal$Model$Keyed = function (a) {
- return {$: 'Keyed', a: a};
-};
-var $mdgriffith$elm_ui$Internal$Model$NoStyleSheet = {$: 'NoStyleSheet'};
-var $mdgriffith$elm_ui$Internal$Model$Styled = function (a) {
- return {$: 'Styled', a: a};
-};
-var $mdgriffith$elm_ui$Internal$Model$Unstyled = function (a) {
- return {$: 'Unstyled', a: a};
-};
-var $mdgriffith$elm_ui$Internal$Model$addChildren = F2(
- function (existing, nearbyChildren) {
- switch (nearbyChildren.$) {
- case 'NoNearbyChildren':
- return existing;
- case 'ChildrenBehind':
- var behind = nearbyChildren.a;
- return _Utils_ap(behind, existing);
- case 'ChildrenInFront':
- var inFront = nearbyChildren.a;
- return _Utils_ap(existing, inFront);
- default:
- var behind = nearbyChildren.a;
- var inFront = nearbyChildren.b;
- return _Utils_ap(
- behind,
- _Utils_ap(existing, inFront));
+var $elm$core$String$toInt = _String_toInt;
+var $elm$url$Url$chompBeforePath = F5(
+ function (protocol, path, params, frag, str) {
+ if ($elm$core$String$isEmpty(str) || A2($elm$core$String$contains, '@', str)) {
+ return $elm$core$Maybe$Nothing;
+ } else {
+ var _v0 = A2($elm$core$String$indexes, ':', str);
+ if (!_v0.b) {
+ return $elm$core$Maybe$Just(
+ A6($elm$url$Url$Url, protocol, str, $elm$core$Maybe$Nothing, path, params, frag));
+ } else {
+ if (!_v0.b.b) {
+ var i = _v0.a;
+ var _v1 = $elm$core$String$toInt(
+ A2($elm$core$String$dropLeft, i + 1, str));
+ if (_v1.$ === 'Nothing') {
+ return $elm$core$Maybe$Nothing;
+ } else {
+ var port_ = _v1;
+ return $elm$core$Maybe$Just(
+ A6(
+ $elm$url$Url$Url,
+ protocol,
+ A2($elm$core$String$left, i, str),
+ port_,
+ path,
+ params,
+ frag));
+ }
+ } else {
+ return $elm$core$Maybe$Nothing;
+ }
+ }
}
});
+var $elm$url$Url$chompBeforeQuery = F4(
+ function (protocol, params, frag, str) {
+ if ($elm$core$String$isEmpty(str)) {
+ return $elm$core$Maybe$Nothing;
+ } else {
+ var _v0 = A2($elm$core$String$indexes, '/', str);
+ if (!_v0.b) {
+ return A5($elm$url$Url$chompBeforePath, protocol, '/', params, frag, str);
+ } else {
+ var i = _v0.a;
+ return A5(
+ $elm$url$Url$chompBeforePath,
+ protocol,
+ A2($elm$core$String$dropLeft, i, str),
+ params,
+ frag,
+ A2($elm$core$String$left, i, str));
+ }
+ }
+ });
+var $elm$url$Url$chompBeforeFragment = F3(
+ function (protocol, frag, str) {
+ if ($elm$core$String$isEmpty(str)) {
+ return $elm$core$Maybe$Nothing;
+ } else {
+ var _v0 = A2($elm$core$String$indexes, '?', str);
+ if (!_v0.b) {
+ return A4($elm$url$Url$chompBeforeQuery, protocol, $elm$core$Maybe$Nothing, frag, str);
+ } else {
+ var i = _v0.a;
+ return A4(
+ $elm$url$Url$chompBeforeQuery,
+ protocol,
+ $elm$core$Maybe$Just(
+ A2($elm$core$String$dropLeft, i + 1, str)),
+ frag,
+ A2($elm$core$String$left, i, str));
+ }
+ }
+ });
+var $elm$url$Url$chompAfterProtocol = F2(
+ function (protocol, str) {
+ if ($elm$core$String$isEmpty(str)) {
+ return $elm$core$Maybe$Nothing;
+ } else {
+ var _v0 = A2($elm$core$String$indexes, '#', str);
+ if (!_v0.b) {
+ return A3($elm$url$Url$chompBeforeFragment, protocol, $elm$core$Maybe$Nothing, str);
+ } else {
+ var i = _v0.a;
+ return A3(
+ $elm$url$Url$chompBeforeFragment,
+ protocol,
+ $elm$core$Maybe$Just(
+ A2($elm$core$String$dropLeft, i + 1, str)),
+ A2($elm$core$String$left, i, str));
+ }
+ }
+ });
+var $elm$core$String$startsWith = _String_startsWith;
+var $elm$url$Url$fromString = function (str) {
+ return A2($elm$core$String$startsWith, 'http://', str) ? A2(
+ $elm$url$Url$chompAfterProtocol,
+ $elm$url$Url$Http,
+ A2($elm$core$String$dropLeft, 7, str)) : (A2($elm$core$String$startsWith, 'https://', str) ? A2(
+ $elm$url$Url$chompAfterProtocol,
+ $elm$url$Url$Https,
+ A2($elm$core$String$dropLeft, 8, str)) : $elm$core$Maybe$Nothing);
+};
+var $elm$core$Basics$never = function (_v0) {
+ never:
+ while (true) {
+ var nvr = _v0.a;
+ var $temp$_v0 = nvr;
+ _v0 = $temp$_v0;
+ continue never;
+ }
+};
+var $elm$core$Task$Perform = function (a) {
+ return {$: 'Perform', a: a};
+};
+var $elm$core$Task$succeed = _Scheduler_succeed;
+var $elm$core$Task$init = $elm$core$Task$succeed(_Utils_Tuple0);
var $elm$core$List$foldrHelper = F4(
function (fn, acc, ctr, ls) {
if (!ls.b) {
@@ -4734,6 +5166,1725 @@ var $elm$core$List$map = F2(
_List_Nil,
xs);
});
+var $elm$core$Task$andThen = _Scheduler_andThen;
+var $elm$core$Task$map = F2(
+ function (func, taskA) {
+ return A2(
+ $elm$core$Task$andThen,
+ function (a) {
+ return $elm$core$Task$succeed(
+ func(a));
+ },
+ taskA);
+ });
+var $elm$core$Task$map2 = F3(
+ function (func, taskA, taskB) {
+ return A2(
+ $elm$core$Task$andThen,
+ function (a) {
+ return A2(
+ $elm$core$Task$andThen,
+ function (b) {
+ return $elm$core$Task$succeed(
+ A2(func, a, b));
+ },
+ taskB);
+ },
+ taskA);
+ });
+var $elm$core$Task$sequence = function (tasks) {
+ return A3(
+ $elm$core$List$foldr,
+ $elm$core$Task$map2($elm$core$List$cons),
+ $elm$core$Task$succeed(_List_Nil),
+ tasks);
+};
+var $elm$core$Platform$sendToApp = _Platform_sendToApp;
+var $elm$core$Task$spawnCmd = F2(
+ function (router, _v0) {
+ var task = _v0.a;
+ return _Scheduler_spawn(
+ A2(
+ $elm$core$Task$andThen,
+ $elm$core$Platform$sendToApp(router),
+ task));
+ });
+var $elm$core$Task$onEffects = F3(
+ function (router, commands, state) {
+ return A2(
+ $elm$core$Task$map,
+ function (_v0) {
+ return _Utils_Tuple0;
+ },
+ $elm$core$Task$sequence(
+ A2(
+ $elm$core$List$map,
+ $elm$core$Task$spawnCmd(router),
+ commands)));
+ });
+var $elm$core$Task$onSelfMsg = F3(
+ function (_v0, _v1, _v2) {
+ return $elm$core$Task$succeed(_Utils_Tuple0);
+ });
+var $elm$core$Task$cmdMap = F2(
+ function (tagger, _v0) {
+ var task = _v0.a;
+ return $elm$core$Task$Perform(
+ A2($elm$core$Task$map, tagger, task));
+ });
+_Platform_effectManagers['Task'] = _Platform_createManager($elm$core$Task$init, $elm$core$Task$onEffects, $elm$core$Task$onSelfMsg, $elm$core$Task$cmdMap);
+var $elm$core$Task$command = _Platform_leaf('Task');
+var $elm$core$Task$perform = F2(
+ function (toMessage, task) {
+ return $elm$core$Task$command(
+ $elm$core$Task$Perform(
+ A2($elm$core$Task$map, toMessage, task)));
+ });
+var $elm$browser$Browser$element = _Browser_element;
+var $author$project$Example$ComponentViews = {$: 'ComponentViews'};
+var $author$project$Example$ReusableViews = {$: 'ReusableViews'};
+var $author$project$Example$ScrollingNavSpecific = function (a) {
+ return {$: 'ScrollingNavSpecific', a: a};
+};
+var $author$project$Example$StatelessViews = {$: 'StatelessViews'};
+var $elm$core$Set$Set_elm_builtin = function (a) {
+ return {$: 'Set_elm_builtin', a: a};
+};
+var $elm$core$Dict$RBEmpty_elm_builtin = {$: 'RBEmpty_elm_builtin'};
+var $elm$core$Dict$empty = $elm$core$Dict$RBEmpty_elm_builtin;
+var $elm$core$Set$empty = $elm$core$Set$Set_elm_builtin($elm$core$Dict$empty);
+var $elm$core$Dict$Black = {$: 'Black'};
+var $elm$core$Dict$RBNode_elm_builtin = F5(
+ function (a, b, c, d, e) {
+ return {$: 'RBNode_elm_builtin', a: a, b: b, c: c, d: d, e: e};
+ });
+var $elm$core$Dict$Red = {$: 'Red'};
+var $elm$core$Dict$balance = F5(
+ function (color, key, value, left, right) {
+ if ((right.$ === 'RBNode_elm_builtin') && (right.a.$ === 'Red')) {
+ var _v1 = right.a;
+ var rK = right.b;
+ var rV = right.c;
+ var rLeft = right.d;
+ var rRight = right.e;
+ if ((left.$ === 'RBNode_elm_builtin') && (left.a.$ === 'Red')) {
+ var _v3 = left.a;
+ var lK = left.b;
+ var lV = left.c;
+ var lLeft = left.d;
+ var lRight = left.e;
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Red,
+ key,
+ value,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, lK, lV, lLeft, lRight),
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, rK, rV, rLeft, rRight));
+ } else {
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ color,
+ rK,
+ rV,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, key, value, left, rLeft),
+ rRight);
+ }
+ } else {
+ if ((((left.$ === 'RBNode_elm_builtin') && (left.a.$ === 'Red')) && (left.d.$ === 'RBNode_elm_builtin')) && (left.d.a.$ === 'Red')) {
+ var _v5 = left.a;
+ var lK = left.b;
+ var lV = left.c;
+ var _v6 = left.d;
+ var _v7 = _v6.a;
+ var llK = _v6.b;
+ var llV = _v6.c;
+ var llLeft = _v6.d;
+ var llRight = _v6.e;
+ var lRight = left.e;
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Red,
+ lK,
+ lV,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, llK, llV, llLeft, llRight),
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, key, value, lRight, right));
+ } else {
+ return A5($elm$core$Dict$RBNode_elm_builtin, color, key, value, left, right);
+ }
+ }
+ });
+var $elm$core$Basics$compare = _Utils_compare;
+var $elm$core$Dict$insertHelp = F3(
+ function (key, value, dict) {
+ if (dict.$ === 'RBEmpty_elm_builtin') {
+ return A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, key, value, $elm$core$Dict$RBEmpty_elm_builtin, $elm$core$Dict$RBEmpty_elm_builtin);
+ } else {
+ var nColor = dict.a;
+ var nKey = dict.b;
+ var nValue = dict.c;
+ var nLeft = dict.d;
+ var nRight = dict.e;
+ var _v1 = A2($elm$core$Basics$compare, key, nKey);
+ switch (_v1.$) {
+ case 'LT':
+ return A5(
+ $elm$core$Dict$balance,
+ nColor,
+ nKey,
+ nValue,
+ A3($elm$core$Dict$insertHelp, key, value, nLeft),
+ nRight);
+ case 'EQ':
+ return A5($elm$core$Dict$RBNode_elm_builtin, nColor, nKey, value, nLeft, nRight);
+ default:
+ return A5(
+ $elm$core$Dict$balance,
+ nColor,
+ nKey,
+ nValue,
+ nLeft,
+ A3($elm$core$Dict$insertHelp, key, value, nRight));
+ }
+ }
+ });
+var $elm$core$Dict$insert = F3(
+ function (key, value, dict) {
+ var _v0 = A3($elm$core$Dict$insertHelp, key, value, dict);
+ if ((_v0.$ === 'RBNode_elm_builtin') && (_v0.a.$ === 'Red')) {
+ var _v1 = _v0.a;
+ var k = _v0.b;
+ var v = _v0.c;
+ var l = _v0.d;
+ var r = _v0.e;
+ return A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, k, v, l, r);
+ } else {
+ var x = _v0;
+ return x;
+ }
+ });
+var $elm$core$Set$insert = F2(
+ function (key, _v0) {
+ var dict = _v0.a;
+ return $elm$core$Set$Set_elm_builtin(
+ A3($elm$core$Dict$insert, key, _Utils_Tuple0, dict));
+ });
+var $elm$core$Set$fromList = function (list) {
+ return A3($elm$core$List$foldl, $elm$core$Set$insert, $elm$core$Set$empty, list);
+};
+var $author$project$Widget$FilterSelect$init = function (options) {
+ return {options: options, raw: '', selected: $elm$core$Maybe$Nothing};
+};
+var $author$project$Widget$ValidatedInput$Model = function (a) {
+ return {$: 'Model', a: a};
+};
+var $author$project$Widget$ValidatedInput$init = function (_v0) {
+ var validator = _v0.validator;
+ var toString = _v0.toString;
+ var value = _v0.value;
+ return $author$project$Widget$ValidatedInput$Model(
+ {err: $elm$core$Maybe$Nothing, raw: $elm$core$Maybe$Nothing, toString: toString, validator: validator, value: value});
+};
+var $author$project$Component$init = {
+ filterSelect: $author$project$Widget$FilterSelect$init(
+ $elm$core$Set$fromList(
+ _List_fromArray(
+ ['Apple', 'Kiwi', 'Strawberry', 'Pineapple', 'Mango', 'Grapes', 'Watermelon', 'Orange', 'Lemon', 'Blueberry', 'Grapefruit', 'Coconut', 'Cherry', 'Banana']))),
+ validatedInput: $author$project$Widget$ValidatedInput$init(
+ {
+ toString: function (_v0) {
+ var first = _v0.a;
+ var second = _v0.b;
+ return first + (' ' + second);
+ },
+ validator: function (string) {
+ var _v1 = A2($elm$core$String$split, ' ', string);
+ if ((_v1.b && _v1.b.b) && (!_v1.b.b.b)) {
+ var first = _v1.a;
+ var _v2 = _v1.b;
+ var second = _v2.a;
+ return $elm$core$Result$Ok(
+ _Utils_Tuple2(first, second));
+ } else {
+ return $elm$core$Result$Err(_Utils_Tuple0);
+ }
+ },
+ value: _Utils_Tuple2('John', 'Doe')
+ })
+};
+var $author$project$Widget$SortTable$sortBy = $elm$core$Basics$identity;
+var $author$project$Reusable$init = $author$project$Widget$SortTable$sortBy(
+ {asc: true, title: 'Name'});
+var $author$project$Stateless$init = {carousel: 0, isCollapsed: false, multiSelected: $elm$core$Set$empty, selected: $elm$core$Maybe$Nothing};
+var $elm_community$intdict$IntDict$Empty = {$: 'Empty'};
+var $elm_community$intdict$IntDict$empty = $elm_community$intdict$IntDict$Empty;
+var $author$project$Widget$ScrollingNav$GotHeaderPos = F2(
+ function (a, b) {
+ return {$: 'GotHeaderPos', a: a, b: b};
+ });
+var $elm$core$Basics$composeL = F3(
+ function (g, f, x) {
+ return g(
+ f(x));
+ });
+var $elm$core$Task$onError = _Scheduler_onError;
+var $elm$core$Task$attempt = F2(
+ function (resultToMessage, task) {
+ return $elm$core$Task$command(
+ $elm$core$Task$Perform(
+ A2(
+ $elm$core$Task$onError,
+ A2(
+ $elm$core$Basics$composeL,
+ A2($elm$core$Basics$composeL, $elm$core$Task$succeed, resultToMessage),
+ $elm$core$Result$Err),
+ A2(
+ $elm$core$Task$andThen,
+ A2(
+ $elm$core$Basics$composeL,
+ A2($elm$core$Basics$composeL, $elm$core$Task$succeed, resultToMessage),
+ $elm$core$Result$Ok),
+ task))));
+ });
+var $elm$core$Platform$Cmd$batch = _Platform_batch;
+var $elm$core$Basics$composeR = F3(
+ function (f, g, x) {
+ return g(
+ f(x));
+ });
+var $elm$browser$Browser$Dom$getElement = _Browser_getElement;
+var $elm$core$Basics$round = _Basics_round;
+var $author$project$Widget$ScrollingNav$syncPositions = function (_v0) {
+ var labels = _v0.labels;
+ var arrangement = _v0.arrangement;
+ return $elm$core$Platform$Cmd$batch(
+ A2(
+ $elm$core$List$map,
+ function (label) {
+ return A2(
+ $elm$core$Task$attempt,
+ $author$project$Widget$ScrollingNav$GotHeaderPos(label),
+ A2(
+ $elm$core$Task$map,
+ A2(
+ $elm$core$Basics$composeR,
+ function ($) {
+ return $.element;
+ },
+ A2(
+ $elm$core$Basics$composeR,
+ function ($) {
+ return $.y;
+ },
+ $elm$core$Basics$round)),
+ $elm$browser$Browser$Dom$getElement(
+ labels(label))));
+ },
+ arrangement));
+};
+var $author$project$Widget$ScrollingNav$init = function (_v0) {
+ var labels = _v0.labels;
+ var arrangement = _v0.arrangement;
+ return function (a) {
+ return _Utils_Tuple2(
+ a,
+ $author$project$Widget$ScrollingNav$syncPositions(a));
+ }(
+ {arrangement: arrangement, labels: labels, positions: $elm_community$intdict$IntDict$empty, scrollPos: 0});
+};
+var $turboMaCk$queue$Queue$Queue = F2(
+ function (a, b) {
+ return {$: 'Queue', a: a, b: b};
+ });
+var $turboMaCk$queue$Queue$empty = A2($turboMaCk$queue$Queue$Queue, _List_Nil, _List_Nil);
+var $author$project$Widget$Snackbar$init = {current: $elm$core$Maybe$Nothing, queue: $turboMaCk$queue$Queue$empty};
+var $elm$core$Platform$Cmd$map = _Platform_map;
+var $author$project$Example$init = function (_v0) {
+ var _v1 = $author$project$Widget$ScrollingNav$init(
+ {
+ arrangement: _List_fromArray(
+ [$author$project$Example$StatelessViews, $author$project$Example$ReusableViews, $author$project$Example$ComponentViews]),
+ labels: function (section) {
+ switch (section.$) {
+ case 'ComponentViews':
+ return 'Component Views';
+ case 'ReusableViews':
+ return 'Reusable Views';
+ default:
+ return 'Stateless Views';
+ }
+ }
+ });
+ var scrollingNav = _v1.a;
+ var cmd = _v1.b;
+ return _Utils_Tuple2(
+ {component: $author$project$Component$init, displayDialog: false, reusable: $author$project$Reusable$init, scrollingNav: scrollingNav, snackbar: $author$project$Widget$Snackbar$init, stateless: $author$project$Stateless$init},
+ A2($elm$core$Platform$Cmd$map, $author$project$Example$ScrollingNavSpecific, cmd));
+};
+var $author$project$Example$TimePassed = function (a) {
+ return {$: 'TimePassed', a: a};
+};
+var $elm$core$Basics$always = F2(
+ function (a, _v0) {
+ return a;
+ });
+var $elm$core$Platform$Sub$batch = _Platform_batch;
+var $elm$time$Time$Every = F2(
+ function (a, b) {
+ return {$: 'Every', a: a, b: b};
+ });
+var $elm$time$Time$State = F2(
+ function (taggers, processes) {
+ return {processes: processes, taggers: taggers};
+ });
+var $elm$time$Time$init = $elm$core$Task$succeed(
+ A2($elm$time$Time$State, $elm$core$Dict$empty, $elm$core$Dict$empty));
+var $elm$core$Dict$get = F2(
+ function (targetKey, dict) {
+ get:
+ while (true) {
+ if (dict.$ === 'RBEmpty_elm_builtin') {
+ return $elm$core$Maybe$Nothing;
+ } else {
+ var key = dict.b;
+ var value = dict.c;
+ var left = dict.d;
+ var right = dict.e;
+ var _v1 = A2($elm$core$Basics$compare, targetKey, key);
+ switch (_v1.$) {
+ case 'LT':
+ var $temp$targetKey = targetKey,
+ $temp$dict = left;
+ targetKey = $temp$targetKey;
+ dict = $temp$dict;
+ continue get;
+ case 'EQ':
+ return $elm$core$Maybe$Just(value);
+ default:
+ var $temp$targetKey = targetKey,
+ $temp$dict = right;
+ targetKey = $temp$targetKey;
+ dict = $temp$dict;
+ continue get;
+ }
+ }
+ }
+ });
+var $elm$time$Time$addMySub = F2(
+ function (_v0, state) {
+ var interval = _v0.a;
+ var tagger = _v0.b;
+ var _v1 = A2($elm$core$Dict$get, interval, state);
+ if (_v1.$ === 'Nothing') {
+ return A3(
+ $elm$core$Dict$insert,
+ interval,
+ _List_fromArray(
+ [tagger]),
+ state);
+ } else {
+ var taggers = _v1.a;
+ return A3(
+ $elm$core$Dict$insert,
+ interval,
+ A2($elm$core$List$cons, tagger, taggers),
+ state);
+ }
+ });
+var $elm$core$Process$kill = _Scheduler_kill;
+var $elm$core$Dict$foldl = F3(
+ function (func, acc, dict) {
+ foldl:
+ while (true) {
+ if (dict.$ === 'RBEmpty_elm_builtin') {
+ return acc;
+ } else {
+ var key = dict.b;
+ var value = dict.c;
+ var left = dict.d;
+ var right = dict.e;
+ var $temp$func = func,
+ $temp$acc = A3(
+ func,
+ key,
+ value,
+ A3($elm$core$Dict$foldl, func, acc, left)),
+ $temp$dict = right;
+ func = $temp$func;
+ acc = $temp$acc;
+ dict = $temp$dict;
+ continue foldl;
+ }
+ }
+ });
+var $elm$core$Dict$merge = F6(
+ function (leftStep, bothStep, rightStep, leftDict, rightDict, initialResult) {
+ var stepState = F3(
+ function (rKey, rValue, _v0) {
+ stepState:
+ while (true) {
+ var list = _v0.a;
+ var result = _v0.b;
+ if (!list.b) {
+ return _Utils_Tuple2(
+ list,
+ A3(rightStep, rKey, rValue, result));
+ } else {
+ var _v2 = list.a;
+ var lKey = _v2.a;
+ var lValue = _v2.b;
+ var rest = list.b;
+ if (_Utils_cmp(lKey, rKey) < 0) {
+ var $temp$rKey = rKey,
+ $temp$rValue = rValue,
+ $temp$_v0 = _Utils_Tuple2(
+ rest,
+ A3(leftStep, lKey, lValue, result));
+ rKey = $temp$rKey;
+ rValue = $temp$rValue;
+ _v0 = $temp$_v0;
+ continue stepState;
+ } else {
+ if (_Utils_cmp(lKey, rKey) > 0) {
+ return _Utils_Tuple2(
+ list,
+ A3(rightStep, rKey, rValue, result));
+ } else {
+ return _Utils_Tuple2(
+ rest,
+ A4(bothStep, lKey, lValue, rValue, result));
+ }
+ }
+ }
+ }
+ });
+ var _v3 = A3(
+ $elm$core$Dict$foldl,
+ stepState,
+ _Utils_Tuple2(
+ $elm$core$Dict$toList(leftDict),
+ initialResult),
+ rightDict);
+ var leftovers = _v3.a;
+ var intermediateResult = _v3.b;
+ return A3(
+ $elm$core$List$foldl,
+ F2(
+ function (_v4, result) {
+ var k = _v4.a;
+ var v = _v4.b;
+ return A3(leftStep, k, v, result);
+ }),
+ intermediateResult,
+ leftovers);
+ });
+var $elm$core$Platform$sendToSelf = _Platform_sendToSelf;
+var $elm$time$Time$Name = function (a) {
+ return {$: 'Name', a: a};
+};
+var $elm$time$Time$Offset = function (a) {
+ return {$: 'Offset', a: a};
+};
+var $elm$time$Time$Zone = F2(
+ function (a, b) {
+ return {$: 'Zone', a: a, b: b};
+ });
+var $elm$time$Time$customZone = $elm$time$Time$Zone;
+var $elm$time$Time$setInterval = _Time_setInterval;
+var $elm$core$Process$spawn = _Scheduler_spawn;
+var $elm$time$Time$spawnHelp = F3(
+ function (router, intervals, processes) {
+ if (!intervals.b) {
+ return $elm$core$Task$succeed(processes);
+ } else {
+ var interval = intervals.a;
+ var rest = intervals.b;
+ var spawnTimer = $elm$core$Process$spawn(
+ A2(
+ $elm$time$Time$setInterval,
+ interval,
+ A2($elm$core$Platform$sendToSelf, router, interval)));
+ var spawnRest = function (id) {
+ return A3(
+ $elm$time$Time$spawnHelp,
+ router,
+ rest,
+ A3($elm$core$Dict$insert, interval, id, processes));
+ };
+ return A2($elm$core$Task$andThen, spawnRest, spawnTimer);
+ }
+ });
+var $elm$time$Time$onEffects = F3(
+ function (router, subs, _v0) {
+ var processes = _v0.processes;
+ var rightStep = F3(
+ function (_v6, id, _v7) {
+ var spawns = _v7.a;
+ var existing = _v7.b;
+ var kills = _v7.c;
+ return _Utils_Tuple3(
+ spawns,
+ existing,
+ A2(
+ $elm$core$Task$andThen,
+ function (_v5) {
+ return kills;
+ },
+ $elm$core$Process$kill(id)));
+ });
+ var newTaggers = A3($elm$core$List$foldl, $elm$time$Time$addMySub, $elm$core$Dict$empty, subs);
+ var leftStep = F3(
+ function (interval, taggers, _v4) {
+ var spawns = _v4.a;
+ var existing = _v4.b;
+ var kills = _v4.c;
+ return _Utils_Tuple3(
+ A2($elm$core$List$cons, interval, spawns),
+ existing,
+ kills);
+ });
+ var bothStep = F4(
+ function (interval, taggers, id, _v3) {
+ var spawns = _v3.a;
+ var existing = _v3.b;
+ var kills = _v3.c;
+ return _Utils_Tuple3(
+ spawns,
+ A3($elm$core$Dict$insert, interval, id, existing),
+ kills);
+ });
+ var _v1 = A6(
+ $elm$core$Dict$merge,
+ leftStep,
+ bothStep,
+ rightStep,
+ newTaggers,
+ processes,
+ _Utils_Tuple3(
+ _List_Nil,
+ $elm$core$Dict$empty,
+ $elm$core$Task$succeed(_Utils_Tuple0)));
+ var spawnList = _v1.a;
+ var existingDict = _v1.b;
+ var killTask = _v1.c;
+ return A2(
+ $elm$core$Task$andThen,
+ function (newProcesses) {
+ return $elm$core$Task$succeed(
+ A2($elm$time$Time$State, newTaggers, newProcesses));
+ },
+ A2(
+ $elm$core$Task$andThen,
+ function (_v2) {
+ return A3($elm$time$Time$spawnHelp, router, spawnList, existingDict);
+ },
+ killTask));
+ });
+var $elm$time$Time$Posix = function (a) {
+ return {$: 'Posix', a: a};
+};
+var $elm$time$Time$millisToPosix = $elm$time$Time$Posix;
+var $elm$time$Time$now = _Time_now($elm$time$Time$millisToPosix);
+var $elm$time$Time$onSelfMsg = F3(
+ function (router, interval, state) {
+ var _v0 = A2($elm$core$Dict$get, interval, state.taggers);
+ if (_v0.$ === 'Nothing') {
+ return $elm$core$Task$succeed(state);
+ } else {
+ var taggers = _v0.a;
+ var tellTaggers = function (time) {
+ return $elm$core$Task$sequence(
+ A2(
+ $elm$core$List$map,
+ function (tagger) {
+ return A2(
+ $elm$core$Platform$sendToApp,
+ router,
+ tagger(time));
+ },
+ taggers));
+ };
+ return A2(
+ $elm$core$Task$andThen,
+ function (_v1) {
+ return $elm$core$Task$succeed(state);
+ },
+ A2($elm$core$Task$andThen, tellTaggers, $elm$time$Time$now));
+ }
+ });
+var $elm$time$Time$subMap = F2(
+ function (f, _v0) {
+ var interval = _v0.a;
+ var tagger = _v0.b;
+ return A2(
+ $elm$time$Time$Every,
+ interval,
+ A2($elm$core$Basics$composeL, f, tagger));
+ });
+_Platform_effectManagers['Time'] = _Platform_createManager($elm$time$Time$init, $elm$time$Time$onEffects, $elm$time$Time$onSelfMsg, 0, $elm$time$Time$subMap);
+var $elm$time$Time$subscription = _Platform_leaf('Time');
+var $elm$time$Time$every = F2(
+ function (interval, tagger) {
+ return $elm$time$Time$subscription(
+ A2($elm$time$Time$Every, interval, tagger));
+ });
+var $elm$core$Platform$Sub$map = _Platform_map;
+var $author$project$Widget$ScrollingNav$TimePassed = {$: 'TimePassed'};
+var $author$project$Widget$ScrollingNav$subscriptions = A2(
+ $elm$time$Time$every,
+ 1000,
+ $elm$core$Basics$always($author$project$Widget$ScrollingNav$TimePassed));
+var $author$project$Example$subscriptions = function (model) {
+ return $elm$core$Platform$Sub$batch(
+ _List_fromArray(
+ [
+ A2($elm$core$Platform$Sub$map, $author$project$Example$ScrollingNavSpecific, $author$project$Widget$ScrollingNav$subscriptions),
+ A2(
+ $elm$time$Time$every,
+ 500,
+ $elm$core$Basics$always(
+ $author$project$Example$TimePassed(500)))
+ ]));
+};
+var $author$project$Example$ComponentSpecific = function (a) {
+ return {$: 'ComponentSpecific', a: a};
+};
+var $author$project$Example$StatelessSpecific = function (a) {
+ return {$: 'StatelessSpecific', a: a};
+};
+var $turboMaCk$queue$Queue$queue = F2(
+ function (fl, rl) {
+ if (!fl.b) {
+ return A2(
+ $turboMaCk$queue$Queue$Queue,
+ $elm$core$List$reverse(rl),
+ _List_Nil);
+ } else {
+ return A2($turboMaCk$queue$Queue$Queue, fl, rl);
+ }
+ });
+var $turboMaCk$queue$Queue$enqueue = F2(
+ function (a, _v0) {
+ var fl = _v0.a;
+ var rl = _v0.b;
+ return A2(
+ $turboMaCk$queue$Queue$queue,
+ fl,
+ A2($elm$core$List$cons, a, rl));
+ });
+var $author$project$Widget$Snackbar$insertFor = F3(
+ function (removeIn, a, model) {
+ var _v0 = model.current;
+ if (_v0.$ === 'Nothing') {
+ return _Utils_update(
+ model,
+ {
+ current: $elm$core$Maybe$Just(
+ _Utils_Tuple2(a, removeIn))
+ });
+ } else {
+ return _Utils_update(
+ model,
+ {
+ queue: A2(
+ $turboMaCk$queue$Queue$enqueue,
+ _Utils_Tuple2(a, removeIn),
+ model.queue)
+ });
+ }
+ });
+var $author$project$Widget$Snackbar$insert = $author$project$Widget$Snackbar$insertFor(10000);
+var $elm$core$Tuple$mapBoth = F3(
+ function (funcA, funcB, _v0) {
+ var x = _v0.a;
+ var y = _v0.b;
+ return _Utils_Tuple2(
+ funcA(x),
+ funcB(y));
+ });
+var $elm$core$Platform$Cmd$none = $elm$core$Platform$Cmd$batch(_List_Nil);
+var $turboMaCk$queue$Queue$dequeue = function (_v0) {
+ var fl = _v0.a;
+ var rl = _v0.b;
+ if (!fl.b) {
+ return _Utils_Tuple2(
+ $elm$core$Maybe$Nothing,
+ A2($turboMaCk$queue$Queue$Queue, _List_Nil, _List_Nil));
+ } else {
+ var head = fl.a;
+ var tail = fl.b;
+ return _Utils_Tuple2(
+ $elm$core$Maybe$Just(head),
+ A2($turboMaCk$queue$Queue$queue, tail, rl));
+ }
+};
+var $author$project$Widget$Snackbar$dismiss = function (model) {
+ return _Utils_update(
+ model,
+ {current: $elm$core$Maybe$Nothing});
+};
+var $elm$core$Maybe$map = F2(
+ function (f, maybe) {
+ if (maybe.$ === 'Just') {
+ var value = maybe.a;
+ return $elm$core$Maybe$Just(
+ f(value));
+ } else {
+ return $elm$core$Maybe$Nothing;
+ }
+ });
+var $elm$core$Tuple$mapSecond = F2(
+ function (func, _v0) {
+ var x = _v0.a;
+ var y = _v0.b;
+ return _Utils_Tuple2(
+ x,
+ func(y));
+ });
+var $elm$core$Basics$negate = function (n) {
+ return -n;
+};
+var $author$project$Widget$Snackbar$timePassed = F2(
+ function (ms, model) {
+ var _v0 = model.current;
+ if (_v0.$ === 'Nothing') {
+ var _v1 = $turboMaCk$queue$Queue$dequeue(model.queue);
+ var c = _v1.a;
+ var queue = _v1.b;
+ return _Utils_update(
+ model,
+ {current: c, queue: queue});
+ } else {
+ var _v2 = _v0.a;
+ var removeIn = _v2.b;
+ return (_Utils_cmp(removeIn, ms) < 1) ? $author$project$Widget$Snackbar$dismiss(model) : _Utils_update(
+ model,
+ {
+ current: A2(
+ $elm$core$Maybe$map,
+ $elm$core$Tuple$mapSecond(
+ $elm$core$Basics$add(-ms)),
+ model.current)
+ });
+ }
+ });
+var $author$project$Widget$FilterSelect$update = F2(
+ function (msg, model) {
+ if (msg.$ === 'ChangedRaw') {
+ var string = msg.a;
+ return _Utils_update(
+ model,
+ {raw: string});
+ } else {
+ var maybe = msg.a;
+ return function () {
+ if (maybe.$ === 'Just') {
+ var string = maybe.a;
+ return function (m) {
+ return _Utils_update(
+ m,
+ {raw: string});
+ };
+ } else {
+ return $elm$core$Basics$identity;
+ }
+ }()(
+ _Utils_update(
+ model,
+ {selected: maybe}));
+ }
+ });
+var $author$project$Widget$ValidatedInput$update = F2(
+ function (msg, _v0) {
+ var model = _v0.a;
+ switch (msg.$) {
+ case 'StartEditing':
+ return $author$project$Widget$ValidatedInput$Model(
+ _Utils_update(
+ model,
+ {
+ raw: $elm$core$Maybe$Just(
+ model.toString(model.value))
+ }));
+ case 'ChangedRaw':
+ var string = msg.a;
+ return $author$project$Widget$ValidatedInput$Model(
+ _Utils_update(
+ model,
+ {
+ err: $elm$core$Maybe$Nothing,
+ raw: $elm$core$Maybe$Just(string)
+ }));
+ default:
+ var _v2 = model.raw;
+ if (_v2.$ === 'Just') {
+ var string = _v2.a;
+ var _v3 = model.validator(string);
+ if (_v3.$ === 'Ok') {
+ var value = _v3.a;
+ return $author$project$Widget$ValidatedInput$Model(
+ _Utils_update(
+ model,
+ {err: $elm$core$Maybe$Nothing, raw: $elm$core$Maybe$Nothing, value: value}));
+ } else {
+ var err = _v3.a;
+ return $author$project$Widget$ValidatedInput$Model(
+ _Utils_update(
+ model,
+ {
+ err: $elm$core$Maybe$Just(err),
+ raw: $elm$core$Maybe$Nothing
+ }));
+ }
+ } else {
+ return $author$project$Widget$ValidatedInput$Model(model);
+ }
+ }
+ });
+var $author$project$Component$update = F2(
+ function (msg, model) {
+ if (msg.$ === 'FilterSelectSpecific') {
+ var m = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {
+ filterSelect: A2($author$project$Widget$FilterSelect$update, m, model.filterSelect)
+ }),
+ $elm$core$Platform$Cmd$none);
+ } else {
+ var m = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {
+ validatedInput: A2($author$project$Widget$ValidatedInput$update, m, model.validatedInput)
+ }),
+ $elm$core$Platform$Cmd$none);
+ }
+ });
+var $author$project$Reusable$update = F2(
+ function (msg, model) {
+ var m = msg.a;
+ return m;
+ });
+var $elm$core$Dict$member = F2(
+ function (key, dict) {
+ var _v0 = A2($elm$core$Dict$get, key, dict);
+ if (_v0.$ === 'Just') {
+ return true;
+ } else {
+ return false;
+ }
+ });
+var $elm$core$Set$member = F2(
+ function (key, _v0) {
+ var dict = _v0.a;
+ return A2($elm$core$Dict$member, key, dict);
+ });
+var $elm$core$Dict$getMin = function (dict) {
+ getMin:
+ while (true) {
+ if ((dict.$ === 'RBNode_elm_builtin') && (dict.d.$ === 'RBNode_elm_builtin')) {
+ var left = dict.d;
+ var $temp$dict = left;
+ dict = $temp$dict;
+ continue getMin;
+ } else {
+ return dict;
+ }
+ }
+};
+var $elm$core$Dict$moveRedLeft = function (dict) {
+ if (((dict.$ === 'RBNode_elm_builtin') && (dict.d.$ === 'RBNode_elm_builtin')) && (dict.e.$ === 'RBNode_elm_builtin')) {
+ if ((dict.e.d.$ === 'RBNode_elm_builtin') && (dict.e.d.a.$ === 'Red')) {
+ var clr = dict.a;
+ var k = dict.b;
+ var v = dict.c;
+ var _v1 = dict.d;
+ var lClr = _v1.a;
+ var lK = _v1.b;
+ var lV = _v1.c;
+ var lLeft = _v1.d;
+ var lRight = _v1.e;
+ var _v2 = dict.e;
+ var rClr = _v2.a;
+ var rK = _v2.b;
+ var rV = _v2.c;
+ var rLeft = _v2.d;
+ var _v3 = rLeft.a;
+ var rlK = rLeft.b;
+ var rlV = rLeft.c;
+ var rlL = rLeft.d;
+ var rlR = rLeft.e;
+ var rRight = _v2.e;
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Red,
+ rlK,
+ rlV,
+ A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Black,
+ k,
+ v,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, lK, lV, lLeft, lRight),
+ rlL),
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, rK, rV, rlR, rRight));
+ } else {
+ var clr = dict.a;
+ var k = dict.b;
+ var v = dict.c;
+ var _v4 = dict.d;
+ var lClr = _v4.a;
+ var lK = _v4.b;
+ var lV = _v4.c;
+ var lLeft = _v4.d;
+ var lRight = _v4.e;
+ var _v5 = dict.e;
+ var rClr = _v5.a;
+ var rK = _v5.b;
+ var rV = _v5.c;
+ var rLeft = _v5.d;
+ var rRight = _v5.e;
+ if (clr.$ === 'Black') {
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Black,
+ k,
+ v,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, lK, lV, lLeft, lRight),
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, rK, rV, rLeft, rRight));
+ } else {
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Black,
+ k,
+ v,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, lK, lV, lLeft, lRight),
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, rK, rV, rLeft, rRight));
+ }
+ }
+ } else {
+ return dict;
+ }
+};
+var $elm$core$Dict$moveRedRight = function (dict) {
+ if (((dict.$ === 'RBNode_elm_builtin') && (dict.d.$ === 'RBNode_elm_builtin')) && (dict.e.$ === 'RBNode_elm_builtin')) {
+ if ((dict.d.d.$ === 'RBNode_elm_builtin') && (dict.d.d.a.$ === 'Red')) {
+ var clr = dict.a;
+ var k = dict.b;
+ var v = dict.c;
+ var _v1 = dict.d;
+ var lClr = _v1.a;
+ var lK = _v1.b;
+ var lV = _v1.c;
+ var _v2 = _v1.d;
+ var _v3 = _v2.a;
+ var llK = _v2.b;
+ var llV = _v2.c;
+ var llLeft = _v2.d;
+ var llRight = _v2.e;
+ var lRight = _v1.e;
+ var _v4 = dict.e;
+ var rClr = _v4.a;
+ var rK = _v4.b;
+ var rV = _v4.c;
+ var rLeft = _v4.d;
+ var rRight = _v4.e;
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Red,
+ lK,
+ lV,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, llK, llV, llLeft, llRight),
+ A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Black,
+ k,
+ v,
+ lRight,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, rK, rV, rLeft, rRight)));
+ } else {
+ var clr = dict.a;
+ var k = dict.b;
+ var v = dict.c;
+ var _v5 = dict.d;
+ var lClr = _v5.a;
+ var lK = _v5.b;
+ var lV = _v5.c;
+ var lLeft = _v5.d;
+ var lRight = _v5.e;
+ var _v6 = dict.e;
+ var rClr = _v6.a;
+ var rK = _v6.b;
+ var rV = _v6.c;
+ var rLeft = _v6.d;
+ var rRight = _v6.e;
+ if (clr.$ === 'Black') {
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Black,
+ k,
+ v,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, lK, lV, lLeft, lRight),
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, rK, rV, rLeft, rRight));
+ } else {
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ $elm$core$Dict$Black,
+ k,
+ v,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, lK, lV, lLeft, lRight),
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, rK, rV, rLeft, rRight));
+ }
+ }
+ } else {
+ return dict;
+ }
+};
+var $elm$core$Dict$removeHelpPrepEQGT = F7(
+ function (targetKey, dict, color, key, value, left, right) {
+ if ((left.$ === 'RBNode_elm_builtin') && (left.a.$ === 'Red')) {
+ var _v1 = left.a;
+ var lK = left.b;
+ var lV = left.c;
+ var lLeft = left.d;
+ var lRight = left.e;
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ color,
+ lK,
+ lV,
+ lLeft,
+ A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, key, value, lRight, right));
+ } else {
+ _v2$2:
+ while (true) {
+ if ((right.$ === 'RBNode_elm_builtin') && (right.a.$ === 'Black')) {
+ if (right.d.$ === 'RBNode_elm_builtin') {
+ if (right.d.a.$ === 'Black') {
+ var _v3 = right.a;
+ var _v4 = right.d;
+ var _v5 = _v4.a;
+ return $elm$core$Dict$moveRedRight(dict);
+ } else {
+ break _v2$2;
+ }
+ } else {
+ var _v6 = right.a;
+ var _v7 = right.d;
+ return $elm$core$Dict$moveRedRight(dict);
+ }
+ } else {
+ break _v2$2;
+ }
+ }
+ return dict;
+ }
+ });
+var $elm$core$Dict$removeMin = function (dict) {
+ if ((dict.$ === 'RBNode_elm_builtin') && (dict.d.$ === 'RBNode_elm_builtin')) {
+ var color = dict.a;
+ var key = dict.b;
+ var value = dict.c;
+ var left = dict.d;
+ var lColor = left.a;
+ var lLeft = left.d;
+ var right = dict.e;
+ if (lColor.$ === 'Black') {
+ if ((lLeft.$ === 'RBNode_elm_builtin') && (lLeft.a.$ === 'Red')) {
+ var _v3 = lLeft.a;
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ color,
+ key,
+ value,
+ $elm$core$Dict$removeMin(left),
+ right);
+ } else {
+ var _v4 = $elm$core$Dict$moveRedLeft(dict);
+ if (_v4.$ === 'RBNode_elm_builtin') {
+ var nColor = _v4.a;
+ var nKey = _v4.b;
+ var nValue = _v4.c;
+ var nLeft = _v4.d;
+ var nRight = _v4.e;
+ return A5(
+ $elm$core$Dict$balance,
+ nColor,
+ nKey,
+ nValue,
+ $elm$core$Dict$removeMin(nLeft),
+ nRight);
+ } else {
+ return $elm$core$Dict$RBEmpty_elm_builtin;
+ }
+ }
+ } else {
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ color,
+ key,
+ value,
+ $elm$core$Dict$removeMin(left),
+ right);
+ }
+ } else {
+ return $elm$core$Dict$RBEmpty_elm_builtin;
+ }
+};
+var $elm$core$Dict$removeHelp = F2(
+ function (targetKey, dict) {
+ if (dict.$ === 'RBEmpty_elm_builtin') {
+ return $elm$core$Dict$RBEmpty_elm_builtin;
+ } else {
+ var color = dict.a;
+ var key = dict.b;
+ var value = dict.c;
+ var left = dict.d;
+ var right = dict.e;
+ if (_Utils_cmp(targetKey, key) < 0) {
+ if ((left.$ === 'RBNode_elm_builtin') && (left.a.$ === 'Black')) {
+ var _v4 = left.a;
+ var lLeft = left.d;
+ if ((lLeft.$ === 'RBNode_elm_builtin') && (lLeft.a.$ === 'Red')) {
+ var _v6 = lLeft.a;
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ color,
+ key,
+ value,
+ A2($elm$core$Dict$removeHelp, targetKey, left),
+ right);
+ } else {
+ var _v7 = $elm$core$Dict$moveRedLeft(dict);
+ if (_v7.$ === 'RBNode_elm_builtin') {
+ var nColor = _v7.a;
+ var nKey = _v7.b;
+ var nValue = _v7.c;
+ var nLeft = _v7.d;
+ var nRight = _v7.e;
+ return A5(
+ $elm$core$Dict$balance,
+ nColor,
+ nKey,
+ nValue,
+ A2($elm$core$Dict$removeHelp, targetKey, nLeft),
+ nRight);
+ } else {
+ return $elm$core$Dict$RBEmpty_elm_builtin;
+ }
+ }
+ } else {
+ return A5(
+ $elm$core$Dict$RBNode_elm_builtin,
+ color,
+ key,
+ value,
+ A2($elm$core$Dict$removeHelp, targetKey, left),
+ right);
+ }
+ } else {
+ return A2(
+ $elm$core$Dict$removeHelpEQGT,
+ targetKey,
+ A7($elm$core$Dict$removeHelpPrepEQGT, targetKey, dict, color, key, value, left, right));
+ }
+ }
+ });
+var $elm$core$Dict$removeHelpEQGT = F2(
+ function (targetKey, dict) {
+ if (dict.$ === 'RBNode_elm_builtin') {
+ var color = dict.a;
+ var key = dict.b;
+ var value = dict.c;
+ var left = dict.d;
+ var right = dict.e;
+ if (_Utils_eq(targetKey, key)) {
+ var _v1 = $elm$core$Dict$getMin(right);
+ if (_v1.$ === 'RBNode_elm_builtin') {
+ var minKey = _v1.b;
+ var minValue = _v1.c;
+ return A5(
+ $elm$core$Dict$balance,
+ color,
+ minKey,
+ minValue,
+ left,
+ $elm$core$Dict$removeMin(right));
+ } else {
+ return $elm$core$Dict$RBEmpty_elm_builtin;
+ }
+ } else {
+ return A5(
+ $elm$core$Dict$balance,
+ color,
+ key,
+ value,
+ left,
+ A2($elm$core$Dict$removeHelp, targetKey, right));
+ }
+ } else {
+ return $elm$core$Dict$RBEmpty_elm_builtin;
+ }
+ });
+var $elm$core$Dict$remove = F2(
+ function (key, dict) {
+ var _v0 = A2($elm$core$Dict$removeHelp, key, dict);
+ if ((_v0.$ === 'RBNode_elm_builtin') && (_v0.a.$ === 'Red')) {
+ var _v1 = _v0.a;
+ var k = _v0.b;
+ var v = _v0.c;
+ var l = _v0.d;
+ var r = _v0.e;
+ return A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, k, v, l, r);
+ } else {
+ var x = _v0;
+ return x;
+ }
+ });
+var $elm$core$Set$remove = F2(
+ function (key, _v0) {
+ var dict = _v0.a;
+ return $elm$core$Set$Set_elm_builtin(
+ A2($elm$core$Dict$remove, key, dict));
+ });
+var $author$project$Stateless$update = F2(
+ function (msg, model) {
+ switch (msg.$) {
+ case 'ChangedSelected':
+ var _int = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {
+ selected: $elm$core$Maybe$Just(_int)
+ }),
+ $elm$core$Platform$Cmd$none);
+ case 'ChangedMultiSelected':
+ var _int = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {
+ multiSelected: (A2($elm$core$Set$member, _int, model.multiSelected) ? $elm$core$Set$remove(_int) : $elm$core$Set$insert(_int))(model.multiSelected)
+ }),
+ $elm$core$Platform$Cmd$none);
+ case 'ToggleCollapsable':
+ var bool = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {isCollapsed: bool}),
+ $elm$core$Platform$Cmd$none);
+ default:
+ var _int = msg.a;
+ return _Utils_Tuple2(
+ ((_int < 0) || (_int > 3)) ? model : _Utils_update(
+ model,
+ {carousel: _int}),
+ $elm$core$Platform$Cmd$none);
+ }
+ });
+var $author$project$Widget$ScrollingNav$SyncPosition = function (a) {
+ return {$: 'SyncPosition', a: a};
+};
+var $elm$browser$Browser$Dom$getViewport = _Browser_withWindow(_Browser_getViewport);
+var $elm_community$intdict$IntDict$Inner = function (a) {
+ return {$: 'Inner', a: a};
+};
+var $elm_community$intdict$IntDict$size = function (dict) {
+ switch (dict.$) {
+ case 'Empty':
+ return 0;
+ case 'Leaf':
+ return 1;
+ default:
+ var i = dict.a;
+ return i.size;
+ }
+};
+var $elm_community$intdict$IntDict$inner = F3(
+ function (p, l, r) {
+ var _v0 = _Utils_Tuple2(l, r);
+ if (_v0.a.$ === 'Empty') {
+ var _v1 = _v0.a;
+ return r;
+ } else {
+ if (_v0.b.$ === 'Empty') {
+ var _v2 = _v0.b;
+ return l;
+ } else {
+ return $elm_community$intdict$IntDict$Inner(
+ {
+ left: l,
+ prefix: p,
+ right: r,
+ size: $elm_community$intdict$IntDict$size(l) + $elm_community$intdict$IntDict$size(r)
+ });
+ }
+ }
+ });
+var $elm$core$Bitwise$and = _Bitwise_and;
+var $elm$core$Basics$neq = _Utils_notEqual;
+var $elm$core$Bitwise$complement = _Bitwise_complement;
+var $elm$core$Bitwise$or = _Bitwise_or;
+var $elm$core$Bitwise$shiftRightZfBy = _Bitwise_shiftRightZfBy;
+var $elm_community$intdict$IntDict$highestBitSet = function (n) {
+ var shiftOr = F2(
+ function (i, shift) {
+ return i | (i >>> shift);
+ });
+ var n1 = A2(shiftOr, n, 1);
+ var n2 = A2(shiftOr, n1, 2);
+ var n3 = A2(shiftOr, n2, 4);
+ var n4 = A2(shiftOr, n3, 8);
+ var n5 = A2(shiftOr, n4, 16);
+ return n5 & (~(n5 >>> 1));
+};
+var $elm_community$intdict$IntDict$signBit = $elm_community$intdict$IntDict$highestBitSet(-1);
+var $elm$core$Bitwise$xor = _Bitwise_xor;
+var $elm_community$intdict$IntDict$isBranchingBitSet = function (p) {
+ return A2(
+ $elm$core$Basics$composeR,
+ $elm$core$Bitwise$xor($elm_community$intdict$IntDict$signBit),
+ A2(
+ $elm$core$Basics$composeR,
+ $elm$core$Bitwise$and(p.branchingBit),
+ $elm$core$Basics$neq(0)));
+};
+var $elm_community$intdict$IntDict$higherBitMask = function (branchingBit) {
+ return branchingBit ^ (~(branchingBit - 1));
+};
+var $elm_community$intdict$IntDict$lcp = F2(
+ function (x, y) {
+ var branchingBit = $elm_community$intdict$IntDict$highestBitSet(x ^ y);
+ var mask = $elm_community$intdict$IntDict$higherBitMask(branchingBit);
+ var prefixBits = x & mask;
+ return {branchingBit: branchingBit, prefixBits: prefixBits};
+ });
+var $elm_community$intdict$IntDict$Leaf = function (a) {
+ return {$: 'Leaf', a: a};
+};
+var $elm_community$intdict$IntDict$leaf = F2(
+ function (k, v) {
+ return $elm_community$intdict$IntDict$Leaf(
+ {key: k, value: v});
+ });
+var $elm_community$intdict$IntDict$prefixMatches = F2(
+ function (p, n) {
+ return _Utils_eq(
+ n & $elm_community$intdict$IntDict$higherBitMask(p.branchingBit),
+ p.prefixBits);
+ });
+var $elm_community$intdict$IntDict$update = F3(
+ function (key, alter, dict) {
+ var join = F2(
+ function (_v2, _v3) {
+ var k1 = _v2.a;
+ var l = _v2.b;
+ var k2 = _v3.a;
+ var r = _v3.b;
+ var prefix = A2($elm_community$intdict$IntDict$lcp, k1, k2);
+ return A2($elm_community$intdict$IntDict$isBranchingBitSet, prefix, k2) ? A3($elm_community$intdict$IntDict$inner, prefix, l, r) : A3($elm_community$intdict$IntDict$inner, prefix, r, l);
+ });
+ var alteredNode = function (mv) {
+ var _v1 = alter(mv);
+ if (_v1.$ === 'Just') {
+ var v = _v1.a;
+ return A2($elm_community$intdict$IntDict$leaf, key, v);
+ } else {
+ return $elm_community$intdict$IntDict$empty;
+ }
+ };
+ switch (dict.$) {
+ case 'Empty':
+ return alteredNode($elm$core$Maybe$Nothing);
+ case 'Leaf':
+ var l = dict.a;
+ return _Utils_eq(l.key, key) ? alteredNode(
+ $elm$core$Maybe$Just(l.value)) : A2(
+ join,
+ _Utils_Tuple2(
+ key,
+ alteredNode($elm$core$Maybe$Nothing)),
+ _Utils_Tuple2(l.key, dict));
+ default:
+ var i = dict.a;
+ return A2($elm_community$intdict$IntDict$prefixMatches, i.prefix, key) ? (A2($elm_community$intdict$IntDict$isBranchingBitSet, i.prefix, key) ? A3(
+ $elm_community$intdict$IntDict$inner,
+ i.prefix,
+ i.left,
+ A3($elm_community$intdict$IntDict$update, key, alter, i.right)) : A3(
+ $elm_community$intdict$IntDict$inner,
+ i.prefix,
+ A3($elm_community$intdict$IntDict$update, key, alter, i.left),
+ i.right)) : A2(
+ join,
+ _Utils_Tuple2(
+ key,
+ alteredNode($elm$core$Maybe$Nothing)),
+ _Utils_Tuple2(i.prefix.prefixBits, dict));
+ }
+ });
+var $elm_community$intdict$IntDict$insert = F3(
+ function (key, value, dict) {
+ return A3(
+ $elm_community$intdict$IntDict$update,
+ key,
+ $elm$core$Basics$always(
+ $elm$core$Maybe$Just(value)),
+ dict);
+ });
+var $author$project$Widget$ScrollingNav$ChangedViewport = function (a) {
+ return {$: 'ChangedViewport', a: a};
+};
+var $elm$browser$Browser$Dom$setViewport = _Browser_setViewport;
+var $author$project$Widget$ScrollingNav$jumpTo = F2(
+ function (section, _v0) {
+ var labels = _v0.labels;
+ return A2(
+ $elm$core$Task$attempt,
+ $author$project$Widget$ScrollingNav$ChangedViewport,
+ A2(
+ $elm$core$Task$andThen,
+ function (_v1) {
+ var element = _v1.element;
+ return A2($elm$browser$Browser$Dom$setViewport, 0, element.y);
+ },
+ $elm$browser$Browser$Dom$getElement(
+ labels(section))));
+ });
+var $author$project$Widget$ScrollingNav$update = F2(
+ function (msg, model) {
+ switch (msg.$) {
+ case 'GotHeaderPos':
+ var label = msg.a;
+ var result = msg.b;
+ return _Utils_Tuple2(
+ function () {
+ if (result.$ === 'Ok') {
+ var pos = result.a;
+ return _Utils_update(
+ model,
+ {
+ positions: A3(
+ $elm_community$intdict$IntDict$insert,
+ pos,
+ model.labels(label),
+ model.positions)
+ });
+ } else {
+ return model;
+ }
+ }(),
+ $elm$core$Platform$Cmd$none);
+ case 'ChangedViewport':
+ return _Utils_Tuple2(model, $elm$core$Platform$Cmd$none);
+ case 'SyncPosition':
+ var pos = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {scrollPos: pos}),
+ $elm$core$Platform$Cmd$none);
+ case 'TimePassed':
+ return _Utils_Tuple2(
+ model,
+ A2(
+ $elm$core$Task$perform,
+ $author$project$Widget$ScrollingNav$SyncPosition,
+ A2(
+ $elm$core$Task$map,
+ A2(
+ $elm$core$Basics$composeR,
+ function ($) {
+ return $.viewport;
+ },
+ A2(
+ $elm$core$Basics$composeR,
+ function ($) {
+ return $.y;
+ },
+ $elm$core$Basics$round)),
+ $elm$browser$Browser$Dom$getViewport)));
+ default:
+ var elem = msg.a;
+ return _Utils_Tuple2(
+ model,
+ A2($author$project$Widget$ScrollingNav$jumpTo, elem, model));
+ }
+ });
+var $author$project$Example$update = F2(
+ function (msg, model) {
+ switch (msg.$) {
+ case 'ComponentSpecific':
+ var m = msg.a;
+ return A3(
+ $elm$core$Tuple$mapBoth,
+ function (component) {
+ return _Utils_update(
+ model,
+ {component: component});
+ },
+ $elm$core$Platform$Cmd$map($author$project$Example$ComponentSpecific),
+ A2($author$project$Component$update, m, model.component));
+ case 'ReusableSpecific':
+ var m = msg.a;
+ return _Utils_Tuple2(
+ function (reusable) {
+ return _Utils_update(
+ model,
+ {reusable: reusable});
+ }(
+ A2($author$project$Reusable$update, m, model.reusable)),
+ $elm$core$Platform$Cmd$none);
+ case 'StatelessSpecific':
+ var m = msg.a;
+ return A3(
+ $elm$core$Tuple$mapBoth,
+ function (stateless) {
+ return _Utils_update(
+ model,
+ {stateless: stateless});
+ },
+ $elm$core$Platform$Cmd$map($author$project$Example$StatelessSpecific),
+ A2($author$project$Stateless$update, m, model.stateless));
+ case 'ScrollingNavSpecific':
+ var m = msg.a;
+ return A3(
+ $elm$core$Tuple$mapBoth,
+ function (scrollingNav) {
+ return _Utils_update(
+ model,
+ {scrollingNav: scrollingNav});
+ },
+ $elm$core$Platform$Cmd$map($author$project$Example$ScrollingNavSpecific),
+ A2($author$project$Widget$ScrollingNav$update, m, model.scrollingNav));
+ case 'TimePassed':
+ var _int = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {
+ snackbar: A2($author$project$Widget$Snackbar$timePassed, _int, model.snackbar)
+ }),
+ $elm$core$Platform$Cmd$none);
+ case 'AddSnackbar':
+ var string = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {
+ snackbar: A2($author$project$Widget$Snackbar$insert, string, model.snackbar)
+ }),
+ $elm$core$Platform$Cmd$none);
+ default:
+ var bool = msg.a;
+ return _Utils_Tuple2(
+ _Utils_update(
+ model,
+ {displayDialog: bool}),
+ $elm$core$Platform$Cmd$none);
+ }
+ });
+var $author$project$Example$AddSnackbar = function (a) {
+ return {$: 'AddSnackbar', a: a};
+};
+var $author$project$Example$ReusableSpecific = function (a) {
+ return {$: 'ReusableSpecific', a: a};
+};
+var $author$project$Example$ToggleDialog = function (a) {
+ return {$: 'ToggleDialog', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$AlignY = function (a) {
+ return {$: 'AlignY', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$Bottom = {$: 'Bottom'};
+var $mdgriffith$elm_ui$Element$alignBottom = $mdgriffith$elm_ui$Internal$Model$AlignY($mdgriffith$elm_ui$Internal$Model$Bottom);
+var $mdgriffith$elm_ui$Internal$Model$AlignX = function (a) {
+ return {$: 'AlignX', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$Right = {$: 'Right'};
+var $mdgriffith$elm_ui$Element$alignRight = $mdgriffith$elm_ui$Internal$Model$AlignX($mdgriffith$elm_ui$Internal$Model$Right);
+var $mdgriffith$elm_ui$Internal$Model$Top = {$: 'Top'};
+var $mdgriffith$elm_ui$Element$alignTop = $mdgriffith$elm_ui$Internal$Model$AlignY($mdgriffith$elm_ui$Internal$Model$Top);
+var $mdgriffith$elm_ui$Internal$Model$Attr = function (a) {
+ return {$: 'Attr', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$Button = {$: 'Button'};
+var $mdgriffith$elm_ui$Internal$Model$Describe = function (a) {
+ return {$: 'Describe', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$Unkeyed = function (a) {
+ return {$: 'Unkeyed', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$AsEl = {$: 'AsEl'};
+var $mdgriffith$elm_ui$Internal$Model$asEl = $mdgriffith$elm_ui$Internal$Model$AsEl;
+var $mdgriffith$elm_ui$Internal$Style$classes = {above: 'a', active: 'atv', alignBottom: 'ab', alignCenterX: 'cx', alignCenterY: 'cy', alignContainerBottom: 'acb', alignContainerCenterX: 'accx', alignContainerCenterY: 'accy', alignContainerRight: 'acr', alignLeft: 'al', alignRight: 'ar', alignTop: 'at', alignedHorizontally: 'ah', alignedVertically: 'av', any: 's', behind: 'bh', below: 'b', bold: 'w7', borderDashed: 'bd', borderDotted: 'bdt', borderNone: 'bn', borderSolid: 'bs', capturePointerEvents: 'cpe', clip: 'cp', clipX: 'cpx', clipY: 'cpy', column: 'c', container: 'ctr', contentBottom: 'cb', contentCenterX: 'ccx', contentCenterY: 'ccy', contentLeft: 'cl', contentRight: 'cr', contentTop: 'ct', cursorPointer: 'cptr', cursorText: 'ctxt', focus: 'fcs', focusedWithin: 'focus-within', fullSize: 'fs', grid: 'g', hasBehind: 'hbh', heightContent: 'hc', heightExact: 'he', heightFill: 'hf', heightFillPortion: 'hfp', hover: 'hv', imageContainer: 'ic', inFront: 'fr', inputMultiline: 'iml', inputMultilineFiller: 'imlf', inputMultilineParent: 'imlp', inputMultilineWrapper: 'implw', inputText: 'it', italic: 'i', link: 'lnk', nearby: 'nb', noTextSelection: 'notxt', onLeft: 'ol', onRight: 'or', opaque: 'oq', overflowHidden: 'oh', page: 'pg', paragraph: 'p', passPointerEvents: 'ppe', root: 'ui', row: 'r', scrollbars: 'sb', scrollbarsX: 'sbx', scrollbarsY: 'sby', seButton: 'sbt', single: 'e', sizeByCapital: 'cap', spaceEvenly: 'sev', strike: 'sk', text: 't', textCenter: 'tc', textExtraBold: 'w8', textExtraLight: 'w2', textHeavy: 'w9', textJustify: 'tj', textJustifyAll: 'tja', textLeft: 'tl', textLight: 'w3', textMedium: 'w5', textNormalWeight: 'w4', textRight: 'tr', textSemiBold: 'w6', textThin: 'w1', textUnitalicized: 'tun', transition: 'ts', transparent: 'clr', underline: 'u', widthContent: 'wc', widthExact: 'we', widthFill: 'wf', widthFillPortion: 'wfp', wrapped: 'wrp'};
+var $elm$json$Json$Encode$bool = _Json_wrap;
+var $elm$html$Html$Attributes$boolProperty = F2(
+ function (key, bool) {
+ return A2(
+ _VirtualDom_property,
+ key,
+ $elm$json$Json$Encode$bool(bool));
+ });
+var $elm$html$Html$Attributes$disabled = $elm$html$Html$Attributes$boolProperty('disabled');
+var $mdgriffith$elm_ui$Internal$Model$Generic = {$: 'Generic'};
+var $mdgriffith$elm_ui$Internal$Model$div = $mdgriffith$elm_ui$Internal$Model$Generic;
+var $mdgriffith$elm_ui$Internal$Model$NoNearbyChildren = {$: 'NoNearbyChildren'};
+var $mdgriffith$elm_ui$Internal$Model$columnClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.column);
+var $mdgriffith$elm_ui$Internal$Model$gridClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.grid);
+var $mdgriffith$elm_ui$Internal$Model$pageClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.page);
+var $mdgriffith$elm_ui$Internal$Model$paragraphClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.paragraph);
+var $mdgriffith$elm_ui$Internal$Model$rowClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.row);
+var $mdgriffith$elm_ui$Internal$Model$singleClass = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.single);
+var $mdgriffith$elm_ui$Internal$Model$contextClasses = function (context) {
+ switch (context.$) {
+ case 'AsRow':
+ return $mdgriffith$elm_ui$Internal$Model$rowClass;
+ case 'AsColumn':
+ return $mdgriffith$elm_ui$Internal$Model$columnClass;
+ case 'AsEl':
+ return $mdgriffith$elm_ui$Internal$Model$singleClass;
+ case 'AsGrid':
+ return $mdgriffith$elm_ui$Internal$Model$gridClass;
+ case 'AsParagraph':
+ return $mdgriffith$elm_ui$Internal$Model$paragraphClass;
+ default:
+ return $mdgriffith$elm_ui$Internal$Model$pageClass;
+ }
+};
+var $mdgriffith$elm_ui$Internal$Model$Keyed = function (a) {
+ return {$: 'Keyed', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$NoStyleSheet = {$: 'NoStyleSheet'};
+var $mdgriffith$elm_ui$Internal$Model$Styled = function (a) {
+ return {$: 'Styled', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$Unstyled = function (a) {
+ return {$: 'Unstyled', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$addChildren = F2(
+ function (existing, nearbyChildren) {
+ switch (nearbyChildren.$) {
+ case 'NoNearbyChildren':
+ return existing;
+ case 'ChildrenBehind':
+ var behind = nearbyChildren.a;
+ return _Utils_ap(behind, existing);
+ case 'ChildrenInFront':
+ var inFront = nearbyChildren.a;
+ return _Utils_ap(existing, inFront);
+ default:
+ var behind = nearbyChildren.a;
+ var inFront = nearbyChildren.b;
+ return _Utils_ap(
+ behind,
+ _Utils_ap(existing, inFront));
+ }
+ });
var $mdgriffith$elm_ui$Internal$Model$addKeyedChildren = F3(
function (key, existing, nearbyChildren) {
switch (nearbyChildren.$) {
@@ -4781,19 +6932,30 @@ var $mdgriffith$elm_ui$Internal$Model$addKeyedChildren = F3(
});
var $mdgriffith$elm_ui$Internal$Model$AsParagraph = {$: 'AsParagraph'};
var $mdgriffith$elm_ui$Internal$Model$asParagraph = $mdgriffith$elm_ui$Internal$Model$AsParagraph;
+var $mdgriffith$elm_ui$Internal$Flag$Flag = function (a) {
+ return {$: 'Flag', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Flag$Second = function (a) {
+ return {$: 'Second', a: a};
+};
+var $elm$core$Bitwise$shiftLeftBy = _Bitwise_shiftLeftBy;
+var $mdgriffith$elm_ui$Internal$Flag$flag = function (i) {
+ return (i > 31) ? $mdgriffith$elm_ui$Internal$Flag$Second(1 << (i - 32)) : $mdgriffith$elm_ui$Internal$Flag$Flag(1 << i);
+};
var $mdgriffith$elm_ui$Internal$Flag$alignBottom = $mdgriffith$elm_ui$Internal$Flag$flag(41);
var $mdgriffith$elm_ui$Internal$Flag$alignRight = $mdgriffith$elm_ui$Internal$Flag$flag(40);
var $mdgriffith$elm_ui$Internal$Flag$centerX = $mdgriffith$elm_ui$Internal$Flag$flag(42);
var $mdgriffith$elm_ui$Internal$Flag$centerY = $mdgriffith$elm_ui$Internal$Flag$flag(43);
-var $elm$core$Basics$identity = function (x) {
- return x;
-};
-var $elm$core$Set$Set_elm_builtin = function (a) {
- return {$: 'Set_elm_builtin', a: a};
-};
-var $elm$core$Dict$RBEmpty_elm_builtin = {$: 'RBEmpty_elm_builtin'};
-var $elm$core$Dict$empty = $elm$core$Dict$RBEmpty_elm_builtin;
-var $elm$core$Set$empty = $elm$core$Set$Set_elm_builtin($elm$core$Dict$empty);
+var $elm$json$Json$Encode$string = _Json_wrap;
+var $elm$html$Html$Attributes$stringProperty = F2(
+ function (key, string) {
+ return A2(
+ _VirtualDom_property,
+ key,
+ $elm$json$Json$Encode$string(string));
+ });
+var $elm$html$Html$Attributes$class = $elm$html$Html$Attributes$stringProperty('className');
+var $elm$html$Html$div = _VirtualDom_node('div');
var $mdgriffith$elm_ui$Internal$Model$lengthClassName = function (x) {
switch (x.$) {
case 'Px':
@@ -4818,6 +6980,10 @@ var $elm$core$Tuple$second = function (_v0) {
var y = _v0.b;
return y;
};
+var $mdgriffith$elm_ui$Internal$Model$floatClass = function (x) {
+ return $elm$core$String$fromInt(
+ $elm$core$Basics$round(x * 255));
+};
var $mdgriffith$elm_ui$Internal$Model$transformClass = function (transform) {
switch (transform.$) {
case 'Untransformed':
@@ -4947,166 +7113,6 @@ var $mdgriffith$elm_ui$Internal$Model$getStyleName = function (style) {
$mdgriffith$elm_ui$Internal$Model$transformClass(x));
}
};
-var $elm$core$Dict$Black = {$: 'Black'};
-var $elm$core$Dict$RBNode_elm_builtin = F5(
- function (a, b, c, d, e) {
- return {$: 'RBNode_elm_builtin', a: a, b: b, c: c, d: d, e: e};
- });
-var $elm$core$Dict$Red = {$: 'Red'};
-var $elm$core$Dict$balance = F5(
- function (color, key, value, left, right) {
- if ((right.$ === 'RBNode_elm_builtin') && (right.a.$ === 'Red')) {
- var _v1 = right.a;
- var rK = right.b;
- var rV = right.c;
- var rLeft = right.d;
- var rRight = right.e;
- if ((left.$ === 'RBNode_elm_builtin') && (left.a.$ === 'Red')) {
- var _v3 = left.a;
- var lK = left.b;
- var lV = left.c;
- var lLeft = left.d;
- var lRight = left.e;
- return A5(
- $elm$core$Dict$RBNode_elm_builtin,
- $elm$core$Dict$Red,
- key,
- value,
- A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, lK, lV, lLeft, lRight),
- A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, rK, rV, rLeft, rRight));
- } else {
- return A5(
- $elm$core$Dict$RBNode_elm_builtin,
- color,
- rK,
- rV,
- A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, key, value, left, rLeft),
- rRight);
- }
- } else {
- if ((((left.$ === 'RBNode_elm_builtin') && (left.a.$ === 'Red')) && (left.d.$ === 'RBNode_elm_builtin')) && (left.d.a.$ === 'Red')) {
- var _v5 = left.a;
- var lK = left.b;
- var lV = left.c;
- var _v6 = left.d;
- var _v7 = _v6.a;
- var llK = _v6.b;
- var llV = _v6.c;
- var llLeft = _v6.d;
- var llRight = _v6.e;
- var lRight = left.e;
- return A5(
- $elm$core$Dict$RBNode_elm_builtin,
- $elm$core$Dict$Red,
- lK,
- lV,
- A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, llK, llV, llLeft, llRight),
- A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, key, value, lRight, right));
- } else {
- return A5($elm$core$Dict$RBNode_elm_builtin, color, key, value, left, right);
- }
- }
- });
-var $elm$core$Basics$compare = _Utils_compare;
-var $elm$core$Dict$insertHelp = F3(
- function (key, value, dict) {
- if (dict.$ === 'RBEmpty_elm_builtin') {
- return A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Red, key, value, $elm$core$Dict$RBEmpty_elm_builtin, $elm$core$Dict$RBEmpty_elm_builtin);
- } else {
- var nColor = dict.a;
- var nKey = dict.b;
- var nValue = dict.c;
- var nLeft = dict.d;
- var nRight = dict.e;
- var _v1 = A2($elm$core$Basics$compare, key, nKey);
- switch (_v1.$) {
- case 'LT':
- return A5(
- $elm$core$Dict$balance,
- nColor,
- nKey,
- nValue,
- A3($elm$core$Dict$insertHelp, key, value, nLeft),
- nRight);
- case 'EQ':
- return A5($elm$core$Dict$RBNode_elm_builtin, nColor, nKey, value, nLeft, nRight);
- default:
- return A5(
- $elm$core$Dict$balance,
- nColor,
- nKey,
- nValue,
- nLeft,
- A3($elm$core$Dict$insertHelp, key, value, nRight));
- }
- }
- });
-var $elm$core$Dict$insert = F3(
- function (key, value, dict) {
- var _v0 = A3($elm$core$Dict$insertHelp, key, value, dict);
- if ((_v0.$ === 'RBNode_elm_builtin') && (_v0.a.$ === 'Red')) {
- var _v1 = _v0.a;
- var k = _v0.b;
- var v = _v0.c;
- var l = _v0.d;
- var r = _v0.e;
- return A5($elm$core$Dict$RBNode_elm_builtin, $elm$core$Dict$Black, k, v, l, r);
- } else {
- var x = _v0;
- return x;
- }
- });
-var $elm$core$Set$insert = F2(
- function (key, _v0) {
- var dict = _v0.a;
- return $elm$core$Set$Set_elm_builtin(
- A3($elm$core$Dict$insert, key, _Utils_Tuple0, dict));
- });
-var $elm$core$Dict$get = F2(
- function (targetKey, dict) {
- get:
- while (true) {
- if (dict.$ === 'RBEmpty_elm_builtin') {
- return $elm$core$Maybe$Nothing;
- } else {
- var key = dict.b;
- var value = dict.c;
- var left = dict.d;
- var right = dict.e;
- var _v1 = A2($elm$core$Basics$compare, targetKey, key);
- switch (_v1.$) {
- case 'LT':
- var $temp$targetKey = targetKey,
- $temp$dict = left;
- targetKey = $temp$targetKey;
- dict = $temp$dict;
- continue get;
- case 'EQ':
- return $elm$core$Maybe$Just(value);
- default:
- var $temp$targetKey = targetKey,
- $temp$dict = right;
- targetKey = $temp$targetKey;
- dict = $temp$dict;
- continue get;
- }
- }
- }
- });
-var $elm$core$Dict$member = F2(
- function (key, dict) {
- var _v0 = A2($elm$core$Dict$get, key, dict);
- if (_v0.$ === 'Just') {
- return true;
- } else {
- return false;
- }
- });
-var $elm$core$Set$member = F2(
- function (key, _v0) {
- var dict = _v0.a;
- return A2($elm$core$Dict$member, key, dict);
- });
var $mdgriffith$elm_ui$Internal$Model$reduceStyles = F2(
function (style, nevermind) {
var cache = nevermind.a;
@@ -5178,16 +7184,6 @@ var $mdgriffith$elm_ui$Internal$Model$formatBoxShadow = function (shadow) {
$mdgriffith$elm_ui$Internal$Model$formatColor(shadow.color))
])));
};
-var $elm$core$Maybe$map = F2(
- function (f, maybe) {
- if (maybe.$ === 'Just') {
- var value = maybe.a;
- return $elm$core$Maybe$Just(
- f(value));
- } else {
- return $elm$core$Maybe$Nothing;
- }
- });
var $elm$core$Tuple$mapFirst = F2(
function (func, _v0) {
var x = _v0.a;
@@ -5196,14 +7192,6 @@ var $elm$core$Tuple$mapFirst = F2(
func(x),
y);
});
-var $elm$core$Tuple$mapSecond = F2(
- function (func, _v0) {
- var x = _v0.a;
- var y = _v0.b;
- return _Utils_Tuple2(
- x,
- func(y));
- });
var $mdgriffith$elm_ui$Internal$Model$renderFocusStyle = function (focus) {
return _List_fromArray(
[
@@ -7411,9 +9399,6 @@ var $elm$core$Basics$min = F2(
function (x, y) {
return (_Utils_cmp(x, y) < 0) ? x : y;
});
-var $elm$core$Basics$negate = function (n) {
- return -n;
-};
var $mdgriffith$elm_ui$Internal$Model$renderProps = F3(
function (force, _v0, existing) {
var key = _v0.a;
@@ -8124,7 +10109,6 @@ var $elm$core$List$minimum = function (list) {
return $elm$core$Maybe$Nothing;
}
};
-var $elm$core$Basics$neq = _Utils_notEqual;
var $mdgriffith$elm_ui$Internal$Model$convertAdjustment = function (adjustment) {
var lines = _List_fromArray(
[adjustment.capital, adjustment.baseline, adjustment.descender, adjustment.lowercase]);
@@ -8411,7 +10395,6 @@ var $elm$virtual_dom$VirtualDom$keyedNode = function (tag) {
};
var $elm$core$Basics$not = _Basics_not;
var $elm$html$Html$p = _VirtualDom_node('p');
-var $elm$core$Bitwise$and = _Bitwise_and;
var $mdgriffith$elm_ui$Internal$Flag$present = F2(
function (myFlag, _v0) {
var fieldOne = _v0.a;
@@ -8780,7 +10763,6 @@ var $mdgriffith$elm_ui$Internal$Flag$Field = F2(
function (a, b) {
return {$: 'Field', a: a, b: b};
});
-var $elm$core$Bitwise$or = _Bitwise_or;
var $mdgriffith$elm_ui$Internal$Flag$add = F2(
function (myFlag, _v0) {
var one = _v0.a;
@@ -8965,6 +10947,13 @@ var $mdgriffith$elm_ui$Internal$Model$alignYName = function (align) {
return $mdgriffith$elm_ui$Internal$Style$classes.alignedVertically + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.alignCenterY);
}
};
+var $elm$virtual_dom$VirtualDom$attribute = F2(
+ function (key, value) {
+ return A2(
+ _VirtualDom_attribute,
+ _VirtualDom_noOnOrFormAction(key),
+ _VirtualDom_noJavaScriptOrHtmlUri(value));
+ });
var $mdgriffith$elm_ui$Internal$Model$FullTransform = F4(
function (a, b, c, d) {
return {$: 'FullTransform', a: a, b: b, c: c, d: d};
@@ -10186,6 +12175,678 @@ var $mdgriffith$elm_ui$Internal$Model$element = F4(
$mdgriffith$elm_ui$Internal$Model$NoNearbyChildren,
$elm$core$List$reverse(attributes)));
});
+var $mdgriffith$elm_ui$Internal$Model$NoAttribute = {$: 'NoAttribute'};
+var $mdgriffith$elm_ui$Element$Input$hasFocusStyle = function (attr) {
+ if (((attr.$ === 'StyleClass') && (attr.b.$ === 'PseudoSelector')) && (attr.b.a.$ === 'Focus')) {
+ var _v1 = attr.b;
+ var _v2 = _v1.a;
+ return true;
+ } else {
+ return false;
+ }
+};
+var $mdgriffith$elm_ui$Internal$Model$htmlClass = function (cls) {
+ return $mdgriffith$elm_ui$Internal$Model$Attr(
+ $elm$html$Html$Attributes$class(cls));
+};
+var $mdgriffith$elm_ui$Element$Input$focusDefault = function (attrs) {
+ return A2($elm$core$List$any, $mdgriffith$elm_ui$Element$Input$hasFocusStyle, attrs) ? $mdgriffith$elm_ui$Internal$Model$NoAttribute : $mdgriffith$elm_ui$Internal$Model$htmlClass('focusable');
+};
+var $mdgriffith$elm_ui$Internal$Model$Height = function (a) {
+ return {$: 'Height', a: a};
+};
+var $mdgriffith$elm_ui$Element$height = $mdgriffith$elm_ui$Internal$Model$Height;
+var $elm$virtual_dom$VirtualDom$Normal = function (a) {
+ return {$: 'Normal', a: a};
+};
+var $elm$virtual_dom$VirtualDom$on = _VirtualDom_on;
+var $elm$html$Html$Events$on = F2(
+ function (event, decoder) {
+ return A2(
+ $elm$virtual_dom$VirtualDom$on,
+ event,
+ $elm$virtual_dom$VirtualDom$Normal(decoder));
+ });
+var $elm$html$Html$Events$onClick = function (msg) {
+ return A2(
+ $elm$html$Html$Events$on,
+ 'click',
+ $elm$json$Json$Decode$succeed(msg));
+};
+var $mdgriffith$elm_ui$Element$Events$onClick = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Attr, $elm$html$Html$Events$onClick);
+var $mdgriffith$elm_ui$Element$Input$enter = 'Enter';
+var $elm$json$Json$Decode$andThen = _Json_andThen;
+var $elm$json$Json$Decode$fail = _Json_fail;
+var $elm$json$Json$Decode$field = _Json_decodeField;
+var $elm$virtual_dom$VirtualDom$MayPreventDefault = function (a) {
+ return {$: 'MayPreventDefault', a: a};
+};
+var $elm$html$Html$Events$preventDefaultOn = F2(
+ function (event, decoder) {
+ return A2(
+ $elm$virtual_dom$VirtualDom$on,
+ event,
+ $elm$virtual_dom$VirtualDom$MayPreventDefault(decoder));
+ });
+var $elm$json$Json$Decode$string = _Json_decodeString;
+var $mdgriffith$elm_ui$Element$Input$onKey = F2(
+ function (desiredCode, msg) {
+ var decode = function (code) {
+ return _Utils_eq(code, desiredCode) ? $elm$json$Json$Decode$succeed(msg) : $elm$json$Json$Decode$fail('Not the enter key');
+ };
+ var isKey = A2(
+ $elm$json$Json$Decode$andThen,
+ decode,
+ A2($elm$json$Json$Decode$field, 'key', $elm$json$Json$Decode$string));
+ return $mdgriffith$elm_ui$Internal$Model$Attr(
+ A2(
+ $elm$html$Html$Events$preventDefaultOn,
+ 'keyup',
+ A2(
+ $elm$json$Json$Decode$map,
+ function (fired) {
+ return _Utils_Tuple2(fired, true);
+ },
+ isKey)));
+ });
+var $mdgriffith$elm_ui$Element$Input$onEnter = function (msg) {
+ return A2($mdgriffith$elm_ui$Element$Input$onKey, $mdgriffith$elm_ui$Element$Input$enter, msg);
+};
+var $mdgriffith$elm_ui$Internal$Model$Class = F2(
+ function (a, b) {
+ return {$: 'Class', a: a, b: b};
+ });
+var $mdgriffith$elm_ui$Internal$Flag$cursor = $mdgriffith$elm_ui$Internal$Flag$flag(21);
+var $mdgriffith$elm_ui$Element$pointer = A2($mdgriffith$elm_ui$Internal$Model$Class, $mdgriffith$elm_ui$Internal$Flag$cursor, $mdgriffith$elm_ui$Internal$Style$classes.cursorPointer);
+var $mdgriffith$elm_ui$Internal$Model$Content = {$: 'Content'};
+var $mdgriffith$elm_ui$Element$shrink = $mdgriffith$elm_ui$Internal$Model$Content;
+var $elm$html$Html$Attributes$tabindex = function (n) {
+ return A2(
+ _VirtualDom_attribute,
+ 'tabIndex',
+ $elm$core$String$fromInt(n));
+};
+var $mdgriffith$elm_ui$Internal$Model$Width = function (a) {
+ return {$: 'Width', a: a};
+};
+var $mdgriffith$elm_ui$Element$width = $mdgriffith$elm_ui$Internal$Model$Width;
+var $mdgriffith$elm_ui$Element$Input$button = F2(
+ function (attrs, _v0) {
+ var onPress = _v0.onPress;
+ var label = _v0.label;
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asEl,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentCenterX + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.seButton + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.noTextSelection)))))),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$pointer,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$Input$focusDefault(attrs),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$Describe($mdgriffith$elm_ui$Internal$Model$Button),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$Attr(
+ $elm$html$Html$Attributes$tabindex(0)),
+ function () {
+ if (onPress.$ === 'Nothing') {
+ return A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$Attr(
+ $elm$html$Html$Attributes$disabled(true)),
+ attrs);
+ } else {
+ var msg = onPress.a;
+ return A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$Events$onClick(msg),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$Input$onEnter(msg),
+ attrs));
+ }
+ }()))))))),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(
+ _List_fromArray(
+ [label])));
+ });
+var $mdgriffith$elm_ui$Internal$Model$StyleClass = F2(
+ function (a, b) {
+ return {$: 'StyleClass', a: a, b: b};
+ });
+var $mdgriffith$elm_ui$Internal$Flag$borderRound = $mdgriffith$elm_ui$Internal$Flag$flag(17);
+var $mdgriffith$elm_ui$Element$Border$rounded = function (radius) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$borderRound,
+ A3(
+ $mdgriffith$elm_ui$Internal$Model$Single,
+ 'br-' + $elm$core$String$fromInt(radius),
+ 'border-radius',
+ $elm$core$String$fromInt(radius) + 'px'));
+};
+var $Orasund$elm_ui_framework$Framework$Group$center = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Border$rounded(0)
+ ]);
+var $mdgriffith$elm_ui$Internal$Model$CenterX = {$: 'CenterX'};
+var $mdgriffith$elm_ui$Element$centerX = $mdgriffith$elm_ui$Internal$Model$AlignX($mdgriffith$elm_ui$Internal$Model$CenterX);
+var $mdgriffith$elm_ui$Internal$Model$AsColumn = {$: 'AsColumn'};
+var $mdgriffith$elm_ui$Internal$Model$asColumn = $mdgriffith$elm_ui$Internal$Model$AsColumn;
+var $mdgriffith$elm_ui$Element$column = F2(
+ function (attrs, children) {
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asColumn,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentTop + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.contentLeft)),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
+ attrs))),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
+ });
+var $mdgriffith$elm_ui$Internal$Model$Fill = function (a) {
+ return {$: 'Fill', a: a};
+};
+var $mdgriffith$elm_ui$Element$fill = $mdgriffith$elm_ui$Internal$Model$Fill(1);
+var $Orasund$elm_ui_framework$Framework$Grid$compact = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
+ $mdgriffith$elm_ui$Element$alignTop
+ ]);
+var $mdgriffith$elm_ui$Internal$Model$CenterY = {$: 'CenterY'};
+var $mdgriffith$elm_ui$Element$centerY = $mdgriffith$elm_ui$Internal$Model$AlignY($mdgriffith$elm_ui$Internal$Model$CenterY);
+var $mdgriffith$elm_ui$Internal$Model$Colored = F3(
+ function (a, b, c) {
+ return {$: 'Colored', a: a, b: b, c: c};
+ });
+var $mdgriffith$elm_ui$Internal$Flag$bgColor = $mdgriffith$elm_ui$Internal$Flag$flag(8);
+var $mdgriffith$elm_ui$Internal$Model$formatColorClass = function (_v0) {
+ var red = _v0.a;
+ var green = _v0.b;
+ var blue = _v0.c;
+ var alpha = _v0.d;
+ return $mdgriffith$elm_ui$Internal$Model$floatClass(red) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(green) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(blue) + ('-' + $mdgriffith$elm_ui$Internal$Model$floatClass(alpha))))));
+};
+var $mdgriffith$elm_ui$Element$Background$color = function (clr) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$bgColor,
+ A3(
+ $mdgriffith$elm_ui$Internal$Model$Colored,
+ 'bg-' + $mdgriffith$elm_ui$Internal$Model$formatColorClass(clr),
+ 'background-color',
+ clr));
+};
+var $mdgriffith$elm_ui$Internal$Model$Main = {$: 'Main'};
+var $mdgriffith$elm_ui$Element$Region$mainContent = $mdgriffith$elm_ui$Internal$Model$Describe($mdgriffith$elm_ui$Internal$Model$Main);
+var $mdgriffith$elm_ui$Internal$Model$Max = F2(
+ function (a, b) {
+ return {$: 'Max', a: a, b: b};
+ });
+var $mdgriffith$elm_ui$Element$maximum = F2(
+ function (i, l) {
+ return A2($mdgriffith$elm_ui$Internal$Model$Max, i, l);
+ });
+var $mdgriffith$elm_ui$Internal$Model$PaddingStyle = F5(
+ function (a, b, c, d, e) {
+ return {$: 'PaddingStyle', a: a, b: b, c: c, d: d, e: e};
+ });
+var $mdgriffith$elm_ui$Internal$Flag$padding = $mdgriffith$elm_ui$Internal$Flag$flag(2);
+var $mdgriffith$elm_ui$Element$padding = function (x) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$padding,
+ A5(
+ $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
+ 'p-' + $elm$core$String$fromInt(x),
+ x,
+ x,
+ x,
+ x));
+};
+var $mdgriffith$elm_ui$Internal$Model$Rgba = F4(
+ function (a, b, c, d) {
+ return {$: 'Rgba', a: a, b: b, c: c, d: d};
+ });
+var $mdgriffith$elm_ui$Element$rgb255 = F3(
+ function (red, green, blue) {
+ return A4($mdgriffith$elm_ui$Internal$Model$Rgba, red / 255, green / 255, blue / 255, 1);
+ });
+var $Orasund$elm_ui_framework$Framework$container = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$centerX,
+ $mdgriffith$elm_ui$Element$centerY,
+ $mdgriffith$elm_ui$Element$width(
+ A2($mdgriffith$elm_ui$Element$maximum, 1200, $mdgriffith$elm_ui$Element$fill)),
+ $mdgriffith$elm_ui$Element$padding(20),
+ $mdgriffith$elm_ui$Element$Region$mainContent,
+ $mdgriffith$elm_ui$Element$Background$color(
+ A3($mdgriffith$elm_ui$Element$rgb255, 255, 255, 255))
+ ]);
+var $author$project$Widget$Snackbar$current = function (model) {
+ return A2($elm$core$Maybe$map, $elm$core$Tuple$first, model.current);
+};
+var $mdgriffith$elm_ui$Internal$Flag$borderColor = $mdgriffith$elm_ui$Internal$Flag$flag(28);
+var $mdgriffith$elm_ui$Element$Border$color = function (clr) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$borderColor,
+ A3(
+ $mdgriffith$elm_ui$Internal$Model$Colored,
+ 'bc-' + $mdgriffith$elm_ui$Internal$Model$formatColorClass(clr),
+ 'border-color',
+ clr));
+};
+var $mdgriffith$elm_ui$Internal$Flag$fontColor = $mdgriffith$elm_ui$Internal$Flag$flag(14);
+var $mdgriffith$elm_ui$Element$Font$color = function (fontColor) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$fontColor,
+ A3(
+ $mdgriffith$elm_ui$Internal$Model$Colored,
+ 'fc-' + $mdgriffith$elm_ui$Internal$Model$formatColorClass(fontColor),
+ 'color',
+ fontColor));
+};
+var $Orasund$elm_ui_framework$Framework$Color$darkerGrey = A3($mdgriffith$elm_ui$Element$rgb255, 18, 18, 18);
+var $Orasund$elm_ui_framework$Framework$Color$lighterGrey = A3($mdgriffith$elm_ui$Element$rgb255, 245, 245, 245);
+var $Orasund$elm_ui_framework$Framework$Color$dark = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey),
+ $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey),
+ $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
+ ]);
+var $mdgriffith$elm_ui$Element$el = F2(
+ function (attrs, child) {
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asEl,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
+ attrs)),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(
+ _List_fromArray(
+ [child])));
+ });
+var $mdgriffith$elm_ui$Element$rgba255 = F4(
+ function (red, green, blue, a) {
+ return A4($mdgriffith$elm_ui$Internal$Model$Rgba, red / 255, green / 255, blue / 255, a);
+ });
+var $elm$core$List$singleton = function (value) {
+ return _List_fromArray(
+ [value]);
+};
+var $author$project$Widget$dialog = function (_v0) {
+ var onDismiss = _v0.onDismiss;
+ var content = _v0.content;
+ return A2(
+ $mdgriffith$elm_ui$Element$el,
+ _Utils_ap(
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
+ $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$fill),
+ $mdgriffith$elm_ui$Element$Background$color(
+ A4($mdgriffith$elm_ui$Element$rgba255, 0, 0, 0, 0.5))
+ ]),
+ A2(
+ $elm$core$Maybe$withDefault,
+ _List_Nil,
+ A2(
+ $elm$core$Maybe$map,
+ A2($elm$core$Basics$composeR, $mdgriffith$elm_ui$Element$Events$onClick, $elm$core$List$singleton),
+ onDismiss))),
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$centerX, $mdgriffith$elm_ui$Element$centerY]),
+ content));
+};
+var $mdgriffith$elm_ui$Internal$Model$Left = {$: 'Left'};
+var $mdgriffith$elm_ui$Element$alignLeft = $mdgriffith$elm_ui$Internal$Model$AlignX($mdgriffith$elm_ui$Internal$Model$Left);
+var $mdgriffith$elm_ui$Internal$Flag$fontWeight = $mdgriffith$elm_ui$Internal$Flag$flag(13);
+var $mdgriffith$elm_ui$Element$Font$bold = A2($mdgriffith$elm_ui$Internal$Model$Class, $mdgriffith$elm_ui$Internal$Flag$fontWeight, $mdgriffith$elm_ui$Internal$Style$classes.bold);
+var $elm$core$Basics$clamp = F3(
+ function (low, high, number) {
+ return (_Utils_cmp(number, low) < 0) ? low : ((_Utils_cmp(number, high) > 0) ? high : number);
+ });
+var $mdgriffith$elm_ui$Internal$Model$Heading = function (a) {
+ return {$: 'Heading', a: a};
+};
+var $mdgriffith$elm_ui$Element$Region$heading = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Describe, $mdgriffith$elm_ui$Internal$Model$Heading);
+var $mdgriffith$elm_ui$Internal$Model$paddingName = F4(
+ function (top, right, bottom, left) {
+ return 'pad-' + ($elm$core$String$fromInt(top) + ('-' + ($elm$core$String$fromInt(right) + ('-' + ($elm$core$String$fromInt(bottom) + ('-' + $elm$core$String$fromInt(left)))))));
+ });
+var $mdgriffith$elm_ui$Element$paddingEach = function (_v0) {
+ var top = _v0.top;
+ var right = _v0.right;
+ var bottom = _v0.bottom;
+ var left = _v0.left;
+ return (_Utils_eq(top, right) && (_Utils_eq(top, bottom) && _Utils_eq(top, left))) ? A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$padding,
+ A5(
+ $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
+ 'p-' + $elm$core$String$fromInt(top),
+ top,
+ top,
+ top,
+ top)) : A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$padding,
+ A5(
+ $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
+ A4($mdgriffith$elm_ui$Internal$Model$paddingName, top, right, bottom, left),
+ top,
+ right,
+ bottom,
+ left));
+};
+var $mdgriffith$elm_ui$Internal$Model$FontSize = function (a) {
+ return {$: 'FontSize', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Flag$fontSize = $mdgriffith$elm_ui$Internal$Flag$flag(4);
+var $mdgriffith$elm_ui$Element$Font$size = function (i) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$fontSize,
+ $mdgriffith$elm_ui$Internal$Model$FontSize(i));
+};
+var $Orasund$elm_ui_framework$Framework$Heading$h = function (inputLevel) {
+ var level = A3($elm$core$Basics$clamp, 1, 6, inputLevel);
+ var size = (level === 6) ? 14 : (32 - ((level - 1) * 4));
+ return _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Region$heading(level),
+ $mdgriffith$elm_ui$Element$Font$size(size),
+ $mdgriffith$elm_ui$Element$paddingEach(
+ {bottom: 2, left: 0, right: 0, top: 2}),
+ $mdgriffith$elm_ui$Element$alignLeft,
+ $mdgriffith$elm_ui$Element$Font$bold
+ ]);
+};
+var $Orasund$elm_ui_framework$Framework$Heading$h1 = $Orasund$elm_ui_framework$Framework$Heading$h(1);
+var $Orasund$elm_ui_framework$Framework$Heading$h3 = $Orasund$elm_ui_framework$Framework$Heading$h(3);
+var $mdgriffith$elm_ui$Internal$Model$InFront = {$: 'InFront'};
+var $mdgriffith$elm_ui$Internal$Model$Nearby = F2(
+ function (a, b) {
+ return {$: 'Nearby', a: a, b: b};
+ });
+var $mdgriffith$elm_ui$Element$createNearby = F2(
+ function (loc, element) {
+ if (element.$ === 'Empty') {
+ return $mdgriffith$elm_ui$Internal$Model$NoAttribute;
+ } else {
+ return A2($mdgriffith$elm_ui$Internal$Model$Nearby, loc, element);
+ }
+ });
+var $mdgriffith$elm_ui$Element$inFront = function (element) {
+ return A2($mdgriffith$elm_ui$Element$createNearby, $mdgriffith$elm_ui$Internal$Model$InFront, element);
+};
+var $mdgriffith$elm_ui$Internal$Model$Min = F2(
+ function (a, b) {
+ return {$: 'Min', a: a, b: b};
+ });
+var $mdgriffith$elm_ui$Element$minimum = F2(
+ function (i, l) {
+ return A2($mdgriffith$elm_ui$Internal$Model$Min, i, l);
+ });
+var $Orasund$elm_ui_framework$Framework$Color$light = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey),
+ $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
+ ]);
+var $Orasund$elm_ui_framework$Framework$Color$lightGrey = A3($mdgriffith$elm_ui$Element$rgb255, 219, 219, 219);
+var $mdgriffith$elm_ui$Element$rgba = $mdgriffith$elm_ui$Internal$Model$Rgba;
+var $mdgriffith$elm_ui$Internal$Model$boxShadowClass = function (shadow) {
+ return $elm$core$String$concat(
+ _List_fromArray(
+ [
+ shadow.inset ? 'box-inset' : 'box-',
+ $mdgriffith$elm_ui$Internal$Model$floatClass(shadow.offset.a) + 'px',
+ $mdgriffith$elm_ui$Internal$Model$floatClass(shadow.offset.b) + 'px',
+ $mdgriffith$elm_ui$Internal$Model$floatClass(shadow.blur) + 'px',
+ $mdgriffith$elm_ui$Internal$Model$floatClass(shadow.size) + 'px',
+ $mdgriffith$elm_ui$Internal$Model$formatColorClass(shadow.color)
+ ]));
+};
+var $mdgriffith$elm_ui$Internal$Flag$shadows = $mdgriffith$elm_ui$Internal$Flag$flag(19);
+var $mdgriffith$elm_ui$Element$Border$shadow = function (almostShade) {
+ var shade = {blur: almostShade.blur, color: almostShade.color, inset: false, offset: almostShade.offset, size: almostShade.size};
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$shadows,
+ A3(
+ $mdgriffith$elm_ui$Internal$Model$Single,
+ $mdgriffith$elm_ui$Internal$Model$boxShadowClass(shade),
+ 'box-shadow',
+ $mdgriffith$elm_ui$Internal$Model$formatBoxShadow(shade)));
+};
+var $mdgriffith$elm_ui$Element$paddingXY = F2(
+ function (x, y) {
+ return _Utils_eq(x, y) ? A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$padding,
+ A5(
+ $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
+ 'p-' + $elm$core$String$fromInt(x),
+ x,
+ x,
+ x,
+ x)) : A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$padding,
+ A5(
+ $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
+ 'p-' + ($elm$core$String$fromInt(x) + ('-' + $elm$core$String$fromInt(y))),
+ y,
+ x,
+ y,
+ x));
+ });
+var $Orasund$elm_ui_framework$Framework$Color$simple = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$lightGrey),
+ $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$lightGrey)
+ ]);
+var $Orasund$elm_ui_framework$Framework$Tag$simple = _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Color$simple,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Border$rounded(4),
+ A2($mdgriffith$elm_ui$Element$paddingXY, 7, 4)
+ ]));
+var $mdgriffith$elm_ui$Internal$Model$BorderWidth = F5(
+ function (a, b, c, d, e) {
+ return {$: 'BorderWidth', a: a, b: b, c: c, d: d, e: e};
+ });
+var $mdgriffith$elm_ui$Element$Border$width = function (v) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$borderWidth,
+ A5(
+ $mdgriffith$elm_ui$Internal$Model$BorderWidth,
+ 'b-' + $elm$core$String$fromInt(v),
+ v,
+ v,
+ v,
+ v));
+};
+var $Orasund$elm_ui_framework$Framework$Card$simple = _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Tag$simple,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Color$light,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Border$shadow(
+ {
+ blur: 10,
+ color: A4($mdgriffith$elm_ui$Element$rgba, 0, 0, 0, 0.05),
+ offset: _Utils_Tuple2(0, 2),
+ size: 1
+ }),
+ $mdgriffith$elm_ui$Element$Border$width(1),
+ $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$lightGrey),
+ $mdgriffith$elm_ui$Element$alignTop,
+ $mdgriffith$elm_ui$Element$padding(20),
+ $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink)
+ ])));
+var $Orasund$elm_ui_framework$Framework$Card$withSize = function (_int) {
+ return _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Card$simple,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$width(
+ A2(
+ $mdgriffith$elm_ui$Element$minimum,
+ 240,
+ A2($mdgriffith$elm_ui$Element$maximum, _int, $mdgriffith$elm_ui$Element$fill)))
+ ]));
+};
+var $Orasund$elm_ui_framework$Framework$Card$large = $Orasund$elm_ui_framework$Framework$Card$withSize(480);
+var $mdgriffith$elm_ui$Internal$Model$Empty = {$: 'Empty'};
+var $mdgriffith$elm_ui$Internal$Model$Text = function (a) {
+ return {$: 'Text', a: a};
+};
+var $elm$virtual_dom$VirtualDom$map = _VirtualDom_map;
+var $mdgriffith$elm_ui$Internal$Model$map = F2(
+ function (fn, el) {
+ switch (el.$) {
+ case 'Styled':
+ var styled = el.a;
+ return $mdgriffith$elm_ui$Internal$Model$Styled(
+ {
+ html: F2(
+ function (add, context) {
+ return A2(
+ $elm$virtual_dom$VirtualDom$map,
+ fn,
+ A2(styled.html, add, context));
+ }),
+ styles: styled.styles
+ });
+ case 'Unstyled':
+ var html = el.a;
+ return $mdgriffith$elm_ui$Internal$Model$Unstyled(
+ A2(
+ $elm$core$Basics$composeL,
+ $elm$virtual_dom$VirtualDom$map(fn),
+ html));
+ case 'Text':
+ var str = el.a;
+ return $mdgriffith$elm_ui$Internal$Model$Text(str);
+ default:
+ return $mdgriffith$elm_ui$Internal$Model$Empty;
+ }
+ });
+var $mdgriffith$elm_ui$Element$map = $mdgriffith$elm_ui$Internal$Model$map;
+var $mdgriffith$elm_ui$Element$none = $mdgriffith$elm_ui$Internal$Model$Empty;
+var $mdgriffith$elm_ui$Internal$Model$Paragraph = {$: 'Paragraph'};
+var $mdgriffith$elm_ui$Internal$Model$SpacingStyle = F3(
+ function (a, b, c) {
+ return {$: 'SpacingStyle', a: a, b: b, c: c};
+ });
+var $mdgriffith$elm_ui$Internal$Flag$spacing = $mdgriffith$elm_ui$Internal$Flag$flag(3);
+var $mdgriffith$elm_ui$Internal$Model$spacingName = F2(
+ function (x, y) {
+ return 'spacing-' + ($elm$core$String$fromInt(x) + ('-' + $elm$core$String$fromInt(y)));
+ });
+var $mdgriffith$elm_ui$Element$spacing = function (x) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$spacing,
+ A3(
+ $mdgriffith$elm_ui$Internal$Model$SpacingStyle,
+ A2($mdgriffith$elm_ui$Internal$Model$spacingName, x, x),
+ x,
+ x));
+};
+var $mdgriffith$elm_ui$Element$paragraph = F2(
+ function (attrs, children) {
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asParagraph,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$Describe($mdgriffith$elm_ui$Internal$Model$Paragraph),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$spacing(5),
+ attrs))),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
+ });
+var $Orasund$elm_ui_framework$Framework$Color$turquoise = A3($mdgriffith$elm_ui$Element$rgb255, 0, 209, 178);
+var $Orasund$elm_ui_framework$Framework$Color$primary = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$turquoise),
+ $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$turquoise)
+ ]);
+var $mdgriffith$elm_ui$Internal$Model$Px = function (a) {
+ return {$: 'Px', a: a};
+};
+var $mdgriffith$elm_ui$Element$px = $mdgriffith$elm_ui$Internal$Model$Px;
+var $elm$html$Html$Attributes$attribute = $elm$virtual_dom$VirtualDom$attribute;
+var $Orasund$elm_ui_framework$Framework$layoutAttributes = _Utils_ap(
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Font$size(16),
+ $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey)
+ ]),
+ $Orasund$elm_ui_framework$Framework$Color$light);
+var $mdgriffith$elm_ui$Internal$Model$FocusStyleOption = function (a) {
+ return {$: 'FocusStyleOption', a: a};
+};
+var $mdgriffith$elm_ui$Element$focusStyle = $mdgriffith$elm_ui$Internal$Model$FocusStyleOption;
+var $Orasund$elm_ui_framework$Framework$layoutOptions = $elm$core$List$singleton(
+ $mdgriffith$elm_ui$Element$focusStyle(
+ {
+ backgroundColor: $elm$core$Maybe$Nothing,
+ borderColor: $elm$core$Maybe$Just($Orasund$elm_ui_framework$Framework$Color$turquoise),
+ shadow: $elm$core$Maybe$Just(
+ {
+ blur: 10,
+ color: $Orasund$elm_ui_framework$Framework$Color$turquoise,
+ offset: _Utils_Tuple2(0, 0),
+ size: 1
+ })
+ }));
+var $mdgriffith$elm_ui$Internal$Model$OnlyDynamic = F2(
+ function (a, b) {
+ return {$: 'OnlyDynamic', a: a, b: b};
+ });
+var $mdgriffith$elm_ui$Internal$Model$StaticRootAndDynamic = F2(
+ function (a, b) {
+ return {$: 'StaticRootAndDynamic', a: a, b: b};
+ });
var $mdgriffith$elm_ui$Internal$Model$AllowHover = {$: 'AllowHover'};
var $mdgriffith$elm_ui$Internal$Model$Layout = {$: 'Layout'};
var $mdgriffith$elm_ui$Internal$Model$focusDefaultStyle = {
@@ -10454,253 +13115,59 @@ var $Orasund$elm_ui_framework$Framework$responsiveLayout = F2(
A2($Orasund$elm_ui_framework$Framework$layout, attributes, view)
]));
});
-var $mdgriffith$elm_ui$Internal$Model$Button = {$: 'Button'};
-var $mdgriffith$elm_ui$Internal$Model$Describe = function (a) {
- return {$: 'Describe', a: a};
-};
-var $elm$json$Json$Encode$bool = _Json_wrap;
-var $elm$html$Html$Attributes$boolProperty = F2(
- function (key, bool) {
- return A2(
- _VirtualDom_property,
- key,
- $elm$json$Json$Encode$bool(bool));
- });
-var $elm$html$Html$Attributes$disabled = $elm$html$Html$Attributes$boolProperty('disabled');
-var $mdgriffith$elm_ui$Internal$Model$NoAttribute = {$: 'NoAttribute'};
-var $mdgriffith$elm_ui$Element$Input$hasFocusStyle = function (attr) {
- if (((attr.$ === 'StyleClass') && (attr.b.$ === 'PseudoSelector')) && (attr.b.a.$ === 'Focus')) {
- var _v1 = attr.b;
- var _v2 = _v1.a;
- return true;
- } else {
- return false;
- }
-};
-var $mdgriffith$elm_ui$Element$Input$focusDefault = function (attrs) {
- return A2($elm$core$List$any, $mdgriffith$elm_ui$Element$Input$hasFocusStyle, attrs) ? $mdgriffith$elm_ui$Internal$Model$NoAttribute : $mdgriffith$elm_ui$Internal$Model$htmlClass('focusable');
-};
-var $mdgriffith$elm_ui$Internal$Model$Height = function (a) {
- return {$: 'Height', a: a};
-};
-var $mdgriffith$elm_ui$Element$height = $mdgriffith$elm_ui$Internal$Model$Height;
-var $elm$core$Basics$composeL = F3(
- function (g, f, x) {
- return g(
- f(x));
- });
-var $elm$virtual_dom$VirtualDom$Normal = function (a) {
- return {$: 'Normal', a: a};
-};
-var $elm$virtual_dom$VirtualDom$on = _VirtualDom_on;
-var $elm$html$Html$Events$on = F2(
- function (event, decoder) {
- return A2(
- $elm$virtual_dom$VirtualDom$on,
- event,
- $elm$virtual_dom$VirtualDom$Normal(decoder));
- });
-var $elm$html$Html$Events$onClick = function (msg) {
- return A2(
- $elm$html$Html$Events$on,
- 'click',
- $elm$json$Json$Decode$succeed(msg));
-};
-var $mdgriffith$elm_ui$Element$Events$onClick = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Attr, $elm$html$Html$Events$onClick);
-var $mdgriffith$elm_ui$Element$Input$enter = 'Enter';
-var $elm$json$Json$Decode$andThen = _Json_andThen;
-var $elm$json$Json$Decode$fail = _Json_fail;
-var $elm$json$Json$Decode$field = _Json_decodeField;
-var $elm$virtual_dom$VirtualDom$MayPreventDefault = function (a) {
- return {$: 'MayPreventDefault', a: a};
-};
-var $elm$html$Html$Events$preventDefaultOn = F2(
- function (event, decoder) {
- return A2(
- $elm$virtual_dom$VirtualDom$on,
- event,
- $elm$virtual_dom$VirtualDom$MayPreventDefault(decoder));
- });
-var $elm$json$Json$Decode$string = _Json_decodeString;
-var $mdgriffith$elm_ui$Element$Input$onKey = F2(
- function (desiredCode, msg) {
- var decode = function (code) {
- return _Utils_eq(code, desiredCode) ? $elm$json$Json$Decode$succeed(msg) : $elm$json$Json$Decode$fail('Not the enter key');
- };
- var isKey = A2(
- $elm$json$Json$Decode$andThen,
- decode,
- A2($elm$json$Json$Decode$field, 'key', $elm$json$Json$Decode$string));
- return $mdgriffith$elm_ui$Internal$Model$Attr(
- A2(
- $elm$html$Html$Events$preventDefaultOn,
- 'keyup',
- A2(
- $elm$json$Json$Decode$map,
- function (fired) {
- return _Utils_Tuple2(fired, true);
- },
- isKey)));
- });
-var $mdgriffith$elm_ui$Element$Input$onEnter = function (msg) {
- return A2($mdgriffith$elm_ui$Element$Input$onKey, $mdgriffith$elm_ui$Element$Input$enter, msg);
-};
-var $mdgriffith$elm_ui$Internal$Model$Class = F2(
- function (a, b) {
- return {$: 'Class', a: a, b: b};
- });
-var $mdgriffith$elm_ui$Internal$Flag$cursor = $mdgriffith$elm_ui$Internal$Flag$flag(21);
-var $mdgriffith$elm_ui$Element$pointer = A2($mdgriffith$elm_ui$Internal$Model$Class, $mdgriffith$elm_ui$Internal$Flag$cursor, $mdgriffith$elm_ui$Internal$Style$classes.cursorPointer);
-var $mdgriffith$elm_ui$Internal$Model$Content = {$: 'Content'};
-var $mdgriffith$elm_ui$Element$shrink = $mdgriffith$elm_ui$Internal$Model$Content;
-var $elm$html$Html$Attributes$tabindex = function (n) {
- return A2(
- _VirtualDom_attribute,
- 'tabIndex',
- $elm$core$String$fromInt(n));
-};
-var $mdgriffith$elm_ui$Internal$Model$Width = function (a) {
- return {$: 'Width', a: a};
-};
-var $mdgriffith$elm_ui$Element$width = $mdgriffith$elm_ui$Internal$Model$Width;
-var $mdgriffith$elm_ui$Element$Input$button = F2(
- function (attrs, _v0) {
- var onPress = _v0.onPress;
- var label = _v0.label;
- return A4(
- $mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asEl,
- $mdgriffith$elm_ui$Internal$Model$div,
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentCenterX + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.seButton + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.noTextSelection)))))),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$pointer,
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$Input$focusDefault(attrs),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$Describe($mdgriffith$elm_ui$Internal$Model$Button),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$Attr(
- $elm$html$Html$Attributes$tabindex(0)),
- function () {
- if (onPress.$ === 'Nothing') {
- return A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$Attr(
- $elm$html$Html$Attributes$disabled(true)),
- attrs);
- } else {
- var msg = onPress.a;
- return A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$Events$onClick(msg),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$Input$onEnter(msg),
- attrs));
- }
- }()))))))),
- $mdgriffith$elm_ui$Internal$Model$Unkeyed(
- _List_fromArray(
- [label])));
- });
-var $mdgriffith$elm_ui$Internal$Model$AsColumn = {$: 'AsColumn'};
-var $mdgriffith$elm_ui$Internal$Model$asColumn = $mdgriffith$elm_ui$Internal$Model$AsColumn;
-var $mdgriffith$elm_ui$Element$column = F2(
+var $mdgriffith$elm_ui$Internal$Model$AsRow = {$: 'AsRow'};
+var $mdgriffith$elm_ui$Internal$Model$asRow = $mdgriffith$elm_ui$Internal$Model$AsRow;
+var $mdgriffith$elm_ui$Element$row = F2(
function (attrs, children) {
return A4(
$mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asColumn,
+ $mdgriffith$elm_ui$Internal$Model$asRow,
$mdgriffith$elm_ui$Internal$Model$div,
A2(
$elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentTop + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.contentLeft)),
+ $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentLeft + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.contentCenterY)),
A2(
$elm$core$List$cons,
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
A2(
$elm$core$List$cons,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
+ $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
attrs))),
$mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
});
-var $mdgriffith$elm_ui$Internal$Model$AlignY = function (a) {
- return {$: 'AlignY', a: a};
+var $author$project$Widget$select = function (_v0) {
+ var selected = _v0.selected;
+ var options = _v0.options;
+ var label = _v0.label;
+ var onChange = _v0.onChange;
+ return A2(
+ $elm$core$List$map,
+ function (a) {
+ return _Utils_Tuple2(
+ {
+ label: label(a),
+ onPress: $elm$core$Maybe$Just(
+ onChange(a))
+ },
+ _Utils_eq(
+ selected,
+ $elm$core$Maybe$Just(a)));
+ },
+ options);
};
-var $mdgriffith$elm_ui$Internal$Model$Top = {$: 'Top'};
-var $mdgriffith$elm_ui$Element$alignTop = $mdgriffith$elm_ui$Internal$Model$AlignY($mdgriffith$elm_ui$Internal$Model$Top);
-var $mdgriffith$elm_ui$Internal$Model$Fill = function (a) {
- return {$: 'Fill', a: a};
-};
-var $mdgriffith$elm_ui$Element$fill = $mdgriffith$elm_ui$Internal$Model$Fill(1);
-var $Orasund$elm_ui_framework$Framework$Grid$compact = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
- $mdgriffith$elm_ui$Element$alignTop
- ]);
-var $mdgriffith$elm_ui$Internal$Model$Focus = {$: 'Focus'};
+var $mdgriffith$elm_ui$Internal$Flag$fontAlignment = $mdgriffith$elm_ui$Internal$Flag$flag(12);
+var $mdgriffith$elm_ui$Element$Font$center = A2($mdgriffith$elm_ui$Internal$Model$Class, $mdgriffith$elm_ui$Internal$Flag$fontAlignment, $mdgriffith$elm_ui$Internal$Style$classes.textCenter);
+var $Orasund$elm_ui_framework$Framework$Color$grey = A3($mdgriffith$elm_ui$Element$rgb255, 122, 122, 122);
+var $mdgriffith$elm_ui$Internal$Model$Hover = {$: 'Hover'};
var $mdgriffith$elm_ui$Internal$Model$PseudoSelector = F2(
function (a, b) {
return {$: 'PseudoSelector', a: a, b: b};
});
-var $mdgriffith$elm_ui$Internal$Flag$focus = $mdgriffith$elm_ui$Internal$Flag$flag(31);
-var $mdgriffith$elm_ui$Internal$Model$AlignX = function (a) {
- return {$: 'AlignX', a: a};
-};
-var $mdgriffith$elm_ui$Internal$Model$Nearby = F2(
- function (a, b) {
- return {$: 'Nearby', a: a, b: b};
- });
+var $mdgriffith$elm_ui$Internal$Flag$hover = $mdgriffith$elm_ui$Internal$Flag$flag(33);
var $mdgriffith$elm_ui$Internal$Model$TransformComponent = F2(
function (a, b) {
return {$: 'TransformComponent', a: a, b: b};
});
-var $mdgriffith$elm_ui$Internal$Model$Empty = {$: 'Empty'};
-var $mdgriffith$elm_ui$Internal$Model$Text = function (a) {
- return {$: 'Text', a: a};
-};
-var $elm$virtual_dom$VirtualDom$map = _VirtualDom_map;
-var $mdgriffith$elm_ui$Internal$Model$map = F2(
- function (fn, el) {
- switch (el.$) {
- case 'Styled':
- var styled = el.a;
- return $mdgriffith$elm_ui$Internal$Model$Styled(
- {
- html: F2(
- function (add, context) {
- return A2(
- $elm$virtual_dom$VirtualDom$map,
- fn,
- A2(styled.html, add, context));
- }),
- styles: styled.styles
- });
- case 'Unstyled':
- var html = el.a;
- return $mdgriffith$elm_ui$Internal$Model$Unstyled(
- A2(
- $elm$core$Basics$composeL,
- $elm$virtual_dom$VirtualDom$map(fn),
- html));
- case 'Text':
- var str = el.a;
- return $mdgriffith$elm_ui$Internal$Model$Text(str);
- default:
- return $mdgriffith$elm_ui$Internal$Model$Empty;
- }
- });
var $elm$virtual_dom$VirtualDom$mapAttribute = _VirtualDom_mapAttribute;
var $mdgriffith$elm_ui$Internal$Model$mapAttrFromStyle = F2(
function (fn, attr) {
@@ -10747,15 +13214,6 @@ var $mdgriffith$elm_ui$Internal$Model$mapAttrFromStyle = F2(
return A2($mdgriffith$elm_ui$Internal$Model$TransformComponent, fl, trans);
}
});
-var $elm$core$Basics$never = function (_v0) {
- never:
- while (true) {
- var nvr = _v0.a;
- var $temp$_v0 = nvr;
- _v0 = $temp$_v0;
- continue never;
- }
-};
var $mdgriffith$elm_ui$Internal$Model$removeNever = function (style) {
return A2($mdgriffith$elm_ui$Internal$Model$mapAttrFromStyle, $elm$core$Basics$never, style);
};
@@ -10793,19 +13251,6 @@ var $mdgriffith$elm_ui$Internal$Model$unwrapDecorations = function (attrs) {
$mdgriffith$elm_ui$Internal$Model$Transform(transform),
styles);
};
-var $mdgriffith$elm_ui$Element$focused = function (decs) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$focus,
- A2(
- $mdgriffith$elm_ui$Internal$Model$PseudoSelector,
- $mdgriffith$elm_ui$Internal$Model$Focus,
- $mdgriffith$elm_ui$Internal$Model$unwrapDecorations(decs)));
-};
-var $Orasund$elm_ui_framework$Framework$Color$grey = A3($mdgriffith$elm_ui$Element$rgb255, 122, 122, 122);
-var $mdgriffith$elm_ui$Element$htmlAttribute = $mdgriffith$elm_ui$Internal$Model$Attr;
-var $mdgriffith$elm_ui$Internal$Model$Hover = {$: 'Hover'};
-var $mdgriffith$elm_ui$Internal$Flag$hover = $mdgriffith$elm_ui$Internal$Flag$flag(33);
var $mdgriffith$elm_ui$Element$mouseOver = function (decs) {
return A2(
$mdgriffith$elm_ui$Internal$Model$StyleClass,
@@ -10815,160 +13260,6 @@ var $mdgriffith$elm_ui$Element$mouseOver = function (decs) {
$mdgriffith$elm_ui$Internal$Model$Hover,
$mdgriffith$elm_ui$Internal$Model$unwrapDecorations(decs)));
};
-var $Orasund$elm_ui_framework$Framework$Color$lightGrey = A3($mdgriffith$elm_ui$Element$rgb255, 219, 219, 219);
-var $Orasund$elm_ui_framework$Framework$Color$simple = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$lightGrey),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$lightGrey)
- ]);
-var $elm$virtual_dom$VirtualDom$style = _VirtualDom_style;
-var $elm$html$Html$Attributes$style = $elm$virtual_dom$VirtualDom$style;
-var $Orasund$elm_ui_framework$Framework$Color$disabled = _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Color$simple,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$grey),
- $mdgriffith$elm_ui$Element$mouseOver(_List_Nil),
- $mdgriffith$elm_ui$Element$focused(_List_Nil),
- $mdgriffith$elm_ui$Element$htmlAttribute(
- A2($elm$html$Html$Attributes$style, 'cursor', 'not-allowed'))
- ]));
-var $mdgriffith$elm_ui$Element$el = F2(
- function (attrs, child) {
- return A4(
- $mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asEl,
- $mdgriffith$elm_ui$Internal$Model$div,
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
- attrs)),
- $mdgriffith$elm_ui$Internal$Model$Unkeyed(
- _List_fromArray(
- [child])));
- });
-var $mdgriffith$elm_ui$Internal$Flag$fontAlignment = $mdgriffith$elm_ui$Internal$Flag$flag(12);
-var $mdgriffith$elm_ui$Element$Font$center = A2($mdgriffith$elm_ui$Internal$Model$Class, $mdgriffith$elm_ui$Internal$Flag$fontAlignment, $mdgriffith$elm_ui$Internal$Style$classes.textCenter);
-var $mdgriffith$elm_ui$Internal$Model$PaddingStyle = F5(
- function (a, b, c, d, e) {
- return {$: 'PaddingStyle', a: a, b: b, c: c, d: d, e: e};
- });
-var $mdgriffith$elm_ui$Internal$Flag$padding = $mdgriffith$elm_ui$Internal$Flag$flag(2);
-var $mdgriffith$elm_ui$Element$paddingXY = F2(
- function (x, y) {
- return _Utils_eq(x, y) ? A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$padding,
- A5(
- $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
- 'p-' + $elm$core$String$fromInt(x),
- x,
- x,
- x,
- x)) : A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$padding,
- A5(
- $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
- 'p-' + ($elm$core$String$fromInt(x) + ('-' + $elm$core$String$fromInt(y))),
- y,
- x,
- y,
- x));
- });
-var $mdgriffith$elm_ui$Element$padding = function (x) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$padding,
- A5(
- $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
- 'p-' + $elm$core$String$fromInt(x),
- x,
- x,
- x,
- x));
-};
-var $mdgriffith$elm_ui$Element$rgba = $mdgriffith$elm_ui$Internal$Model$Rgba;
-var $mdgriffith$elm_ui$Internal$Model$boxShadowClass = function (shadow) {
- return $elm$core$String$concat(
- _List_fromArray(
- [
- shadow.inset ? 'box-inset' : 'box-',
- $mdgriffith$elm_ui$Internal$Model$floatClass(shadow.offset.a) + 'px',
- $mdgriffith$elm_ui$Internal$Model$floatClass(shadow.offset.b) + 'px',
- $mdgriffith$elm_ui$Internal$Model$floatClass(shadow.blur) + 'px',
- $mdgriffith$elm_ui$Internal$Model$floatClass(shadow.size) + 'px',
- $mdgriffith$elm_ui$Internal$Model$formatColorClass(shadow.color)
- ]));
-};
-var $mdgriffith$elm_ui$Internal$Flag$shadows = $mdgriffith$elm_ui$Internal$Flag$flag(19);
-var $mdgriffith$elm_ui$Element$Border$shadow = function (almostShade) {
- var shade = {blur: almostShade.blur, color: almostShade.color, inset: false, offset: almostShade.offset, size: almostShade.size};
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$shadows,
- A3(
- $mdgriffith$elm_ui$Internal$Model$Single,
- $mdgriffith$elm_ui$Internal$Model$boxShadowClass(shade),
- 'box-shadow',
- $mdgriffith$elm_ui$Internal$Model$formatBoxShadow(shade)));
-};
-var $mdgriffith$elm_ui$Internal$Flag$borderRound = $mdgriffith$elm_ui$Internal$Flag$flag(17);
-var $mdgriffith$elm_ui$Element$Border$rounded = function (radius) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$borderRound,
- A3(
- $mdgriffith$elm_ui$Internal$Model$Single,
- 'br-' + $elm$core$String$fromInt(radius),
- 'border-radius',
- $elm$core$String$fromInt(radius) + 'px'));
-};
-var $Orasund$elm_ui_framework$Framework$Tag$simple = _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Color$simple,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Border$rounded(4),
- A2($mdgriffith$elm_ui$Element$paddingXY, 7, 4)
- ]));
-var $mdgriffith$elm_ui$Internal$Model$BorderWidth = F5(
- function (a, b, c, d, e) {
- return {$: 'BorderWidth', a: a, b: b, c: c, d: d, e: e};
- });
-var $mdgriffith$elm_ui$Element$Border$width = function (v) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$borderWidth,
- A5(
- $mdgriffith$elm_ui$Internal$Model$BorderWidth,
- 'b-' + $elm$core$String$fromInt(v),
- v,
- v,
- v,
- v));
-};
-var $Orasund$elm_ui_framework$Framework$Card$simple = _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Tag$simple,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Color$light,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Border$shadow(
- {
- blur: 10,
- color: A4($mdgriffith$elm_ui$Element$rgba, 0, 0, 0, 0.05),
- offset: _Utils_Tuple2(0, 2),
- size: 1
- }),
- $mdgriffith$elm_ui$Element$Border$width(1),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$lightGrey),
- $mdgriffith$elm_ui$Element$alignTop,
- $mdgriffith$elm_ui$Element$padding(20),
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink)
- ])));
var $Orasund$elm_ui_framework$Framework$Button$simple = _Utils_ap(
$Orasund$elm_ui_framework$Framework$Card$simple,
_Utils_ap(
@@ -10983,12 +13274,30 @@ var $Orasund$elm_ui_framework$Framework$Button$simple = _Utils_ap(
])),
A2($mdgriffith$elm_ui$Element$paddingXY, 16, 12)
])));
-var $Orasund$elm_ui_framework$Framework$Button$fill = _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Button$simple,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill)
- ]));
+var $Orasund$elm_ui_framework$Framework$Grid$simple = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$spacing(10),
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
+ $mdgriffith$elm_ui$Element$alignTop
+ ]);
+var $mdgriffith$elm_ui$Element$text = function (content) {
+ return $mdgriffith$elm_ui$Internal$Model$Text(content);
+};
+var $author$project$Component$FilterSelectSpecific = function (a) {
+ return {$: 'FilterSelectSpecific', a: a};
+};
+var $author$project$Widget$FilterSelect$Selected = function (a) {
+ return {$: 'Selected', a: a};
+};
+var $Orasund$elm_ui_framework$Framework$Color$red = A3($mdgriffith$elm_ui$Element$rgb255, 255, 56, 96);
+var $Orasund$elm_ui_framework$Framework$Color$danger = _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$red),
+ $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$red),
+ $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
+ ]);
+var $mdgriffith$elm_ui$Internal$Model$unstyled = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Unstyled, $elm$core$Basics$always);
+var $mdgriffith$elm_ui$Element$html = $mdgriffith$elm_ui$Internal$Model$unstyled;
var $mdgriffith$elm_ui$Element$Border$roundEach = function (_v0) {
var topLeft = _v0.topLeft;
var topRight = _v0.topRight;
@@ -11008,1305 +13317,29 @@ var $Orasund$elm_ui_framework$Framework$Group$left = _List_fromArray(
$mdgriffith$elm_ui$Element$Border$roundEach(
{bottomLeft: 4, bottomRight: 0, topLeft: 4, topRight: 0})
]);
-var $Orasund$elm_ui_framework$Framework$Button$groupLeft = _Utils_ap($Orasund$elm_ui_framework$Framework$Button$simple, $Orasund$elm_ui_framework$Framework$Group$left);
+var $mdgriffith$elm_ui$Element$Input$Placeholder = F2(
+ function (a, b) {
+ return {$: 'Placeholder', a: a, b: b};
+ });
+var $mdgriffith$elm_ui$Element$Input$placeholder = $mdgriffith$elm_ui$Element$Input$Placeholder;
var $Orasund$elm_ui_framework$Framework$Group$right = _List_fromArray(
[
$mdgriffith$elm_ui$Element$Border$roundEach(
{bottomLeft: 0, bottomRight: 4, topLeft: 0, topRight: 4})
]);
-var $Orasund$elm_ui_framework$Framework$Button$groupRight = _Utils_ap($Orasund$elm_ui_framework$Framework$Button$simple, $Orasund$elm_ui_framework$Framework$Group$right);
-var $mdgriffith$elm_ui$Internal$Model$Left = {$: 'Left'};
-var $mdgriffith$elm_ui$Element$alignLeft = $mdgriffith$elm_ui$Internal$Model$AlignX($mdgriffith$elm_ui$Internal$Model$Left);
-var $mdgriffith$elm_ui$Internal$Flag$fontWeight = $mdgriffith$elm_ui$Internal$Flag$flag(13);
-var $mdgriffith$elm_ui$Element$Font$bold = A2($mdgriffith$elm_ui$Internal$Model$Class, $mdgriffith$elm_ui$Internal$Flag$fontWeight, $mdgriffith$elm_ui$Internal$Style$classes.bold);
-var $elm$core$Basics$clamp = F3(
- function (low, high, number) {
- return (_Utils_cmp(number, low) < 0) ? low : ((_Utils_cmp(number, high) > 0) ? high : number);
- });
-var $mdgriffith$elm_ui$Internal$Model$Heading = function (a) {
- return {$: 'Heading', a: a};
-};
-var $mdgriffith$elm_ui$Element$Region$heading = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Describe, $mdgriffith$elm_ui$Internal$Model$Heading);
-var $mdgriffith$elm_ui$Internal$Model$paddingName = F4(
- function (top, right, bottom, left) {
- return 'pad-' + ($elm$core$String$fromInt(top) + ('-' + ($elm$core$String$fromInt(right) + ('-' + ($elm$core$String$fromInt(bottom) + ('-' + $elm$core$String$fromInt(left)))))));
- });
-var $mdgriffith$elm_ui$Element$paddingEach = function (_v0) {
- var top = _v0.top;
- var right = _v0.right;
- var bottom = _v0.bottom;
- var left = _v0.left;
- return (_Utils_eq(top, right) && (_Utils_eq(top, bottom) && _Utils_eq(top, left))) ? A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$padding,
- A5(
- $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
- 'p-' + $elm$core$String$fromInt(top),
- top,
- top,
- top,
- top)) : A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$padding,
- A5(
- $mdgriffith$elm_ui$Internal$Model$PaddingStyle,
- A4($mdgriffith$elm_ui$Internal$Model$paddingName, top, right, bottom, left),
- top,
- right,
- bottom,
- left));
-};
-var $Orasund$elm_ui_framework$Framework$Heading$h = function (inputLevel) {
- var level = A3($elm$core$Basics$clamp, 1, 6, inputLevel);
- var size = (level === 6) ? 14 : (32 - ((level - 1) * 4));
- return _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Region$heading(level),
- $mdgriffith$elm_ui$Element$Font$size(size),
- $mdgriffith$elm_ui$Element$paddingEach(
- {bottom: 2, left: 0, right: 0, top: 2}),
- $mdgriffith$elm_ui$Element$alignLeft,
- $mdgriffith$elm_ui$Element$Font$bold
- ]);
-};
-var $Orasund$elm_ui_framework$Framework$Heading$h2 = $Orasund$elm_ui_framework$Framework$Heading$h(2);
-var $Orasund$elm_ui_framework$Framework$Heading$h3 = $Orasund$elm_ui_framework$Framework$Heading$h(3);
-var $mdgriffith$elm_ui$Internal$Model$Max = F2(
- function (a, b) {
- return {$: 'Max', a: a, b: b};
- });
-var $mdgriffith$elm_ui$Element$maximum = F2(
- function (i, l) {
- return A2($mdgriffith$elm_ui$Internal$Model$Max, i, l);
- });
-var $mdgriffith$elm_ui$Internal$Model$Min = F2(
- function (a, b) {
- return {$: 'Min', a: a, b: b};
- });
-var $mdgriffith$elm_ui$Element$minimum = F2(
- function (i, l) {
- return A2($mdgriffith$elm_ui$Internal$Model$Min, i, l);
- });
-var $Orasund$elm_ui_framework$Framework$Card$withSize = function (_int) {
- return _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$simple,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$width(
- A2(
- $mdgriffith$elm_ui$Element$minimum,
- 240,
- A2($mdgriffith$elm_ui$Element$maximum, _int, $mdgriffith$elm_ui$Element$fill)))
- ]));
-};
-var $Orasund$elm_ui_framework$Framework$Card$large = $Orasund$elm_ui_framework$Framework$Card$withSize(480);
-var $mdgriffith$elm_ui$Internal$Model$Paragraph = {$: 'Paragraph'};
-var $mdgriffith$elm_ui$Internal$Model$SpacingStyle = F3(
- function (a, b, c) {
- return {$: 'SpacingStyle', a: a, b: b, c: c};
- });
-var $mdgriffith$elm_ui$Internal$Flag$spacing = $mdgriffith$elm_ui$Internal$Flag$flag(3);
-var $mdgriffith$elm_ui$Internal$Model$spacingName = F2(
- function (x, y) {
- return 'spacing-' + ($elm$core$String$fromInt(x) + ('-' + $elm$core$String$fromInt(y)));
- });
-var $mdgriffith$elm_ui$Element$spacing = function (x) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$spacing,
- A3(
- $mdgriffith$elm_ui$Internal$Model$SpacingStyle,
- A2($mdgriffith$elm_ui$Internal$Model$spacingName, x, x),
- x,
- x));
-};
-var $mdgriffith$elm_ui$Element$paragraph = F2(
- function (attrs, children) {
- return A4(
- $mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asParagraph,
- $mdgriffith$elm_ui$Internal$Model$div,
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$Describe($mdgriffith$elm_ui$Internal$Model$Paragraph),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$spacing(5),
- attrs))),
- $mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
- });
-var $Orasund$elm_ui_framework$Framework$Color$primary = _List_fromArray(
+var $Orasund$elm_ui_framework$Framework$Input$simple = _List_fromArray(
[
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$turquoise),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$turquoise)
+ $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey),
+ $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey)
]);
-var $mdgriffith$elm_ui$Internal$Model$AsRow = {$: 'AsRow'};
-var $mdgriffith$elm_ui$Internal$Model$asRow = $mdgriffith$elm_ui$Internal$Model$AsRow;
-var $mdgriffith$elm_ui$Element$row = F2(
- function (attrs, children) {
- return A4(
- $mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asRow,
- $mdgriffith$elm_ui$Internal$Model$div,
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentLeft + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.contentCenterY)),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
- attrs))),
- $mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
- });
-var $Orasund$elm_ui_framework$Framework$Grid$simple = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$spacing(10),
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
- $mdgriffith$elm_ui$Element$alignTop
- ]);
-var $mdgriffith$elm_ui$Element$Border$widthXY = F2(
- function (x, y) {
- return A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$borderWidth,
- A5(
- $mdgriffith$elm_ui$Internal$Model$BorderWidth,
- 'b-' + ($elm$core$String$fromInt(x) + ('-' + $elm$core$String$fromInt(y))),
- y,
- x,
- y,
- x));
- });
-var $mdgriffith$elm_ui$Element$Border$widthEach = function (_v0) {
- var bottom = _v0.bottom;
- var top = _v0.top;
- var left = _v0.left;
- var right = _v0.right;
- return (_Utils_eq(top, bottom) && _Utils_eq(left, right)) ? (_Utils_eq(top, right) ? $mdgriffith$elm_ui$Element$Border$width(top) : A2($mdgriffith$elm_ui$Element$Border$widthXY, left, top)) : A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$borderWidth,
- A5(
- $mdgriffith$elm_ui$Internal$Model$BorderWidth,
- 'b-' + ($elm$core$String$fromInt(top) + ('-' + ($elm$core$String$fromInt(right) + ('-' + ($elm$core$String$fromInt(bottom) + ('-' + $elm$core$String$fromInt(left))))))),
- top,
- right,
- bottom,
- left));
-};
-var $Orasund$elm_ui_framework$Framework$Grid$section = _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Border$widthEach(
- {bottom: 0, left: 0, right: 0, top: 2}),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$lightGrey),
- $mdgriffith$elm_ui$Element$paddingEach(
- {bottom: 30, left: 0, right: 0, top: 10})
- ]));
-var $mdgriffith$elm_ui$Element$text = function (content) {
- return $mdgriffith$elm_ui$Internal$Model$Text(content);
-};
-var $mdgriffith$elm_ui$Internal$Model$Padding = F5(
- function (a, b, c, d, e) {
- return {$: 'Padding', a: a, b: b, c: c, d: d, e: e};
- });
-var $mdgriffith$elm_ui$Internal$Model$Spaced = F3(
- function (a, b, c) {
- return {$: 'Spaced', a: a, b: b, c: c};
- });
-var $mdgriffith$elm_ui$Internal$Model$extractSpacingAndPadding = function (attrs) {
- return A3(
- $elm$core$List$foldr,
- F2(
- function (attr, _v0) {
- var pad = _v0.a;
- var spacing = _v0.b;
- return _Utils_Tuple2(
- function () {
- if (pad.$ === 'Just') {
- var x = pad.a;
- return pad;
- } else {
- if ((attr.$ === 'StyleClass') && (attr.b.$ === 'PaddingStyle')) {
- var _v3 = attr.b;
- var name = _v3.a;
- var t = _v3.b;
- var r = _v3.c;
- var b = _v3.d;
- var l = _v3.e;
- return $elm$core$Maybe$Just(
- A5($mdgriffith$elm_ui$Internal$Model$Padding, name, t, r, b, l));
- } else {
- return $elm$core$Maybe$Nothing;
- }
- }
- }(),
- function () {
- if (spacing.$ === 'Just') {
- var x = spacing.a;
- return spacing;
- } else {
- if ((attr.$ === 'StyleClass') && (attr.b.$ === 'SpacingStyle')) {
- var _v6 = attr.b;
- var name = _v6.a;
- var x = _v6.b;
- var y = _v6.c;
- return $elm$core$Maybe$Just(
- A3($mdgriffith$elm_ui$Internal$Model$Spaced, name, x, y));
- } else {
- return $elm$core$Maybe$Nothing;
- }
- }
- }());
- }),
- _Utils_Tuple2($elm$core$Maybe$Nothing, $elm$core$Maybe$Nothing),
- attrs);
-};
-var $mdgriffith$elm_ui$Element$wrappedRow = F2(
- function (attrs, children) {
- var _v0 = $mdgriffith$elm_ui$Internal$Model$extractSpacingAndPadding(attrs);
- var padded = _v0.a;
- var spaced = _v0.b;
- if (spaced.$ === 'Nothing') {
- return A4(
- $mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asRow,
- $mdgriffith$elm_ui$Internal$Model$div,
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentLeft + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.wrapped)))),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
- attrs))),
- $mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
- } else {
- var _v2 = spaced.a;
- var spaceName = _v2.a;
- var x = _v2.b;
- var y = _v2.c;
- var newPadding = function () {
- if (padded.$ === 'Just') {
- var _v5 = padded.a;
- var name = _v5.a;
- var t = _v5.b;
- var r = _v5.c;
- var b = _v5.d;
- var l = _v5.e;
- return ((_Utils_cmp(r, (x / 2) | 0) > -1) && (_Utils_cmp(b, (y / 2) | 0) > -1)) ? $elm$core$Maybe$Just(
- $mdgriffith$elm_ui$Element$paddingEach(
- {bottom: b - ((y / 2) | 0), left: l - ((x / 2) | 0), right: r - ((x / 2) | 0), top: t - ((y / 2) | 0)})) : $elm$core$Maybe$Nothing;
- } else {
- return $elm$core$Maybe$Nothing;
- }
- }();
- if (newPadding.$ === 'Just') {
- var pad = newPadding.a;
- return A4(
- $mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asRow,
- $mdgriffith$elm_ui$Internal$Model$div,
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentLeft + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.wrapped)))),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
- _Utils_ap(
- attrs,
- _List_fromArray(
- [pad]))))),
- $mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
- } else {
- var halfY = -(y / 2);
- var halfX = -(x / 2);
- return A4(
- $mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asEl,
- $mdgriffith$elm_ui$Internal$Model$div,
- attrs,
- $mdgriffith$elm_ui$Internal$Model$Unkeyed(
- _List_fromArray(
- [
- A4(
- $mdgriffith$elm_ui$Internal$Model$element,
- $mdgriffith$elm_ui$Internal$Model$asRow,
- $mdgriffith$elm_ui$Internal$Model$div,
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentLeft + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.wrapped)))),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$Attr(
- A2(
- $elm$html$Html$Attributes$style,
- 'margin',
- $elm$core$String$fromFloat(halfY) + ('px' + (' ' + ($elm$core$String$fromFloat(halfX) + 'px'))))),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$Attr(
- A2(
- $elm$html$Html$Attributes$style,
- 'width',
- 'calc(100% + ' + ($elm$core$String$fromInt(x) + 'px)'))),
- A2(
- $elm$core$List$cons,
- $mdgriffith$elm_ui$Internal$Model$Attr(
- A2(
- $elm$html$Html$Attributes$style,
- 'height',
- 'calc(100% + ' + ($elm$core$String$fromInt(y) + 'px)'))),
- A2(
- $elm$core$List$cons,
- A2(
- $mdgriffith$elm_ui$Internal$Model$StyleClass,
- $mdgriffith$elm_ui$Internal$Flag$spacing,
- A3($mdgriffith$elm_ui$Internal$Model$SpacingStyle, spaceName, x, y)),
- _List_Nil))))),
- $mdgriffith$elm_ui$Internal$Model$Unkeyed(children))
- ])));
- }
- }
- });
-var $Orasund$elm_ui_framework$Example$button = A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h2,
- $mdgriffith$elm_ui$Element$text('Button')),
- A2(
- $mdgriffith$elm_ui$Element$column,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Grid$simple),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$Input$button,
- $Orasund$elm_ui_framework$Framework$Button$simple,
- {
- label: $mdgriffith$elm_ui$Element$text('Button.simple'),
- onPress: $elm$core$Maybe$Nothing
- }),
- A2(
- $mdgriffith$elm_ui$Element$Input$button,
- $Orasund$elm_ui_framework$Framework$Button$fill,
- {
- label: $mdgriffith$elm_ui$Element$text('Button.fill'),
- onPress: $elm$core$Maybe$Nothing
- })
- ]))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$paragraph,
- _List_Nil,
- $elm$core$List$singleton(
- $mdgriffith$elm_ui$Element$text('Button attributes can be combined with other attributes.'))),
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$Input$button,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Button$simple, $Orasund$elm_ui_framework$Framework$Tag$simple),
- {
- label: $mdgriffith$elm_ui$Element$text('Button.simple ++ Tag.simple'),
- onPress: $elm$core$Maybe$Nothing
- }),
- A2(
- $mdgriffith$elm_ui$Element$Input$button,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Button$simple, $Orasund$elm_ui_framework$Framework$Color$disabled),
- {
- label: $mdgriffith$elm_ui$Element$text('Button.simple ++ Color.disabled'),
- onPress: $elm$core$Maybe$Nothing
- }),
- A2(
- $mdgriffith$elm_ui$Element$Input$button,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Button$simple, $Orasund$elm_ui_framework$Framework$Color$primary),
- {
- label: $mdgriffith$elm_ui$Element$text('Button.simple ++ Color.primary'),
- onPress: $elm$core$Maybe$Nothing
- }),
- A2(
- $mdgriffith$elm_ui$Element$Input$button,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Button$simple, $Orasund$elm_ui_framework$Framework$Card$large),
- {
- label: $mdgriffith$elm_ui$Element$text('Button.simple ++ Card.large'),
- onPress: $elm$core$Maybe$Nothing
- })
- ])),
- A2(
- $mdgriffith$elm_ui$Element$paragraph,
- _List_Nil,
- $elm$core$List$singleton(
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Grid.compact with Group.left/right')))),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$compact,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$Input$button,
- $Orasund$elm_ui_framework$Framework$Button$groupLeft,
- {
- label: $mdgriffith$elm_ui$Element$text('Group.left'),
- onPress: $elm$core$Maybe$Nothing
- }),
- A2(
- $mdgriffith$elm_ui$Element$Input$button,
- $Orasund$elm_ui_framework$Framework$Button$groupRight,
- {
- label: $mdgriffith$elm_ui$Element$text('Group.right'),
- onPress: $elm$core$Maybe$Nothing
- })
- ]))
- ]))
- ]));
-var $Orasund$elm_ui_framework$Framework$Card$fill = _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$simple,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill)
- ]));
-var $Orasund$elm_ui_framework$Framework$Heading$h1 = $Orasund$elm_ui_framework$Framework$Heading$h(1);
var $Orasund$elm_ui_framework$Framework$Card$small = $Orasund$elm_ui_framework$Framework$Card$withSize(240);
-var $Orasund$elm_ui_framework$Example$card = A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h1,
- $mdgriffith$elm_ui$Element$text('Card')),
- A2(
- $mdgriffith$elm_ui$Element$paragraph,
- _List_Nil,
- $elm$core$List$singleton(
- $mdgriffith$elm_ui$Element$text('Cards work on almost any Element. Try resizing the screen to see the differences'))),
- A2(
- $mdgriffith$elm_ui$Element$column,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Grid$simple),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('Card.simple')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$small,
- $mdgriffith$elm_ui$Element$text('Card.small (240px)')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$large,
- $mdgriffith$elm_ui$Element$text('Card.large (480px)')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$fill,
- $mdgriffith$elm_ui$Element$text('Card.fill'))
- ]))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$paragraph,
- _List_Nil,
- $elm$core$List$singleton(
- $mdgriffith$elm_ui$Element$text('Card attributes can be combined with other attributes.'))),
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Color$primary),
- $mdgriffith$elm_ui$Element$text('Card.simple ++ Color.primary')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Color$primary, $Orasund$elm_ui_framework$Framework$Card$simple),
- $mdgriffith$elm_ui$Element$text('Color.primary ++ Card.simple'))
- ]))
- ]));
-var $Orasund$elm_ui_framework$Framework$Color$cyan = A3($mdgriffith$elm_ui$Element$rgb255, 32, 156, 238);
-var $Orasund$elm_ui_framework$Framework$Color$red = A3($mdgriffith$elm_ui$Element$rgb255, 255, 56, 96);
-var $Orasund$elm_ui_framework$Framework$Color$danger = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$red),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$red),
- $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
- ]);
-var $Orasund$elm_ui_framework$Framework$Color$dark = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey),
- $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
- ]);
-var $Orasund$elm_ui_framework$Framework$Color$darkGrey = A3($mdgriffith$elm_ui$Element$rgb255, 54, 54, 54);
-var $Orasund$elm_ui_framework$Framework$Color$green = A3($mdgriffith$elm_ui$Element$rgb255, 35, 209, 96);
-var $Orasund$elm_ui_framework$Framework$Color$info = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$cyan),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$cyan)
- ]);
-var $mdgriffith$elm_ui$Internal$Model$CenterX = {$: 'CenterX'};
-var $mdgriffith$elm_ui$Element$centerX = $mdgriffith$elm_ui$Internal$Model$AlignX($mdgriffith$elm_ui$Internal$Model$CenterX);
-var $mdgriffith$elm_ui$Internal$Model$CenterY = {$: 'CenterY'};
-var $mdgriffith$elm_ui$Element$centerY = $mdgriffith$elm_ui$Internal$Model$AlignY($mdgriffith$elm_ui$Internal$Model$CenterY);
-var $mdgriffith$elm_ui$Element$spaceEvenly = A2($mdgriffith$elm_ui$Internal$Model$Class, $mdgriffith$elm_ui$Internal$Flag$spacing, $mdgriffith$elm_ui$Internal$Style$classes.spaceEvenly);
-var $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$spaceEvenly,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$fill),
- $mdgriffith$elm_ui$Element$centerX,
- $mdgriffith$elm_ui$Element$centerY
- ]);
-var $Orasund$elm_ui_framework$Framework$Color$success = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$green),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$green)
- ]);
-var $Orasund$elm_ui_framework$Framework$Color$yellow = A3($mdgriffith$elm_ui$Element$rgb255, 255, 221, 87);
-var $Orasund$elm_ui_framework$Framework$Color$warning = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$yellow),
- $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$yellow)
- ]);
-var $Orasund$elm_ui_framework$Framework$Color$white = A3($mdgriffith$elm_ui$Element$rgb255, 255, 255, 255);
-var $Orasund$elm_ui_framework$Example$color = A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h2,
- $mdgriffith$elm_ui$Element$text('Color')),
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Grid$simple),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Elm-Ui Attributes')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$primary),
- $mdgriffith$elm_ui$Element$text('Color.primary')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$info),
- $mdgriffith$elm_ui$Element$text('Color.info')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$success),
- $mdgriffith$elm_ui$Element$text('Color.success')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$warning),
- $mdgriffith$elm_ui$Element$text('Color.warning')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$danger),
- $mdgriffith$elm_ui$Element$text('Color.danger')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$light),
- $mdgriffith$elm_ui$Element$text('Color.light')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$simple),
- $mdgriffith$elm_ui$Element$text('Color.simple')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$dark),
- $mdgriffith$elm_ui$Element$text('Color.dark')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$disabled),
- $mdgriffith$elm_ui$Element$text('Color.disabled'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Elm-Ui Colors')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$turquoise)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.turquoise'),
- $mdgriffith$elm_ui$Element$text('#00d1b2')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$cyan)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.cyan'),
- $mdgriffith$elm_ui$Element$text('#209cee')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$green)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.green'),
- $mdgriffith$elm_ui$Element$text('#23d160')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$yellow)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.yellow'),
- $mdgriffith$elm_ui$Element$text('#ffdd57')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$red)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.red'),
- $mdgriffith$elm_ui$Element$text('#ff3860')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$white)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.white'),
- $mdgriffith$elm_ui$Element$text('#ffffff')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.lighterGrey'),
- $mdgriffith$elm_ui$Element$text('#f5f5f5')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$lightGrey)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.lightGrey'),
- $mdgriffith$elm_ui$Element$text('#dbdbdb')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$grey)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.grey'),
- $mdgriffith$elm_ui$Element$text('#7a7a7a')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$darkGrey),
- $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.darkGrey'),
- $mdgriffith$elm_ui$Element$text('#363636')
- ]))),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey),
- $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey)
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$text('Color.darkerGrey'),
- $mdgriffith$elm_ui$Element$text('#121212')
- ])))
- ]))
- ]))
- ]));
-var $mdgriffith$elm_ui$Internal$Model$Main = {$: 'Main'};
-var $mdgriffith$elm_ui$Element$Region$mainContent = $mdgriffith$elm_ui$Internal$Model$Describe($mdgriffith$elm_ui$Internal$Model$Main);
-var $Orasund$elm_ui_framework$Framework$container = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$centerX,
- $mdgriffith$elm_ui$Element$centerY,
- $mdgriffith$elm_ui$Element$width(
- A2($mdgriffith$elm_ui$Element$maximum, 1200, $mdgriffith$elm_ui$Element$fill)),
- $mdgriffith$elm_ui$Element$padding(20),
- $mdgriffith$elm_ui$Element$Region$mainContent,
- $mdgriffith$elm_ui$Element$Background$color(
- A3($mdgriffith$elm_ui$Element$rgb255, 255, 255, 255))
- ]);
-var $Orasund$elm_ui_framework$Framework$Grid$spaceEvenly = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$spaceEvenly,
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$fill),
- $mdgriffith$elm_ui$Element$centerX,
- $mdgriffith$elm_ui$Element$centerY
- ]);
-var $Orasund$elm_ui_framework$Example$grid = A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h2,
- $mdgriffith$elm_ui$Element$text('Grid')),
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$column,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Grid$simple),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Grid.simple')),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ]))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$column,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Grid$compact),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Grid.compact')),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$compact,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$compact,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$compact,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ]))
- ]))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$column,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Grid$spaceEvenly),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Grid.spaceEvenly')),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spacedEvenly,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ]))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$fill,
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Grid.section')),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Card$simple,
- $mdgriffith$elm_ui$Element$text('item'))
- ]))
- ])))
- ])),
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$paragraph,
- _List_Nil,
- $elm$core$List$singleton(
- $mdgriffith$elm_ui$Element$text('Grid attributes can be combined with other attributes.'))),
- A2(
- $mdgriffith$elm_ui$Element$paragraph,
- _List_Nil,
- $elm$core$List$singleton(
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Grid.spaceEvenly ++ Card.simple ++ Color.dark')))),
- A2(
- $mdgriffith$elm_ui$Element$column,
- _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Grid$spaceEvenly,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Color$dark)),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$row,
- $Orasund$elm_ui_framework$Framework$Grid$spaceEvenly,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Color$warning),
- $mdgriffith$elm_ui$Element$text('')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Color$info),
- $mdgriffith$elm_ui$Element$text('')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Color$success),
- $mdgriffith$elm_ui$Element$text(''))
- ]))
- ]))
- ]))
- ]))
- ]));
-var $Orasund$elm_ui_framework$Framework$Group$bottom = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Border$roundEach(
- {bottomLeft: 4, bottomRight: 4, topLeft: 0, topRight: 0})
- ]);
-var $Orasund$elm_ui_framework$Framework$Group$center = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Border$rounded(0)
- ]);
-var $Orasund$elm_ui_framework$Framework$Group$top = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Border$roundEach(
- {bottomLeft: 0, bottomRight: 0, topLeft: 4, topRight: 4})
- ]);
-var $Orasund$elm_ui_framework$Example$group = A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h2,
- $mdgriffith$elm_ui$Element$text('Group')),
- A2(
- $mdgriffith$elm_ui$Element$column,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Grid$simple),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Group$left),
- $mdgriffith$elm_ui$Element$text('Group.left')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Group$center),
- $mdgriffith$elm_ui$Element$text('Group.center')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Group$right),
- $mdgriffith$elm_ui$Element$text('Group.right')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Group$top),
- $mdgriffith$elm_ui$Element$text('Group.top')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Group$bottom),
- $mdgriffith$elm_ui$Element$text('Group.bottom'))
- ]))
- ]))
- ]));
-var $Orasund$elm_ui_framework$Example$heading = A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h2,
- $mdgriffith$elm_ui$Element$text('Heading')),
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Card$fill,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h1,
- $mdgriffith$elm_ui$Element$text('Heading.h1')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h2,
- $mdgriffith$elm_ui$Element$text('Heading.h2')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Heading.h3')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Heading.h4')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Heading.h5')),
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h3,
- $mdgriffith$elm_ui$Element$text('Heading.h6'))
- ]))
- ]));
-var $elm$core$Basics$always = F2(
- function (a, _v0) {
- return a;
- });
+var $author$project$Widget$FilterSelect$ChangedRaw = function (a) {
+ return {$: 'ChangedRaw', a: a};
+};
+var $mdgriffith$elm_ui$Element$Input$HiddenLabel = function (a) {
+ return {$: 'HiddenLabel', a: a};
+};
+var $mdgriffith$elm_ui$Element$Input$labelHidden = $mdgriffith$elm_ui$Element$Input$HiddenLabel;
var $mdgriffith$elm_ui$Element$Input$TextInputNode = function (a) {
return {$: 'TextInputNode', a: a};
};
@@ -12382,14 +13415,6 @@ var $mdgriffith$elm_ui$Element$Input$autofill = A2(
$mdgriffith$elm_ui$Internal$Model$Attr,
$elm$html$Html$Attributes$attribute('autocomplete'));
var $mdgriffith$elm_ui$Internal$Model$Behind = {$: 'Behind'};
-var $mdgriffith$elm_ui$Element$createNearby = F2(
- function (loc, element) {
- if (element.$ === 'Empty') {
- return $mdgriffith$elm_ui$Internal$Model$NoAttribute;
- } else {
- return A2($mdgriffith$elm_ui$Internal$Model$Nearby, loc, element);
- }
- });
var $mdgriffith$elm_ui$Element$behindContent = function (element) {
return A2($mdgriffith$elm_ui$Element$createNearby, $mdgriffith$elm_ui$Internal$Model$Behind, element);
};
@@ -12477,10 +13502,6 @@ var $mdgriffith$elm_ui$Element$Input$hiddenLabelAttribute = function (label) {
return $mdgriffith$elm_ui$Internal$Model$NoAttribute;
}
};
-var $mdgriffith$elm_ui$Internal$Model$InFront = {$: 'InFront'};
-var $mdgriffith$elm_ui$Element$inFront = function (element) {
- return A2($mdgriffith$elm_ui$Element$createNearby, $mdgriffith$elm_ui$Internal$Model$InFront, element);
-};
var $mdgriffith$elm_ui$Element$Input$isConstrained = function (len) {
isConstrained:
while (true) {
@@ -12560,6 +13581,7 @@ var $elm$html$Html$Events$onInput = function (tagger) {
$elm$html$Html$Events$alwaysStop,
A2($elm$json$Json$Decode$map, tagger, $elm$html$Html$Events$targetValue)));
};
+var $mdgriffith$elm_ui$Element$htmlAttribute = $mdgriffith$elm_ui$Internal$Model$Attr;
var $mdgriffith$elm_ui$Element$Input$isFill = function (len) {
isFill:
while (true) {
@@ -12606,6 +13628,8 @@ var $mdgriffith$elm_ui$Element$Input$isPixel = function (len) {
}
}
};
+var $elm$virtual_dom$VirtualDom$style = _VirtualDom_style;
+var $elm$html$Html$Attributes$style = $elm$virtual_dom$VirtualDom$style;
var $mdgriffith$elm_ui$Element$Input$redistributeOver = F4(
function (isMultiline, stacked, attr, els) {
switch (attr.$) {
@@ -12866,7 +13890,6 @@ var $elm$html$Html$span = _VirtualDom_node('span');
var $elm$html$Html$Attributes$spellcheck = $elm$html$Html$Attributes$boolProperty('spellcheck');
var $mdgriffith$elm_ui$Element$Input$spellcheck = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Attr, $elm$html$Html$Attributes$spellcheck);
var $elm$html$Html$Attributes$type_ = $elm$html$Html$Attributes$stringProperty('type');
-var $mdgriffith$elm_ui$Internal$Model$unstyled = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Unstyled, $elm$core$Basics$always);
var $elm$html$Html$Attributes$value = $elm$html$Html$Attributes$stringProperty('value');
var $mdgriffith$elm_ui$Element$Input$value = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Attr, $elm$html$Html$Attributes$value);
var $mdgriffith$elm_ui$Element$Input$textHelper = F3(
@@ -13114,230 +14137,1914 @@ var $mdgriffith$elm_ui$Element$Input$textHelper = F3(
textOptions.label,
wrappedInput);
});
-var $mdgriffith$elm_ui$Element$Input$currentPassword = F2(
- function (attrs, pass) {
- return A3(
- $mdgriffith$elm_ui$Element$Input$textHelper,
- {
- autofill: $elm$core$Maybe$Just('current-password'),
- spellchecked: false,
- type_: $mdgriffith$elm_ui$Element$Input$TextInputNode(
- pass.show ? 'text' : 'password')
- },
- attrs,
- {label: pass.label, onChange: pass.onChange, placeholder: pass.placeholder, text: pass.text});
- });
-var $Orasund$elm_ui_framework$Framework$Input$label = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$centerX,
- $mdgriffith$elm_ui$Element$padding(10),
- $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
- $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill)
- ]);
-var $mdgriffith$elm_ui$Element$Input$Label = F3(
- function (a, b, c) {
- return {$: 'Label', a: a, b: b, c: c};
- });
-var $mdgriffith$elm_ui$Element$Input$OnLeft = {$: 'OnLeft'};
-var $mdgriffith$elm_ui$Element$Input$labelLeft = $mdgriffith$elm_ui$Element$Input$Label($mdgriffith$elm_ui$Element$Input$OnLeft);
-var $mdgriffith$elm_ui$Element$Input$multiline = F2(
- function (attrs, multi) {
- return A3(
- $mdgriffith$elm_ui$Element$Input$textHelper,
- {autofill: $elm$core$Maybe$Nothing, spellchecked: multi.spellcheck, type_: $mdgriffith$elm_ui$Element$Input$TextArea},
- attrs,
- {label: multi.label, onChange: multi.onChange, placeholder: multi.placeholder, text: multi.text});
- });
-var $Orasund$elm_ui_framework$Framework$Input$simple = _List_fromArray(
- [
- $mdgriffith$elm_ui$Element$Background$color($Orasund$elm_ui_framework$Framework$Color$lighterGrey),
- $mdgriffith$elm_ui$Element$Font$color($Orasund$elm_ui_framework$Framework$Color$darkerGrey)
- ]);
var $mdgriffith$elm_ui$Element$Input$text = $mdgriffith$elm_ui$Element$Input$textHelper(
{
autofill: $elm$core$Maybe$Nothing,
spellchecked: false,
type_: $mdgriffith$elm_ui$Element$Input$TextInputNode('text')
});
-var $Orasund$elm_ui_framework$Example$input = A2(
+var $author$project$Widget$FilterSelect$viewInput = F3(
+ function (attributes, model, _v0) {
+ var msgMapper = _v0.msgMapper;
+ var placeholder = _v0.placeholder;
+ var label = _v0.label;
+ return A2(
+ $mdgriffith$elm_ui$Element$Input$text,
+ attributes,
+ {
+ label: $mdgriffith$elm_ui$Element$Input$labelHidden(label),
+ onChange: A2($elm$core$Basics$composeR, $author$project$Widget$FilterSelect$ChangedRaw, msgMapper),
+ placeholder: placeholder,
+ text: model.raw
+ });
+ });
+var $elm$core$Dict$filter = F2(
+ function (isGood, dict) {
+ return A3(
+ $elm$core$Dict$foldl,
+ F3(
+ function (k, v, d) {
+ return A2(isGood, k, v) ? A3($elm$core$Dict$insert, k, v, d) : d;
+ }),
+ $elm$core$Dict$empty,
+ dict);
+ });
+var $elm$core$Set$filter = F2(
+ function (isGood, _v0) {
+ var dict = _v0.a;
+ return $elm$core$Set$Set_elm_builtin(
+ A2(
+ $elm$core$Dict$filter,
+ F2(
+ function (key, _v1) {
+ return isGood(key);
+ }),
+ dict));
+ });
+var $elm$core$String$toUpper = _String_toUpper;
+var $author$project$Widget$FilterSelect$viewOptions = function (_v0) {
+ var raw = _v0.raw;
+ var options = _v0.options;
+ return (raw === '') ? _List_Nil : $elm$core$Set$toList(
+ A2(
+ $elm$core$Set$filter,
+ A2(
+ $elm$core$Basics$composeR,
+ $elm$core$String$toUpper,
+ $elm$core$String$contains(
+ $elm$core$String$toUpper(raw))),
+ options));
+};
+var $elm$html$Html$Attributes$width = function (n) {
+ return A2(
+ _VirtualDom_attribute,
+ 'width',
+ $elm$core$String$fromInt(n));
+};
+var $mdgriffith$elm_ui$Internal$Model$Padding = F5(
+ function (a, b, c, d, e) {
+ return {$: 'Padding', a: a, b: b, c: c, d: d, e: e};
+ });
+var $mdgriffith$elm_ui$Internal$Model$Spaced = F3(
+ function (a, b, c) {
+ return {$: 'Spaced', a: a, b: b, c: c};
+ });
+var $mdgriffith$elm_ui$Internal$Model$extractSpacingAndPadding = function (attrs) {
+ return A3(
+ $elm$core$List$foldr,
+ F2(
+ function (attr, _v0) {
+ var pad = _v0.a;
+ var spacing = _v0.b;
+ return _Utils_Tuple2(
+ function () {
+ if (pad.$ === 'Just') {
+ var x = pad.a;
+ return pad;
+ } else {
+ if ((attr.$ === 'StyleClass') && (attr.b.$ === 'PaddingStyle')) {
+ var _v3 = attr.b;
+ var name = _v3.a;
+ var t = _v3.b;
+ var r = _v3.c;
+ var b = _v3.d;
+ var l = _v3.e;
+ return $elm$core$Maybe$Just(
+ A5($mdgriffith$elm_ui$Internal$Model$Padding, name, t, r, b, l));
+ } else {
+ return $elm$core$Maybe$Nothing;
+ }
+ }
+ }(),
+ function () {
+ if (spacing.$ === 'Just') {
+ var x = spacing.a;
+ return spacing;
+ } else {
+ if ((attr.$ === 'StyleClass') && (attr.b.$ === 'SpacingStyle')) {
+ var _v6 = attr.b;
+ var name = _v6.a;
+ var x = _v6.b;
+ var y = _v6.c;
+ return $elm$core$Maybe$Just(
+ A3($mdgriffith$elm_ui$Internal$Model$Spaced, name, x, y));
+ } else {
+ return $elm$core$Maybe$Nothing;
+ }
+ }
+ }());
+ }),
+ _Utils_Tuple2($elm$core$Maybe$Nothing, $elm$core$Maybe$Nothing),
+ attrs);
+};
+var $mdgriffith$elm_ui$Element$wrappedRow = F2(
+ function (attrs, children) {
+ var _v0 = $mdgriffith$elm_ui$Internal$Model$extractSpacingAndPadding(attrs);
+ var padded = _v0.a;
+ var spaced = _v0.b;
+ if (spaced.$ === 'Nothing') {
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asRow,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentLeft + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.wrapped)))),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
+ attrs))),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
+ } else {
+ var _v2 = spaced.a;
+ var spaceName = _v2.a;
+ var x = _v2.b;
+ var y = _v2.c;
+ var newPadding = function () {
+ if (padded.$ === 'Just') {
+ var _v5 = padded.a;
+ var name = _v5.a;
+ var t = _v5.b;
+ var r = _v5.c;
+ var b = _v5.d;
+ var l = _v5.e;
+ return ((_Utils_cmp(r, (x / 2) | 0) > -1) && (_Utils_cmp(b, (y / 2) | 0) > -1)) ? $elm$core$Maybe$Just(
+ $mdgriffith$elm_ui$Element$paddingEach(
+ {bottom: b - ((y / 2) | 0), left: l - ((x / 2) | 0), right: r - ((x / 2) | 0), top: t - ((y / 2) | 0)})) : $elm$core$Maybe$Nothing;
+ } else {
+ return $elm$core$Maybe$Nothing;
+ }
+ }();
+ if (newPadding.$ === 'Just') {
+ var pad = newPadding.a;
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asRow,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentLeft + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.wrapped)))),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$height($mdgriffith$elm_ui$Element$shrink),
+ _Utils_ap(
+ attrs,
+ _List_fromArray(
+ [pad]))))),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(children));
+ } else {
+ var halfY = -(y / 2);
+ var halfX = -(x / 2);
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asEl,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ attrs,
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(
+ _List_fromArray(
+ [
+ A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asRow,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$htmlClass($mdgriffith$elm_ui$Internal$Style$classes.contentLeft + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.wrapped)))),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$Attr(
+ A2(
+ $elm$html$Html$Attributes$style,
+ 'margin',
+ $elm$core$String$fromFloat(halfY) + ('px' + (' ' + ($elm$core$String$fromFloat(halfX) + 'px'))))),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$Attr(
+ A2(
+ $elm$html$Html$Attributes$style,
+ 'width',
+ 'calc(100% + ' + ($elm$core$String$fromInt(x) + 'px)'))),
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Internal$Model$Attr(
+ A2(
+ $elm$html$Html$Attributes$style,
+ 'height',
+ 'calc(100% + ' + ($elm$core$String$fromInt(y) + 'px)'))),
+ A2(
+ $elm$core$List$cons,
+ A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$spacing,
+ A3($mdgriffith$elm_ui$Internal$Model$SpacingStyle, spaceName, x, y)),
+ _List_Nil))))),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(children))
+ ])));
+ }
+ }
+ });
+var $elm$svg$Svg$Attributes$clipRule = _VirtualDom_attribute('clip-rule');
+var $elm$svg$Svg$Attributes$d = _VirtualDom_attribute('d');
+var $elm$svg$Svg$Attributes$fill = _VirtualDom_attribute('fill');
+var $elm$svg$Svg$Attributes$fillRule = _VirtualDom_attribute('fill-rule');
+var $elm$svg$Svg$trustedNode = _VirtualDom_nodeNS('http://www.w3.org/2000/svg');
+var $elm$svg$Svg$path = $elm$svg$Svg$trustedNode('path');
+var $elm$svg$Svg$svg = $elm$svg$Svg$trustedNode('svg');
+var $elm$svg$Svg$Attributes$viewBox = _VirtualDom_attribute('viewBox');
+var $jasonliang512$elm_heroicons$Heroicons$Solid$x = function (attrs) {
+ return A2(
+ $elm$svg$Svg$svg,
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$viewBox('0 0 20 20'),
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$fill('currentColor'),
+ attrs)),
+ _List_fromArray(
+ [
+ A2(
+ $elm$svg$Svg$path,
+ _List_fromArray(
+ [
+ $elm$svg$Svg$Attributes$fillRule('evenodd'),
+ $elm$svg$Svg$Attributes$d('M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z'),
+ $elm$svg$Svg$Attributes$clipRule('evenodd')
+ ]),
+ _List_Nil)
+ ]));
+};
+var $author$project$Component$filterSelect = function (model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Filter Select')),
+ function () {
+ var _v0 = model.selected;
+ if (_v0.$ === 'Just') {
+ var selected = _v0.a;
+ return A2(
+ $mdgriffith$elm_ui$Element$row,
+ $Orasund$elm_ui_framework$Framework$Grid$compact,
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Tag$simple, $Orasund$elm_ui_framework$Framework$Group$left),
+ $mdgriffith$elm_ui$Element$text(selected)),
+ A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Tag$simple,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Group$right, $Orasund$elm_ui_framework$Framework$Color$danger)),
+ {
+ label: $mdgriffith$elm_ui$Element$html(
+ $jasonliang512$elm_heroicons$Heroicons$Solid$x(
+ _List_fromArray(
+ [
+ $elm$html$Html$Attributes$width(16)
+ ]))),
+ onPress: $elm$core$Maybe$Just(
+ $author$project$Component$FilterSelectSpecific(
+ $author$project$Widget$FilterSelect$Selected($elm$core$Maybe$Nothing)))
+ })
+ ]));
+ } else {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ $Orasund$elm_ui_framework$Framework$Grid$simple,
+ _List_fromArray(
+ [
+ A3(
+ $author$project$Widget$FilterSelect$viewInput,
+ $Orasund$elm_ui_framework$Framework$Input$simple,
+ model,
+ {
+ label: 'Fruit',
+ msgMapper: $author$project$Component$FilterSelectSpecific,
+ placeholder: $elm$core$Maybe$Just(
+ A2(
+ $mdgriffith$elm_ui$Element$Input$placeholder,
+ _List_Nil,
+ $mdgriffith$elm_ui$Element$text('Fruit')))
+ }),
+ A2(
+ $mdgriffith$elm_ui$Element$wrappedRow,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$spacing(10)
+ ]),
+ A2(
+ $elm$core$List$map,
+ function (string) {
+ return A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Button$simple, $Orasund$elm_ui_framework$Framework$Tag$simple),
+ {
+ label: $mdgriffith$elm_ui$Element$text(string),
+ onPress: $elm$core$Maybe$Just(
+ $author$project$Component$FilterSelectSpecific(
+ $author$project$Widget$FilterSelect$Selected(
+ $elm$core$Maybe$Just(string))))
+ });
+ },
+ $author$project$Widget$FilterSelect$viewOptions(model)))
+ ]));
+ }
+ }()
+ ]));
+};
+var $Orasund$elm_ui_framework$Framework$Heading$h2 = $Orasund$elm_ui_framework$Framework$Heading$h(2);
+var $author$project$Component$scrollingNavCard = A2(
$mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h2,
- $mdgriffith$elm_ui$Element$text('Input')),
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Grid$simple),
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$Input$text,
- $Orasund$elm_ui_framework$Framework$Input$simple,
- {
- label: A2(
- $mdgriffith$elm_ui$Element$Input$labelLeft,
- $Orasund$elm_ui_framework$Framework$Input$label,
- $mdgriffith$elm_ui$Element$text('Input.label')),
- onChange: $elm$core$Basics$always(_Utils_Tuple0),
- placeholder: $elm$core$Maybe$Nothing,
- text: 'Input.simple'
- }),
- A2(
- $mdgriffith$elm_ui$Element$Input$multiline,
- $Orasund$elm_ui_framework$Framework$Input$simple,
- {
- label: A2(
- $mdgriffith$elm_ui$Element$Input$labelLeft,
- $Orasund$elm_ui_framework$Framework$Input$label,
- $mdgriffith$elm_ui$Element$text('Input.label')),
- onChange: $elm$core$Basics$always(_Utils_Tuple0),
- placeholder: $elm$core$Maybe$Nothing,
- spellcheck: false,
- text: 'Input.simple'
- })
- ])),
- A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$Input$currentPassword,
- $Orasund$elm_ui_framework$Framework$Input$simple,
- {
- label: A2(
- $mdgriffith$elm_ui$Element$Input$labelLeft,
- $Orasund$elm_ui_framework$Framework$Input$label,
- $mdgriffith$elm_ui$Element$text('Input.label')),
- onChange: $elm$core$Basics$always(_Utils_Tuple0),
- placeholder: $elm$core$Maybe$Nothing,
- show: false,
- text: 'Input.simple'
- })
- ]))
- ])),
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Scrolling Nav')),
A2(
$mdgriffith$elm_ui$Element$paragraph,
_List_Nil,
$elm$core$List$singleton(
- $mdgriffith$elm_ui$Element$text('Input attributes can be combined with other attributes.'))),
+ $mdgriffith$elm_ui$Element$text('Resize the screen and use the scrollbar to see the scrolling navigation in action.')))
+ ]));
+var $mdgriffith$elm_ui$Element$Border$widthXY = F2(
+ function (x, y) {
+ return A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$borderWidth,
+ A5(
+ $mdgriffith$elm_ui$Internal$Model$BorderWidth,
+ 'b-' + ($elm$core$String$fromInt(x) + ('-' + $elm$core$String$fromInt(y))),
+ y,
+ x,
+ y,
+ x));
+ });
+var $mdgriffith$elm_ui$Element$Border$widthEach = function (_v0) {
+ var bottom = _v0.bottom;
+ var top = _v0.top;
+ var left = _v0.left;
+ var right = _v0.right;
+ return (_Utils_eq(top, bottom) && _Utils_eq(left, right)) ? (_Utils_eq(top, right) ? $mdgriffith$elm_ui$Element$Border$width(top) : A2($mdgriffith$elm_ui$Element$Border$widthXY, left, top)) : A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$borderWidth,
+ A5(
+ $mdgriffith$elm_ui$Internal$Model$BorderWidth,
+ 'b-' + ($elm$core$String$fromInt(top) + ('-' + ($elm$core$String$fromInt(right) + ('-' + ($elm$core$String$fromInt(bottom) + ('-' + $elm$core$String$fromInt(left))))))),
+ top,
+ right,
+ bottom,
+ left));
+};
+var $Orasund$elm_ui_framework$Framework$Grid$section = _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Grid$simple,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Border$widthEach(
+ {bottom: 0, left: 0, right: 0, top: 2}),
+ $mdgriffith$elm_ui$Element$Border$color($Orasund$elm_ui_framework$Framework$Color$lightGrey),
+ $mdgriffith$elm_ui$Element$paddingEach(
+ {bottom: 30, left: 0, right: 0, top: 10})
+ ]));
+var $author$project$Component$ValidatedInputSpecific = function (a) {
+ return {$: 'ValidatedInputSpecific', a: a};
+};
+var $jasonliang512$elm_heroicons$Heroicons$Solid$pencil = function (attrs) {
+ return A2(
+ $elm$svg$Svg$svg,
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$viewBox('0 0 20 20'),
A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$fill('currentColor'),
+ attrs)),
+ _List_fromArray(
+ [
+ A2(
+ $elm$svg$Svg$path,
+ _List_fromArray(
+ [
+ $elm$svg$Svg$Attributes$d('M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z')
+ ]),
+ _List_Nil)
+ ]));
+};
+var $author$project$Widget$ValidatedInput$ChangedRaw = function (a) {
+ return {$: 'ChangedRaw', a: a};
+};
+var $author$project$Widget$ValidatedInput$LostFocus = {$: 'LostFocus'};
+var $author$project$Widget$ValidatedInput$StartEditing = {$: 'StartEditing'};
+var $elm$html$Html$Events$onBlur = function (msg) {
+ return A2(
+ $elm$html$Html$Events$on,
+ 'blur',
+ $elm$json$Json$Decode$succeed(msg));
+};
+var $mdgriffith$elm_ui$Element$Events$onLoseFocus = A2($elm$core$Basics$composeL, $mdgriffith$elm_ui$Internal$Model$Attr, $elm$html$Html$Events$onBlur);
+var $author$project$Widget$ValidatedInput$view = F3(
+ function (attributes, _v0, _v1) {
+ var model = _v0.a;
+ var msgMapper = _v1.msgMapper;
+ var placeholder = _v1.placeholder;
+ var label = _v1.label;
+ var readOnly = _v1.readOnly;
+ var _v2 = model.raw;
+ if (_v2.$ === 'Just') {
+ var string = _v2.a;
+ return A2(
+ $mdgriffith$elm_ui$Element$Input$text,
+ _Utils_ap(
+ attributes,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Events$onLoseFocus(
+ msgMapper($author$project$Widget$ValidatedInput$LostFocus))
+ ])),
+ {
+ label: $mdgriffith$elm_ui$Element$Input$labelHidden(label),
+ onChange: A2($elm$core$Basics$composeR, $author$project$Widget$ValidatedInput$ChangedRaw, msgMapper),
+ placeholder: placeholder,
+ text: string
+ });
+ } else {
+ return A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _List_Nil,
+ {
+ label: readOnly(model.value),
+ onPress: $elm$core$Maybe$Just(
+ msgMapper($author$project$Widget$ValidatedInput$StartEditing))
+ });
+ }
+ });
+var $author$project$Component$validatedInput = function (model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Validated Input')),
+ A3(
+ $author$project$Widget$ValidatedInput$view,
+ $Orasund$elm_ui_framework$Framework$Input$simple,
+ model,
+ {
+ label: 'First Name, Sir Name',
+ msgMapper: $author$project$Component$ValidatedInputSpecific,
+ placeholder: $elm$core$Maybe$Nothing,
+ readOnly: function (maybeTuple) {
+ return A2(
+ $mdgriffith$elm_ui$Element$row,
+ $Orasund$elm_ui_framework$Framework$Grid$compact,
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Tag$simple, $Orasund$elm_ui_framework$Framework$Group$left),
+ $mdgriffith$elm_ui$Element$text(
+ function (_v0) {
+ var a = _v0.a;
+ var b = _v0.b;
+ return a + (' ' + b);
+ }(maybeTuple))),
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Tag$simple,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Group$right, $Orasund$elm_ui_framework$Framework$Color$primary)),
+ $mdgriffith$elm_ui$Element$html(
+ $jasonliang512$elm_heroicons$Heroicons$Solid$pencil(
+ _List_fromArray(
+ [
+ $elm$html$Html$Attributes$width(16)
+ ]))))
+ ]));
+ }
+ })
+ ]));
+};
+var $author$project$Component$view = function (model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Grid$section,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$centerX])),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h2,
+ $mdgriffith$elm_ui$Element$text('Components')),
+ A2(
+ $mdgriffith$elm_ui$Element$paragraph,
+ _List_Nil,
+ $elm$core$List$singleton(
+ $mdgriffith$elm_ui$Element$text('Components have a Model, an Update- and sometimes even a Subscription-function. It takes some time to set them up correctly.'))),
+ A2(
+ $mdgriffith$elm_ui$Element$wrappedRow,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Grid$simple,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$centerX])),
+ _List_fromArray(
+ [
+ $author$project$Component$filterSelect(model.filterSelect),
+ $author$project$Component$validatedInput(model.validatedInput),
+ $author$project$Component$scrollingNavCard
+ ]))
+ ]));
+};
+var $author$project$Reusable$snackbar = function (addSnackbar) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Snackbar')),
+ A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ $Orasund$elm_ui_framework$Framework$Button$simple,
+ {
+ label: A2(
+ $mdgriffith$elm_ui$Element$paragraph,
+ _List_Nil,
+ $elm$core$List$singleton(
+ $mdgriffith$elm_ui$Element$text('Add Notification'))),
+ onPress: $elm$core$Maybe$Just(
+ addSnackbar('This is a notification. It will disappear after 10 seconds.'))
+ })
+ ]));
+};
+var $author$project$Reusable$SortBy = function (a) {
+ return {$: 'SortBy', a: a};
+};
+var $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronDown = function (attrs) {
+ return A2(
+ $elm$svg$Svg$svg,
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$viewBox('0 0 20 20'),
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$fill('currentColor'),
+ attrs)),
+ _List_fromArray(
+ [
+ A2(
+ $elm$svg$Svg$path,
+ _List_fromArray(
+ [
+ $elm$svg$Svg$Attributes$fillRule('evenodd'),
+ $elm$svg$Svg$Attributes$d('M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'),
+ $elm$svg$Svg$Attributes$clipRule('evenodd')
+ ]),
+ _List_Nil)
+ ]));
+};
+var $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronUp = function (attrs) {
+ return A2(
+ $elm$svg$Svg$svg,
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$viewBox('0 0 20 20'),
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$fill('currentColor'),
+ attrs)),
+ _List_fromArray(
+ [
+ A2(
+ $elm$svg$Svg$path,
+ _List_fromArray(
+ [
+ $elm$svg$Svg$Attributes$fillRule('evenodd'),
+ $elm$svg$Svg$Attributes$d('M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z'),
+ $elm$svg$Svg$Attributes$clipRule('evenodd')
+ ]),
+ _List_Nil)
+ ]));
+};
+var $author$project$Widget$SortTable$FloatColumn = function (a) {
+ return {$: 'FloatColumn', a: a};
+};
+var $author$project$Widget$SortTable$floatColumn = function (_v0) {
+ var title = _v0.title;
+ var value = _v0.value;
+ var toString = _v0.toString;
+ return {
+ content: $author$project$Widget$SortTable$FloatColumn(
+ {toString: toString, value: value}),
+ title: title
+ };
+};
+var $author$project$Widget$SortTable$IntColumn = function (a) {
+ return {$: 'IntColumn', a: a};
+};
+var $author$project$Widget$SortTable$intColumn = function (_v0) {
+ var title = _v0.title;
+ var value = _v0.value;
+ var toString = _v0.toString;
+ return {
+ content: $author$project$Widget$SortTable$IntColumn(
+ {toString: toString, value: value}),
+ title: title
+ };
+};
+var $author$project$Widget$SortTable$StringColumn = function (a) {
+ return {$: 'StringColumn', a: a};
+};
+var $author$project$Widget$SortTable$stringColumn = function (_v0) {
+ var title = _v0.title;
+ var value = _v0.value;
+ var toString = _v0.toString;
+ return {
+ content: $author$project$Widget$SortTable$StringColumn(
+ {toString: toString, value: value}),
+ title: title
+ };
+};
+var $mdgriffith$elm_ui$Element$InternalColumn = function (a) {
+ return {$: 'InternalColumn', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$GridPosition = function (a) {
+ return {$: 'GridPosition', a: a};
+};
+var $mdgriffith$elm_ui$Internal$Model$GridTemplateStyle = function (a) {
+ return {$: 'GridTemplateStyle', a: a};
+};
+var $elm$core$List$all = F2(
+ function (isOkay, list) {
+ return !A2(
+ $elm$core$List$any,
+ A2($elm$core$Basics$composeL, $elm$core$Basics$not, isOkay),
+ list);
+ });
+var $mdgriffith$elm_ui$Internal$Model$AsGrid = {$: 'AsGrid'};
+var $mdgriffith$elm_ui$Internal$Model$asGrid = $mdgriffith$elm_ui$Internal$Model$AsGrid;
+var $mdgriffith$elm_ui$Internal$Model$getSpacing = F2(
+ function (attrs, _default) {
+ return A2(
+ $elm$core$Maybe$withDefault,
+ _default,
+ A3(
+ $elm$core$List$foldr,
+ F2(
+ function (attr, acc) {
+ if (acc.$ === 'Just') {
+ var x = acc.a;
+ return $elm$core$Maybe$Just(x);
+ } else {
+ if ((attr.$ === 'StyleClass') && (attr.b.$ === 'SpacingStyle')) {
+ var _v2 = attr.b;
+ var x = _v2.b;
+ var y = _v2.c;
+ return $elm$core$Maybe$Just(
+ _Utils_Tuple2(x, y));
+ } else {
+ return $elm$core$Maybe$Nothing;
+ }
+ }
+ }),
+ $elm$core$Maybe$Nothing,
+ attrs));
+ });
+var $mdgriffith$elm_ui$Internal$Flag$gridPosition = $mdgriffith$elm_ui$Internal$Flag$flag(35);
+var $mdgriffith$elm_ui$Internal$Flag$gridTemplate = $mdgriffith$elm_ui$Internal$Flag$flag(34);
+var $elm$core$List$repeatHelp = F3(
+ function (result, n, value) {
+ repeatHelp:
+ while (true) {
+ if (n <= 0) {
+ return result;
+ } else {
+ var $temp$result = A2($elm$core$List$cons, value, result),
+ $temp$n = n - 1,
+ $temp$value = value;
+ result = $temp$result;
+ n = $temp$n;
+ value = $temp$value;
+ continue repeatHelp;
+ }
+ }
+ });
+var $elm$core$List$repeat = F2(
+ function (n, value) {
+ return A3($elm$core$List$repeatHelp, _List_Nil, n, value);
+ });
+var $mdgriffith$elm_ui$Element$tableHelper = F2(
+ function (attrs, config) {
+ var onGrid = F3(
+ function (rowLevel, columnLevel, elem) {
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asEl,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$gridPosition,
+ $mdgriffith$elm_ui$Internal$Model$GridPosition(
+ {col: columnLevel, height: 1, row: rowLevel, width: 1}))
+ ]),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(
+ _List_fromArray(
+ [elem])));
+ });
+ var columnWidth = function (col) {
+ if (col.$ === 'InternalIndexedColumn') {
+ var colConfig = col.a;
+ return colConfig.width;
+ } else {
+ var colConfig = col.a;
+ return colConfig.width;
+ }
+ };
+ var columnHeader = function (col) {
+ if (col.$ === 'InternalIndexedColumn') {
+ var colConfig = col.a;
+ return colConfig.header;
+ } else {
+ var colConfig = col.a;
+ return colConfig.header;
+ }
+ };
+ var maybeHeaders = function (headers) {
+ return A2(
+ $elm$core$List$all,
+ $elm$core$Basics$eq($mdgriffith$elm_ui$Internal$Model$Empty),
+ headers) ? $elm$core$Maybe$Nothing : $elm$core$Maybe$Just(
+ A2(
+ $elm$core$List$indexedMap,
+ F2(
+ function (col, header) {
+ return A3(onGrid, 1, col + 1, header);
+ }),
+ headers));
+ }(
+ A2($elm$core$List$map, columnHeader, config.columns));
+ var add = F3(
+ function (cell, columnConfig, cursor) {
+ if (columnConfig.$ === 'InternalIndexedColumn') {
+ var col = columnConfig.a;
+ return _Utils_update(
+ cursor,
+ {
+ column: cursor.column + 1,
+ elements: A2(
+ $elm$core$List$cons,
+ A3(
+ onGrid,
+ cursor.row,
+ cursor.column,
+ A2(
+ col.view,
+ _Utils_eq(maybeHeaders, $elm$core$Maybe$Nothing) ? (cursor.row - 1) : (cursor.row - 2),
+ cell)),
+ cursor.elements)
+ });
+ } else {
+ var col = columnConfig.a;
+ return {
+ column: cursor.column + 1,
+ elements: A2(
+ $elm$core$List$cons,
+ A3(
+ onGrid,
+ cursor.row,
+ cursor.column,
+ col.view(cell)),
+ cursor.elements),
+ row: cursor.row
+ };
+ }
+ });
+ var build = F3(
+ function (columns, rowData, cursor) {
+ var newCursor = A3(
+ $elm$core$List$foldl,
+ add(rowData),
+ cursor,
+ columns);
+ return {column: 1, elements: newCursor.elements, row: cursor.row + 1};
+ });
+ var children = A3(
+ $elm$core$List$foldl,
+ build(config.columns),
+ {
+ column: 1,
+ elements: _List_Nil,
+ row: _Utils_eq(maybeHeaders, $elm$core$Maybe$Nothing) ? 1 : 2
+ },
+ config.data);
+ var _v0 = A2(
+ $mdgriffith$elm_ui$Internal$Model$getSpacing,
+ attrs,
+ _Utils_Tuple2(0, 0));
+ var sX = _v0.a;
+ var sY = _v0.b;
+ var template = A2(
+ $mdgriffith$elm_ui$Internal$Model$StyleClass,
+ $mdgriffith$elm_ui$Internal$Flag$gridTemplate,
+ $mdgriffith$elm_ui$Internal$Model$GridTemplateStyle(
+ {
+ columns: A2($elm$core$List$map, columnWidth, config.columns),
+ rows: A2(
+ $elm$core$List$repeat,
+ $elm$core$List$length(config.data),
+ $mdgriffith$elm_ui$Internal$Model$Content),
+ spacing: _Utils_Tuple2(
+ $mdgriffith$elm_ui$Element$px(sX),
+ $mdgriffith$elm_ui$Element$px(sY))
+ }));
+ return A4(
+ $mdgriffith$elm_ui$Internal$Model$element,
+ $mdgriffith$elm_ui$Internal$Model$asGrid,
+ $mdgriffith$elm_ui$Internal$Model$div,
+ A2(
+ $elm$core$List$cons,
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill),
+ A2($elm$core$List$cons, template, attrs)),
+ $mdgriffith$elm_ui$Internal$Model$Unkeyed(
+ function () {
+ if (maybeHeaders.$ === 'Nothing') {
+ return children.elements;
+ } else {
+ var renderedHeaders = maybeHeaders.a;
+ return _Utils_ap(
+ renderedHeaders,
+ $elm$core$List$reverse(children.elements));
+ }
+ }()));
+ });
+var $mdgriffith$elm_ui$Element$table = F2(
+ function (attrs, config) {
+ return A2(
+ $mdgriffith$elm_ui$Element$tableHelper,
+ attrs,
+ {
+ columns: A2($elm$core$List$map, $mdgriffith$elm_ui$Element$InternalColumn, config.columns),
+ data: config.data
+ });
+ });
+var $elm$core$List$sortBy = _List_sortBy;
+var $author$project$Widget$SortTable$view = function (_v0) {
+ var content = _v0.content;
+ var columns = _v0.columns;
+ var model = _v0.model;
+ var findTitle = function (list) {
+ findTitle:
+ while (true) {
+ if (!list.b) {
+ return $elm$core$Maybe$Nothing;
+ } else {
+ var head = list.a;
+ var tail = list.b;
+ if (_Utils_eq(head.title, model.title)) {
+ return $elm$core$Maybe$Just(head.content);
+ } else {
+ var $temp$list = tail;
+ list = $temp$list;
+ continue findTitle;
+ }
+ }
+ }
+ };
+ return {
+ columns: A2(
+ $elm$core$List$map,
+ function (column) {
+ return {
+ header: column.title,
+ view: function () {
+ var _v2 = column.content;
+ switch (_v2.$) {
+ case 'IntColumn':
+ var value = _v2.a.value;
+ var toString = _v2.a.toString;
+ return A2($elm$core$Basics$composeR, value, toString);
+ case 'FloatColumn':
+ var value = _v2.a.value;
+ var toString = _v2.a.toString;
+ return A2($elm$core$Basics$composeR, value, toString);
+ default:
+ var value = _v2.a.value;
+ var toString = _v2.a.toString;
+ return A2($elm$core$Basics$composeR, value, toString);
+ }
+ }()
+ };
+ },
+ columns),
+ data: (model.asc ? $elm$core$Basics$identity : $elm$core$List$reverse)(
+ A3(
+ $elm$core$Basics$apR,
+ A2(
+ $elm$core$Maybe$map,
+ function (c) {
+ switch (c.$) {
+ case 'StringColumn':
+ var value = c.a.value;
+ return $elm$core$List$sortBy(value);
+ case 'IntColumn':
+ var value = c.a.value;
+ return $elm$core$List$sortBy(value);
+ default:
+ var value = c.a.value;
+ return $elm$core$List$sortBy(value);
+ }
+ },
+ findTitle(columns)),
+ $elm$core$Maybe$withDefault($elm$core$Basics$identity),
+ content))
+ };
+};
+var $author$project$Reusable$sortTable = function (model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Sort Table')),
+ A2(
+ $mdgriffith$elm_ui$Element$table,
+ $Orasund$elm_ui_framework$Framework$Grid$simple,
+ function (_v0) {
+ var data = _v0.data;
+ var columns = _v0.columns;
+ return {
+ columns: A2(
+ $elm$core$List$map,
+ function (config) {
+ return {
+ header: A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$Font$bold]),
+ {
+ label: _Utils_eq(config.header, model.title) ? A2(
+ $mdgriffith$elm_ui$Element$row,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Grid$simple,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$Font$bold])),
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$text(config.header),
+ $mdgriffith$elm_ui$Element$html(
+ model.asc ? $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronUp(
+ _List_fromArray(
+ [
+ $elm$html$Html$Attributes$width(16)
+ ])) : $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronDown(
+ _List_fromArray(
+ [
+ $elm$html$Html$Attributes$width(16)
+ ])))
+ ])) : $mdgriffith$elm_ui$Element$text(config.header),
+ onPress: $elm$core$Maybe$Just(
+ $author$project$Reusable$SortBy(
+ {
+ asc: _Utils_eq(config.header, model.title) ? (!model.asc) : true,
+ title: config.header
+ }))
+ }),
+ view: A2($elm$core$Basics$composeR, config.view, $mdgriffith$elm_ui$Element$text),
+ width: $mdgriffith$elm_ui$Element$fill
+ };
+ },
+ columns),
+ data: data
+ };
+ }(
+ $author$project$Widget$SortTable$view(
+ {
+ columns: _List_fromArray(
+ [
+ $author$project$Widget$SortTable$intColumn(
+ {
+ title: 'Id',
+ toString: function (_int) {
+ return '#' + $elm$core$String$fromInt(_int);
+ },
+ value: function ($) {
+ return $.id;
+ }
+ }),
+ $author$project$Widget$SortTable$stringColumn(
+ {
+ title: 'Name',
+ toString: $elm$core$Basics$identity,
+ value: function ($) {
+ return $.name;
+ }
+ }),
+ $author$project$Widget$SortTable$floatColumn(
+ {
+ title: 'rating',
+ toString: $elm$core$String$fromFloat,
+ value: function ($) {
+ return $.rating;
+ }
+ })
+ ]),
+ content: _List_fromArray(
+ [
+ {id: 1, name: 'Antonio', rating: 2.456},
+ {id: 2, name: 'Ana', rating: 1.34},
+ {id: 3, name: 'Alfred', rating: 4.22},
+ {id: 4, name: 'Thomas', rating: 3}
+ ]),
+ model: model
+ })))
+ ]));
+};
+var $author$project$Reusable$view = function (_v0) {
+ var addSnackbar = _v0.addSnackbar;
+ var msgMapper = _v0.msgMapper;
+ var model = _v0.model;
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Grid$section,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$centerX])),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h2,
+ $mdgriffith$elm_ui$Element$text('Reusable Views')),
+ A2(
+ $mdgriffith$elm_ui$Element$paragraph,
+ _List_Nil,
+ $elm$core$List$singleton(
+ $mdgriffith$elm_ui$Element$text('Reusable views have an internal state but no update function. You will need to do some wiring, but nothing complicated.'))),
+ A2(
+ $mdgriffith$elm_ui$Element$wrappedRow,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Grid$simple,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$centerX])),
+ _List_fromArray(
+ [
+ $author$project$Reusable$snackbar(addSnackbar),
+ A2(
+ $mdgriffith$elm_ui$Element$map,
+ msgMapper,
+ $author$project$Reusable$sortTable(model))
+ ]))
+ ]));
+};
+var $author$project$Stateless$SetCarousel = function (a) {
+ return {$: 'SetCarousel', a: a};
+};
+var $elm$core$Array$bitMask = 4294967295 >>> (32 - $elm$core$Array$shiftStep);
+var $elm$core$Elm$JsArray$unsafeGet = _JsArray_unsafeGet;
+var $elm$core$Array$getHelp = F3(
+ function (shift, index, tree) {
+ getHelp:
+ while (true) {
+ var pos = $elm$core$Array$bitMask & (index >>> shift);
+ var _v0 = A2($elm$core$Elm$JsArray$unsafeGet, pos, tree);
+ if (_v0.$ === 'SubTree') {
+ var subTree = _v0.a;
+ var $temp$shift = shift - $elm$core$Array$shiftStep,
+ $temp$index = index,
+ $temp$tree = subTree;
+ shift = $temp$shift;
+ index = $temp$index;
+ tree = $temp$tree;
+ continue getHelp;
+ } else {
+ var values = _v0.a;
+ return A2($elm$core$Elm$JsArray$unsafeGet, $elm$core$Array$bitMask & index, values);
+ }
+ }
+ });
+var $elm$core$Array$tailIndex = function (len) {
+ return (len >>> 5) << 5;
+};
+var $elm$core$Array$get = F2(
+ function (index, _v0) {
+ var len = _v0.a;
+ var startShift = _v0.b;
+ var tree = _v0.c;
+ var tail = _v0.d;
+ return ((index < 0) || (_Utils_cmp(index, len) > -1)) ? $elm$core$Maybe$Nothing : ((_Utils_cmp(
+ index,
+ $elm$core$Array$tailIndex(len)) > -1) ? $elm$core$Maybe$Just(
+ A2($elm$core$Elm$JsArray$unsafeGet, $elm$core$Array$bitMask & index, tail)) : $elm$core$Maybe$Just(
+ A3($elm$core$Array$getHelp, startShift, index, tree)));
+ });
+var $elm$core$Array$length = function (_v0) {
+ var len = _v0.a;
+ return len;
+};
+var $author$project$Widget$carousel = function (_v0) {
+ var content = _v0.content;
+ var current = _v0.current;
+ var label = _v0.label;
+ var _v1 = content;
+ var head = _v1.a;
+ var tail = _v1.b;
+ return label(
+ (current <= 0) ? head : ((_Utils_cmp(
+ current,
+ $elm$core$Array$length(tail)) > 0) ? A2(
+ $elm$core$Maybe$withDefault,
+ head,
+ A2(
+ $elm$core$Array$get,
+ $elm$core$Array$length(tail) - 1,
+ tail)) : A2(
+ $elm$core$Maybe$withDefault,
+ head,
+ A2($elm$core$Array$get, current - 1, tail))));
+};
+var $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronLeft = function (attrs) {
+ return A2(
+ $elm$svg$Svg$svg,
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$viewBox('0 0 20 20'),
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$fill('currentColor'),
+ attrs)),
+ _List_fromArray(
+ [
+ A2(
+ $elm$svg$Svg$path,
+ _List_fromArray(
+ [
+ $elm$svg$Svg$Attributes$fillRule('evenodd'),
+ $elm$svg$Svg$Attributes$d('M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z'),
+ $elm$svg$Svg$Attributes$clipRule('evenodd')
+ ]),
+ _List_Nil)
+ ]));
+};
+var $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronRight = function (attrs) {
+ return A2(
+ $elm$svg$Svg$svg,
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$viewBox('0 0 20 20'),
+ A2(
+ $elm$core$List$cons,
+ $elm$svg$Svg$Attributes$fill('currentColor'),
+ attrs)),
+ _List_fromArray(
+ [
+ A2(
+ $elm$svg$Svg$path,
+ _List_fromArray(
+ [
+ $elm$svg$Svg$Attributes$fillRule('evenodd'),
+ $elm$svg$Svg$Attributes$d('M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z'),
+ $elm$svg$Svg$Attributes$clipRule('evenodd')
+ ]),
+ _List_Nil)
+ ]));
+};
+var $Orasund$elm_ui_framework$Framework$Color$cyan = A3($mdgriffith$elm_ui$Element$rgb255, 32, 156, 238);
+var $elm$core$Array$fromListHelp = F3(
+ function (list, nodeList, nodeListSize) {
+ fromListHelp:
+ while (true) {
+ var _v0 = A2($elm$core$Elm$JsArray$initializeFromList, $elm$core$Array$branchFactor, list);
+ var jsArray = _v0.a;
+ var remainingItems = _v0.b;
+ if (_Utils_cmp(
+ $elm$core$Elm$JsArray$length(jsArray),
+ $elm$core$Array$branchFactor) < 0) {
+ return A2(
+ $elm$core$Array$builderToArray,
+ true,
+ {nodeList: nodeList, nodeListSize: nodeListSize, tail: jsArray});
+ } else {
+ var $temp$list = remainingItems,
+ $temp$nodeList = A2(
+ $elm$core$List$cons,
+ $elm$core$Array$Leaf(jsArray),
+ nodeList),
+ $temp$nodeListSize = nodeListSize + 1;
+ list = $temp$list;
+ nodeList = $temp$nodeList;
+ nodeListSize = $temp$nodeListSize;
+ continue fromListHelp;
+ }
+ }
+ });
+var $elm$core$Array$fromList = function (list) {
+ if (!list.b) {
+ return $elm$core$Array$empty;
+ } else {
+ return A3($elm$core$Array$fromListHelp, list, _List_Nil, 0);
+ }
+};
+var $Orasund$elm_ui_framework$Framework$Color$green = A3($mdgriffith$elm_ui$Element$rgb255, 35, 209, 96);
+var $Orasund$elm_ui_framework$Framework$Color$yellow = A3($mdgriffith$elm_ui$Element$rgb255, 255, 221, 87);
+var $author$project$Stateless$carousel = function (model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Carousel')),
+ $author$project$Widget$carousel(
+ {
+ content: _Utils_Tuple2(
+ $Orasund$elm_ui_framework$Framework$Color$cyan,
+ $elm$core$Array$fromList(
+ _List_fromArray(
+ [$Orasund$elm_ui_framework$Framework$Color$yellow, $Orasund$elm_ui_framework$Framework$Color$green, $Orasund$elm_ui_framework$Framework$Color$red]))),
+ current: model.carousel,
+ label: function (c) {
+ return A2(
+ $mdgriffith$elm_ui$Element$row,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Grid$simple,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$centerX,
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$shrink)
+ ])),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$centerY]),
+ {
+ label: $mdgriffith$elm_ui$Element$html(
+ $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronLeft(
+ _List_fromArray(
+ [
+ $elm$html$Html$Attributes$width(20)
+ ]))),
+ onPress: $elm$core$Maybe$Just(
+ $author$project$Stateless$SetCarousel(model.carousel - 1))
+ }),
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Card$simple,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$Background$color(c),
+ $mdgriffith$elm_ui$Element$height(
+ $mdgriffith$elm_ui$Element$px(100)),
+ $mdgriffith$elm_ui$Element$width(
+ $mdgriffith$elm_ui$Element$px(100))
+ ])),
+ $mdgriffith$elm_ui$Element$none),
+ A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$centerY]),
+ {
+ label: $mdgriffith$elm_ui$Element$html(
+ $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronRight(
+ _List_fromArray(
+ [
+ $elm$html$Html$Attributes$width(20)
+ ]))),
+ onPress: $elm$core$Maybe$Just(
+ $author$project$Stateless$SetCarousel(model.carousel + 1))
+ })
+ ]));
+ }
+ })
+ ]));
+};
+var $author$project$Stateless$ToggleCollapsable = function (a) {
+ return {$: 'ToggleCollapsable', a: a};
+};
+var $author$project$Widget$collapsable = function (_v0) {
+ var onToggle = _v0.onToggle;
+ var isCollapsed = _v0.isCollapsed;
+ var label = _v0.label;
+ var content = _v0.content;
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _List_Nil,
+ _Utils_ap(
_List_fromArray(
[
A2(
- $mdgriffith$elm_ui$Element$Input$text,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Color$danger, $Orasund$elm_ui_framework$Framework$Input$simple),
+ $mdgriffith$elm_ui$Element$Input$button,
+ _List_Nil,
{
- label: A2(
- $mdgriffith$elm_ui$Element$Input$labelLeft,
- $Orasund$elm_ui_framework$Framework$Input$label,
- $mdgriffith$elm_ui$Element$text('Color.danger ++ Input.simple')),
- onChange: $elm$core$Basics$always(_Utils_Tuple0),
- placeholder: $elm$core$Maybe$Nothing,
- text: ''
+ label: label,
+ onPress: $elm$core$Maybe$Just(
+ onToggle(!isCollapsed))
})
- ])),
- A2(
- $mdgriffith$elm_ui$Element$wrappedRow,
- $Orasund$elm_ui_framework$Framework$Grid$simple,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$Input$text,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Color$disabled, $Orasund$elm_ui_framework$Framework$Input$simple),
- {
- label: A2(
- $mdgriffith$elm_ui$Element$Input$labelLeft,
- $Orasund$elm_ui_framework$Framework$Input$label,
- $mdgriffith$elm_ui$Element$text('Color.disabled ++ Input.simple')),
- onChange: $elm$core$Basics$always(_Utils_Tuple0),
- placeholder: $elm$core$Maybe$Nothing,
- text: ''
- })
- ])),
- A2(
- $mdgriffith$elm_ui$Element$paragraph,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Color$warning),
+ ]),
+ isCollapsed ? _List_Nil : _List_fromArray(
+ [content])));
+};
+var $Orasund$elm_ui_framework$Framework$Heading$h4 = $Orasund$elm_ui_framework$Framework$Heading$h(4);
+var $author$project$Stateless$collapsable = function (model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Collapsable')),
+ $author$project$Widget$collapsable(
+ {
+ content: $mdgriffith$elm_ui$Element$text('Hello World'),
+ isCollapsed: model.isCollapsed,
+ label: A2(
+ $mdgriffith$elm_ui$Element$row,
+ $Orasund$elm_ui_framework$Framework$Grid$compact,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$html(
+ model.isCollapsed ? $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronRight(
+ _List_fromArray(
+ [
+ $elm$html$Html$Attributes$width(20)
+ ])) : $jasonliang512$elm_heroicons$Heroicons$Solid$cheveronDown(
+ _List_fromArray(
+ [
+ $elm$html$Html$Attributes$width(20)
+ ]))),
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h4,
+ $mdgriffith$elm_ui$Element$text('Title'))
+ ])),
+ onToggle: $author$project$Stateless$ToggleCollapsable
+ })
+ ]));
+};
+var $author$project$Stateless$dialog = F2(
+ function (showDialog, model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Element$el,
- _List_fromArray(
- [$mdgriffith$elm_ui$Element$Font$bold]),
- $mdgriffith$elm_ui$Element$text('Warning: ')),
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Dialog')),
+ A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ $Orasund$elm_ui_framework$Framework$Button$simple,
+ {
+ label: $mdgriffith$elm_ui$Element$text('Show Dialog'),
+ onPress: $elm$core$Maybe$Just(showDialog)
+ })
+ ]));
+ });
+var $author$project$Stateless$ChangedMultiSelected = function (a) {
+ return {$: 'ChangedMultiSelected', a: a};
+};
+var $author$project$Widget$multiSelect = function (_v0) {
+ var selected = _v0.selected;
+ var options = _v0.options;
+ var label = _v0.label;
+ var onChange = _v0.onChange;
+ return A2(
+ $elm$core$List$map,
+ function (a) {
+ return _Utils_Tuple2(
+ {
+ label: label(a),
+ onPress: $elm$core$Maybe$Just(
+ onChange(a))
+ },
+ A2($elm$core$Set$member, a, selected));
+ },
+ options);
+};
+var $author$project$Stateless$multiSelect = function (model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Multi Select')),
+ A2(
+ $mdgriffith$elm_ui$Element$row,
+ $Orasund$elm_ui_framework$Framework$Grid$compact,
+ A2(
+ $elm$core$List$indexedMap,
+ F2(
+ function (i, _v0) {
+ var config = _v0.a;
+ var selected = _v0.b;
+ return A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Button$simple,
+ _Utils_ap(
+ (!i) ? $Orasund$elm_ui_framework$Framework$Group$left : ((i === 2) ? $Orasund$elm_ui_framework$Framework$Group$right : $Orasund$elm_ui_framework$Framework$Group$center),
+ selected ? $Orasund$elm_ui_framework$Framework$Color$primary : _List_Nil)),
+ config);
+ }),
+ $author$project$Widget$multiSelect(
+ {
+ label: A2($elm$core$Basics$composeR, $elm$core$String$fromInt, $mdgriffith$elm_ui$Element$text),
+ onChange: $author$project$Stateless$ChangedMultiSelected,
+ options: _List_fromArray(
+ [1, 2, 42]),
+ selected: model.multiSelected
+ })))
+ ]));
+};
+var $author$project$Stateless$ChangedSelected = function (a) {
+ return {$: 'ChangedSelected', a: a};
+};
+var $author$project$Stateless$select = function (model) {
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$small),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Select')),
+ A2(
+ $mdgriffith$elm_ui$Element$row,
+ $Orasund$elm_ui_framework$Framework$Grid$compact,
+ A2(
+ $elm$core$List$indexedMap,
+ F2(
+ function (i, _v0) {
+ var config = _v0.a;
+ var selected = _v0.b;
+ return A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Button$simple,
+ _Utils_ap(
+ (!i) ? $Orasund$elm_ui_framework$Framework$Group$left : ((i === 2) ? $Orasund$elm_ui_framework$Framework$Group$right : $Orasund$elm_ui_framework$Framework$Group$center),
+ selected ? $Orasund$elm_ui_framework$Framework$Color$primary : _List_Nil)),
+ config);
+ }),
+ $author$project$Widget$select(
+ {
+ label: A2($elm$core$Basics$composeR, $elm$core$String$fromInt, $mdgriffith$elm_ui$Element$text),
+ onChange: $author$project$Stateless$ChangedSelected,
+ options: _List_fromArray(
+ [1, 2, 42]),
+ selected: model.selected
+ })))
+ ]));
+};
+var $author$project$Stateless$view = F2(
+ function (_v0, model) {
+ var msgMapper = _v0.msgMapper;
+ var showDialog = _v0.showDialog;
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ $Orasund$elm_ui_framework$Framework$Grid$section,
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h2,
+ $mdgriffith$elm_ui$Element$text('Stateless Views')),
A2(
$mdgriffith$elm_ui$Element$paragraph,
_List_Nil,
$elm$core$List$singleton(
- $mdgriffith$elm_ui$Element$text('color changing attributes need to come before the Input attribute.')))
- ]))
- ]));
-var $Orasund$elm_ui_framework$Framework$Tag$slim = _Utils_ap(
- $Orasund$elm_ui_framework$Framework$Tag$simple,
- _List_fromArray(
- [
- A2($mdgriffith$elm_ui$Element$paddingXY, 7, 1)
- ]));
-var $Orasund$elm_ui_framework$Example$tag = A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$Grid$section,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h2,
- $mdgriffith$elm_ui$Element$text('Tag')),
- A2(
- $mdgriffith$elm_ui$Element$column,
- _Utils_ap($Orasund$elm_ui_framework$Framework$Card$fill, $Orasund$elm_ui_framework$Framework$Grid$simple),
- _List_fromArray(
- [
+ $mdgriffith$elm_ui$Element$text('Stateless views are simple functions that view some content. No wiring required.'))),
A2(
$mdgriffith$elm_ui$Element$wrappedRow,
$Orasund$elm_ui_framework$Framework$Grid$simple,
_List_fromArray(
[
A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Tag$simple,
- $mdgriffith$elm_ui$Element$text('Tag.simple')),
+ $mdgriffith$elm_ui$Element$map,
+ msgMapper,
+ $author$project$Stateless$select(model)),
+ A2(
+ $mdgriffith$elm_ui$Element$map,
+ msgMapper,
+ $author$project$Stateless$multiSelect(model)),
+ A2(
+ $mdgriffith$elm_ui$Element$map,
+ msgMapper,
+ $author$project$Stateless$collapsable(model)),
+ A2($author$project$Stateless$dialog, showDialog, model),
+ A2(
+ $mdgriffith$elm_ui$Element$map,
+ msgMapper,
+ $author$project$Stateless$carousel(model))
+ ]))
+ ]));
+ });
+var $elm$html$Html$Attributes$id = $elm$html$Html$Attributes$stringProperty('id');
+var $author$project$Widget$ScrollingNav$view = F2(
+ function (asElement, _v0) {
+ var labels = _v0.labels;
+ var arrangement = _v0.arrangement;
+ return A2(
+ $mdgriffith$elm_ui$Element$column,
+ $Orasund$elm_ui_framework$Framework$Grid$simple,
+ A2(
+ $elm$core$List$map,
+ function (header) {
+ return A2(
+ $mdgriffith$elm_ui$Element$el,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$htmlAttribute(
+ $elm$html$Html$Attributes$id(
+ labels(header))),
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill)
+ ]),
+ asElement(header));
+ },
+ arrangement));
+ });
+var $author$project$Widget$ScrollingNav$JumpTo = function (a) {
+ return {$: 'JumpTo', a: a};
+};
+var $elm_community$intdict$IntDict$findMin = function (dict) {
+ findMin:
+ while (true) {
+ switch (dict.$) {
+ case 'Empty':
+ return $elm$core$Maybe$Nothing;
+ case 'Leaf':
+ var l = dict.a;
+ return $elm$core$Maybe$Just(
+ _Utils_Tuple2(l.key, l.value));
+ default:
+ var i = dict.a;
+ var $temp$dict = i.left;
+ dict = $temp$dict;
+ continue findMin;
+ }
+ }
+};
+var $elm_community$intdict$IntDict$after = F2(
+ function (key, dict) {
+ var go = F2(
+ function (def, currentDict) {
+ go:
+ while (true) {
+ switch (currentDict.$) {
+ case 'Empty':
+ return $elm_community$intdict$IntDict$findMin(def);
+ case 'Leaf':
+ var l = currentDict.a;
+ return (_Utils_cmp(l.key, key) < 1) ? $elm_community$intdict$IntDict$findMin(def) : $elm$core$Maybe$Just(
+ _Utils_Tuple2(l.key, l.value));
+ default:
+ var i = currentDict.a;
+ if (!A2($elm_community$intdict$IntDict$prefixMatches, i.prefix, key)) {
+ return (_Utils_cmp(i.prefix.prefixBits, key) < 0) ? $elm_community$intdict$IntDict$findMin(def) : $elm_community$intdict$IntDict$findMin(i.left);
+ } else {
+ if (A2($elm_community$intdict$IntDict$isBranchingBitSet, i.prefix, key)) {
+ var $temp$def = def,
+ $temp$currentDict = i.right;
+ def = $temp$def;
+ currentDict = $temp$currentDict;
+ continue go;
+ } else {
+ var $temp$def = i.right,
+ $temp$currentDict = i.left;
+ def = $temp$def;
+ currentDict = $temp$currentDict;
+ continue go;
+ }
+ }
+ }
+ }
+ });
+ return A2(go, $elm_community$intdict$IntDict$Empty, dict);
+ });
+var $elm$core$Maybe$andThen = F2(
+ function (callback, maybeValue) {
+ if (maybeValue.$ === 'Just') {
+ var value = maybeValue.a;
+ return callback(value);
+ } else {
+ return $elm$core$Maybe$Nothing;
+ }
+ });
+var $elm_community$intdict$IntDict$findMax = function (dict) {
+ findMax:
+ while (true) {
+ switch (dict.$) {
+ case 'Empty':
+ return $elm$core$Maybe$Nothing;
+ case 'Leaf':
+ var l = dict.a;
+ return $elm$core$Maybe$Just(
+ _Utils_Tuple2(l.key, l.value));
+ default:
+ var i = dict.a;
+ var $temp$dict = i.right;
+ dict = $temp$dict;
+ continue findMax;
+ }
+ }
+};
+var $elm_community$intdict$IntDict$before = F2(
+ function (key, dict) {
+ var go = F2(
+ function (def, currentDict) {
+ go:
+ while (true) {
+ switch (currentDict.$) {
+ case 'Empty':
+ return $elm_community$intdict$IntDict$findMax(def);
+ case 'Leaf':
+ var l = currentDict.a;
+ return (_Utils_cmp(l.key, key) > -1) ? $elm_community$intdict$IntDict$findMax(def) : $elm$core$Maybe$Just(
+ _Utils_Tuple2(l.key, l.value));
+ default:
+ var i = currentDict.a;
+ if (!A2($elm_community$intdict$IntDict$prefixMatches, i.prefix, key)) {
+ return (_Utils_cmp(i.prefix.prefixBits, key) > 0) ? $elm_community$intdict$IntDict$findMax(def) : $elm_community$intdict$IntDict$findMax(i.right);
+ } else {
+ if (A2($elm_community$intdict$IntDict$isBranchingBitSet, i.prefix, key)) {
+ var $temp$def = i.left,
+ $temp$currentDict = i.right;
+ def = $temp$def;
+ currentDict = $temp$currentDict;
+ continue go;
+ } else {
+ var $temp$def = def,
+ $temp$currentDict = i.left;
+ def = $temp$def;
+ currentDict = $temp$currentDict;
+ continue go;
+ }
+ }
+ }
+ }
+ });
+ return A2(go, $elm_community$intdict$IntDict$Empty, dict);
+ });
+var $author$project$Widget$ScrollingNav$viewSections = F2(
+ function (_v0, _v1) {
+ var label = _v0.label;
+ var fromString = _v0.fromString;
+ var msgMapper = _v0.msgMapper;
+ var arrangement = _v1.arrangement;
+ var scrollPos = _v1.scrollPos;
+ var labels = _v1.labels;
+ var positions = _v1.positions;
+ var current = A2(
+ $elm$core$Maybe$andThen,
+ fromString,
+ A2(
+ $elm$core$Maybe$map,
+ $elm$core$Tuple$second,
+ A2(
+ $elm$core$Maybe$withDefault,
+ A2($elm_community$intdict$IntDict$after, scrollPos + 1, positions),
+ A2(
+ $elm$core$Maybe$map,
+ $elm$core$Maybe$Just,
+ A2($elm_community$intdict$IntDict$before, scrollPos + 1, positions)))));
+ return {
+ label: function (elem) {
+ return label(
+ labels(elem));
+ },
+ onChange: A2($elm$core$Basics$composeR, $author$project$Widget$ScrollingNav$JumpTo, msgMapper),
+ options: arrangement,
+ selected: current
+ };
+ });
+var $author$project$Example$view = function (model) {
+ return A2(
+ $Orasund$elm_ui_framework$Framework$responsiveLayout,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$inFront(
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Color$dark,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$alignTop,
+ $mdgriffith$elm_ui$Element$height(
+ $mdgriffith$elm_ui$Element$px(42)),
+ $mdgriffith$elm_ui$Element$width($mdgriffith$elm_ui$Element$fill)
+ ])),
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$container,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$padding(0),
+ $mdgriffith$elm_ui$Element$centerX
+ ])),
+ A2(
+ $mdgriffith$elm_ui$Element$row,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Color$dark, $Orasund$elm_ui_framework$Framework$Grid$compact),
+ A2(
+ $elm$core$List$map,
+ function (_v2) {
+ var config = _v2.a;
+ var selected = _v2.b;
+ return A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Button$simple,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Group$center,
+ selected ? $Orasund$elm_ui_framework$Framework$Color$primary : $Orasund$elm_ui_framework$Framework$Color$dark)),
+ config);
+ },
+ $author$project$Widget$select(
+ A2(
+ $author$project$Widget$ScrollingNav$viewSections,
+ {
+ fromString: function (string) {
+ switch (string) {
+ case 'Component Views':
+ return $elm$core$Maybe$Just($author$project$Example$ComponentViews);
+ case 'Reusable Views':
+ return $elm$core$Maybe$Just($author$project$Example$ReusableViews);
+ case 'Stateless Views':
+ return $elm$core$Maybe$Just($author$project$Example$StatelessViews);
+ default:
+ return $elm$core$Maybe$Nothing;
+ }
+ },
+ label: $mdgriffith$elm_ui$Element$text,
+ msgMapper: $author$project$Example$ScrollingNavSpecific
+ },
+ model.scrollingNav))))))),
+ $mdgriffith$elm_ui$Element$inFront(
+ A2(
+ $elm$core$Maybe$withDefault,
+ $mdgriffith$elm_ui$Element$none,
+ A2(
+ $elm$core$Maybe$map,
+ A2(
+ $elm$core$Basics$composeR,
+ $mdgriffith$elm_ui$Element$text,
+ A2(
+ $elm$core$Basics$composeR,
+ $elm$core$List$singleton,
+ A2(
+ $elm$core$Basics$composeR,
+ $mdgriffith$elm_ui$Element$paragraph(
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Card$simple, $Orasund$elm_ui_framework$Framework$Color$dark)),
+ $mdgriffith$elm_ui$Element$el(
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$padding(8),
+ $mdgriffith$elm_ui$Element$alignBottom,
+ $mdgriffith$elm_ui$Element$alignRight
+ ]))))),
+ $author$project$Widget$Snackbar$current(model.snackbar)))),
+ $mdgriffith$elm_ui$Element$inFront(
+ model.displayDialog ? $author$project$Widget$dialog(
+ {
+ content: A2(
+ $mdgriffith$elm_ui$Element$column,
+ _Utils_ap($Orasund$elm_ui_framework$Framework$Grid$simple, $Orasund$elm_ui_framework$Framework$Card$large),
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ $Orasund$elm_ui_framework$Framework$Heading$h3,
+ $mdgriffith$elm_ui$Element$text('Dialog')),
+ A2(
+ $mdgriffith$elm_ui$Element$paragraph,
+ _List_Nil,
+ $elm$core$List$singleton(
+ $mdgriffith$elm_ui$Element$text('This is a dialog window'))),
+ A2(
+ $mdgriffith$elm_ui$Element$Input$button,
+ _Utils_ap(
+ $Orasund$elm_ui_framework$Framework$Button$simple,
+ _List_fromArray(
+ [$mdgriffith$elm_ui$Element$alignRight])),
+ {
+ label: $mdgriffith$elm_ui$Element$text('Ok'),
+ onPress: $elm$core$Maybe$Just(
+ $author$project$Example$ToggleDialog(false))
+ })
+ ])),
+ onDismiss: $elm$core$Maybe$Just(
+ $author$project$Example$ToggleDialog(false))
+ }) : $mdgriffith$elm_ui$Element$none)
+ ]),
+ A2(
+ $mdgriffith$elm_ui$Element$column,
+ $Orasund$elm_ui_framework$Framework$Grid$compact,
+ _List_fromArray(
+ [
+ A2(
+ $mdgriffith$elm_ui$Element$el,
+ _List_fromArray(
+ [
+ $mdgriffith$elm_ui$Element$height(
+ $mdgriffith$elm_ui$Element$px(42))
+ ]),
+ $mdgriffith$elm_ui$Element$none),
+ A2(
+ $mdgriffith$elm_ui$Element$column,
+ $Orasund$elm_ui_framework$Framework$container,
+ _List_fromArray(
+ [
A2(
$mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Tag$slim,
- $mdgriffith$elm_ui$Element$text('Tag.slim'))
+ $Orasund$elm_ui_framework$Framework$Heading$h1,
+ $mdgriffith$elm_ui$Element$text('Elm-Ui-Widgets')),
+ A2(
+ $author$project$Widget$ScrollingNav$view,
+ function (section) {
+ switch (section.$) {
+ case 'ComponentViews':
+ return A2(
+ $mdgriffith$elm_ui$Element$map,
+ $author$project$Example$ComponentSpecific,
+ $author$project$Component$view(model.component));
+ case 'ReusableViews':
+ return $author$project$Reusable$view(
+ {addSnackbar: $author$project$Example$AddSnackbar, model: model.reusable, msgMapper: $author$project$Example$ReusableSpecific});
+ default:
+ return A2(
+ $author$project$Stateless$view,
+ {
+ msgMapper: $author$project$Example$StatelessSpecific,
+ showDialog: $author$project$Example$ToggleDialog(true)
+ },
+ model.stateless);
+ }
+ },
+ model.scrollingNav)
]))
- ]))
- ]));
-var $Orasund$elm_ui_framework$Example$view = A2(
- $mdgriffith$elm_ui$Element$column,
- $Orasund$elm_ui_framework$Framework$container,
- _List_fromArray(
- [
- A2(
- $mdgriffith$elm_ui$Element$el,
- $Orasund$elm_ui_framework$Framework$Heading$h1,
- $mdgriffith$elm_ui$Element$text('Elm-Ui Framework')),
- $Orasund$elm_ui_framework$Example$heading,
- $Orasund$elm_ui_framework$Example$tag,
- $Orasund$elm_ui_framework$Example$group,
- $Orasund$elm_ui_framework$Example$color,
- $Orasund$elm_ui_framework$Example$card,
- $Orasund$elm_ui_framework$Example$grid,
- $Orasund$elm_ui_framework$Example$button,
- $Orasund$elm_ui_framework$Example$input
- ]));
-var $Orasund$elm_ui_framework$Example$main = A2($Orasund$elm_ui_framework$Framework$responsiveLayout, _List_Nil, $Orasund$elm_ui_framework$Example$view);
-_Platform_export({'Example':{'init':_VirtualDom_init($Orasund$elm_ui_framework$Example$main)(0)(0)}});}(this));
+ ])));
+};
+var $author$project$Example$main = $elm$browser$Browser$element(
+ {init: $author$project$Example$init, subscriptions: $author$project$Example$subscriptions, update: $author$project$Example$update, view: $author$project$Example$view});
+_Platform_export({'Example':{'init':$author$project$Example$main(
+ $elm$json$Json$Decode$succeed(_Utils_Tuple0))(0)}});}(this));
var app = Elm.Example.init({ node: document.getElementById("elm") });
}
diff --git a/src/Material/Widget.elm b/src/Material/Widget.elm
new file mode 100644
index 0000000..876923e
--- /dev/null
+++ b/src/Material/Widget.elm
@@ -0,0 +1,62 @@
+module Material.Widget exposing (Widget)
+
+
+type Icon
+ = Plus
+
+
+type ButtonEmphasis
+ = Low
+ | Default -- can be removed
+ | High
+
+
+type ButtonSort
+ = TextButton { emphasis : ButtonEmphasis, label : String }
+ | IconButton
+
+
+type Button msg
+ = Button
+ { sort : ButtonSort
+ , enabled : Bool
+ , onClick : msg
+ , icon : Maybe Icon
+ }
+
+
+type ToggleButton msg state
+ = ToggleButton
+ { options :
+ List
+ ( state
+ , { enabled : Bool
+ , onClick : state -> msg
+ , icon : Icon
+ }
+ )
+ , selected : Maybe state
+ }
+
+
+type FAButton msg
+ = FAButton
+ { onClick : msg
+ , icon : Icon
+ , label : Maybe String
+ }
+
+
+type SpeedDial msg
+ = SpeedDial
+ { options : List (FAButton msg)
+ , icon : Icon
+ , label : Maybe String
+ }
+
+
+type Widget msg state
+ = ButtonWidget (Button msg)
+ | ToggleButtonWidget (ToggleButton msg state)
+ | FAButtonWidget ButtonSort (FAButton msg)
+ | SpeedDialWidget ButtonSort (FAButton msg) -- can be removed