2013-12-31 13:11:01 +00:00
|
|
|
title: $:/core/ui/AdvancedSearch/System
|
|
|
|
tags: $:/tags/AdvancedSearch
|
2014-02-16 09:46:43 +00:00
|
|
|
caption: {{$:/language/Search/System/Caption}}
|
2020-10-28 10:53:41 +00:00
|
|
|
first-search-filter: [is[system]search<userInput>sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2014-02-16 09:46:43 +00:00
|
|
|
\define lingo-base() $:/language/Search/
|
2020-10-27 09:03:34 +00:00
|
|
|
\define set-next-input-tab(beforeafter:"after",stateTitle,tag,defaultState,currentTabTiddler) <$macrocall $name="change-input-tab" stateTitle="$:/state/tab/advanced-search-results" tag="$:/tags/AdvancedSearch" beforeafter="$beforeafter$" defaultState="$:/core/ui/AdvancedSearch/System" actions="""<$action-setfield $tiddler="$:/state/advancedsearch/currentTab" text=<<nextTab>>/>"""/>
|
2020-10-28 10:53:41 +00:00
|
|
|
|
|
|
|
\define cancel-search-actions() <$action-deletetiddler $filter="[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]" />
|
|
|
|
|
|
|
|
\define input-accept-actions() <$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/>
|
|
|
|
|
|
|
|
\define input-accept-variant-actions() <$action-sendmessage $message="tm-edit-tiddler" $param={{{ [<__tiddler__>get[text]] }}}/>
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2014-02-16 09:46:43 +00:00
|
|
|
<<lingo System/Hint>>
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2014-11-23 16:07:58 +00:00
|
|
|
<div class="tc-search">
|
2020-10-27 09:03:34 +00:00
|
|
|
<$keyboard key="((input-tab-right))" actions=<<set-next-input-tab>>>
|
|
|
|
<$keyboard key="((input-tab-left))" actions=<<set-next-input-tab "before">>>
|
2020-10-28 10:53:41 +00:00
|
|
|
<$macrocall $name="keyboard-driven-input" tiddler="$:/temp/advancedsearch" storeTitle="$:/temp/advancedsearch/input"
|
|
|
|
refreshTitle="$:/temp/advancedsearch/refresh" selectionStateTitle="$:/temp/advancedsearch/selected-item"
|
|
|
|
type="search" tag="input" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter="[[$:/core/ui/AdvancedSearch/System]]"
|
|
|
|
inputCancelActions=<<cancel-search-actions>> inputAcceptActions=<<input-accept-actions>>
|
|
|
|
inputAcceptVariantActions=<<input-accept-variant-actions>>/>
|
2020-10-27 09:03:34 +00:00
|
|
|
</$keyboard>
|
|
|
|
</$keyboard>
|
2014-11-23 16:07:58 +00:00
|
|
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
|
|
|
<$button class="tc-btn-invisible">
|
2020-10-28 10:53:41 +00:00
|
|
|
<<cancel-search-actions>>
|
2014-11-23 16:07:58 +00:00
|
|
|
{{$:/core/images/close-button}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
</div>
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2020-10-28 10:53:41 +00:00
|
|
|
<$reveal state="$:/temp/advancedsearch/input" type="nomatch" text="">
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2020-10-28 10:53:41 +00:00
|
|
|
<$list filter="[{$:/temp/advancedsearch/input}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
|
2016-10-11 08:27:26 +00:00
|
|
|
|
2020-10-28 10:53:41 +00:00
|
|
|
<$set name="resultCount" value="""<$count filter="[is[system]search{$:/temp/advancedsearch/input}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]"/>""">
|
2014-10-21 19:27:42 +00:00
|
|
|
|
2014-08-28 18:08:31 +00:00
|
|
|
<div class="tc-search-results">
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2014-05-14 19:12:38 +00:00
|
|
|
<<lingo System/Matches>>
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2020-10-28 10:53:41 +00:00
|
|
|
<$list filter="[is[system]search{$:/temp/advancedsearch/input}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]">
|
|
|
|
<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
|
|
|
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
|
|
|
</span>
|
|
|
|
</$list>
|
2013-12-31 13:11:01 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-10-21 19:27:42 +00:00
|
|
|
</$set>
|
|
|
|
|
2016-10-11 08:27:26 +00:00
|
|
|
</$list>
|
|
|
|
|
2013-12-31 13:11:01 +00:00
|
|
|
</$reveal>
|
|
|
|
|
|
|
|
<$reveal state="$:/temp/advancedsearch" type="match" text="">
|
|
|
|
|
|
|
|
</$reveal>
|