From dc58ea99f60bec0c7a142dd2366241ba59aae722 Mon Sep 17 00:00:00 2001 From: Taufik Nurrohman Date: Thu, 20 Feb 2020 22:49:40 +0700 Subject: [PATCH] Revert AJAX System for Now --- panel/engine/f.php | 17 ++++++++++----- panel/engine/f/h.php | 4 ++-- panel/engine/r/asset.php | 3 ++- panel/engine/r/layout/panel.php | 2 +- panel/engine/r/state/files/comment.php | 17 ++++++++------- panel/engine/r/state/files/user.php | 8 +++---- panel/engine/r/state/pages.php | 21 +++++++++++++------ panel/engine/r/task/g.php | 2 +- panel/engine/r/task/s.php | 2 +- panel/lot/asset/css/panel.css | 4 ++-- panel/lot/asset/css/panel.min.css | 2 +- panel/lot/asset/js/panel.js | 2 +- panel/lot/asset/js/panel/fetch.min.js | 2 +- panel/lot/asset/scss/panel/lot.scss | 4 ++-- panel/lot/layout/asset/scss/construction.scss | 1 + 15 files changed, 56 insertions(+), 35 deletions(-) diff --git a/panel/engine/f.php b/panel/engine/f.php index 44603412..db86a9a1 100644 --- a/panel/engine/f.php +++ b/panel/engine/f.php @@ -314,17 +314,24 @@ function Page($in, $key) { ]; \_\lot\x\panel\h\c($out[2], $in, $tags); $path = $in['path'] ?? $key; - $title = !empty($in['time']) ? \strtr($in['time'], '-', '/') : null; - $image = isset($in['image']) ? (\is_callable($in['image']) ? \call_user_func($in['image'], $path) : $in['image']) : null; - $out[1] .= '' . (!empty($image) ? '' : '' . (!empty($in['image']) ? '' : ' '/' ])), 0, 6) . ';">') . ''; $out[1] .= '

' . \_\lot\x\panel\Link([ 'link' => $in['link'] ?? null, - 'title' => $in['title'] ?? $title, + 'title' => $in['title'] ?? $date, 'url' => $in['url'] ?? null - ], $key) . '

' . \_\lot\x\panel\h\description($in, $title) . '
'; + ], $key) . '' . \_\lot\x\panel\h\description($in, $date) . ''; $out[1] .= '
' . \_\lot\x\panel\Tasks\Link([ 0 => 'p', 'lot' => $in['tasks'] ?? [] diff --git a/panel/engine/f/h.php b/panel/engine/f/h.php index b4ba77d0..225d2987 100644 --- a/panel/engine/f/h.php +++ b/panel/engine/f/h.php @@ -38,7 +38,7 @@ function description($in, $or = null) { } $out = [ 0 => 'p', - 1 => \w('' . \i(...("" !== $description ? (array) $description : (array) $or)) . '', ['a', 'b', 'code', 'del', 'em', 'i', 'ins', 'span', 'strong', 'sub', 'sup']), + 1 => \w('' . \i(...("" !== $description ? (array) $description : (array) $or)) . '', ['a', 'abbr', 'b', 'code', 'del', 'em', 'i', 'ins', 'span', 'strong', 'sub', 'sup']), 2 => [] ]; unset($in['tags']); @@ -148,7 +148,7 @@ function title($in, $i = -1, $or = null) { ]; $icon = \_\lot\x\panel\h\icon($in['icon'] ?? [null, null]); if (null !== $title && false !== $title) { - $title = \w('' . \i(...((array) $title)) . '', ['a', 'b', 'code', 'del', 'em', 'i', 'ins', 'span', 'strong', 'sub', 'sup']); + $title = \w('' . \i(...((array) $title)) . '', ['a', 'abbr', 'b', 'code', 'del', 'em', 'i', 'ins', 'span', 'strong', 'sub', 'sup']); } $out[1] = $icon[0] . $title . $icon[1]; unset($in['tags']); diff --git a/panel/engine/r/asset.php b/panel/engine/r/asset.php index 72c14f48..a01a33a6 100644 --- a/panel/engine/r/asset.php +++ b/panel/engine/r/asset.php @@ -11,7 +11,8 @@ } Asset::set($f . 'js' . DS . 'panel' . $dot . 'js', 20); Asset::set($f . 'js' . DS . 'panel' . DS . 'alert' . $dot . 'js', 20.1); - Asset::set($f . 'js' . DS . 'panel' . DS . 'fetch' . $dot . 'js', 20.1); + // TODO: + // Asset::set($f . 'js' . DS . 'panel' . DS . 'fetch' . $dot . 'js', 20.1); Asset::set($f . 'js' . DS . 'panel' . DS . 'menu' . $dot . 'js', 20.1); Asset::set($f . 'js' . DS . 'panel' . DS . 'tab' . $dot . 'js', 20.1); Asset::set($f . 'js' . DS . 'panel' . DS . 'field' . DS . 'query' . $dot . 'js', 20.2); diff --git a/panel/engine/r/layout/panel.php b/panel/engine/r/layout/panel.php index a81ceeb1..61cca386 100644 --- a/panel/engine/r/layout/panel.php +++ b/panel/engine/r/layout/panel.php @@ -4,7 +4,7 @@ - <?= w($t->reverse); ?> + <?= w($t->reverse); ?> diff --git a/panel/engine/r/state/files/comment.php b/panel/engine/r/state/files/comment.php index 5d01e2d1..8cf47b42 100644 --- a/panel/engine/r/state/files/comment.php +++ b/panel/engine/r/state/files/comment.php @@ -37,15 +37,18 @@ $create = is_dir($folder = Path::F($k)) && q(g($folder, 'archive,draft,page')) > 0; $pages[$k] = [ 'path' => $k, - 'title' => _\lot\x\panel\h\w($page->author), - 'description' => _\lot\x\panel\h\w(To::excerpt($page->content)), + 'title' => function($path) use($page) { + return S . _\lot\x\panel\h\w($page->author) . S; + }, + 'description' => function($path) use($page) { + return S . _\lot\x\panel\h\w($page->content) . S; + }, + 'image' => function($path) use($page) { + return $page->avatar(72); + }, 'author' => $page['author'], 'type' => 'Page', 'link' => 'draft' === ($x = $page->x) ? null : $page->url, - 'image' => function($path) { - // Load avatar asynchronously for best performance - return (new Comment($path))->avatar(72); - }, 'time' => $page->time . "", 'tags' => [ 'is:' . $x, @@ -83,4 +86,4 @@ $lot['desk']['lot']['form']['lot'][0]['lot']['tasks']['lot']['page']['hidden'] = true; $lot['desk']['lot']['form']['lot'][0]['lot']['tasks']['lot']['data']['hidden'] = true; -return $lot; \ No newline at end of file +return $lot; diff --git a/panel/engine/r/state/files/user.php b/panel/engine/r/state/files/user.php index a589f851..c987636e 100644 --- a/panel/engine/r/state/files/user.php +++ b/panel/engine/r/state/files/user.php @@ -12,11 +12,11 @@ foreach ($lot['desk']['lot']['form']['lot'][1]['lot']['tabs']['lot']['pages']['lot']['pages']['lot'] as $k => &$v) { $page = new User($k); $v['link'] = 'draft' !== $page->x ? $page->url : null; - $v['title'] = $page . ""; - $v['description'] = $page->user; - $v['image'] = function($path) { + $v['title'] = S . $page . S; + $v['description'] = S . $page->user . S; + $v['image'] = function($path) use($page) { // Load avatar asynchronously for best performance - return (new User($path))->avatar(72); + return $page->avatar(72); }; // Disable page children feature $v['tasks']['enter']['hidden'] = true; diff --git a/panel/engine/r/state/pages.php b/panel/engine/r/state/pages.php index 8f603a25..b3e15459 100644 --- a/panel/engine/r/state/pages.php +++ b/panel/engine/r/state/pages.php @@ -13,6 +13,9 @@ if (is_dir($folder = LOT . strtr($_['path'], '/', DS))) { $before = $url . $_['/'] . '::'; foreach ($search($folder, 'archive,draft,page', 0) as $k => $v) { + if (false !== strpos(',.archive,.draft,.page,', basename($k))) { + continue; // Skip placeholder page(s) + } $after = '::' . strtr($k, [ LOT => "", DS => '/' @@ -22,15 +25,21 @@ $create = $add && q(g($folder, 'archive,draft,page')) > 0; $pages[$k] = [ 'path' => $k, - 'title' => S . _\lot\x\panel\h\w($page->title) . S, - 'description' => S . _\lot\x\panel\h\w($page->description) . S, + 'title' => function($path) use($page) { + // Load title asynchronously for best performance + return S . _\lot\x\panel\h\w($page->title) . S; + }, + 'description' => function($path) use($page) { + // Load description asynchronously for best performance + return S . _\lot\x\panel\h\w($page->description) . S; + }, + 'image' => function($path) use($page) { + // Load image asynchronously for best performance + return $page->image(72, 72, 50); + }, 'author' => $page['author'], 'type' => 'Page', 'link' => 'draft' === ($x = $page->x) ? null : $page->url, - 'image' => function($path) { - // Load image asynchronously for best performance - return (new Page($path))->image(72, 72, 50); - }, 'time' => $page->time . "", 'tags' => [ 'is:' . $x, diff --git a/panel/engine/r/task/g.php b/panel/engine/r/task/g.php index e7e41e91..0fe9cbb7 100644 --- a/panel/engine/r/task/g.php +++ b/panel/engine/r/task/g.php @@ -177,7 +177,7 @@ function page($_, $lot) { } $page[$k] = $v; } - $lot['file']['content'] = \To::page($page); + $lot['file']['content'] = $_POST['file']['content'] = \To::page($page); $lot['file']['name'] = $name . '.' . $x; $_f = $_['f']; // Get old file name $_ = file($_, $lot); // Move to `file` diff --git a/panel/engine/r/task/s.php b/panel/engine/r/task/s.php index 81e8b444..3079788f 100644 --- a/panel/engine/r/task/s.php +++ b/panel/engine/r/task/s.php @@ -229,7 +229,7 @@ function page($_, $lot) { } $page[$k] = $v; } - $lot['file']['content'] = \To::page($page); + $lot['file']['content'] = $_POST['file']['content'] = \To::page($page); $lot['file']['name'] = $name . '.' . $x; $_ = file($_, $lot); // Move to `file` if (empty($_['alert']['error'])) { diff --git a/panel/lot/asset/css/panel.css b/panel/lot/asset/css/panel.css index ea375ddf..7026aa31 100644 --- a/panel/lot/asset/css/panel.css +++ b/panel/lot/asset/css/panel.css @@ -904,7 +904,7 @@ svg[display='none'] { overflow: hidden; text-overflow: ellipsis; } -.lot\:file h3 a.not\:active:not(:focus):not(:hover), .lot\:page h3 a.not\:active:not(:focus):not(:hover) { +.lot\:file h3 a.not\:active, .lot\:page h3 a.not\:active { opacity: 1; } .lot\:file h3 .title, .lot\:page h3 .title { @@ -960,7 +960,7 @@ svg[display='none'] { width: 12px; top: 7px; } -.lot\:file .not\:active:not(:focus):not(:hover), .lot\:page .not\:active:not(:focus):not(:hover) { +.lot\:file .not\:active, .lot\:page .not\:active { opacity: 0.5; } .lot\:file.count\:0, .lot\:page.count\:0 { diff --git a/panel/lot/asset/css/panel.min.css b/panel/lot/asset/css/panel.min.css index 09d07580..e857e4a6 100644 --- a/panel/lot/asset/css/panel.min.css +++ b/panel/lot/asset/css/panel.min.css @@ -1 +1 @@ -.bold{font-weight:bolder}.code,code{font-family:monospace;font-size:80%}.italic{font-style:italic}*+.p,*+blockquote,*+dl,*+fieldset,*+figcaption,*+figure,*+form,*+h1,*+h2,*+h3,*+h4,*+h5,*+h6,*+hr,*+ol,*+p,*+pre,*+table,*+ul{margin-top:24px}.small,kbd,small,sub,sup{font-size:70%}.strike,del,s{text-decration:line-through}.underline,ins,u{text-decoration:underline}.is\:hidden,[hidden]{display:none !important}.not\:active{opacity:0.5;cursor:not-allowed}.not\:active+.not\:active{opacity:1}.text-center,figure,.ta\:c{text-align:center}.text-justify,.ta\:j{text-align:justify}.text-right,.ta\:r{text-align:left}.text-left,.ta\:l{text-align:left}.align-right,.align-left,.align-center,.a\:r,.a\:l,.a\:c{display:block;float:none}*+.align-center,*+.a\:c{margin-top:24px}.align-right,.a\:r{margin-top:8px;margin-bottom:16px;margin-left:24px;float:right;text-align:right}.align-left,.a\:l{margin-top:8px;margin-right:24px;margin-bottom:16px;float:left;text-align:left}.align-left img,.a\:l img{display:block}.align-center,.a\:c{margin-right:auto;margin-left:auto;text-align:center}.align-center img,.a\:c img{display:block;margin-right:auto;margin-left:auto}.f\:r{float:right}.f\:l{float:left}.m\:0{margin:0px 0px}.mt\:0{margin-top:0px}.mr\:0{margin-right:0px}.mb\:0{margin-bottom:0px}.ml\:0{margin-left:0px}.mx\:0{margin-right:0px;margin-left:0px}.my\:0{margin-top:0px;margin-bottom:0px}.p\:0{padding:0px 0px}.pt\:0{padding-top:0px}.pr\:0{padding-right:0px}.pb\:0{padding-bottom:0px}.pl\:0{padding-left:0px}.px\:0{padding-right:0px;padding-left:0px}.py\:0{padding-top:0px;padding-bottom:0px}.m\:1{margin:24px 24px}.mt\:1{margin-top:24px}.mr\:1{margin-right:24px}.mb\:1{margin-bottom:24px}.ml\:1{margin-left:24px}.mx\:1{margin-right:24px;margin-left:24px}.my\:1{margin-top:24px;margin-bottom:24px}.p\:1{padding:24px 24px}.pt\:1{padding-top:24px}.pr\:1{padding-right:24px}.pb\:1{padding-bottom:24px}.pl\:1{padding-left:24px}.px\:1{padding-right:24px;padding-left:24px}.py\:1{padding-top:24px;padding-bottom:24px}.m\:2{margin:48px 48px}.mt\:2{margin-top:48px}.mr\:2{margin-right:48px}.mb\:2{margin-bottom:48px}.ml\:2{margin-left:48px}.mx\:2{margin-right:48px;margin-left:48px}.my\:2{margin-top:48px;margin-bottom:48px}.p\:2{padding:48px 48px}.pt\:2{padding-top:48px}.pr\:2{padding-right:48px}.pb\:2{padding-bottom:48px}.pl\:2{padding-left:48px}.px\:2{padding-right:48px;padding-left:48px}.py\:2{padding-top:48px;padding-bottom:48px}.table{width:100%;border-collapse:collapse}.table caption{margin-bottom:6px}.table th,.table td{border:1px solid;padding:4px 12px;text-align:inherit;vertical-align:top}*,::before,::after{margin:0;padding:0;font:inherit;text-decoration:inherit;text-transform:inherit;box-sizing:border-box}::-webkit-input-placeholder{color:inherit;opacity:0.5}::-moz-placeholder{color:inherit;opacity:0.5}::placeholder{color:inherit;opacity:0.5}:focus{outline:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-tap-highlight-color:transparent}a{color:inherit}a[href]{color:#00f}a[href]:focus{color:#f00}a[href]:active{color:#f00}html,body{min-height:100%}html{font:normal normal 16px/24px sans-serif;text-align:left;background:#fff;color:#000}abbr{border:0;text-decoration:none;cursor:inherit;border-bottom:1px solid transparent}abbr[title]:hover{border-bottom-color:inherit;cursor:help}article,aside,footer,header,main,nav,section{display:block}b,dt,legend,strong,th{font-weight:bolder}blockquote,caption,dfn,em,figcaption,i,var{font-style:italic}sub,sup{display:inline;position:relative;vertical-align:middle}sub{top:0.5em}sup{top:-0.5em}mark{background:#ff0;color:inherit}pre{word-wrap:break-word;white-space:pre-wrap;font-weight:normal;font-style:normal;overflow:auto}pre code{display:block;background:#000;color:#fff;padding:8px 12px}pre.is\:text code{background:none;border:1px dotted;color:inherit;padding:8px 12px}img{max-width:100%;height:auto}button::-moz-focus-inner,input::-moz-focus-inner{margin:0;padding:0;border:0;outline:0}h1{font-size:32px;line-height:1}h2{font-size:28px;line-height:1}h3{font-size:24px;line-height:1}h4{font-size:20px;line-height:1}h5{font-size:16px;line-height:1}h6{font-size:12px;line-height:1}kbd{display:inline-block;vertical-align:middle;padding:0 8px;cursor:pointer}blockquote{font-size:17.6px;margin-right:24px;margin-left:24px}figure img{display:block;margin:0 auto}figure figcaption{margin-top:6px}ol,ul,dd{margin-left:40px}ol ol,ul ol,ol ul,ul ul{margin-top:0;margin-left:16px}ul{list-style:square}fieldset,hr{color:inherit;border:1px solid}fieldset{padding:24px 24px}fieldset legend{margin-top:-12px}hr{border-style:dashed}legend{padding:0 8px;margin:0}legend+blockquote,legend+dl,legend+fieldset,legend+figure,legend+form,legend+h1,legend+h2,legend+h3,legend+h4,legend+h5,legend+h6,legend+hr,legend+ol,legend+p,legend+pre,legend+table,legend+ul,legend+.p,legend+figcaption{margin-top:0}hr{border-width:1px 0 0}.button,.input,.select,.textarea,.lot\:input .fix{display:inline-block;vertical-align:middle;background:#fff;color:#000;border:1px solid;width:192px;height:36px;line-height:22px;padding:6px 12px;text-align:left;position:relative;z-index:0}.button:focus,.input:focus,.select:focus,.textarea:focus,.lot\:input .fix:focus{z-index:1}.button{width:auto;text-align:center;background:#00f;color:#fff;border-width:0;line-height:24px}.button:focus{background:#f00}.button:active{background:#f00}.button[href],.button[href]:focus,.button[href]:active{color:#fff}.button[disabled],.button.not\:active,.input[disabled],.input.not\:active,.select[disabled],.select.not\:active,.textarea[disabled],.textarea.not\:active{opacity:0.5;cursor:not-allowed}.input[readonly],.select[readonly],.textarea[readonly]{border-style:dotted}.input:focus:invalid,.textarea:focus:invalid{color:#c00;border-color:#f00}.button,details>summary,label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.button.is\:text{background:none;border:0;color:#00f}.button.is\:text:focus{background:none;color:#f00}.button.is\:text:active{background:none;color:#f00}.input[type='color'],.input[type='file'],.input[type='range']{cursor:pointer}.input[type='file'],.input[type='range']{background:none;border:0;padding:0;font-size:12px;line-height:24px}.input[type='checkbox'],.input[type='color'],.input[type='image'],.input[type='radio']{margin:0;padding:0;background:none;border:0;width:1em;height:1em;line-height:1em;cursor:pointer}.input[type='checkbox'][readonly],.input[type='radio'][readonly]{pointer-events:none}.input[type='color']{width:36px;height:36px}.input[type='image']{width:auto;height:auto}.select{cursor:pointer}.select[multiple]{height:auto}.select[multiple] optgroup,.select[multiple] option{background:none}.select optgroup,.select option{background:#fff;color:inherit;margin:0;padding:0}.select optgroup{font-weight:bolder}.select optgroup option{font-weight:normal;padding-left:8px}.select:not([multiple]){padding-top:0;padding-bottom:0}.width{display:flex;width:100%}.textarea{min-height:90px;resize:vertical;overflow:auto}.textarea.height{height:258px}label>input[type='checkbox']+span,label>input[type='radio']+span{display:inline-block;vertical-align:middle}label.is\:frozen{opacity:0.5;pointer-events:none}label.not\:active{cursor:not-allowed}.field{display:flex;margin-right:-12px;margin-left:-12px}.field .description{display:block;font-size:12px;line-height:16px;margin:10px 0 0}.field .description code{font-size:10.4px}.field .output{display:inline-block;vertical-align:middle;border:0;background:none;color:inherit;width:auto;height:auto;font:inherit;line-height:24px;padding:6px 0;text-align:inherit;position:relative;z-index:0}.field .output.width{width:100%}.field>*{margin:0 12px}.field>label{display:block;width:120px;padding:6px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}.field>label+br{display:none}.field>label+div,.field>label+br+div{display:block;flex:1;position:relative}.tag-picker,.tag-picker *{box-sizing:border-box;font:inherit;color:inherit}.tag-picker,.tag-picker .tags{display:flex;flex:1;flex-wrap:wrap;min-height:1.5em;line-height:1.5em}.tag-picker{border:1px solid;padding:0.125em;cursor:text}.tag-picker .tag{background:red;color:#000;text-decoration:none;margin:0.125em;padding:0 0.5em;height:1.5em;cursor:pointer;outline:0}.tag-picker .tag[title]::before{content:attr(title)}.tag-picker .tag[title] a{margin-left:0.5em;text-decoration:none;color:#fff;outline:0}.tag-picker .tag[title] a::before{content:'\00d7'}.tag-picker .tag:focus{background:#c00}.tag-picker .editor{background:0 0;color:inherit;cursor:inherit;position:relative;flex:1}.tag-picker .editor span{display:block;height:100%;outline:0;position:relative;z-index:1}.tag-picker .editor span+span{position:absolute;top:0;right:0;bottom:0;left:0;padding:inherit;white-space:nowrap;z-index:0;opacity:0.5}.tag-picker .tag+.editor span+span{display:none}.tag-picker-source{position:fixed;top:-9999px;left:-9999px}.tag-picker-source[disabled]+.tag-picker,.tag-picker-source[disabled]+.tag-picker *,.tag-picker-source[readonly]+.tag-picker .tag[title] a{cursor:not-allowed}.field\:query .tag-picker{min-height:36px;height:auto;padding:2px}.field\:query .tag-picker .tag{height:26px;padding:0 7px;margin:2px;border:1px solid transparent}svg{display:inline-block;width:24px;height:24px;min-width:24px;min-height:24px;max-width:100%;max-height:100%;vertical-align:top;font-weight:normal;font-style:normal;fill:currentColor;border-color:inherit;position:relative;overflow:hidden;text-indent:-9999px;-webkit-user-select:none;-moz-user-select:none;user-select:none}svg[display='none']{display:none}.title{display:flex;flex-wrap:wrap}.title>span{flex:1}.button .title svg{margin:0 -6px}.button .title svg.caret:first-child{margin-right:0}.button .title svg.caret:last-child{margin-left:0}.button .title svg:first-child{margin-right:6px}.button .title svg:last-child{margin-left:6px}.button .title svg:only-child{margin-right:-6px;margin-left:-6px}.alert p .f\:r svg{margin-right:-6px}.alert p>small+br{display:none}.alert p>small+br+small{display:flex;flex-wrap:wrap;margin:0 -3px;padding:12px 0 6px}.alert p>small+br+small a{font-size:12px;margin:0 3px;padding:0 8px;background:rgba(0, 0, 0, 0.05)}.alert p+p{margin-top:12px}.alert .error{color:#f00}.alert .info{color:#00f}.alert .success{color:#0b0}.lot\:bar{display:flex;flex-wrap:wrap;line-height:48px}.lot\:bar>ul,.lot\:bar>ul>li{margin:0;padding:0;list-style:none;width:auto;height:inherit}.lot\:bar>ul{display:flex;height:48px}.lot\:bar>ul:nth-child(2){flex:1}.lot\:bar>ul>li.is\:active>a{color:inherit}.lot\:bar>ul>li.is\:separator{width:1px;height:24px;background:#000;margin:12px 0;overflow:hidden}.lot\:bar>ul>li.is\:separator:first-child,.lot\:bar>ul>li.is\:separator:last-child{display:none}.lot\:bar>ul>li>a{display:block;height:inherit;padding:0 18px;overflow:hidden}.lot\:bar .field{margin:0;padding:0;width:auto;height:inherit}.lot\:bar .field .input{display:block;width:192px;height:48px;line-height:48px;margin:0;padding:0 16px;border:0}.lot\:bar .field label{display:none}.lot\:bar .field>*{margin-right:0;margin-left:0}.lot\:bar .title svg{margin:12px -6px 0}.lot\:bar .title svg.caret:first-child{margin-right:0;margin-left:-12px}.lot\:bar .title svg.caret:last-child{margin-right:-12px;margin-left:0}.lot\:bar .title svg:first-child{margin-right:6px}.lot\:bar .title svg:last-child{margin-left:6px}.lot\:bar .title svg:only-child{margin-right:-6px;margin-left:-6px}.lot\:button{display:inline-flex}.lot\:button .button .title svg.caret:only-child{margin-right:-12px;margin-left:-12px}.lot\:button .button+.button{margin-left:1px}.lot\:color{display:flex;flex-wrap:wrap;margin-right:-6px;margin-left:-6px}.lot\:color .input{margin-right:6px;margin-left:6px}.lot\:file,.lot\:page{margin-right:0;margin-left:0;padding:0;display:block;list-style:none}.lot\:file h3,.lot\:page h3,.lot\:file li,.lot\:page li,.lot\:file p,.lot\:page p{margin:0;padding:0;font:inherit;list-style:none;border-color:inherit}.lot\:file h3,.lot\:page h3{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lot\:file h3 a.not\:active:not(:focus):not(:hover),.lot\:page h3 a.not\:active:not(:focus):not(:hover){opacity:1}.lot\:file h3 .title,.lot\:page h3 .title{display:inline-flex}.lot\:file li,.lot\:page li{display:flex;background:#fff;border:0 solid #fff;padding:6px 12px;margin:0 -6px;position:relative;overflow:hidden}.lot\:file li::before,.lot\:page li::before,.lot\:file li::after,.lot\:page li::after{content:"";display:block;width:24px;height:24px;position:absolute;top:6px;left:6px}.lot\:file li>*,.lot\:page li>*{margin:0 3px}.lot\:file li>.lot\:task,.lot\:page li>.lot\:task{margin-right:-6px}.lot\:file .is\:file,.lot\:page .is\:file,.lot\:file .is\:folder,.lot\:page .is\:folder{padding-left:42px}.lot\:file .is\:file::before,.lot\:page .is\:file::before{background:transparent;border:1px solid;width:20px}.lot\:file .is\:file::after,.lot\:page .is\:file::after{width:0;height:0;border:3px solid;border-top-color:inherit;border-right-color:inherit;left:20px}.lot\:file .is\:folder::before,.lot\:page .is\:folder::before{background:#000;height:18px;top:11px}.lot\:file .is\:folder::after,.lot\:page .is\:folder::after{border-top:3px solid #000;width:12px;top:7px}.lot\:file .not\:active:not(:focus):not(:hover),.lot\:page .not\:active:not(:focus):not(:hover){opacity:0.5}.lot\:file.count\:0,.lot\:page.count\:0{display:none}.lot\:page li{padding:12px 6px;margin:0 -12px}.lot\:page li.is\:file,.lot\:page li.is\:folder{padding-left:6px}.lot\:page li.is\:file::before,.lot\:page li.is\:folder::before,.lot\:page li.is\:file::after,.lot\:page li.is\:folder::after{display:none}.lot\:page li>*{margin:0 6px}.lot\:page li>div{min-height:54px}.lot\:page li>div:first-child+div{flex:1}.lot\:page h3{font-size:20px}.lot\:page img,.lot\:page .img{display:block;width:54px;height:54px;max-width:54px;max-height:54px;min-width:0;min-height:0}.lot\:page .description{margin:6px 0 0}.lot\:field>.description{padding-bottom:16px;border-bottom:1px dashed}.lot\:input{display:inline-flex;position:relative}.lot\:input *+*{margin-left:-1px}.lot\:input.width{display:flex}.lot\:input .fix{width:auto;max-width:50%;background:rgba(0, 0, 0, 0.15);cursor:auto;white-space:nowrap;text-overflow:ellipsis}.lot\:input svg.fix{width:36px;padding:5px 0}.lot\:input .button{background:none;color:inherit;border-width:1px;line-height:22px}.lot\:input .button .title svg{margin:-1px}.lot\:input .button .title svg:first-child{margin-left:-7px}.lot\:input .button .title svg:last-child{margin-right:-7px}.lot\:input .button .title svg:only-child{margin-right:-7px;margin-left:-7px}.lot\:input .button:focus,.lot\:input .button:active{background:rgba(0, 0, 0, 0.05);color:inherit}.lot\:input .lot\:button .button+.button{margin-left:-1px}.lot\:item,.lot\:items,.lot\:toggle{display:flex;flex-wrap:wrap;margin:0 -6px;padding:6px 0}.lot\:item.is\:block,.lot\:items.is\:block,.lot\:toggle.is\:block{display:block}.lot\:item>*,.lot\:items>*,.lot\:toggle>*{margin:0 6px}.lot\:item>label,.lot\:items>label,.lot\:toggle>label{display:inline-flex;align-items:center;white-space:nowrap}.lot\:item>label>*,.lot\:items>label>*,.lot\:toggle>label>*{margin:0 6px}.has\:menu{display:inline-flex;position:relative}.lot\:menu,.lot\:menu ul,.lot\:menu li{margin:0;padding:0;list-style:none}.lot\:menu,.lot\:menu ul{position:absolute;top:100%;left:0;z-index:9998;background:#fff;width:192px;height:auto;line-height:24px;display:none}.lot\:menu ul{top:0;left:100%}.lot\:menu li{position:relative}.lot\:menu li.is\:separator{width:auto;height:1px;background:#000;margin:0;overflow:hidden}.lot\:menu li.is\:separator:first-child,.lot\:menu li.is\:separator:last-child{display:none}.lot\:menu li.is\:current>a{color:inherit}.lot\:menu li:hover>ul{display:block}.lot\:menu li .title svg{margin:0 -6px}.lot\:menu li .title svg:first-child{margin-right:6px}.lot\:menu li .title svg:last-child{margin-left:6px}.lot\:menu li .title svg:only-child{margin-right:-6px;margin-left:-6px}.lot\:menu a{display:block;padding:6px 12px;color:#00f}.lot\:menu a:focus{color:#f00}.lot\:menu a:focus+ul{display:block}.lot\:menu a:active{color:#f00}.lot\:menu.is\:static{display:block;position:static;width:auto}.lot\:menu.is\:enter,.lot\:menu ul.is\:enter{display:block}.lot\:menu.a\:r ul{float:none;left:auto;right:100%}.lot\:pager{margin:0 -3px}.lot\:pager,.lot\:pager>span{display:flex;flex-wrap:wrap;align-items:center}.lot\:pager>span>a,.lot\:pager>span>b,.lot\:pager>span>span{background:#00f;color:#fff;font:inherit;padding:0 6px;margin:0 3px}.lot\:pager>span>a:focus{background:#f00;color:#fff}.lot\:pager>span>a:active{background:#f00;color:#fff}.lot\:pager>span>b,.lot\:pager>span>span{background:none;color:inherit}.lot\:tab>nav{height:48px;line-height:48px}.lot\:tab>nav ul,.lot\:tab>nav li{margin:0;padding:0;list-style:none}.lot\:tab>nav ul{display:flex;overflow:hidden}.lot\:tab>nav li{position:relative;border:1px solid;border-bottom-width:0}.lot\:tab>nav li+li{border-left-width:0}.lot\:tab>nav li:not(.has\:link) a{color:inherit}.lot\:tab>nav li.is\:active{z-index:4}.lot\:tab>nav li.is\:active::before,.lot\:tab>nav li.is\:active::after{content:"";display:block;position:absolute;bottom:0;width:9999em;height:0;border-bottom:1px solid}.lot\:tab>nav li.is\:active::before{right:100%}.lot\:tab>nav li.is\:active::after{left:100%}.lot\:tab>nav a{display:block;padding:0 20px}.lot\:tab>nav .title svg{margin:12px -10px}.lot\:tab>nav .title svg:first-child{margin-right:5px}.lot\:tab>nav .title svg:last-child{margin-left:5px}.lot\:tab>nav .title svg:only-child{margin-right:-10px;margin-left:-10px}.lot\:tab>section{margin-top:24px;display:none}.lot\:tab>section.is\:active{display:block}.lot\:tab.count\:0{display:none}.lot\:tab.count\:1>nav{display:none}.lot\:tab.count\:1>section{margin-top:0}.lot\:table{border:1px solid;overflow:auto}.lot\:table .table{border-collapse:separate;border-spacing:2px}.lot\:table .table th,.lot\:table .table td{padding:0 4px;border:0;background:#000;color:#fff;white-space:nowrap}.lot\:task{display:flex;align-items:center;flex-wrap:wrap;margin:-3px -3px}.lot\:task\.link{margin-right:-6px;margin-left:-6px}.lot\:task\.link>*{margin-right:6px;margin-left:6px}.lot\:task\.link>* .title span{margin-left:3px}.lot\:task>*{margin:3px 3px}.lot\:desk,.lot\:section{padding:24px 24px;margin:0 auto}.lot\:desk{max-width:1020px}.lot\:section.count\:0{display:none}.is\:error{display:flex;border-top:4px solid;align-items:center;align-content:center;text-align:center}.is\:error>*{flex:1}@media (max-width:720px){.m\:2{margin:24px 24px}.mt\:2{margin-top:24px}.mr\:2{margin-right:24px}.mb\:2{margin-bottom:24px}.ml\:2{margin-left:24px}.mx\:2{margin-right:24px;margin-left:24px}.my\:2{margin-top:24px;margin-bottom:24px}.p\:2{padding:24px 24px}.pt\:2{padding-top:24px}.pr\:2{padding-right:24px}.pb\:2{padding-bottom:24px}.pl\:2{padding-left:24px}.field{flex-direction:column;width:auto}.field>*+*{margin-top:6px}.field>label{width:auto;padding:0;text-align:inherit}.field>label.count\:0{display:none}.field>label+div,.field>label+br+div{width:auto;padding:0;text-align:inherit}.lot\:bar>ul:first-child{flex:1;width:100%;min-width:100%}.lot\:bar>ul:first-child>li:last-child{flex:1}.lot\:bar .field{margin:0}.lot\:bar .field>*{margin:0}.lot\:bar .field .input{display:block;width:100%;margin:0}.lot\:bar .has\:menu ul ul{left:25%}.lot\:desk,.lot\:section{padding:12px 12px}.lot\:pager>span:first-child,.lot\:pager>span:last-child{display:none}.lot\:tab>nav{height:auto;line-height:inherit}.lot\:tab>nav li{background:none;border-width:0;margin-right:24px}.lot\:tab>nav li:last-child{margin-right:0}.lot\:tab>nav li.is\:active::before,.lot\:tab>nav li.is\:active::after{display:none}.lot\:tab>nav li.is\:active a{color:inherit}.lot\:tab>nav li:not(.has\:link) a{padding:0;color:#00f}.lot\:tab>nav .title svg{display:none}} \ No newline at end of file +.bold{font-weight:bolder}.code,code{font-family:monospace;font-size:80%}.italic{font-style:italic}*+.p,*+blockquote,*+dl,*+fieldset,*+figcaption,*+figure,*+form,*+h1,*+h2,*+h3,*+h4,*+h5,*+h6,*+hr,*+ol,*+p,*+pre,*+table,*+ul{margin-top:24px}.small,kbd,small,sub,sup{font-size:70%}.strike,del,s{text-decration:line-through}.underline,ins,u{text-decoration:underline}.is\:hidden,[hidden]{display:none !important}.not\:active{opacity:0.5;cursor:not-allowed}.not\:active+.not\:active{opacity:1}.text-center,figure,.ta\:c{text-align:center}.text-justify,.ta\:j{text-align:justify}.text-right,.ta\:r{text-align:left}.text-left,.ta\:l{text-align:left}.align-right,.align-left,.align-center,.a\:r,.a\:l,.a\:c{display:block;float:none}*+.align-center,*+.a\:c{margin-top:24px}.align-right,.a\:r{margin-top:8px;margin-bottom:16px;margin-left:24px;float:right;text-align:right}.align-left,.a\:l{margin-top:8px;margin-right:24px;margin-bottom:16px;float:left;text-align:left}.align-left img,.a\:l img{display:block}.align-center,.a\:c{margin-right:auto;margin-left:auto;text-align:center}.align-center img,.a\:c img{display:block;margin-right:auto;margin-left:auto}.f\:r{float:right}.f\:l{float:left}.m\:0{margin:0px 0px}.mt\:0{margin-top:0px}.mr\:0{margin-right:0px}.mb\:0{margin-bottom:0px}.ml\:0{margin-left:0px}.mx\:0{margin-right:0px;margin-left:0px}.my\:0{margin-top:0px;margin-bottom:0px}.p\:0{padding:0px 0px}.pt\:0{padding-top:0px}.pr\:0{padding-right:0px}.pb\:0{padding-bottom:0px}.pl\:0{padding-left:0px}.px\:0{padding-right:0px;padding-left:0px}.py\:0{padding-top:0px;padding-bottom:0px}.m\:1{margin:24px 24px}.mt\:1{margin-top:24px}.mr\:1{margin-right:24px}.mb\:1{margin-bottom:24px}.ml\:1{margin-left:24px}.mx\:1{margin-right:24px;margin-left:24px}.my\:1{margin-top:24px;margin-bottom:24px}.p\:1{padding:24px 24px}.pt\:1{padding-top:24px}.pr\:1{padding-right:24px}.pb\:1{padding-bottom:24px}.pl\:1{padding-left:24px}.px\:1{padding-right:24px;padding-left:24px}.py\:1{padding-top:24px;padding-bottom:24px}.m\:2{margin:48px 48px}.mt\:2{margin-top:48px}.mr\:2{margin-right:48px}.mb\:2{margin-bottom:48px}.ml\:2{margin-left:48px}.mx\:2{margin-right:48px;margin-left:48px}.my\:2{margin-top:48px;margin-bottom:48px}.p\:2{padding:48px 48px}.pt\:2{padding-top:48px}.pr\:2{padding-right:48px}.pb\:2{padding-bottom:48px}.pl\:2{padding-left:48px}.px\:2{padding-right:48px;padding-left:48px}.py\:2{padding-top:48px;padding-bottom:48px}.table{width:100%;border-collapse:collapse}.table caption{margin-bottom:6px}.table th,.table td{border:1px solid;padding:4px 12px;text-align:inherit;vertical-align:top}*,::before,::after{margin:0;padding:0;font:inherit;text-decoration:inherit;text-transform:inherit;box-sizing:border-box}::-webkit-input-placeholder{color:inherit;opacity:0.5}::-moz-placeholder{color:inherit;opacity:0.5}::placeholder{color:inherit;opacity:0.5}:focus{outline:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-tap-highlight-color:transparent}a{color:inherit}a[href]{color:#00f}a[href]:focus{color:#f00}a[href]:active{color:#f00}html,body{min-height:100%}html{font:normal normal 16px/24px sans-serif;text-align:left;background:#fff;color:#000}abbr{border:0;text-decoration:none;cursor:inherit;border-bottom:1px solid transparent}abbr[title]:hover{border-bottom-color:inherit;cursor:help}article,aside,footer,header,main,nav,section{display:block}b,dt,legend,strong,th{font-weight:bolder}blockquote,caption,dfn,em,figcaption,i,var{font-style:italic}sub,sup{display:inline;position:relative;vertical-align:middle}sub{top:0.5em}sup{top:-0.5em}mark{background:#ff0;color:inherit}pre{word-wrap:break-word;white-space:pre-wrap;font-weight:normal;font-style:normal;overflow:auto}pre code{display:block;background:#000;color:#fff;padding:8px 12px}pre.is\:text code{background:none;border:1px dotted;color:inherit;padding:8px 12px}img{max-width:100%;height:auto}button::-moz-focus-inner,input::-moz-focus-inner{margin:0;padding:0;border:0;outline:0}h1{font-size:32px;line-height:1}h2{font-size:28px;line-height:1}h3{font-size:24px;line-height:1}h4{font-size:20px;line-height:1}h5{font-size:16px;line-height:1}h6{font-size:12px;line-height:1}kbd{display:inline-block;vertical-align:middle;padding:0 8px;cursor:pointer}blockquote{font-size:17.6px;margin-right:24px;margin-left:24px}figure img{display:block;margin:0 auto}figure figcaption{margin-top:6px}ol,ul,dd{margin-left:40px}ol ol,ul ol,ol ul,ul ul{margin-top:0;margin-left:16px}ul{list-style:square}fieldset,hr{color:inherit;border:1px solid}fieldset{padding:24px 24px}fieldset legend{margin-top:-12px}hr{border-style:dashed}legend{padding:0 8px;margin:0}legend+blockquote,legend+dl,legend+fieldset,legend+figure,legend+form,legend+h1,legend+h2,legend+h3,legend+h4,legend+h5,legend+h6,legend+hr,legend+ol,legend+p,legend+pre,legend+table,legend+ul,legend+.p,legend+figcaption{margin-top:0}hr{border-width:1px 0 0}.button,.input,.select,.textarea,.lot\:input .fix{display:inline-block;vertical-align:middle;background:#fff;color:#000;border:1px solid;width:192px;height:36px;line-height:22px;padding:6px 12px;text-align:left;position:relative;z-index:0}.button:focus,.input:focus,.select:focus,.textarea:focus,.lot\:input .fix:focus{z-index:1}.button{width:auto;text-align:center;background:#00f;color:#fff;border-width:0;line-height:24px}.button:focus{background:#f00}.button:active{background:#f00}.button[href],.button[href]:focus,.button[href]:active{color:#fff}.button[disabled],.button.not\:active,.input[disabled],.input.not\:active,.select[disabled],.select.not\:active,.textarea[disabled],.textarea.not\:active{opacity:0.5;cursor:not-allowed}.input[readonly],.select[readonly],.textarea[readonly]{border-style:dotted}.input:focus:invalid,.textarea:focus:invalid{color:#c00;border-color:#f00}.button,details>summary,label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.button.is\:text{background:none;border:0;color:#00f}.button.is\:text:focus{background:none;color:#f00}.button.is\:text:active{background:none;color:#f00}.input[type='color'],.input[type='file'],.input[type='range']{cursor:pointer}.input[type='file'],.input[type='range']{background:none;border:0;padding:0;font-size:12px;line-height:24px}.input[type='checkbox'],.input[type='color'],.input[type='image'],.input[type='radio']{margin:0;padding:0;background:none;border:0;width:1em;height:1em;line-height:1em;cursor:pointer}.input[type='checkbox'][readonly],.input[type='radio'][readonly]{pointer-events:none}.input[type='color']{width:36px;height:36px}.input[type='image']{width:auto;height:auto}.select{cursor:pointer}.select[multiple]{height:auto}.select[multiple] optgroup,.select[multiple] option{background:none}.select optgroup,.select option{background:#fff;color:inherit;margin:0;padding:0}.select optgroup{font-weight:bolder}.select optgroup option{font-weight:normal;padding-left:8px}.select:not([multiple]){padding-top:0;padding-bottom:0}.width{display:flex;width:100%}.textarea{min-height:90px;resize:vertical;overflow:auto}.textarea.height{height:258px}label>input[type='checkbox']+span,label>input[type='radio']+span{display:inline-block;vertical-align:middle}label.is\:frozen{opacity:0.5;pointer-events:none}label.not\:active{cursor:not-allowed}.field{display:flex;margin-right:-12px;margin-left:-12px}.field .description{display:block;font-size:12px;line-height:16px;margin:10px 0 0}.field .description code{font-size:10.4px}.field .output{display:inline-block;vertical-align:middle;border:0;background:none;color:inherit;width:auto;height:auto;font:inherit;line-height:24px;padding:6px 0;text-align:inherit;position:relative;z-index:0}.field .output.width{width:100%}.field>*{margin:0 12px}.field>label{display:block;width:120px;padding:6px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}.field>label+br{display:none}.field>label+div,.field>label+br+div{display:block;flex:1;position:relative}.tag-picker,.tag-picker *{box-sizing:border-box;font:inherit;color:inherit}.tag-picker,.tag-picker .tags{display:flex;flex:1;flex-wrap:wrap;min-height:1.5em;line-height:1.5em}.tag-picker{border:1px solid;padding:0.125em;cursor:text}.tag-picker .tag{background:red;color:#000;text-decoration:none;margin:0.125em;padding:0 0.5em;height:1.5em;cursor:pointer;outline:0}.tag-picker .tag[title]::before{content:attr(title)}.tag-picker .tag[title] a{margin-left:0.5em;text-decoration:none;color:#fff;outline:0}.tag-picker .tag[title] a::before{content:'\00d7'}.tag-picker .tag:focus{background:#c00}.tag-picker .editor{background:0 0;color:inherit;cursor:inherit;position:relative;flex:1}.tag-picker .editor span{display:block;height:100%;outline:0;position:relative;z-index:1}.tag-picker .editor span+span{position:absolute;top:0;right:0;bottom:0;left:0;padding:inherit;white-space:nowrap;z-index:0;opacity:0.5}.tag-picker .tag+.editor span+span{display:none}.tag-picker-source{position:fixed;top:-9999px;left:-9999px}.tag-picker-source[disabled]+.tag-picker,.tag-picker-source[disabled]+.tag-picker *,.tag-picker-source[readonly]+.tag-picker .tag[title] a{cursor:not-allowed}.field\:query .tag-picker{min-height:36px;height:auto;padding:2px}.field\:query .tag-picker .tag{height:26px;padding:0 7px;margin:2px;border:1px solid transparent}svg{display:inline-block;width:24px;height:24px;min-width:24px;min-height:24px;max-width:100%;max-height:100%;vertical-align:top;font-weight:normal;font-style:normal;fill:currentColor;border-color:inherit;position:relative;overflow:hidden;text-indent:-9999px;-webkit-user-select:none;-moz-user-select:none;user-select:none}svg[display='none']{display:none}.title{display:flex;flex-wrap:wrap}.title>span{flex:1}.button .title svg{margin:0 -6px}.button .title svg.caret:first-child{margin-right:0}.button .title svg.caret:last-child{margin-left:0}.button .title svg:first-child{margin-right:6px}.button .title svg:last-child{margin-left:6px}.button .title svg:only-child{margin-right:-6px;margin-left:-6px}.alert p .f\:r svg{margin-right:-6px}.alert p>small+br{display:none}.alert p>small+br+small{display:flex;flex-wrap:wrap;margin:0 -3px;padding:12px 0 6px}.alert p>small+br+small a{font-size:12px;margin:0 3px;padding:0 8px;background:rgba(0, 0, 0, 0.05)}.alert p+p{margin-top:12px}.alert .error{color:#f00}.alert .info{color:#00f}.alert .success{color:#0b0}.lot\:bar{display:flex;flex-wrap:wrap;line-height:48px}.lot\:bar>ul,.lot\:bar>ul>li{margin:0;padding:0;list-style:none;width:auto;height:inherit}.lot\:bar>ul{display:flex;height:48px}.lot\:bar>ul:nth-child(2){flex:1}.lot\:bar>ul>li.is\:active>a{color:inherit}.lot\:bar>ul>li.is\:separator{width:1px;height:24px;background:#000;margin:12px 0;overflow:hidden}.lot\:bar>ul>li.is\:separator:first-child,.lot\:bar>ul>li.is\:separator:last-child{display:none}.lot\:bar>ul>li>a{display:block;height:inherit;padding:0 18px;overflow:hidden}.lot\:bar .field{margin:0;padding:0;width:auto;height:inherit}.lot\:bar .field .input{display:block;width:192px;height:48px;line-height:48px;margin:0;padding:0 16px;border:0}.lot\:bar .field label{display:none}.lot\:bar .field>*{margin-right:0;margin-left:0}.lot\:bar .title svg{margin:12px -6px 0}.lot\:bar .title svg.caret:first-child{margin-right:0;margin-left:-12px}.lot\:bar .title svg.caret:last-child{margin-right:-12px;margin-left:0}.lot\:bar .title svg:first-child{margin-right:6px}.lot\:bar .title svg:last-child{margin-left:6px}.lot\:bar .title svg:only-child{margin-right:-6px;margin-left:-6px}.lot\:button{display:inline-flex}.lot\:button .button .title svg.caret:only-child{margin-right:-12px;margin-left:-12px}.lot\:button .button+.button{margin-left:1px}.lot\:color{display:flex;flex-wrap:wrap;margin-right:-6px;margin-left:-6px}.lot\:color .input{margin-right:6px;margin-left:6px}.lot\:file,.lot\:page{margin-right:0;margin-left:0;padding:0;display:block;list-style:none}.lot\:file h3,.lot\:page h3,.lot\:file li,.lot\:page li,.lot\:file p,.lot\:page p{margin:0;padding:0;font:inherit;list-style:none;border-color:inherit}.lot\:file h3,.lot\:page h3{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lot\:file h3 a.not\:active,.lot\:page h3 a.not\:active{opacity:1}.lot\:file h3 .title,.lot\:page h3 .title{display:inline-flex}.lot\:file li,.lot\:page li{display:flex;background:#fff;border:0 solid #fff;padding:6px 12px;margin:0 -6px;position:relative;overflow:hidden}.lot\:file li::before,.lot\:page li::before,.lot\:file li::after,.lot\:page li::after{content:"";display:block;width:24px;height:24px;position:absolute;top:6px;left:6px}.lot\:file li>*,.lot\:page li>*{margin:0 3px}.lot\:file li>.lot\:task,.lot\:page li>.lot\:task{margin-right:-6px}.lot\:file .is\:file,.lot\:page .is\:file,.lot\:file .is\:folder,.lot\:page .is\:folder{padding-left:42px}.lot\:file .is\:file::before,.lot\:page .is\:file::before{background:transparent;border:1px solid;width:20px}.lot\:file .is\:file::after,.lot\:page .is\:file::after{width:0;height:0;border:3px solid;border-top-color:inherit;border-right-color:inherit;left:20px}.lot\:file .is\:folder::before,.lot\:page .is\:folder::before{background:#000;height:18px;top:11px}.lot\:file .is\:folder::after,.lot\:page .is\:folder::after{border-top:3px solid #000;width:12px;top:7px}.lot\:file .not\:active,.lot\:page .not\:active{opacity:0.5}.lot\:file.count\:0,.lot\:page.count\:0{display:none}.lot\:page li{padding:12px 6px;margin:0 -12px}.lot\:page li.is\:file,.lot\:page li.is\:folder{padding-left:6px}.lot\:page li.is\:file::before,.lot\:page li.is\:folder::before,.lot\:page li.is\:file::after,.lot\:page li.is\:folder::after{display:none}.lot\:page li>*{margin:0 6px}.lot\:page li>div{min-height:54px}.lot\:page li>div:first-child+div{flex:1}.lot\:page h3{font-size:20px}.lot\:page img,.lot\:page .img{display:block;width:54px;height:54px;max-width:54px;max-height:54px;min-width:0;min-height:0}.lot\:page .description{margin:6px 0 0}.lot\:field>.description{padding-bottom:16px;border-bottom:1px dashed}.lot\:input{display:inline-flex;position:relative}.lot\:input *+*{margin-left:-1px}.lot\:input.width{display:flex}.lot\:input .fix{width:auto;max-width:50%;background:rgba(0, 0, 0, 0.15);cursor:auto;white-space:nowrap;text-overflow:ellipsis}.lot\:input svg.fix{width:36px;padding:5px 0}.lot\:input .button{background:none;color:inherit;border-width:1px;line-height:22px}.lot\:input .button .title svg{margin:-1px}.lot\:input .button .title svg:first-child{margin-left:-7px}.lot\:input .button .title svg:last-child{margin-right:-7px}.lot\:input .button .title svg:only-child{margin-right:-7px;margin-left:-7px}.lot\:input .button:focus,.lot\:input .button:active{background:rgba(0, 0, 0, 0.05);color:inherit}.lot\:input .lot\:button .button+.button{margin-left:-1px}.lot\:item,.lot\:items,.lot\:toggle{display:flex;flex-wrap:wrap;margin:0 -6px;padding:6px 0}.lot\:item.is\:block,.lot\:items.is\:block,.lot\:toggle.is\:block{display:block}.lot\:item>*,.lot\:items>*,.lot\:toggle>*{margin:0 6px}.lot\:item>label,.lot\:items>label,.lot\:toggle>label{display:inline-flex;align-items:center;white-space:nowrap}.lot\:item>label>*,.lot\:items>label>*,.lot\:toggle>label>*{margin:0 6px}.has\:menu{display:inline-flex;position:relative}.lot\:menu,.lot\:menu ul,.lot\:menu li{margin:0;padding:0;list-style:none}.lot\:menu,.lot\:menu ul{position:absolute;top:100%;left:0;z-index:9998;background:#fff;width:192px;height:auto;line-height:24px;display:none}.lot\:menu ul{top:0;left:100%}.lot\:menu li{position:relative}.lot\:menu li.is\:separator{width:auto;height:1px;background:#000;margin:0;overflow:hidden}.lot\:menu li.is\:separator:first-child,.lot\:menu li.is\:separator:last-child{display:none}.lot\:menu li.is\:current>a{color:inherit}.lot\:menu li:hover>ul{display:block}.lot\:menu li .title svg{margin:0 -6px}.lot\:menu li .title svg:first-child{margin-right:6px}.lot\:menu li .title svg:last-child{margin-left:6px}.lot\:menu li .title svg:only-child{margin-right:-6px;margin-left:-6px}.lot\:menu a{display:block;padding:6px 12px;color:#00f}.lot\:menu a:focus{color:#f00}.lot\:menu a:focus+ul{display:block}.lot\:menu a:active{color:#f00}.lot\:menu.is\:static{display:block;position:static;width:auto}.lot\:menu.is\:enter,.lot\:menu ul.is\:enter{display:block}.lot\:menu.a\:r ul{float:none;left:auto;right:100%}.lot\:pager{margin:0 -3px}.lot\:pager,.lot\:pager>span{display:flex;flex-wrap:wrap;align-items:center}.lot\:pager>span>a,.lot\:pager>span>b,.lot\:pager>span>span{background:#00f;color:#fff;font:inherit;padding:0 6px;margin:0 3px}.lot\:pager>span>a:focus{background:#f00;color:#fff}.lot\:pager>span>a:active{background:#f00;color:#fff}.lot\:pager>span>b,.lot\:pager>span>span{background:none;color:inherit}.lot\:tab>nav{height:48px;line-height:48px}.lot\:tab>nav ul,.lot\:tab>nav li{margin:0;padding:0;list-style:none}.lot\:tab>nav ul{display:flex;overflow:hidden}.lot\:tab>nav li{position:relative;border:1px solid;border-bottom-width:0}.lot\:tab>nav li+li{border-left-width:0}.lot\:tab>nav li:not(.has\:link) a{color:inherit}.lot\:tab>nav li.is\:active{z-index:4}.lot\:tab>nav li.is\:active::before,.lot\:tab>nav li.is\:active::after{content:"";display:block;position:absolute;bottom:0;width:9999em;height:0;border-bottom:1px solid}.lot\:tab>nav li.is\:active::before{right:100%}.lot\:tab>nav li.is\:active::after{left:100%}.lot\:tab>nav a{display:block;padding:0 20px}.lot\:tab>nav .title svg{margin:12px -10px}.lot\:tab>nav .title svg:first-child{margin-right:5px}.lot\:tab>nav .title svg:last-child{margin-left:5px}.lot\:tab>nav .title svg:only-child{margin-right:-10px;margin-left:-10px}.lot\:tab>section{margin-top:24px;display:none}.lot\:tab>section.is\:active{display:block}.lot\:tab.count\:0{display:none}.lot\:tab.count\:1>nav{display:none}.lot\:tab.count\:1>section{margin-top:0}.lot\:table{border:1px solid;overflow:auto}.lot\:table .table{border-collapse:separate;border-spacing:2px}.lot\:table .table th,.lot\:table .table td{padding:0 4px;border:0;background:#000;color:#fff;white-space:nowrap}.lot\:task{display:flex;align-items:center;flex-wrap:wrap;margin:-3px -3px}.lot\:task\.link{margin-right:-6px;margin-left:-6px}.lot\:task\.link>*{margin-right:6px;margin-left:6px}.lot\:task\.link>* .title span{margin-left:3px}.lot\:task>*{margin:3px 3px}.lot\:desk,.lot\:section{padding:24px 24px;margin:0 auto}.lot\:desk{max-width:1020px}.lot\:section.count\:0{display:none}.is\:error{display:flex;border-top:4px solid;align-items:center;align-content:center;text-align:center}.is\:error>*{flex:1}@media (max-width:720px){.m\:2{margin:24px 24px}.mt\:2{margin-top:24px}.mr\:2{margin-right:24px}.mb\:2{margin-bottom:24px}.ml\:2{margin-left:24px}.mx\:2{margin-right:24px;margin-left:24px}.my\:2{margin-top:24px;margin-bottom:24px}.p\:2{padding:24px 24px}.pt\:2{padding-top:24px}.pr\:2{padding-right:24px}.pb\:2{padding-bottom:24px}.pl\:2{padding-left:24px}.field{flex-direction:column;width:auto}.field>*+*{margin-top:6px}.field>label{width:auto;padding:0;text-align:inherit}.field>label.count\:0{display:none}.field>label+div,.field>label+br+div{width:auto;padding:0;text-align:inherit}.lot\:bar>ul:first-child{flex:1;width:100%;min-width:100%}.lot\:bar>ul:first-child>li:last-child{flex:1}.lot\:bar .field{margin:0}.lot\:bar .field>*{margin:0}.lot\:bar .field .input{display:block;width:100%;margin:0}.lot\:bar .has\:menu ul ul{left:25%}.lot\:desk,.lot\:section{padding:12px 12px}.lot\:pager>span:first-child,.lot\:pager>span:last-child{display:none}.lot\:tab>nav{height:auto;line-height:inherit}.lot\:tab>nav li{background:none;border-width:0;margin-right:24px}.lot\:tab>nav li:last-child{margin-right:0}.lot\:tab>nav li.is\:active::before,.lot\:tab>nav li.is\:active::after{display:none}.lot\:tab>nav li.is\:active a{color:inherit}.lot\:tab>nav li:not(.has\:link) a{padding:0;color:#00f}.lot\:tab>nav .title svg{display:none}} \ No newline at end of file diff --git a/panel/lot/asset/js/panel.js b/panel/lot/asset/js/panel.js index fb09c125..99e84607 100644 --- a/panel/lot/asset/js/panel.js +++ b/panel/lot/asset/js/panel.js @@ -60,7 +60,7 @@ _.on('let', function() { var title = doc.querySelector('title'); - title = title.getAttribute('data-loading-text'); + title = title.getAttribute('data-is-loading'); title && (doc.title = title); }); diff --git a/panel/lot/asset/js/panel/fetch.min.js b/panel/lot/asset/js/panel/fetch.min.js index 2fd51890..0ef535ee 100644 --- a/panel/lot/asset/js/panel/fetch.min.js +++ b/panel/lot/asset/js/panel/fetch.min.js @@ -1 +1 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Pjax=t()}}(function(){return function(){function t(e,o,n){function i(r,a){if(!o[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(s)return s(r,!0);var c=Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var u=o[r]={exports:{}};e[r][0].call(u.exports,function(t){var o=e[r][1][t];return i(o||t)},u,u.exports,t,e,o,n)}return o[r].exports}for(var s="function"==typeof require&&require,r=0;r]+>/gi,i=/\s?[a-z:]+(?:=['"][^'">]+['"])*/gi,s=t.match(n);if(s&&s.length&&(s=s[0].match(i),s.length&&(s.shift(),s.forEach(function(t){var e=t.trim().split("=");1===e.length?o.documentElement.setAttribute(e[0],!0):o.documentElement.setAttribute(e[0],e[1].slice(1,-1))}))),o.documentElement.innerHTML=t,this.log("load content",o.documentElement.attributes,o.documentElement.innerHTML.length),document.activeElement&&u(document,this.options.selectors,document.activeElement))try{document.activeElement.blur()}catch(r){}this.switchSelectors(this.options.selectors,o,document,e)},abortRequest:t("./lib/abort-request"),doRequest:t("./lib/send-request"),handleResponse:t("./lib/proto/handle-response"),loadUrl:function(t,e){e="object"==typeof e?d({},this.options,e):c(this.options),this.log("load href",t,e),this.abortRequest(this.request),l(document,"pjax:send",e),this.request=this.doRequest(t,e,this.handleResponse.bind(this))},afterAllSwitches:function(){var t=Array.prototype.slice.call(document.querySelectorAll("[autofocus]")).pop();t&&document.activeElement!==t&&t.focus(),this.options.selectors.forEach(function(t){n(document.querySelectorAll(t),function(t){o(t)})});var e=this.state;if(e.options.history&&(window.history.state||(this.lastUid=this.maxUid=r(),window.history.replaceState({url:window.location.href,title:document.title,uid:this.maxUid,scrollPos:[0,0]},document.title)),this.lastUid=this.maxUid=r(),window.history.pushState({url:e.href,title:e.options.title,uid:this.maxUid,scrollPos:[0,0]},e.options.title,e.href)),this.forEachSelectors(function(t){this.parseDOM(t)},this),l(document,"pjax:complete pjax:success",e.options),"function"==typeof e.options.analytics&&e.options.analytics(),e.options.history){var i=document.createElement("a");if(i.href=this.state.href,i.hash){var s=i.hash.slice(1);s=decodeURIComponent(s);var a=0,c=document.getElementById(s)||document.getElementsByName(s)[0];if(c&&c.offsetParent)do a+=c.offsetTop,c=c.offsetParent;while(c);window.scrollTo(0,a)}else e.options.scrollTo!==!1&&(e.options.scrollTo.length>1?window.scrollTo(e.options.scrollTo[0],e.options.scrollTo[1]):window.scrollTo(0,e.options.scrollTo))}else e.options.scrollRestoration&&e.options.scrollPos&&window.scrollTo(e.options.scrollPos[0],e.options.scrollPos[1]);this.state={numPendingSwitches:0,href:null,options:null}}},p.isSupported=t("./lib/is-supported"),p.isSupported())e.exports=p;else{var f=h;for(var m in p.prototype)p.prototype.hasOwnProperty(m)&&"function"==typeof p.prototype[m]&&(f[m]=h);e.exports=f}},{"./lib/abort-request":2,"./lib/events/on":4,"./lib/events/trigger":5,"./lib/execute-scripts":6,"./lib/foreach-els":7,"./lib/foreach-selectors":8,"./lib/is-supported":9,"./lib/parse-options":10,"./lib/proto/attach-form":11,"./lib/proto/attach-link":12,"./lib/proto/handle-response":13,"./lib/proto/log":14,"./lib/proto/parse-element":15,"./lib/send-request":16,"./lib/switches":18,"./lib/switches-selectors":17,"./lib/uniqueid":19,"./lib/util/clone":20,"./lib/util/contains":21,"./lib/util/extend":22,"./lib/util/noop":23}],2:[function(t,e){var o=t("./util/noop");e.exports=function(t){t&&t.readyState<4&&(t.onreadystatechange=o,t.abort())}},{"./util/noop":23}],3:[function(t,e){e.exports=function(t){var e=t.text||t.textContent||t.innerHTML||"",o=t.src||"",n=t.parentNode||document.querySelector("head")||document.documentElement,i=document.createElement("script");if(e.match("document.write"))return console&&console.log&&console.log("Script contains document.write. Can’t be executed correctly. Code skipped ",t),!1;if(i.type="text/javascript",i.id=t.id,""!==o&&(i.src=o,i.async=!1),""!==e)try{i.appendChild(document.createTextNode(e))}catch(s){i.text=e}return n.appendChild(i),(n instanceof HTMLHeadElement||n instanceof HTMLBodyElement)&&n.contains(i)&&n.removeChild(i),!0}},{}],4:[function(t,e){var o=t("../foreach-els");e.exports=function(t,e,n,i){e="string"==typeof e?e.split(" "):e,e.forEach(function(e){o(t,function(t){t.addEventListener(e,n,i)})})}},{"../foreach-els":7}],5:[function(t,e){var o=t("../foreach-els");e.exports=function(t,e,n){e="string"==typeof e?e.split(" "):e,e.forEach(function(e){var i;i=document.createEvent("HTMLEvents"),i.initEvent(e,!0,!0),i.eventName=e,n&&Object.keys(n).forEach(function(t){i[t]=n[t]}),o(t,function(t){var e=!1;t.parentNode||t===document||t===window||(e=!0,document.body.appendChild(t)),t.dispatchEvent(i),e&&t.parentNode.removeChild(t)})})}},{"../foreach-els":7}],6:[function(t,e){var o=t("./foreach-els"),n=t("./eval-script");e.exports=function(t){"script"===t.tagName.toLowerCase()&&n(t),o(t.querySelectorAll("script"),function(t){t.type&&"text/javascript"!==t.type.toLowerCase()||(t.parentNode&&t.parentNode.removeChild(t),n(t))})}},{"./eval-script":3,"./foreach-els":7}],7:[function(t,e){e.exports=function(t,e,o){return t instanceof HTMLCollection||t instanceof NodeList||t instanceof Array?Array.prototype.forEach.call(t,e,o):e.call(o,t)}},{}],8:[function(t,e){var o=t("./foreach-els");e.exports=function(t,e,n,i){i=i||document,t.forEach(function(t){o(i.querySelectorAll(t),e,n)})}},{"./foreach-els":7}],9:[function(t,e){e.exports=function(){return window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)}},{}],10:[function(t,e){function o(){window._gaq&&_gaq.push(["_trackPageview"]),window.ga&&ga("send","pageview",{page:location.pathname,title:document.title})}var n=t("./switches");e.exports=function(t){return t=t||{},t.elements=t.elements||"a[href], form[action]",t.selectors=t.selectors||["title",".js-Pjax"],t.switches=t.switches||{},t.switchesOptions=t.switchesOptions||{},t.history=void 0===t.history?!0:t.history,t.analytics="function"==typeof t.analytics||t.analytics===!1?t.analytics:o,t.scrollTo=void 0===t.scrollTo?0:t.scrollTo,t.scrollRestoration=void 0!==t.scrollRestoration?t.scrollRestoration:!0,t.cacheBust=void 0===t.cacheBust?!0:t.cacheBust,t.debug=t.debug||!1,t.timeout=t.timeout||0,t.currentUrlFullReload=void 0===t.currentUrlFullReload?!1:t.currentUrlFullReload,t.switches.head||(t.switches.head=n.switchElementsAlt),t.switches.body||(t.switches.body=n.switchElementsAlt),t}},{"./switches":18}],11:[function(t,e){function o(t){for(var e=[],o=t.elements,n=0;n1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey?"modifier":t.protocol!==window.location.protocol||t.host!==window.location.host?"external":t.hash&&t.href.replace(t.hash,"")===window.location.href.replace(location.hash,"")?"anchor":t.href===window.location.href.split("#")[0]+"#"?"anchor-empty":void 0}var n=t("../events/on"),i=t("../util/clone"),s="data-pjax-state",r=function(t,e){if(!a(e)){var n=i(this.options),r=o(t,e);if(r)return void t.setAttribute(s,r);if(e.preventDefault(),this.options.currentUrlFullReload&&t.href===window.location.href.split("#")[0])return t.setAttribute(s,"reload"),void this.reload();t.setAttribute(s,"load"),n.triggerElement=t,this.loadUrl(t.href,n)}},a=function(t){return t.defaultPrevented||t.returnValue===!1};e.exports=function(t){var e=this;t.setAttribute(s,""),n(t,"click",function(o){r.call(e,t,o)}),n(t,"keyup",function(o){13===o.keyCode&&r.call(e,t,o)}.bind(this))}},{"../events/on":4,"../util/clone":20}],13:[function(t,e){var o=t("../util/clone"),n=t("../uniqueid"),i=t("../events/trigger");e.exports=function(t,e,s,r){if(r=o(r||this.options),r.request=e,t===!1)return void i(document,"pjax:complete pjax:error",r);var a=window.history.state||{};window.history.replaceState({url:a.url||window.location.href,title:a.title||document.title,uid:a.uid||n(),scrollPos:[document.documentElement.scrollLeft||document.body.scrollLeft,document.documentElement.scrollTop||document.body.scrollTop]},document.title,window.location.href);var l=s;e.responseURL?s!==e.responseURL&&(s=e.responseURL):e.getResponseHeader("X-PJAX-URL")?s=e.getResponseHeader("X-PJAX-URL"):e.getResponseHeader("X-XHR-Redirected-To")&&(s=e.getResponseHeader("X-XHR-Redirected-To"));var c=document.createElement("a");c.href=l;var u=c.hash;c.href=s,u&&!c.hash&&(c.hash=u,s=c.href),this.state.href=s,this.state.options=r;try{this.loadContent(t,r)}catch(d){if(i(document,"pjax:error",r),this.options.debug)throw d;return console&&console.error&&console.error("Pjax switch fail: ",d),this.latestChance(s)}}},{"../events/trigger":5,"../uniqueid":19,"../util/clone":20}],14:[function(t,e){e.exports=function(){this.options.debug&&console&&("function"==typeof console.log?console.log.apply(console,arguments):console.log&&console.log(arguments))}},{}],15:[function(t,e){var o="data-pjax-state";e.exports=function(t){switch(t.tagName.toLowerCase()){case"a":t.hasAttribute(o)||this.attachLink(t);break;case"form":t.hasAttribute(o)||this.attachForm(t);break;default:throw"Pjax can only be applied on or
submit"}}},{}],16:[function(t,e){var o=t("./util/update-query-string");e.exports=function(t,e,n){e=e||{};var i,s=e.requestOptions||{},r=(s.requestMethod||"GET").toUpperCase(),a=s.requestParams||null,l=s.formData||null,c=null,u=new XMLHttpRequest,d=e.timeout||0;if(u.onreadystatechange=function(){4===u.readyState&&(200===u.status?n(u.responseText,u,t,e):0!==u.status&&n(null,u,t,e))},u.onerror=function(o){console.log(o),n(null,u,t,e)},u.ontimeout=function(){n(null,u,t,e)},a&&a.length)switch(i=a.map(function(t){return t.name+"="+t.value}).join("&"),r){case"GET":t=t.split("?")[0],t+="?"+i;break;case"POST":c=i}else l&&(c=l);return e.cacheBust&&(t=o(t,"t",Date.now())),u.open(r,t,!0),u.timeout=d,u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("X-PJAX","true"),u.setRequestHeader("X-PJAX-Selectors",JSON.stringify(e.selectors)),c&&"POST"===r&&!l&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(c),u}},{"./util/update-query-string":24}],17:[function(t,e){var o=t("./foreach-els"),n=t("./switches");e.exports=function(t,e,i,s,r,a){var l=[];i.forEach(function(i){var c=s.querySelectorAll(i),u=r.querySelectorAll(i);if(this.log&&this.log("Pjax switch",i,c,u),c.length!==u.length)throw"DOM doesn’t look the same on new loaded page: ’"+i+"’ - new "+c.length+", old "+u.length;o(c,function(o,s){var r=u[s];this.log&&this.log("newEl",o,"oldEl",r);var c=t[i]?t[i].bind(this,r,o,a,e[i]):n.outerHTML.bind(this,r,o,a);l.push(c)},this)},this),this.state.numPendingSwitches=l.length,l.forEach(function(t){t()})}},{"./foreach-els":7,"./switches":18}],18:[function(t,e){var o=t("./events/on");e.exports={outerHTML:function(t,e){t.outerHTML=e.outerHTML,this.onSwitch()},innerHTML:function(t,e){t.innerHTML=e.innerHTML,""===e.className?t.removeAttribute("class"):t.className=e.className,this.onSwitch()},switchElementsAlt:function(t,e){if(t.innerHTML=e.innerHTML,e.hasAttributes())for(var o=e.attributes,n=0;n=u&&r&&(r.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)}),a.forEach(function(t){t.className=t.className.replace(t.getAttribute("data-pjax-classes"),""),t.removeAttribute("data-pjax-classes")}),a=null,r=null,this.onSwitch()))}.bind(this);i=i||{},s.call(t.childNodes,function(t){r.push(t),t.classList&&!t.classList.contains("js-Pjax-remove")&&(t.hasAttribute("data-pjax-classes")&&(t.className=t.className.replace(t.getAttribute("data-pjax-classes"),""),t.removeAttribute("data-pjax-classes")),t.classList.add("js-Pjax-remove"),i.callbacks&&i.callbacks.removeElement&&i.callbacks.removeElement(t),i.classNames&&(t.className+=" "+i.classNames.remove+" "+(n.backward?i.classNames.backward:i.classNames.forward)),u++,o(t,c,d,!0))}),s.call(e.childNodes,function(t){if(t.classList){var e="";i.classNames&&(e=" js-Pjax-add "+i.classNames.add+" "+(n.backward?i.classNames.forward:i.classNames.backward)),i.callbacks&&i.callbacks.addElement&&i.callbacks.addElement(t),t.className+=e,t.setAttribute("data-pjax-classes",e),a.push(t),l.appendChild(t),u++,o(t,c,d,!0)}}),t.className=e.className,t.appendChild(l)}}},{"./events/on":4}],19:[function(t,e){e.exports=function(){var t=0;return function(){var e="pjax"+(new Date).getTime()+"_"+t;return t++,e}}()},{}],20:[function(t,e){e.exports=function(t){if(null===t||"object"!=typeof t)return t;var e=t.constructor();for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}},{}],21:[function(t,e){e.exports=function(t,e,o){for(var n=0;ndiv>main","body>div>nav","body>svg","title"],switches:{"body>div>main":n,"body>div>nav":n,"body>svg":n,title:function(t,e){t.outerHTML=e.outerHTML,o.className=e.parentNode.parentNode.className,this.onSwitch()}},cacheBust:!1}),t.addEventListener("pjax:send",function(){e.fire("let")},!1),t.addEventListener("pjax:success",function(){e.fire("change")},!1)}(document,_); +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Pjax=t()}}(function(){return function(){function t(e,o,n){function s(r,a){if(!o[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(i)return i(r,!0);var c=Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var u=o[r]={exports:{}};e[r][0].call(u.exports,function(t){var o=e[r][1][t];return s(o||t)},u,u.exports,t,e,o,n)}return o[r].exports}for(var i="function"==typeof require&&require,r=0;r]+>/gi,s=/\s?[a-z:]+(?:=['"][^'">]+['"])*/gi,i=t.match(n);if(i&&i.length&&(i=i[0].match(s),i.length&&(i.shift(),i.forEach(function(t){var e=t.trim().split("=");1===e.length?o.documentElement.setAttribute(e[0],!0):o.documentElement.setAttribute(e[0],e[1].slice(1,-1))}))),o.documentElement.innerHTML=t,this.log("load content",o.documentElement.attributes,o.documentElement.innerHTML.length),document.activeElement&&u(document,this.options.selectors,document.activeElement))try{document.activeElement.blur()}catch(r){}this.switchSelectors(this.options.selectors,o,document,e)},abortRequest:t("./lib/abort-request"),doRequest:t("./lib/send-request"),handleResponse:t("./lib/proto/handle-response"),loadUrl:function(t,e){e="object"==typeof e?d({},this.options,e):c(this.options),this.log("load href",t,e),this.abortRequest(this.request),l(document,"pjax:send",e),this.request=this.doRequest(t,e,this.handleResponse.bind(this))},afterAllSwitches:function(){var t=Array.prototype.slice.call(document.querySelectorAll("[autofocus]")).pop();t&&document.activeElement!==t&&t.focus(),this.options.selectors.forEach(function(t){n(document.querySelectorAll(t),function(t){o(t)})});var e=this.state;if(e.options.history&&(window.history.state||(this.lastUid=this.maxUid=r(),window.history.replaceState({url:window.location.href,title:document.title,uid:this.maxUid,scrollPos:[0,0]},document.title)),this.lastUid=this.maxUid=r(),window.history.pushState({url:e.href,title:e.options.title,uid:this.maxUid,scrollPos:[0,0]},e.options.title,e.href)),this.forEachSelectors(function(t){this.parseDOM(t)},this),l(document,"pjax:complete pjax:success",e.options),"function"==typeof e.options.analytics&&e.options.analytics(),e.options.history){var s=document.createElement("a");if(s.href=this.state.href,s.hash){var i=s.hash.slice(1);i=decodeURIComponent(i);var a=0,c=document.getElementById(i)||document.getElementsByName(i)[0];if(c&&c.offsetParent)do a+=c.offsetTop,c=c.offsetParent;while(c);window.scrollTo(0,a)}else e.options.scrollTo!==!1&&(e.options.scrollTo.length>1?window.scrollTo(e.options.scrollTo[0],e.options.scrollTo[1]):window.scrollTo(0,e.options.scrollTo))}else e.options.scrollRestoration&&e.options.scrollPos&&window.scrollTo(e.options.scrollPos[0],e.options.scrollPos[1]);this.state={numPendingSwitches:0,href:null,options:null}}},f.isSupported=t("./lib/is-supported"),f.isSupported())e.exports=f;else{var p=h;for(var m in f.prototype)f.prototype.hasOwnProperty(m)&&"function"==typeof f.prototype[m]&&(p[m]=h);e.exports=p}},{"./lib/abort-request":2,"./lib/events/on":4,"./lib/events/trigger":5,"./lib/execute-scripts":6,"./lib/foreach-els":7,"./lib/foreach-selectors":8,"./lib/is-supported":9,"./lib/parse-options":10,"./lib/proto/attach-form":11,"./lib/proto/attach-link":12,"./lib/proto/handle-response":13,"./lib/proto/log":14,"./lib/proto/parse-element":15,"./lib/send-request":16,"./lib/switches":18,"./lib/switches-selectors":17,"./lib/uniqueid":19,"./lib/util/clone":20,"./lib/util/contains":21,"./lib/util/extend":22,"./lib/util/noop":23}],2:[function(t,e){var o=t("./util/noop");e.exports=function(t){t&&t.readyState<4&&(t.onreadystatechange=o,t.abort())}},{"./util/noop":23}],3:[function(t,e){e.exports=function(t){var e=t.text||t.textContent||t.innerHTML||"",o=t.src||"",n=t.parentNode||document.querySelector("head")||document.documentElement,s=document.createElement("script");if(e.match("document.write"))return console&&console.log&&console.log("Script contains document.write. Can’t be executed correctly. Code skipped ",t),!1;if(s.type="text/javascript",s.id=t.id,""!==o&&(s.src=o,s.async=!1),""!==e)try{s.appendChild(document.createTextNode(e))}catch(i){s.text=e}return n.appendChild(s),(n instanceof HTMLHeadElement||n instanceof HTMLBodyElement)&&n.contains(s)&&n.removeChild(s),!0}},{}],4:[function(t,e){var o=t("../foreach-els");e.exports=function(t,e,n,s){e="string"==typeof e?e.split(" "):e,e.forEach(function(e){o(t,function(t){t.addEventListener(e,n,s)})})}},{"../foreach-els":7}],5:[function(t,e){var o=t("../foreach-els");e.exports=function(t,e,n){e="string"==typeof e?e.split(" "):e,e.forEach(function(e){var s;s=document.createEvent("HTMLEvents"),s.initEvent(e,!0,!0),s.eventName=e,n&&Object.keys(n).forEach(function(t){s[t]=n[t]}),o(t,function(t){var e=!1;t.parentNode||t===document||t===window||(e=!0,document.body.appendChild(t)),t.dispatchEvent(s),e&&t.parentNode.removeChild(t)})})}},{"../foreach-els":7}],6:[function(t,e){var o=t("./foreach-els"),n=t("./eval-script");e.exports=function(t){"script"===t.tagName.toLowerCase()&&n(t),o(t.querySelectorAll("script"),function(t){t.type&&"text/javascript"!==t.type.toLowerCase()||(t.parentNode&&t.parentNode.removeChild(t),n(t))})}},{"./eval-script":3,"./foreach-els":7}],7:[function(t,e){e.exports=function(t,e,o){return t instanceof HTMLCollection||t instanceof NodeList||t instanceof Array?Array.prototype.forEach.call(t,e,o):e.call(o,t)}},{}],8:[function(t,e){var o=t("./foreach-els");e.exports=function(t,e,n,s){s=s||document,t.forEach(function(t){o(s.querySelectorAll(t),e,n)})}},{"./foreach-els":7}],9:[function(t,e){e.exports=function(){return window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)}},{}],10:[function(t,e){function o(){window._gaq&&_gaq.push(["_trackPageview"]),window.ga&&ga("send","pageview",{page:location.pathname,title:document.title})}var n=t("./switches");e.exports=function(t){return t=t||{},t.elements=t.elements||"a[href], form[action]",t.selectors=t.selectors||["title",".js-Pjax"],t.switches=t.switches||{},t.switchesOptions=t.switchesOptions||{},t.history=void 0===t.history?!0:t.history,t.analytics="function"==typeof t.analytics||t.analytics===!1?t.analytics:o,t.scrollTo=void 0===t.scrollTo?0:t.scrollTo,t.scrollRestoration=void 0!==t.scrollRestoration?t.scrollRestoration:!0,t.cacheBust=void 0===t.cacheBust?!0:t.cacheBust,t.debug=t.debug||!1,t.timeout=t.timeout||0,t.currentUrlFullReload=void 0===t.currentUrlFullReload?!1:t.currentUrlFullReload,t.switches.head||(t.switches.head=n.switchElementsAlt),t.switches.body||(t.switches.body=n.switchElementsAlt),t}},{"./switches":18}],11:[function(t,e){function o(t){for(var e=[],o=t.elements,n=0;n1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey?"modifier":t.protocol!==window.location.protocol||t.host!==window.location.host?"external":t.hash&&t.href.replace(t.hash,"")===window.location.href.replace(location.hash,"")?"anchor":t.href===window.location.href.split("#")[0]+"#"?"anchor-empty":void 0}var n=t("../events/on"),s=t("../util/clone"),i="data-pjax-state",r=function(t,e){if(!a(e)){var n=s(this.options),r=o(t,e);if(r)return void t.setAttribute(i,r);if(e.preventDefault(),this.options.currentUrlFullReload&&t.href===window.location.href.split("#")[0])return t.setAttribute(i,"reload"),void this.reload();t.setAttribute(i,"load"),n.triggerElement=t,this.loadUrl(t.href,n)}},a=function(t){return t.defaultPrevented||t.returnValue===!1};e.exports=function(t){var e=this;t.setAttribute(i,""),n(t,"click",function(o){r.call(e,t,o)}),n(t,"keyup",function(o){13===o.keyCode&&r.call(e,t,o)}.bind(this))}},{"../events/on":4,"../util/clone":20}],13:[function(t,e){var o=t("../util/clone"),n=t("../uniqueid"),s=t("../events/trigger");e.exports=function(t,e,i,r){if(r=o(r||this.options),r.request=e,t===!1)return void s(document,"pjax:complete pjax:error",r);var a=window.history.state||{};window.history.replaceState({url:a.url||window.location.href,title:a.title||document.title,uid:a.uid||n(),scrollPos:[document.documentElement.scrollLeft||document.body.scrollLeft,document.documentElement.scrollTop||document.body.scrollTop]},document.title,window.location.href);var l=i;e.responseURL?i!==e.responseURL&&(i=e.responseURL):e.getResponseHeader("X-PJAX-URL")?i=e.getResponseHeader("X-PJAX-URL"):e.getResponseHeader("X-XHR-Redirected-To")&&(i=e.getResponseHeader("X-XHR-Redirected-To"));var c=document.createElement("a");c.href=l;var u=c.hash;c.href=i,u&&!c.hash&&(c.hash=u,i=c.href),this.state.href=i,this.state.options=r;try{this.loadContent(t,r)}catch(d){if(s(document,"pjax:error",r),this.options.debug)throw d;return console&&console.error&&console.error("Pjax switch fail: ",d),this.latestChance(i)}}},{"../events/trigger":5,"../uniqueid":19,"../util/clone":20}],14:[function(t,e){e.exports=function(){this.options.debug&&console&&("function"==typeof console.log?console.log.apply(console,arguments):console.log&&console.log(arguments))}},{}],15:[function(t,e){var o="data-pjax-state";e.exports=function(t){switch(t.tagName.toLowerCase()){case"a":t.hasAttribute(o)||this.attachLink(t);break;case"form":t.hasAttribute(o)||this.attachForm(t);break;default:throw"Pjax can only be applied on or submit"}}},{}],16:[function(t,e){var o=t("./util/update-query-string");e.exports=function(t,e,n){e=e||{};var s,i=e.requestOptions||{},r=(i.requestMethod||"GET").toUpperCase(),a=i.requestParams||null,l=i.formData||null,c=null,u=new XMLHttpRequest,d=e.timeout||0;if(u.onreadystatechange=function(){4===u.readyState&&(200===u.status?n(u.responseText,u,t,e):0!==u.status&&n(null,u,t,e))},u.onerror=function(o){console.log(o),n(null,u,t,e)},u.ontimeout=function(){n(null,u,t,e)},a&&a.length)switch(s=a.map(function(t){return t.name+"="+t.value}).join("&"),r){case"GET":t=t.split("?")[0],t+="?"+s;break;case"POST":c=s}else l&&(c=l);return e.cacheBust&&(t=o(t,"t",Date.now())),u.open(r,t,!0),u.timeout=d,u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("X-PJAX","true"),u.setRequestHeader("X-PJAX-Selectors",JSON.stringify(e.selectors)),c&&"POST"===r&&!l&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(c),u}},{"./util/update-query-string":24}],17:[function(t,e){var o=t("./foreach-els"),n=t("./switches");e.exports=function(t,e,s,i,r,a){var l=[];s.forEach(function(s){var c=i.querySelectorAll(s),u=r.querySelectorAll(s);if(this.log&&this.log("Pjax switch",s,c,u),c.length!==u.length)throw"DOM doesn’t look the same on new loaded page: ’"+s+"’ - new "+c.length+", old "+u.length;o(c,function(o,i){var r=u[i];this.log&&this.log("newEl",o,"oldEl",r);var c=t[s]?t[s].bind(this,r,o,a,e[s]):n.outerHTML.bind(this,r,o,a);l.push(c)},this)},this),this.state.numPendingSwitches=l.length,l.forEach(function(t){t()})}},{"./foreach-els":7,"./switches":18}],18:[function(t,e){var o=t("./events/on");e.exports={outerHTML:function(t,e){t.outerHTML=e.outerHTML,this.onSwitch()},innerHTML:function(t,e){t.innerHTML=e.innerHTML,""===e.className?t.removeAttribute("class"):t.className=e.className,this.onSwitch()},switchElementsAlt:function(t,e){if(t.innerHTML=e.innerHTML,e.hasAttributes())for(var o=e.attributes,n=0;n=u&&r&&(r.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)}),a.forEach(function(t){t.className=t.className.replace(t.getAttribute("data-pjax-classes"),""),t.removeAttribute("data-pjax-classes")}),a=null,r=null,this.onSwitch()))}.bind(this);s=s||{},i.call(t.childNodes,function(t){r.push(t),t.classList&&!t.classList.contains("js-Pjax-remove")&&(t.hasAttribute("data-pjax-classes")&&(t.className=t.className.replace(t.getAttribute("data-pjax-classes"),""),t.removeAttribute("data-pjax-classes")),t.classList.add("js-Pjax-remove"),s.callbacks&&s.callbacks.removeElement&&s.callbacks.removeElement(t),s.classNames&&(t.className+=" "+s.classNames.remove+" "+(n.backward?s.classNames.backward:s.classNames.forward)),u++,o(t,c,d,!0))}),i.call(e.childNodes,function(t){if(t.classList){var e="";s.classNames&&(e=" js-Pjax-add "+s.classNames.add+" "+(n.backward?s.classNames.forward:s.classNames.backward)),s.callbacks&&s.callbacks.addElement&&s.callbacks.addElement(t),t.className+=e,t.setAttribute("data-pjax-classes",e),a.push(t),l.appendChild(t),u++,o(t,c,d,!0)}}),t.className=e.className,t.appendChild(l)}}},{"./events/on":4}],19:[function(t,e){e.exports=function(){var t=0;return function(){var e="pjax"+(new Date).getTime()+"_"+t;return t++,e}}()},{}],20:[function(t,e){e.exports=function(t){if(null===t||"object"!=typeof t)return t;var e=t.constructor();for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}},{}],21:[function(t,e){e.exports=function(t,e,o){for(var n=0;ndiv>main","body>div>nav","body>svg","title"],switches:{"body>div>main":n,"body>div>nav":n,"body>svg":n,title:function(t,e){t.outerHTML=e.outerHTML,o.className=e.parentNode.parentNode.className,this.onSwitch()}},cacheBust:!1}),t.addEventListener("pjax:send",function(){e.fire("let")},!1),t.addEventListener("pjax:success",function(){e.fire("change")},!1)}(document,_); diff --git a/panel/lot/asset/scss/panel/lot.scss b/panel/lot/asset/scss/panel/lot.scss index d0843b1b..f832767a 100644 --- a/panel/lot/asset/scss/panel/lot.scss +++ b/panel/lot/asset/scss/panel/lot.scss @@ -142,7 +142,7 @@ overflow: hidden; text-overflow: ellipsis; a { - &.not\:active:not(:focus):not(:hover) { + &.not\:active { opacity: 1; } } @@ -206,7 +206,7 @@ top: 7px; } } - .not\:active:not(:focus):not(:hover) { + .not\:active { opacity: .5; } &.count\:0 { diff --git a/panel/lot/layout/asset/scss/construction.scss b/panel/lot/layout/asset/scss/construction.scss index e9fe0106..0d44fc5d 100644 --- a/panel/lot/layout/asset/scss/construction.scss +++ b/panel/lot/layout/asset/scss/construction.scss @@ -31,6 +31,7 @@ $color-secondary: #888; $color-title: #66a; $color-button: $color-back; + $color-back-button: $color-link; $color-back-button-focus: $color-link-focus; $color-back-button-active: $color-link-active;