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/
|
2022-04-16 16:40:27 +00:00
|
|
|
\define set-next-input-tab(beforeafter:"after",stateTitle,tag,defaultState,currentTabTiddler)
|
|
|
|
<$macrocall $name="change-input-tab"
|
|
|
|
stateTitle="$:/state/tab--1498284803"
|
|
|
|
tag="$:/tags/AdvancedSearch"
|
|
|
|
beforeafter="$beforeafter$"
|
|
|
|
defaultState="$:/core/ui/AdvancedSearch/System"
|
|
|
|
actions="<$action-setfield $tiddler='$:/state/advancedsearch/currentTab' text=<<nextTab>>/>"/>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define cancel-search-actions()
|
|
|
|
\whitespace trim
|
|
|
|
<$list
|
|
|
|
filter="[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]"
|
|
|
|
emptyMessage="<$action-deletetiddler $filter='[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]' />">
|
|
|
|
<$action-setfield $tiddler="$:/temp/advancedsearch/input" text={{$:/temp/advancedsearch}}/>
|
|
|
|
<$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/>
|
|
|
|
</$list>
|
|
|
|
<$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input"/>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define input-accept-actions()
|
|
|
|
\whitespace trim
|
|
|
|
<$list
|
|
|
|
filter="[{$:/config/Search/NavigateOnEnter/enable}match[yes]]"
|
|
|
|
emptyMessage="<$list filter='[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]'><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>">
|
|
|
|
<$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/>
|
|
|
|
</$list>
|
|
|
|
\end
|
2020-10-28 10:53:41 +00:00
|
|
|
|
2022-04-16 16:40:27 +00:00
|
|
|
\define input-accept-variant-actions()
|
|
|
|
\whitespace trim
|
|
|
|
<$list
|
|
|
|
filter="[{$:/config/Search/NavigateOnEnter/enable}match[yes]]"
|
|
|
|
emptyMessage="<$list filter='[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]'><$list filter='[<__tiddler__>get[text]minlength[1]]'><$action-sendmessage $message='tm-edit-tiddler' $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>">
|
|
|
|
<$list filter="[<__tiddler__>get[text]minlength[1]]">
|
|
|
|
<$action-sendmessage $message="tm-edit-tiddler" $param={{{ [<__tiddler__>get[text]] }}}/>
|
|
|
|
</$list></$list>
|
|
|
|
\end
|
2020-10-28 10:53:41 +00:00
|
|
|
|
2022-04-16 16:40:27 +00:00
|
|
|
\whitespace trim
|
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">>>
|
2022-04-16 16:40:27 +00:00
|
|
|
<$macrocall $name="keyboard-driven-input"
|
|
|
|
tiddler="$:/temp/advancedsearch/input"
|
|
|
|
storeTitle="$:/temp/advancedsearch"
|
|
|
|
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>>
|
|
|
|
filterMinLength={{$:/config/Search/MinLength}}/>
|
2020-10-27 09:03:34 +00:00
|
|
|
</$keyboard>
|
|
|
|
</$keyboard>
|
2022-04-16 16:40:27 +00:00
|
|
|
 
|
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-11-01 17:12:29 +00:00
|
|
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2022-04-16 16:40:27 +00:00
|
|
|
<$list filter="[{$:/temp/advancedsearch}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
|
|
|
|
2024-08-30 09:39:33 +00:00
|
|
|
<$set name="resultCount" value={{{ [is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]] +[count[]] }}}>
|
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
|
|
|
|
2024-09-02 15:51:15 +00:00
|
|
|
<%if [<resultCount>match[0]] %>
|
2024-08-30 09:39:33 +00:00
|
|
|
{{$:/language/Search/Matches/NoMatch}}
|
2024-09-02 15:51:15 +00:00
|
|
|
<%else%>
|
2024-08-30 09:39:33 +00:00
|
|
|
<<lingo System/Matches>>
|
2024-09-02 15:51:15 +00:00
|
|
|
<%endif%>
|
2013-12-31 13:11:01 +00:00
|
|
|
|
2020-11-01 17:12:29 +00:00
|
|
|
<$list filter="[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]">
|
2020-10-28 10:53:41 +00:00
|
|
|
<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>
|