diff --git a/editions/fr-FR/tiddlers/$__core_ui_TagTemplate.tid b/editions/fr-FR/tiddlers/$__core_ui_TagTemplate.tid deleted file mode 100644 index e4b944483..000000000 --- a/editions/fr-FR/tiddlers/$__core_ui_TagTemplate.tid +++ /dev/null @@ -1,33 +0,0 @@ -created: 20160504080001125 -modified: 20160504080318928 -title: $:/core/ui/TagTemplate -type: text/vnd.tiddlywiki - -\define tag-styles() -background-color:$(backgroundColor)$; -fill:$(foregroundColor)$; -color:$(foregroundColor)$; -\end - -\define tag-body-inner(colour,fallbackTarget,colourA,colourB) -<$set name="foregroundColor" value=<>> -<$set name="backgroundColor" value="""$colour$"""> -<$button popup=<> class="tc-btn-invisible tc-tag-label" style=<>> -<$transclude tiddler={{!!icon}}/> <$view field="fr-title"><$view field="title" format="text" /> - -<$reveal state=<> type="popup" position="below" animate="yes">
<$transclude tiddler="$:/core/ui/ListItemTemplate"/> -
-<$list filter="[all[current]tagging[]]" template="$:/core/ui/ListItemTemplate"/> -
- - - -\end - -\define tag-body(colour,palette) - -<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}}/> - -\end - -<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}}/> \ No newline at end of file diff --git a/editions/fr-FR/tiddlers/system/$__core_macros_list.tid b/editions/fr-FR/tiddlers/system/$__core_macros_list.tid new file mode 100644 index 000000000..93349d46c --- /dev/null +++ b/editions/fr-FR/tiddlers/system/$__core_macros_list.tid @@ -0,0 +1,113 @@ +created: 20220830224607117 +modified: 20220830224638865 +tags: $:/tags/Macro +title: $:/core/macros/list + +\define list-links(filter,type:"ul",subtype:"li",class:"",emptyMessage) +\whitespace trim +<$type$ class="$class$"> +<$list filter="$filter$" emptyMessage=<<__emptyMessage__>>> +<$subtype$> +<$link to={{!!title}}> +<$let tv-wikilinks="no"> +<$transclude field="caption"> +<$view field="title"/> + + + + + + +\end + +\define list-links-draggable-drop-actions() +<$action-listops $tiddler=<> $field=<> $subfilter="+[insertbefore,]"/> +\end + +\define list-links-draggable(tiddler,field:"list",emptyMessage,type:"ul",subtype:"li",class:"",itemTemplate) +\whitespace trim + +<$vars targetTiddler="""$tiddler$""" targetField="""$field$"""> +<$type$ class="$class$"> +<$list filter="[list[$tiddler$!!$field$]]" emptyMessage=<<__emptyMessage__>>> +<$droppable actions=<> tag="""$subtype$""" enable=<>> +
+
+<$transclude tiddler="""$itemTemplate$"""> +<$link to={{!!title}}> +<$let tv-wikilinks="no"> +<$transclude field="caption"> +<$view field="title"/> + + + + +
+ + +<$tiddler tiddler=""> +<$droppable actions=<> tag="div" enable=<>> +
+{{$:/core/images/blank}} +
+
+ + + + + +\end + +\define list-tagged-draggable-drop-actions(tag) +\whitespace trim + +<$set name="order" filter="[<__tag__>tagging[]]"> + +<$list filter="[<__tag__>tagging[]]"> +<$action-deletefield $field="list-before"/> +<$action-deletefield $field="list-after"/> + + +<$action-listops $tiddler=<<__tag__>> $field="list" $filter="+[enlist] +[insertbefore,]"/> + + + + +<$list filter="[!contains:tags<__tag__>]"> +<$fieldmangler tiddler=<>> +<$action-sendmessage $message="tm-add-tag" $param=<<__tag__>>/> + + + +\end + +\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:"div",storyview:"") +\whitespace trim + +<$set name="tag" value=<<__tag__>>> +<$list filter="[<__tag__>tagging[]$subFilter$]" emptyMessage=<<__emptyMessage__>> storyview=<<__storyview__>>> +<$elementTag$ class="tc-menu-list-item"> +<$droppable actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<<__tag__>>/>""" enable=<>> +<$elementTag$ class="tc-droppable-placeholder"/> +<$elementTag$> +<$transclude tiddler="""$itemTemplate$"""> +<$link to={{!!title}}> +<$view field="fr-title"> +<$view field="title"/> + + + + + + + +<$tiddler tiddler=""> +<$droppable actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<<__tag__>>/>""" enable=<>> +<$elementTag$ class="tc-droppable-placeholder"/> +<$elementTag$ style="height:0.5em;"> + + + + + +\end diff --git a/editions/fr-FR/tiddlers/system/$__core_macros_tag.tid b/editions/fr-FR/tiddlers/system/$__core_macros_tag.tid new file mode 100644 index 000000000..76b7bf70e --- /dev/null +++ b/editions/fr-FR/tiddlers/system/$__core_macros_tag.tid @@ -0,0 +1,39 @@ +created: 20220830190922373 +modified: 20220830191056761 +tags: $:/tags/Macro +title: $:/core/macros/tag + +\define tag-pill-styles() +background-color:$(backgroundColor)$; +fill:$(foregroundColor)$; +color:$(foregroundColor)$; +\end + + +\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions) +<$vars + foregroundColor=<> + backgroundColor="""$colour$""" +><$element-tag$ + $element-attributes$ + class="tc-tag-label tc-btn-invisible" + style=<> +>$actions$<$transclude tiddler="""$icon$"""/><$view tiddler=<<__tag__>> field="fr-title" format="text"><$view tiddler=<<__tag__>> field="title" format="text" /> +\end + +\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions) +<$macrocall $name="tag-pill-inner" tag=<<__tag__>> icon="""$icon$""" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/> +\end + +\define tag-pill(tag,element-tag:"span",element-attributes:"",actions:"") +\whitespace trim +>> +<$let currentTiddler=<<__tag__>>> +<$macrocall $name="tag-pill-body" tag=<<__tag__>> icon={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}} colour={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}} palette={{$:/palette}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/> + + +\end + +\define tag(tag) +{{$tag$||$:/core/ui/TagTemplate}} +\end diff --git a/editions/fr-FR/tiddlers/system/$__core_ui_TagPickerTagTemplate.tid b/editions/fr-FR/tiddlers/system/$__core_ui_TagPickerTagTemplate.tid new file mode 100644 index 000000000..30ebae9d3 --- /dev/null +++ b/editions/fr-FR/tiddlers/system/$__core_ui_TagPickerTagTemplate.tid @@ -0,0 +1,25 @@ +created: 20220830194301860 +modified: 20220830194658750 +title: $:/core/ui/TagPickerTagTemplate + +\whitespace trim +<$button class=<> tag="a" tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}> +<$list filter="[minlength[1]]"> +<$action-listops $tiddler=<> $field=<> $subfilter="[]"/> + +<$set name="currentTiddlerCSSEscaped" value={{{ [escapecss[]] }}}> +<$action-sendmessage $message="tm-focus-selector" $param=<> preventScroll="true"/> + +<> +<$list filter="[minlength[1]]"> +<$action-setfield $tiddler=<> text="yes"/> + +<> +<$set name="backgroundColor" value={{{ [] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}> +<$wikify name="foregroundColor" text="""<$macrocall $name="contrastcolour" target=<> fallbackTarget=<> colourA=<> colourB=<>/>"""> +>> +{{||$:/core/ui/TiddlerIcon}}<$view field="fr-title" format="text"><$view field="title" format="text"/> + + + +