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/
|
2022-03-26 15:18:42 +00:00
|
|
|
\define set-next-input-tab(beforeafter:"after") <$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>>/>"/>
|
2020-10-28 10:53:41 +00:00
|
|
|
|
2022-03-26 15:18:42 +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>>/>"/>
|
2020-10-28 10:53:41 +00:00
|
|
|
|
2022-03-26 15:18:42 +00:00
|
|
|
\define cancel-search-actions() <$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"/>
|
2020-10-28 10:53:41 +00:00
|
|
|
|
2022-03-26 15:18:42 +00:00
|
|
|
\define input-accept-actions() <$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>
|
2020-10-28 10:53:41 +00:00
|
|
|
|
2022-03-26 15:18:42 +00:00
|
|
|
\define input-accept-variant-actions() <$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>
|
|
|
|
|
|
|
|
\whitespace trim
|
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">>>
|
2022-03-26 15:18:42 +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}}
|
|
|
|
inputCancelActions=<<cancel-search-actions>>
|
|
|
|
inputAcceptActions=<<input-accept-actions>>
|
|
|
|
inputAcceptVariantActions=<<input-accept-variant-actions>>
|
|
|
|
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>
|
2020-11-01 17:12:29 +00:00
|
|
|
<$reveal state="$:/temp/advancedsearch" 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-11-01 17:12:29 +00:00
|
|
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
2022-03-26 15:18:42 +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">
|
|
|
|
<$vars
|
|
|
|
userInput={{{ [[$:/temp/advancedsearch]get[text]] }}}
|
|
|
|
configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}
|
|
|
|
searchListState="$:/temp/advancedsearch/selected-item">
|
|
|
|
<$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>">
|
|
|
|
<$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>
|