2014-05-15 22:09:31 +00:00
|
|
|
title: $:/core/ui/AdvancedSearch/Standard
|
|
|
|
tags: $:/tags/AdvancedSearch
|
|
|
|
caption: {{$:/language/Search/Standard/Caption}}
|
|
|
|
|
|
|
|
\define lingo-base() $:/language/Search/
|
2020-10-27 09:03:34 +00:00
|
|
|
\define set-next-input-tab(beforeafter:"after") <$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 next-search-tab(beforeafter:"after") <$macrocall $name="change-input-tab" stateTitle="$:/state/tab/search-results/advancedsearch" tag="$:/tags/SearchResults" beforeafter="$beforeafter$" defaultState={{$:/config/SearchResults/Default}} actions="""<$action-setfield $tiddler="$:/state/advancedsearch/standard/currentTab" text=<<nextTab>>/>"""/>
|
|
|
|
|
|
|
|
\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]] }}}/>
|
|
|
|
|
2020-10-31 13:22:46 +00:00
|
|
|
\define input-accept-variant-actions() <$list filter="[<__tiddler__>get[text]minlength[1]]"><$action-sendmessage $message="tm-edit-tiddler" $param={{{ [<__tiddler__>get[text]] }}}/></$list>
|
2014-05-15 22:09:31 +00:00
|
|
|
|
|
|
|
<<lingo Standard/Hint>>
|
|
|
|
|
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
|
|
|
<$keyboard key="shift-alt-Right" actions=<<next-search-tab>>>
|
|
|
|
<$keyboard key="shift-alt-Left" actions=<<next-search-tab "before">>>
|
|
|
|
<$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}} inputCancelActions=<<cancel-search-actions>>
|
|
|
|
inputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>>
|
2020-11-01 10:57:13 +00:00
|
|
|
configTiddlerFilter="[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]"
|
|
|
|
filterMinLength={{$:/config/Search/MinLength}}/>
|
2020-10-27 09:03:34 +00:00
|
|
|
</$keyboard>
|
|
|
|
</$keyboard>
|
2020-10-28 10:53:41 +00:00
|
|
|
</$keyboard>
|
|
|
|
</$keyboard>
|
|
|
|
<$reveal state="$:/temp/advancedsearch/input" type="nomatch" text="">
|
2014-11-23 16:07:58 +00:00
|
|
|
<$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>
|
2014-05-15 22:09:31 +00:00
|
|
|
|
2020-10-28 10:53:41 +00:00
|
|
|
<$reveal state="$:/temp/advancedsearch/input" type="nomatch" text="">
|
|
|
|
<$list filter="[{$:/temp/advancedsearch/input}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
|
|
|
|
<$vars userInput={{{ [[$:/temp/advancedsearch/input]get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} searchListState="$:/temp/advancedsearch/selected-item">
|
2014-11-06 20:57:31 +00:00
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage="""
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]">
|
|
|
|
<$transclude/>
|
|
|
|
</$list>
|
|
|
|
""">
|
2020-10-28 10:53:41 +00:00
|
|
|
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}} actions="""<$action-setfield $tiddler="$:/state/advancedsearch/standard/currentTab" text=<<currentTab>>/>""" explicitState="$:/state/tab/search-results/advancedsearch" />
|
2014-11-06 20:57:31 +00:00
|
|
|
</$list>
|
2020-10-28 10:53:41 +00:00
|
|
|
</$vars>
|
2016-10-11 08:27:26 +00:00
|
|
|
</$list>
|
2014-05-15 22:09:31 +00:00
|
|
|
</$reveal>
|