A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Enhancement: improve layout for custom fields dropdown (#6362)
shamoon2de9d1b7aea3
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlfindex 3478d4d40..bdc803132 100644--- a/src-ui/messages.xlf+++ b/src-ui/messages.xlf@@ -993,11 +993,11 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">82</context>+ <context context-type="linenumber">96</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>- <context context-type="linenumber">90</context>+ <context context-type="linenumber">96</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/mail/mail.component.html</context>@@ -1287,7 +1287,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">88</context>+ <context context-type="linenumber">102</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/custom-fields/custom-fields.component.html</context>@@ -1362,7 +1362,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">142</context>+ <context context-type="linenumber">156</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/custom-fields/custom-fields.component.html</context>@@ -1798,12 +1798,12 @@<context context-type="linenumber">37</context></context-group><context-group purpose="location">- <context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>- <context context-type="linenumber">236</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">11</context></context-group><context-group purpose="location">- <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>- <context context-type="linenumber">76</context>+ <context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>+ <context context-type="linenumber">236</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/data/document.ts</context>@@ -2161,15 +2161,15 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">769</context>+ <context context-type="linenumber">773</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">591</context>+ <context context-type="linenumber">711</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">630</context>+ <context context-type="linenumber">750</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/custom-fields/custom-fields.component.ts</context>@@ -2204,27 +2204,27 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">771</context>+ <context context-type="linenumber">775</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1064</context>+ <context context-type="linenumber">1068</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1102</context>+ <context context-type="linenumber">1106</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">632</context>+ <context context-type="linenumber">752</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">665</context>+ <context context-type="linenumber">785</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">684</context>+ <context context-type="linenumber">804</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/custom-fields/custom-fields.component.ts</context>@@ -2637,12 +2637,20 @@<context context-type="linenumber">2</context></context-group><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.html</context>- <context context-type="linenumber">34</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">38</context></context-group><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.html</context>- <context context-type="linenumber">55</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">59</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">104</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">125</context></context-group></trans-unit><trans-unit id="7515883357904500238" datatype="html">@@ -2671,19 +2679,23 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">367</context>+ <context context-type="linenumber">398</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>+ <context context-type="linenumber">438</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">407</context>+ <context context-type="linenumber">476</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">445</context>+ <context context-type="linenumber">514</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">483</context>+ <context context-type="linenumber">576</context></context-group></trans-unit><trans-unit id="994016933065248559" datatype="html">@@ -2773,39 +2785,25 @@<context context-type="linenumber">62</context></context-group></trans-unit>- <trans-unit id="3972154626835212608" datatype="html">- <source>Create New Field</source>+ <trans-unit id="9195188695728229921" datatype="html">+ <source>Search fields</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html</context>- <context context-type="linenumber">22</context>+ <context context-type="linenumber">10</context></context-group></trans-unit>- <trans-unit id="601575001006419615" datatype="html">- <source>Add to document</source>+ <trans-unit id="3672488183382190185" datatype="html">+ <source>Create new field</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html</context>- <context context-type="linenumber">25</context>- </context-group>- </trans-unit>- <trans-unit id="7827616268749044116" datatype="html">- <source>Choose field</source>- <context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts</context>- <context context-type="linenumber">52</context>- </context-group>- </trans-unit>- <trans-unit id="7284517513296281043" datatype="html">- <source>No unused fields found</source>- <context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts</context>- <context context-type="linenumber">56</context>+ <context context-type="linenumber">21</context></context-group></trans-unit><trans-unit id="6973528734330066202" datatype="html"><source>Saved field "<x id="PH" equiv-text="newField.name"/>".</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts</context>- <context context-type="linenumber">120</context>+ <context context-type="linenumber">124</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/custom-fields/custom-fields.component.ts</context>@@ -2816,7 +2814,7 @@<source>Error saving field.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts</context>- <context context-type="linenumber">128</context>+ <context context-type="linenumber">133</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/custom-fields/custom-fields.component.ts</context>@@ -2826,50 +2824,81 @@<trans-unit id="6052766076365105714" datatype="html"><source>now</source><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.html</context>- <context context-type="linenumber">21</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">25</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">91</context></context-group></trans-unit><trans-unit id="6371576811194810854" datatype="html"><source>After</source><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.html</context>- <context context-type="linenumber">30</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">34</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">100</context></context-group></trans-unit><trans-unit id="1218334388194408974" datatype="html"><source>Before</source><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.html</context>- <context context-type="linenumber">51</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">55</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">121</context>+ </context-group>+ </trans-unit>+ <trans-unit id="231679111972850796" datatype="html">+ <source>Added</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.html</context>+ <context context-type="linenumber">76</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>+ <context context-type="linenumber">245</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/data/document.ts</context>+ <context context-type="linenumber">42</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/data/document.ts</context>+ <context context-type="linenumber">93</context></context-group></trans-unit><trans-unit id="4873149362496451858" datatype="html"><source>Last 7 days</source><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.ts</context>- <context context-type="linenumber">42</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>+ <context context-type="linenumber">45</context></context-group></trans-unit><trans-unit id="4463380307954693363" datatype="html"><source>Last month</source><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.ts</context>- <context context-type="linenumber">47</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>+ <context context-type="linenumber">50</context></context-group></trans-unit><trans-unit id="8697368973702409683" datatype="html"><source>Last 3 months</source><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.ts</context>- <context context-type="linenumber">52</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>+ <context context-type="linenumber">55</context></context-group></trans-unit><trans-unit id="3566342898065860218" datatype="html"><source>Last year</source><context-group purpose="location">- <context context-type="sourcefile">src/app/components/common/date-dropdown/date-dropdown.component.ts</context>- <context context-type="linenumber">57</context>+ <context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>+ <context context-type="linenumber">60</context></context-group></trans-unit><trans-unit id="8743659855412792665" datatype="html">@@ -4905,7 +4934,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">114</context>+ <context context-type="linenumber">128</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-card-large/document-card-large.component.html</context>@@ -5038,7 +5067,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">312</context>+ <context context-type="linenumber">343</context></context-group><note priority="1" from="description">this string is used to separate processing, failed and added on the file upload widget</note></trans-unit>@@ -5113,7 +5142,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">92</context>+ <context context-type="linenumber">106</context></context-group></trans-unit><trans-unit id="1418444397960583910" datatype="html">@@ -5142,7 +5171,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">95</context>+ <context context-type="linenumber">109</context></context-group></trans-unit><trans-unit id="7819314041543176992" datatype="html">@@ -5153,7 +5182,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1120</context>+ <context context-type="linenumber">1124</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/guards/dirty-saved-view.guard.ts</context>@@ -5186,7 +5215,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">115</context>+ <context context-type="linenumber">121</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/data/document.ts</context>@@ -5478,29 +5507,29 @@<source>Document saved successfully.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">641</context>+ <context context-type="linenumber">642</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">652</context>+ <context context-type="linenumber">656</context></context-group></trans-unit><trans-unit id="448882439049417053" datatype="html"><source>Error saving document</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">656</context>+ <context context-type="linenumber">660</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">697</context>+ <context context-type="linenumber">701</context></context-group></trans-unit><trans-unit id="9021887951960049161" datatype="html"><source>Confirm delete</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">724</context>+ <context context-type="linenumber">728</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>@@ -5515,138 +5544,138 @@<source>Do you really want to delete document "<x id="PH" equiv-text="this.document.title"/>"?</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">725</context>+ <context context-type="linenumber">729</context></context-group></trans-unit><trans-unit id="6691075929777935948" datatype="html"><source>The files for this document will be deleted permanently. This operation cannot be undone.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">726</context>+ <context context-type="linenumber">730</context></context-group></trans-unit><trans-unit id="719892092227206532" datatype="html"><source>Delete document</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">728</context>+ <context context-type="linenumber">732</context></context-group></trans-unit><trans-unit id="7295637485862454066" datatype="html"><source>Error deleting document</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">747</context>+ <context context-type="linenumber">751</context></context-group></trans-unit><trans-unit id="7362691899087997122" datatype="html"><source>Redo OCR confirm</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">767</context>+ <context context-type="linenumber">771</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">628</context>+ <context context-type="linenumber">748</context></context-group></trans-unit><trans-unit id="9197453786953646058" datatype="html"><source>This operation will permanently redo OCR for this document.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">768</context>+ <context context-type="linenumber">772</context></context-group></trans-unit><trans-unit id="5729001209753056399" datatype="html"><source>Redo OCR operation will begin in the background. Close and re-open or reload this document after the operation has completed to see new content.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">779</context>+ <context context-type="linenumber">783</context></context-group></trans-unit><trans-unit id="4409560272830824468" datatype="html"><source>Error executing operation</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">790</context>+ <context context-type="linenumber">794</context></context-group></trans-unit><trans-unit id="4458954481601077369" datatype="html"><source>Page Fit</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">859</context>+ <context context-type="linenumber">863</context></context-group></trans-unit><trans-unit id="1217563727923422413" datatype="html"><source>Split confirm</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1062</context>+ <context context-type="linenumber">1066</context></context-group></trans-unit><trans-unit id="2805304563009985503" datatype="html"><source>This operation will split the selected document(s) into new documents.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1063</context>+ <context context-type="linenumber">1067</context></context-group></trans-unit><trans-unit id="4158171846914923744" datatype="html"><source>Split operation will begin in the background.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1078</context>+ <context context-type="linenumber">1082</context></context-group></trans-unit><trans-unit id="3235014591864339926" datatype="html"><source>Error executing split operation</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1087</context>+ <context context-type="linenumber">1091</context></context-group></trans-unit><trans-unit id="6555329262222566158" datatype="html"><source>Rotate confirm</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1099</context>+ <context context-type="linenumber">1103</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">661</context>+ <context context-type="linenumber">781</context></context-group></trans-unit><trans-unit id="857641176955257111" datatype="html"><source>This operation will permanently rotate the original version of the current document.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1100</context>+ <context context-type="linenumber">1104</context></context-group></trans-unit><trans-unit id="4233432423256408453" datatype="html"><source>This will alter the original copy.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1101</context>+ <context context-type="linenumber">1105</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">663</context>+ <context context-type="linenumber">783</context></context-group></trans-unit><trans-unit id="4069543875319587651" datatype="html"><source>Rotation will begin in the background. Close and re-open the document after the operation has completed to see the changes.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1117</context>+ <context context-type="linenumber">1121</context></context-group></trans-unit><trans-unit id="2962674215361798818" datatype="html"><source>Error executing rotate operation</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.ts</context>- <context context-type="linenumber">1129</context>+ <context context-type="linenumber">1133</context></context-group></trans-unit><trans-unit id="4958946940233632319" datatype="html">@@ -5714,64 +5743,90 @@<context context-type="linenumber">65</context></context-group></trans-unit>+ <trans-unit id="9149498548977462220" datatype="html">+ <source>Custom fields</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>+ <context context-type="linenumber">78</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>+ <context context-type="linenumber">75</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>+ <context context-type="linenumber">129</context>+ </context-group>+ </trans-unit>+ <trans-unit id="6475890479659129881" datatype="html">+ <source>Filter custom fields</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>+ <context context-type="linenumber">79</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>+ <context context-type="linenumber">76</context>+ </context-group>+ </trans-unit><trans-unit id="3206542606001340679" datatype="html"><source>Merge</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">98</context>+ <context context-type="linenumber">112</context></context-group></trans-unit><trans-unit id="1015374532025907183" datatype="html"><source>Include:</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">120</context>+ <context context-type="linenumber">134</context></context-group></trans-unit><trans-unit id="1537670659786159738" datatype="html"><source>Archived files</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">124</context>+ <context context-type="linenumber">138</context></context-group></trans-unit><trans-unit id="2520291319362448498" datatype="html"><source>Original files</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">128</context>+ <context context-type="linenumber">142</context></context-group></trans-unit><trans-unit id="8009862506882713059" datatype="html"><source>Use formatted filename</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.html</context>- <context context-type="linenumber">133</context>+ <context context-type="linenumber">147</context></context-group></trans-unit><trans-unit id="1215215387232313677" datatype="html"><source>Error executing bulk operation</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">229</context>+ <context context-type="linenumber">247</context></context-group></trans-unit><trans-unit id="7894972847287473517" datatype="html"><source>"<x id="PH" equiv-text="items[0].name"/>"</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">304</context>+ <context context-type="linenumber">335</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">310</context>+ <context context-type="linenumber">341</context></context-group></trans-unit><trans-unit id="8639884465898458690" datatype="html"><source>"<x id="PH" equiv-text="items[0].name"/>" and "<x id="PH_1" equiv-text="items[1].name"/>"</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">306</context>+ <context context-type="linenumber">337</context></context-group><note priority="1" from="description">This is for messages like 'modify "tag1" and "tag2"'</note></trans-unit>@@ -5779,7 +5834,7 @@<source><x id="PH" equiv-text="list"/> and "<x id="PH_1" equiv-text="items[items.length - 1].name"/>"</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">314,316</context>+ <context context-type="linenumber">345,347</context></context-group><note priority="1" from="description">this is for messages like 'modify "tag1", "tag2" and "tag3"'</note></trans-unit>@@ -5787,14 +5842,14 @@<source>Confirm tags assignment</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">331</context>+ <context context-type="linenumber">362</context></context-group></trans-unit><trans-unit id="6619516195038467207" datatype="html"><source>This operation will add the tag "<x id="PH" equiv-text="tag.name"/>" to <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">337</context>+ <context context-type="linenumber">368</context></context-group></trans-unit><trans-unit id="1894412783609570695" datatype="html">@@ -5803,14 +5858,14 @@)"/> to <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">342,344</context>+ <context context-type="linenumber">373,375</context></context-group></trans-unit><trans-unit id="7181166515756808573" datatype="html"><source>This operation will remove the tag "<x id="PH" equiv-text="tag.name"/>" from <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">350</context>+ <context context-type="linenumber">381</context></context-group></trans-unit><trans-unit id="3819792277998068944" datatype="html">@@ -5819,7 +5874,7 @@)"/> from <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">355,357</context>+ <context context-type="linenumber">386,388</context></context-group></trans-unit><trans-unit id="2739066218579571288" datatype="html">@@ -5830,126 +5885,176 @@)"/> on <x id="PH_2" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">359,363</context>+ <context context-type="linenumber">390,394</context></context-group></trans-unit><trans-unit id="2996713129519325161" datatype="html"><source>Confirm correspondent assignment</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">400</context>+ <context context-type="linenumber">431</context></context-group></trans-unit><trans-unit id="6900893559485781849" datatype="html"><source>This operation will assign the correspondent "<x id="PH" equiv-text="correspondent.name"/>" to <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">402</context>+ <context context-type="linenumber">433</context></context-group></trans-unit><trans-unit id="1257522660364398440" datatype="html"><source>This operation will remove the correspondent from <x id="PH" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">404</context>+ <context context-type="linenumber">435</context></context-group></trans-unit><trans-unit id="5393409374423140648" datatype="html"><source>Confirm document type assignment</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">438</context>+ <context context-type="linenumber">469</context></context-group></trans-unit><trans-unit id="332180123895325027" datatype="html"><source>This operation will assign the document type "<x id="PH" equiv-text="documentType.name"/>" to <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">440</context>+ <context context-type="linenumber">471</context></context-group></trans-unit><trans-unit id="2236642492594872779" datatype="html"><source>This operation will remove the document type from <x id="PH" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">442</context>+ <context context-type="linenumber">473</context></context-group></trans-unit><trans-unit id="6386555513013840736" datatype="html"><source>Confirm storage path assignment</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">476</context>+ <context context-type="linenumber">507</context></context-group></trans-unit><trans-unit id="8750527458618415924" datatype="html"><source>This operation will assign the storage path "<x id="PH" equiv-text="storagePath.name"/>" to <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">478</context>+ <context context-type="linenumber">509</context></context-group></trans-unit><trans-unit id="60728365335056946" datatype="html"><source>This operation will remove the storage path from <x id="PH" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">480</context>+ <context context-type="linenumber">511</context>+ </context-group>+ </trans-unit>+ <trans-unit id="4187352575310415704" datatype="html">+ <source>Confirm custom field assignment</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>+ <context context-type="linenumber">540</context>+ </context-group>+ </trans-unit>+ <trans-unit id="7966494636326273856" datatype="html">+ <source>This operation will assign the custom field "<x id="PH" equiv-text="customField.name"/>" to <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>+ <context context-type="linenumber">546</context>+ </context-group>+ </trans-unit>+ <trans-unit id="5789455969634598553" datatype="html">+ <source>This operation will assign the custom fields <x id="PH" equiv-text="this._localizeList(+ changedCustomFields.itemsToAdd+ )"/> to <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>+ <context context-type="linenumber">551,553</context>+ </context-group>+ </trans-unit>+ <trans-unit id="5648572354333199245" datatype="html">+ <source>This operation will remove the custom field "<x id="PH" equiv-text="customField.name"/>" from <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>+ <context context-type="linenumber">559</context>+ </context-group>+ </trans-unit>+ <trans-unit id="6666899594015948817" datatype="html">+ <source>This operation will remove the custom fields <x id="PH" equiv-text="this._localizeList(+ changedCustomFields.itemsToRemove+ )"/> from <x id="PH_1" equiv-text="this.list.selected.size"/> selected document(s).</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>+ <context context-type="linenumber">564,566</context>+ </context-group>+ </trans-unit>+ <trans-unit id="8050047262594964176" datatype="html">+ <source>This operation will assign the custom fields <x id="PH" equiv-text="this._localizeList(+ changedCustomFields.itemsToAdd+ )"/> and remove the custom fields <x id="PH_1" equiv-text="this._localizeList(+ changedCustomFields.itemsToRemove+ )"/> on <x id="PH_2" equiv-text="this.list.selected.size"/> selected document(s).</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>+ <context context-type="linenumber">568,572</context></context-group></trans-unit><trans-unit id="749430623564850405" datatype="html"><source>Delete confirm</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">589</context>+ <context context-type="linenumber">709</context></context-group></trans-unit><trans-unit id="4303174930844518780" datatype="html"><source>This operation will permanently delete <x id="PH" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">590</context>+ <context context-type="linenumber">710</context></context-group></trans-unit><trans-unit id="6734339521247847366" datatype="html"><source>Delete document(s)</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">593</context>+ <context context-type="linenumber">713</context></context-group></trans-unit><trans-unit id="8968869182645922415" datatype="html"><source>This operation will permanently redo OCR for <x id="PH" equiv-text="this.list.selected.size"/> selected document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">629</context>+ <context context-type="linenumber">749</context></context-group></trans-unit><trans-unit id="6390006284731990222" datatype="html"><source>This operation will permanently rotate the original version of <x id="PH" equiv-text="this.list.selected.size"/> document(s).</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">662</context>+ <context context-type="linenumber">782</context></context-group></trans-unit><trans-unit id="7910756456450124185" datatype="html"><source>Merge confirm</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">682</context>+ <context context-type="linenumber">802</context></context-group></trans-unit><trans-unit id="7643543647233874431" datatype="html"><source>This operation will merge <x id="PH" equiv-text="this.list.selected.size"/> selected documents into a new document.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">683</context>+ <context context-type="linenumber">803</context></context-group></trans-unit><trans-unit id="7869008840945899895" datatype="html"><source>Merged document will be queued for consumption.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/bulk-editor/bulk-editor.component.ts</context>- <context context-type="linenumber">696</context>+ <context context-type="linenumber">816</context></context-group></trans-unit><trans-unit id="8076495233090006322" datatype="html">@@ -6180,7 +6285,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>- <context context-type="linenumber">96</context>+ <context context-type="linenumber">102</context></context-group></trans-unit><trans-unit id="1559883523769732271" datatype="html">@@ -6205,7 +6310,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">120</context>+ <context context-type="linenumber">126</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/data/document.ts</context>@@ -6287,25 +6392,6 @@<context context-type="linenumber">241</context></context-group></trans-unit>- <trans-unit id="231679111972850796" datatype="html">- <source>Added</source>- <context-group purpose="location">- <context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>- <context context-type="linenumber">245</context>- </context-group>- <context-group purpose="location">- <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>- <context context-type="linenumber">82</context>- </context-group>- <context-group purpose="location">- <context context-type="sourcefile">src/app/data/document.ts</context>- <context context-type="linenumber">42</context>- </context-group>- <context-group purpose="location">- <context context-type="sourcefile">src/app/data/document.ts</context>- <context context-type="linenumber">93</context>- </context-group>- </trans-unit><trans-unit id="329406837759048287" datatype="html"><source> Shared </source><context-group purpose="location">@@ -6356,67 +6442,67 @@<context context-type="linenumber">285</context></context-group></trans-unit>- <trans-unit id="3100631071441658964" datatype="html">- <source>Title & content</source>+ <trans-unit id="739880801667335279" datatype="html">+ <source>Dates</source><context-group purpose="location">- <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">118</context>+ <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>+ <context context-type="linenumber">86</context></context-group></trans-unit>- <trans-unit id="9149498548977462220" datatype="html">- <source>Custom fields</source>+ <trans-unit id="3100631071441658964" datatype="html">+ <source>Title & content</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">123</context>+ <context context-type="linenumber">124</context></context-group></trans-unit><trans-unit id="1010505078885609376" datatype="html"><source>Advanced search</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">127</context>+ <context context-type="linenumber">133</context></context-group></trans-unit><trans-unit id="2649431021108393503" datatype="html"><source>More like</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">133</context>+ <context context-type="linenumber">139</context></context-group></trans-unit><trans-unit id="3697582909018473071" datatype="html"><source>equals</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">139</context>+ <context context-type="linenumber">145</context></context-group></trans-unit><trans-unit id="5325481293405718739" datatype="html"><source>is empty</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">143</context>+ <context context-type="linenumber">149</context></context-group></trans-unit><trans-unit id="6166785695326182482" datatype="html"><source>is not empty</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">147</context>+ <context context-type="linenumber">153</context></context-group></trans-unit><trans-unit id="4686622206659266699" datatype="html"><source>greater than</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">151</context>+ <context context-type="linenumber">157</context></context-group></trans-unit><trans-unit id="8014012170270529279" datatype="html"><source>less than</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">155</context>+ <context context-type="linenumber">161</context></context-group></trans-unit><trans-unit id="5195932016807797291" datatype="html">@@ -6425,14 +6511,14 @@)?.name"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">175,177</context>+ <context context-type="linenumber">181,183</context></context-group></trans-unit><trans-unit id="8170755470576301659" datatype="html"><source>Without correspondent</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">179</context>+ <context context-type="linenumber">185</context></context-group></trans-unit><trans-unit id="317796810569008208" datatype="html">@@ -6441,14 +6527,14 @@)?.name"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">185,187</context>+ <context context-type="linenumber">191,193</context></context-group></trans-unit><trans-unit id="4362173610367509215" datatype="html"><source>Without document type</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">189</context>+ <context context-type="linenumber">195</context></context-group></trans-unit><trans-unit id="232202047340644471" datatype="html">@@ -6457,14 +6543,14 @@)?.name"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">195,197</context>+ <context context-type="linenumber">201,203</context></context-group></trans-unit><trans-unit id="1562820715074533164" datatype="html"><source>Without storage path</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">199</context>+ <context context-type="linenumber">205</context></context-group></trans-unit><trans-unit id="8180755793012580465" datatype="html">@@ -6472,49 +6558,65 @@?.name"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">203,204</context>+ <context context-type="linenumber">209,210</context></context-group></trans-unit><trans-unit id="6494566478302448576" datatype="html"><source>Without any tag</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">208</context>+ <context context-type="linenumber">214</context>+ </context-group>+ </trans-unit>+ <trans-unit id="6370692707013694620" datatype="html">+ <source>Custom fields: <x id="PH" equiv-text="this.customFields.find(+ (f) => f.id == +rule.value+ )?.name"/></source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>+ <context context-type="linenumber">218,220</context>+ </context-group>+ </trans-unit>+ <trans-unit id="5297600960590041873" datatype="html">+ <source>Without any custom field</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>+ <context context-type="linenumber">224</context></context-group></trans-unit><trans-unit id="6523384805359286307" datatype="html"><source>Title: <x id="PH" equiv-text="rule.value"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">212</context>+ <context context-type="linenumber">228</context></context-group></trans-unit><trans-unit id="1872523635812236432" datatype="html"><source>ASN: <x id="PH" equiv-text="rule.value"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">215</context>+ <context context-type="linenumber">231</context></context-group></trans-unit><trans-unit id="102674688969746976" datatype="html"><source>Owner: <x id="PH" equiv-text="rule.value"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">218</context>+ <context context-type="linenumber">234</context></context-group></trans-unit><trans-unit id="3550877650686009106" datatype="html"><source>Owner not in: <x id="PH" equiv-text="rule.value"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">221</context>+ <context context-type="linenumber">237</context></context-group></trans-unit><trans-unit id="1082034558646673343" datatype="html"><source>Without an owner</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">224</context>+ <context context-type="linenumber">240</context></context-group></trans-unit><trans-unit id="7210076240260527720" datatype="html">diff --git a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.htmlindex 2489c995a..9111a4b29 100644--- a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html+++ b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html@@ -1,31 +1,27 @@-<div ngbDropdown #fieldDropdown="ngbDropdown" (openChange)="onOpenClose()">+<div ngbDropdown #fieldDropdown="ngbDropdown" (openChange)="onOpenClose($event)"><button class="btn btn-sm btn-outline-primary" id="customFieldsDropdown" [disabled]="disabled" ngbDropdownToggle><i-bs name="ui-radios"></i-bs><div class="d-none d-sm-inline"> <ng-container i18n>Custom Fields</ng-container></div></button><div ngbDropdownMenu aria-labelledby="customFieldsDropdown" class="shadow custom-fields-dropdown">- <ul class="list-group list-group-flush">- <li class="list-group-item">- <pngx-input-select- [items]="unusedFields"- bindLabel="name"- [(ngModel)]="field"- [placeholder]="placeholderText"- [notFoundText]="notFoundText"- [disableCreateNew]="!canCreateFields"- (createNew)="createField($event)"- [hideAddButton]="true"- bindValue="id">- </pngx-input-select>- <div class="btn-toolbar" role="toolbar">- <button class="btn btn-sm btn-outline-secondary me-auto" type="button" (click)="createField()" [disabled]="!canCreateFields">- <i-bs width="1em" height="1em" name="asterisk"></i-bs> <ng-container i18n>Create New Field</ng-container>- </button>- <button class="btn btn-sm btn-outline-primary" type="button" (click)="addField(); fieldDropdown.close()" [disabled]="field === undefined">- <i-bs width="1.2em" height="1.2em" name="plus-circle"></i-bs> <ng-container i18n>Add to document</ng-container>- </button>+ <div class="list-group list-group-flush" (keydown)="listKeyDown($event)">+ <div class="list-group-item">+ <div class="input-group input-group-sm">+ <input class="form-control" type="text" [(ngModel)]="filterText" placeholder="Search fields" i18n-placeholder (keyup.enter)="listFilterEnter()" #listFilterTextInput></div>- </li>- </ul>+ </div>+ @for (field of filteredFields; track field.id) {+ <button class="list-group-item list-group-item-action bg-light" (click)="addField(field)" #button>+ <small class="d-flex">{{field.name}} <small class="ms-auto text-muted">{{getDataTypeLabel(field.data_type)}}</small></small>+ </button>+ }+ @if (!filterText?.length || filteredFields.length === 0) {+ <button class="list-group-item list-group-item-action bg-light" (click)="createField(filterText)" [disabled]="!canCreateFields" #button>+ <small>+ <i-bs width=".9em" height=".9em" name="asterisk"></i-bs> <ng-container i18n>Create new field</ng-container>+ </small>+ </button>+ }+ </div></div></div>diff --git a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.scss b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.scssindex 3240063aa..302dbfe77 100644--- a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.scss+++ b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.scss@@ -1,5 +1,5 @@.custom-fields-dropdown {- min-width: 380px;+ min-width: 300px;// correct position on mobile@media (max-width: 575.98px) {@@ -8,13 +8,3 @@}}}--::ng-deep .custom-fields-dropdown .ng-select .ng-select-container .ng-value-container .ng-placeholder,-::ng-deep .custom-fields-dropdown .ng-select .ng-option,-::ng-deep .custom-fields-dropdown .ng-select .ng-select-container .ng-value-container .ng-value {- font-size: 0.875rem;-}--::ng-deep .custom-fields-dropdown .paperless-input-select .ng-select .ng-select-container .ng-value-container .ng-input {- top: 4px;-}diff --git a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.spec.ts b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.spec.tsindex 7c24578e6..121591ef1 100644--- a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.spec.ts+++ b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.spec.ts@@ -1,5 +1,9 @@-import { ComponentFixture, TestBed } from '@angular/core/testing'-+import {+ ComponentFixture,+ TestBed,+ fakeAsync,+ tick,+} from '@angular/core/testing'import { CustomFieldsDropdownComponent } from './custom-fields-dropdown.component'import { HttpClientTestingModule } from '@angular/common/http/testing'import { ToastService } from 'src/app/services/toast.service'@@ -71,28 +75,33 @@ describe('CustomFieldsDropdownComponent', () => {let addedFieldcomponent.added.subscribe((f) => (addedField = f))component.documentId = 11- component.field = fields[0].id- component.addField()+ component.addField({ field: fields[0].id } as any)expect(addedField).not.toBeUndefined()})- it('should clear field on open / close, updated unused fields', () => {- component.field = fields[1].id- component.onOpenClose()- expect(component.field).toBeUndefined()+ it('should support filtering fields', () => {+ const input = fixture.debugElement.query(By.css('input'))+ input.nativeElement.value = 'Field 1'+ input.triggerEventHandler('input', { target: input.nativeElement })+ fixture.detectChanges()+ expect(component.filteredFields.length).toEqual(1)+ expect(component.filteredFields[0].name).toEqual('Field 1')+ })- expect(component.unusedFields).toEqual(fields)- const updateSpy = jest.spyOn(- CustomFieldsDropdownComponent.prototype as any,- 'updateUnusedFields'+ it('should support update unused fields', () => {+ component.existingFields = [{ field: fields[0].id } as any]+ component['updateUnusedFields']()+ expect(component['unusedFields'].length).toEqual(1)+ expect(component['unusedFields'][0].name).toEqual('Field 2')+ })++ it('should support getting data type label', () => {+ expect(component.getDataTypeLabel(CustomFieldDataType.Integer)).toEqual(+ 'Integer')- component.existingFields = [{ field: fields[1].id } as any]- component.onOpenClose()- expect(updateSpy).toHaveBeenCalled()- expect(component.unusedFields).toEqual([fields[0]])})- it('should support creating field, show error if necessary', () => {+ it('should support creating field, show error if necessary, then add', fakeAsync(() => {let modal: NgbModalRefmodalService.activeInstances.subscribe((m) => (modal = m[m.length - 1]))const toastErrorSpy = jest.spyOn(toastService, 'showError')@@ -101,8 +110,9 @@ describe('CustomFieldsDropdownComponent', () => {CustomFieldsDropdownComponent.prototype as any,'getFields')+ const addFieldSpy = jest.spyOn(component, 'addField')- const createButton = fixture.debugElement.queryAll(By.css('button'))[1]+ const createButton = fixture.debugElement.queryAll(By.css('button'))[3]createButton.triggerEventHandler('click')expect(modal).not.toBeUndefined()@@ -115,9 +125,11 @@ describe('CustomFieldsDropdownComponent', () => {// succeededitDialog.succeeded.emit(fields[0])+ tick(100)expect(toastInfoSpy).toHaveBeenCalled()expect(getFieldsSpy).toHaveBeenCalled()- })+ expect(addFieldSpy).toHaveBeenCalled()+ }))it('should support creating field with name', () => {let modal: NgbModalRef@@ -128,4 +140,106 @@ describe('CustomFieldsDropdownComponent', () => {const editDialog = modal.componentInstance as CustomFieldEditDialogComponentexpect(editDialog.object.name).toEqual('Foo bar')})++ it('should support arrow keyboard navigation', fakeAsync(() => {+ fixture.nativeElement+ .querySelector('button')+ .dispatchEvent(new MouseEvent('click')) // open+ fixture.detectChanges()+ tick(100)+ const filterInputEl: HTMLInputElement =+ component.listFilterTextInput.nativeElement+ expect(document.activeElement).toEqual(filterInputEl)+ const itemButtons = Array.from(+ (fixture.nativeElement as HTMLDivElement).querySelectorAll(+ '.custom-fields-dropdown button'+ )+ ).filter((b) => b.textContent.includes('Field'))+ filterInputEl.dispatchEvent(+ new KeyboardEvent('keydown', { key: 'ArrowDown', bubbles: true })+ )+ expect(document.activeElement).toEqual(itemButtons[0])+ itemButtons[0].dispatchEvent(+ new KeyboardEvent('keydown', { key: 'ArrowDown', bubbles: true })+ )+ expect(document.activeElement).toEqual(itemButtons[1])+ itemButtons[1].dispatchEvent(+ new KeyboardEvent('keydown', { key: 'ArrowUp', bubbles: true })+ )+ expect(document.activeElement).toEqual(itemButtons[0])+ itemButtons[0].dispatchEvent(+ new KeyboardEvent('keydown', { key: 'ArrowUp', bubbles: true })+ )+ expect(document.activeElement).toEqual(filterInputEl)+ filterInputEl.value = 'foo'+ component.filterText = 'foo'++ // dont move focus if we're traversing the field+ filterInputEl.selectionStart = 1+ expect(document.activeElement).toEqual(filterInputEl)++ // now we're at end, so move focus+ filterInputEl.selectionStart = 3+ filterInputEl.dispatchEvent(+ new KeyboardEvent('keydown', { key: 'ArrowDown', bubbles: true })+ )+ expect(document.activeElement).toEqual(itemButtons[0])+ }))++ it('should support arrow keyboard navigation after tab keyboard navigation', fakeAsync(() => {+ fixture.nativeElement+ .querySelector('button')+ .dispatchEvent(new MouseEvent('click')) // open+ fixture.detectChanges()+ tick(100)+ const filterInputEl: HTMLInputElement =+ component.listFilterTextInput.nativeElement+ expect(document.activeElement).toEqual(filterInputEl)+ const itemButtons = Array.from(+ (fixture.nativeElement as HTMLDivElement).querySelectorAll(+ '.custom-fields-dropdown button'+ )+ ).filter((b) => b.textContent.includes('Field'))+ filterInputEl.dispatchEvent(+ new KeyboardEvent('keydown', { key: 'Tab', bubbles: true })+ )+ itemButtons[0]['focus']() // normally handled by browser+ itemButtons[0].dispatchEvent(+ new KeyboardEvent('keydown', { key: 'Tab', bubbles: true })+ )+ itemButtons[1]['focus']() // normally handled by browser+ itemButtons[1].dispatchEvent(+ new KeyboardEvent('keydown', {+ key: 'Tab',+ shiftKey: true,+ bubbles: true,+ })+ )+ itemButtons[0]['focus']() // normally handled by browser+ itemButtons[0].dispatchEvent(+ new KeyboardEvent('keydown', { key: 'ArrowDown', bubbles: true })+ )+ expect(document.activeElement).toEqual(itemButtons[1])+ }))++ it('should support enter keyboard navigation', fakeAsync(() => {+ jest.spyOn(component, 'canCreateFields', 'get').mockReturnValue(true)+ const addFieldSpy = jest.spyOn(component, 'addField')+ const createFieldSpy = jest.spyOn(component, 'createField')+ component.filterText = 'Field 1'+ component.listFilterEnter()+ expect(addFieldSpy).toHaveBeenCalled()++ component.filterText = 'Field 3'+ component.listFilterEnter()+ expect(createFieldSpy).toHaveBeenCalledWith('Field 3')++ addFieldSpy.mockClear()+ createFieldSpy.mockClear()++ component.filterText = undefined+ component.listFilterEnter()+ expect(createFieldSpy).not.toHaveBeenCalled()+ expect(addFieldSpy).not.toHaveBeenCalled()+ }))})diff --git a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.tsindex 79c0d1b58..652d7f3d8 100644--- a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts+++ b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts@@ -1,13 +1,17 @@import {Component,+ ElementRef,EventEmitter,Input,OnDestroy,Output,+ QueryList,+ ViewChild,+ ViewChildren,} from '@angular/core'import { NgbModal } from '@ng-bootstrap/ng-bootstrap'import { Subject, first, takeUntil } from 'rxjs'-import { CustomField } from 'src/app/data/custom-field'+import { CustomField, DATA_TYPE_LABELS } from 'src/app/data/custom-field'import { CustomFieldInstance } from 'src/app/data/custom-field-instance'import { CustomFieldsService } from 'src/app/services/rest/custom-fields.service'import { ToastService } from 'src/app/services/toast.service'@@ -39,23 +43,25 @@ export class CustomFieldsDropdownComponent implements OnDestroy {@Output()created: EventEmitter<CustomField> = new EventEmitter()+ @ViewChild('listFilterTextInput') listFilterTextInput: ElementRef+ @ViewChildren('button') buttons: QueryList<ElementRef>+private customFields: CustomField[] = []- public unusedFields: CustomField[]+ private unusedFields: CustomField[] = []+ private keyboardIndex: number- public name: string+ public get filteredFields(): CustomField[] {+ return this.unusedFields.filter(+ (f) =>+ !this.filterText ||+ f.name.toLowerCase().includes(this.filterText.toLowerCase())+ )+ }- public field: number+ public filterText: stringprivate unsubscribeNotifier: Subject<any> = new Subject()- get placeholderText(): string {- return $localize`Choose field`- }-- get notFoundText(): string {- return $localize`No unused fields found`- }-get canCreateFields(): boolean {return this.permissionsService.currentUserCan(PermissionAction.Add,@@ -87,28 +93,26 @@ export class CustomFieldsDropdownComponent implements OnDestroy {})}- public getCustomFieldFromInstance(- instance: CustomFieldInstance- ): CustomField {- return this.customFields.find((f) => f.id === instance.field)- }-private updateUnusedFields() {this.unusedFields = this.customFields.filter(- (f) =>- !this.existingFields?.find(- (e) => this.getCustomFieldFromInstance(e)?.id === f.id- )+ (f) => !this.existingFields?.find((e) => e.field === f.id))}- onOpenClose() {- this.field = undefined+ onOpenClose(open: boolean) {+ if (open) {+ setTimeout(() => {+ this.listFilterTextInput.nativeElement.focus()+ }, 100)+ } else {+ this.filterText = undefined+ }this.updateUnusedFields()}- addField() {- this.added.emit(this.customFields.find((f) => f.id === this.field))+ addField(field: CustomField) {+ this.added.emit(field)+ this.updateUnusedFields()}createField(newName: string = null) {@@ -121,6 +125,7 @@ export class CustomFieldsDropdownComponent implements OnDestroy {this.customFieldsService.clearCache()this.getFields()this.created.emit(newField)+ setTimeout(() => this.addField(newField), 100)})modal.componentInstance.failed.pipe(takeUntil(this.unsubscribeNotifier))@@ -128,4 +133,82 @@ export class CustomFieldsDropdownComponent implements OnDestroy {this.toastService.showError($localize`Error saving field.`, e)})}++ getDataTypeLabel(dataType: string) {+ return DATA_TYPE_LABELS.find((l) => l.id === dataType)?.name+ }++ public listFilterEnter() {+ if (this.filteredFields.length === 1) {+ this.addField(this.filteredFields[0])+ } else if (+ this.filterText &&+ this.filteredFields.length === 0 &&+ this.canCreateFields+ ) {+ this.createField(this.filterText)+ }+ }++ private focusNextButtonItem(setFocus: boolean = true) {+ this.keyboardIndex = Math.min(+ this.buttons.length - 1,+ this.keyboardIndex + 1+ )+ if (setFocus) this.setButtonItemFocus()+ }++ focusPreviousButtonItem(setFocus: boolean = true) {+ this.keyboardIndex = Math.max(0, this.keyboardIndex - 1)+ if (setFocus) this.setButtonItemFocus()+ }++ setButtonItemFocus() {+ this.buttons.get(this.keyboardIndex)?.nativeElement.focus()+ }++ public listKeyDown(event: KeyboardEvent) {+ switch (event.key) {+ case 'ArrowDown':+ if (event.target instanceof HTMLInputElement) {+ if (+ !this.filterText ||+ event.target.selectionStart === this.filterText.length+ ) {+ this.keyboardIndex = -1+ this.focusNextButtonItem()+ event.preventDefault()+ }+ } else if (event.target instanceof HTMLButtonElement) {+ this.focusNextButtonItem()+ event.preventDefault()+ }+ break+ case 'ArrowUp':+ if (event.target instanceof HTMLButtonElement) {+ if (this.keyboardIndex === 0) {+ this.listFilterTextInput.nativeElement.focus()+ } else {+ this.focusPreviousButtonItem()+ }+ event.preventDefault()+ }+ break+ case 'Tab':+ // just track the index in case user uses arrows+ if (event.target instanceof HTMLInputElement) {+ this.keyboardIndex = 0+ } else if (event.target instanceof HTMLButtonElement) {+ if (event.shiftKey) {+ if (this.keyboardIndex > 0) {+ this.focusPreviousButtonItem(false)+ }+ } else {+ this.focusNextButtonItem(false)+ }+ }+ default:+ break+ }+ }}diff --git a/src-ui/src/app/components/document-detail/document-detail.component.spec.ts b/src-ui/src/app/components/document-detail/document-detail.component.spec.tsindex b26ad9024..b439c770f 100644--- a/src-ui/src/app/components/document-detail/document-detail.component.spec.ts+++ b/src-ui/src/app/components/document-detail/document-detail.component.spec.ts@@ -945,9 +945,9 @@ describe('DocumentDetailComponent', () => {fixture.detectChanges()expect(component.document.custom_fields).toHaveLength(initialLength - 1)expect(component.customFieldFormFields).toHaveLength(initialLength - 1)- expect(fixture.debugElement.nativeElement.textContent).not.toContain(- 'Field 1'- )+ expect(+ fixture.debugElement.query(By.css('form')).nativeElement.textContent+ ).not.toContain('Field 1')const updateSpy = jest.spyOn(documentService, 'update')component.save(true)expect(updateSpy.mock.lastCall[0].custom_fields).toHaveLength(