|
1 | | -Compiled 1000 times | 3.26 ms/compile | 20.6 KB code | 1.8 MB peak |
2 | | -Executed 1000 times | 1.54 ms/render | 139.9 KB output | 1.9 MB peak |
| 1 | +Compiled 1000 times | 3.18 ms/compile | 20.7 KB code | 1.8 MB peak |
| 2 | +Executed 1000 times | 1.50 ms/render | 139.9 KB output | 1.9 MB peak |
3 | 3 | <?php |
4 | 4 | use DevTheorem\Handlebars\Runtime as LR; |
5 | 5 | return function (mixed $in = null, array $options = []) { |
|
49 | 49 | <table class="table table-striped'.(LR::ifvar(LR::cv($in, 'hoverable')) ? ' table-hover' : '').(LR::ifvar(LR::cv($in, 'bordered')) ? ' table-bordered' : '').'"> |
50 | 50 | <thead> |
51 | 51 | <tr> |
52 | | -'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$in['columns'] ?? null], [], $in, function($cx, $in) {$sc=count($cx->depths);return ' <th '.(LR::ifvar(LR::cv($in, 'width')) ? 'style="width:'.LR::encq(LR::cv($in, 'width')).'"' : '').' class="'.(LR::ifvar(LR::cv($in, 'sortable')) ? 'sortable' : '').(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$in['currentSort']['key'] ?? null,$in['key'] ?? null], [], $in)) ? ' sort-'.LR::encq($in['currentSort']['dir'] ?? null) : '').'"> |
53 | | -'.(LR::ifvar(LR::cv($in, 'sortable')) ? ' <a href="'.LR::encq($cx->depths[$sc-1]['sortBaseUrl'] ?? null).'?sort='.LR::encq(LR::cv($in, 'key')).'&dir='.(LR::ifvar(LR::hbch($cx, $cx->helpers['and'], 'and', [LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->depths[$sc-1]['currentSort']['key'] ?? null,$in['key'] ?? null], [], $in),LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->depths[$sc-1]['currentSort']['dir'] ?? null,'asc'], [], $in)], [], $in)) ? 'desc' : 'asc').'"> |
| 52 | +'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$in['columns'] ?? null], [], $in, function($cx, $in) {$sc=count($cx->depths);return ' <th '.(LR::ifvar(LR::cv($in, 'width')) ? 'style="width:'.LR::encq(LR::cv($in, 'width')).'"' : '').' class="'.(LR::ifvar(LR::cv($in, 'sortable')) ? 'sortable' : '').(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$in['currentSort']['key'] ?? null,$in['key'] ?? null], [], $in)) ? ' sort-'.LR::encq(LR::dv($in['currentSort']['dir'] ?? null)) : '').'"> |
| 53 | +'.(LR::ifvar(LR::cv($in, 'sortable')) ? ' <a href="'.LR::encq(LR::dv($cx->depths[$sc-1]['sortBaseUrl'] ?? null)).'?sort='.LR::encq(LR::cv($in, 'key')).'&dir='.(LR::ifvar(LR::hbch($cx, $cx->helpers['and'], 'and', [LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->depths[$sc-1]['currentSort']['key'] ?? null,$in['key'] ?? null], [], $in),LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->depths[$sc-1]['currentSort']['dir'] ?? null,'asc'], [], $in)], [], $in)) ? 'desc' : 'asc').'"> |
54 | 54 | '.LR::encq(LR::cv($in, 'label')).' |
55 | 55 | </a> |
56 | 56 | ' : ' '.LR::encq(LR::cv($in, 'label')).' |
|
59 | 59 | </tr> |
60 | 60 | </thead> |
61 | 61 | <tbody> |
62 | | -'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$in['items'] ?? null], [], $in, function($cx, $in, array $blockParams = []) {$sc=count($cx->depths);return ' <tr class="'.(LR::ifvar($blockParams[0][0]['deleted'] ?? null) ? 'deleted' : '').' '.(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->data['index'] ?? null,$cx->depths[$sc-1]['selectedIndex'] ?? null], [], $in)) ? 'selected' : '').'" data-id="'.LR::encq($blockParams[0][0]['id'] ?? null).'"> |
| 62 | +'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$in['items'] ?? null], [], $in, function($cx, $in, array $blockParams = []) {$sc=count($cx->depths);return ' <tr class="'.(LR::ifvar($blockParams[0][0]['deleted'] ?? null) ? 'deleted' : '').' '.(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->data['index'] ?? null,$cx->depths[$sc-1]['selectedIndex'] ?? null], [], $in)) ? 'selected' : '').'" data-id="'.LR::encq(LR::dv($blockParams[0][0]['id'] ?? null)).'"> |
63 | 63 | '.LR::hbbch($cx, $cx->helpers['each'], 'each', [$cx->depths[$sc-1]['columns'] ?? null], [], $in, function($cx, $in) use ($blockParams) {$sc=count($cx->depths);return ' <td class="col-'.LR::encq(LR::cv($in, 'key')).(LR::ifvar($blockParams[0][0]['highlighted'] ?? null) ? ' highlighted' : '').'"> |
64 | 64 | '.(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$in['type'] ?? null,'boolean'], [], $in)) ? ' '.(LR::ifvar(LR::hbch($cx, $cx->helpers['lookup'], 'lookup', [$blockParams[0][0],$in['key'] ?? null], [], $in)) ? '<i class="icon-check text-success"></i>' : '<i class="icon-times text-muted"></i>').' |
65 | 65 | ' : (LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$in['type'] ?? null,'date'], [], $in)) ? ' <time datetime="'.LR::encq(LR::hbch($cx, $cx->helpers['formatDate'], 'formatDate', [LR::hbch($cx, $cx->helpers['lookup'], 'lookup', [$blockParams[0][0],$in['key'] ?? null], [], $in),'Y-m-d'], [], $in)).'">'.LR::encq(LR::hbch($cx, $cx->helpers['formatDate'], 'formatDate', [LR::hbch($cx, $cx->helpers['lookup'], 'lookup', [$blockParams[0][0],$in['key'] ?? null], [], $in),$in['format'] ?? null], [], $in)).'</time> |
@@ -90,10 +90,10 @@ class="btn btn-sm btn-'.LR::encq(LR::cv($in, 'style')).'" |
90 | 90 | '.LR::p($cx, 'pagination', $in, [], ' ').' |
91 | 91 | ' : ' |
92 | 92 | '.' <div class="empty-state"> |
93 | | - '.(LR::ifvar($in['emptyState']['illustration'] ?? null) ? LR::raw($in['emptyState']['illustration'] ?? null) : '').' |
94 | | - <h3>'.LR::encq($in['emptyState']['heading'] ?? null).'</h3> |
95 | | - '.(LR::ifvar($in['emptyState']['message'] ?? null) ? '<p>'.LR::encq($in['emptyState']['message'] ?? null).'</p>' : '').' |
96 | | -'.(LR::ifvar($in['emptyState']['action'] ?? null) ? ' <a href="'.LR::encq($in['emptyState']['action']['url'] ?? null).'" class="btn btn-primary">'.LR::encq($in['emptyState']['action']['label'] ?? null).'</a> |
| 93 | + '.(LR::ifvar($in['emptyState']['illustration'] ?? null) ? LR::raw(LR::dv($in['emptyState']['illustration'] ?? null)) : '').' |
| 94 | + <h3>'.LR::encq(LR::dv($in['emptyState']['heading'] ?? null)).'</h3> |
| 95 | + '.(LR::ifvar($in['emptyState']['message'] ?? null) ? '<p>'.LR::encq(LR::dv($in['emptyState']['message'] ?? null)).'</p>' : '').' |
| 96 | +'.(LR::ifvar($in['emptyState']['action'] ?? null) ? ' <a href="'.LR::encq(LR::dv($in['emptyState']['action']['url'] ?? null)).'" class="btn btn-primary">'.LR::encq(LR::dv($in['emptyState']['action']['label'] ?? null)).'</a> |
97 | 97 | ' : '').' </div> |
98 | 98 |
|
99 | 99 | ').' |
|
0 commit comments