|
52 | 52 | 'rules-container-full': initialElements == null, |
53 | 53 | }"> |
54 | 54 | <RuleComponent |
| 55 | + v-model:display-rule-type="displayRuleType" |
55 | 56 | rule-type="sort" |
56 | | - :display-rule-type.sync="displayRuleType" |
57 | 57 | @saveRule="handleRuleSave"> |
58 | | - <ColumnSelector :target.sync="addSortingTarget" :col-headers="activeRuleColHeaders" /> |
| 58 | + <ColumnSelector v-model:target="addSortingTarget" :col-headers="activeRuleColHeaders" /> |
59 | 59 | <label v-b-tooltip.hover.noninteractive :title="titleNumericSort"> |
60 | 60 | <input v-model="addSortingNumeric" type="checkbox" /> |
61 | 61 | {{ l("Numeric sorting.") }} |
62 | 62 | </label> |
63 | 63 | </RuleComponent> |
64 | 64 | <RuleComponent |
| 65 | + v-model:display-rule-type="displayRuleType" |
65 | 66 | rule-type="add_column_basename" |
66 | | - :display-rule-type.sync="displayRuleType" |
67 | 67 | @saveRule="handleRuleSave"> |
68 | 68 | <ColumnSelector |
69 | | - :target.sync="addColumnBasenameTarget" |
| 69 | + v-model:target="addColumnBasenameTarget" |
70 | 70 | :col-headers="activeRuleColHeaders" /> |
71 | 71 | </RuleComponent> |
72 | 72 | <RuleComponent |
| 73 | + v-model:display-rule-type="displayRuleType" |
73 | 74 | rule-type="add_column_rownum" |
74 | | - :display-rule-type.sync="displayRuleType" |
75 | 75 | @saveRule="handleRuleSave"> |
76 | 76 | <label> |
77 | 77 | {{ l("Starting from") }} |
78 | 78 | <input v-model="addColumnRownumStart" type="number" min="0" /> |
79 | 79 | </label> |
80 | 80 | </RuleComponent> |
81 | 81 | <RuleComponent |
| 82 | + v-model:display-rule-type="displayRuleType" |
82 | 83 | rule-type="add_column_metadata" |
83 | | - :display-rule-type.sync="displayRuleType" |
84 | 84 | @saveRule="handleRuleSave"> |
85 | 85 | <label> |
86 | 86 | {{ l("For") }} |
|
91 | 91 | </label> |
92 | 92 | </RuleComponent> |
93 | 93 | <RuleComponent |
| 94 | + v-model:display-rule-type="displayRuleType" |
94 | 95 | rule-type="add_column_from_sample_sheet_index" |
95 | | - :display-rule-type.sync="displayRuleType" |
96 | 96 | @saveRule="handleRuleSave"> |
97 | 97 | <label> |
98 | 98 | {{ l("Value") }} |
99 | 99 | <input v-model="addColumnSampleSheetIndexValue" type="number" min="0" /> |
100 | 100 | </label> |
101 | 101 | </RuleComponent> |
102 | 102 | <RuleComponent |
| 103 | + v-model:display-rule-type="displayRuleType" |
103 | 104 | rule-type="add_column_group_tag_value" |
104 | | - :display-rule-type.sync="displayRuleType" |
105 | 105 | @saveRule="handleRuleSave"> |
106 | 106 | <label> |
107 | 107 | {{ l("Value") }} |
|
113 | 113 | </label> |
114 | 114 | </RuleComponent> |
115 | 115 | <RuleComponent |
| 116 | + v-model:display-rule-type="displayRuleType" |
116 | 117 | rule-type="add_column_regex" |
117 | | - :display-rule-type.sync="displayRuleType" |
118 | 118 | @saveRule="handleRuleSave"> |
119 | | - <ColumnSelector :target.sync="addColumnRegexTarget" :col-headers="activeRuleColHeaders" /> |
| 119 | + <ColumnSelector v-model:target="addColumnRegexTarget" :col-headers="activeRuleColHeaders" /> |
120 | 120 | <label> |
121 | 121 | <input v-model="addColumnRegexType" type="radio" value="global" />Create column matching |
122 | 122 | expression. |
|
132 | 132 | from expression replacement. |
133 | 133 | </label> |
134 | 134 | <br /> |
135 | | - <RegularExpressionInput :target.sync="addColumnRegexExpression" /> |
| 135 | + <RegularExpressionInput v-model:target="addColumnRegexExpression" /> |
136 | 136 | <label v-if="addColumnRegexType == 'groups'"> |
137 | 137 | {{ l("Number of Groups") }} |
138 | 138 | <input v-model="addColumnRegexGroupCount" type="number" min="1" /> |
|
147 | 147 | </label> |
148 | 148 | </RuleComponent> |
149 | 149 | <RuleComponent |
| 150 | + v-model:display-rule-type="displayRuleType" |
150 | 151 | rule-type="add_column_concatenate" |
151 | | - :display-rule-type.sync="displayRuleType" |
152 | 152 | @saveRule="handleRuleSave"> |
153 | 153 | <ColumnSelector |
154 | | - :target.sync="addColumnConcatenateTarget0" |
| 154 | + v-model:target="addColumnConcatenateTarget0" |
155 | 155 | :col-headers="activeRuleColHeaders" /> |
156 | 156 | <ColumnSelector |
157 | | - :target.sync="addColumnConcatenateTarget1" |
| 157 | + v-model:target="addColumnConcatenateTarget1" |
158 | 158 | :col-headers="activeRuleColHeaders" /> |
159 | 159 | </RuleComponent> |
160 | 160 | <RuleComponent |
| 161 | + v-model:display-rule-type="displayRuleType" |
161 | 162 | rule-type="add_column_substr" |
162 | | - :display-rule-type.sync="displayRuleType" |
163 | 163 | @saveRule="handleRuleSave"> |
164 | | - <ColumnSelector :target.sync="addColumnSubstrTarget" :col-headers="activeRuleColHeaders" /> |
| 164 | + <ColumnSelector |
| 165 | + v-model:target="addColumnSubstrTarget" |
| 166 | + :col-headers="activeRuleColHeaders" /> |
165 | 167 | <label> |
166 | 168 | <select v-model="addColumnSubstrType"> |
167 | 169 | <option value="keep_prefix">Keep only prefix specified.</option> |
|
176 | 178 | </label> |
177 | 179 | </RuleComponent> |
178 | 180 | <RuleComponent |
| 181 | + v-model:display-rule-type="displayRuleType" |
179 | 182 | rule-type="add_column_value" |
180 | | - :display-rule-type.sync="displayRuleType" |
181 | 183 | @saveRule="handleRuleSave"> |
182 | 184 | <label> |
183 | 185 | {{ l("Value") }} |
184 | 186 | <input v-model="addColumnValue" type="text" /> |
185 | 187 | </label> |
186 | 188 | </RuleComponent> |
187 | 189 | <RuleComponent |
| 190 | + v-model:display-rule-type="displayRuleType" |
188 | 191 | rule-type="remove_columns" |
189 | | - :display-rule-type.sync="displayRuleType" |
190 | 192 | @saveRule="handleRuleSave"> |
191 | 193 | <ColumnSelector |
192 | | - :target.sync="removeColumnTargets" |
| 194 | + v-model:target="removeColumnTargets" |
193 | 195 | :col-headers="activeRuleColHeaders" |
194 | 196 | :multiple="true" /> |
195 | 197 | </RuleComponent> |
196 | 198 | <RuleComponent |
| 199 | + v-model:display-rule-type="displayRuleType" |
197 | 200 | rule-type="split_columns" |
198 | | - :display-rule-type.sync="displayRuleType" |
199 | 201 | @saveRule="handleRuleSave"> |
200 | 202 | <ColumnSelector |
201 | | - :target.sync="splitColumnsTargets0" |
| 203 | + v-model:target="splitColumnsTargets0" |
202 | 204 | label="Odd Row Column(s)" |
203 | 205 | :col-headers="activeRuleColHeaders" |
204 | 206 | :multiple="true" /> |
205 | 207 | <ColumnSelector |
206 | | - :target.sync="splitColumnsTargets1" |
| 208 | + v-model:target="splitColumnsTargets1" |
207 | 209 | label="Even Row Column(s)" |
208 | 210 | :col-headers="activeRuleColHeaders" |
209 | 211 | :multiple="true" /> |
210 | 212 | </RuleComponent> |
211 | 213 | <RuleComponent |
| 214 | + v-model:display-rule-type="displayRuleType" |
212 | 215 | rule-type="swap_columns" |
213 | | - :display-rule-type.sync="displayRuleType" |
214 | 216 | @saveRule="handleRuleSave"> |
215 | 217 | <ColumnSelector |
216 | | - :target.sync="swapColumnsTarget0" |
| 218 | + v-model:target="swapColumnsTarget0" |
217 | 219 | label="Swap Column" |
218 | 220 | :col-headers="activeRuleColHeaders" /> |
219 | 221 | <ColumnSelector |
220 | | - :target.sync="swapColumnsTarget1" |
| 222 | + v-model:target="swapColumnsTarget1" |
221 | 223 | label="With Column" |
222 | 224 | :col-headers="activeRuleColHeaders" /> |
223 | 225 | </RuleComponent> |
224 | 226 | <RuleComponent |
| 227 | + v-model:display-rule-type="displayRuleType" |
225 | 228 | rule-type="add_filter_regex" |
226 | | - :display-rule-type.sync="displayRuleType" |
227 | 229 | @saveRule="handleRuleSave"> |
228 | | - <ColumnSelector :target.sync="addFilterRegexTarget" :col-headers="activeRuleColHeaders" /> |
229 | | - <RegularExpressionInput :target.sync="addFilterRegexExpression" /> |
| 230 | + <ColumnSelector v-model:target="addFilterRegexTarget" :col-headers="activeRuleColHeaders" /> |
| 231 | + <RegularExpressionInput v-model:target="addFilterRegexExpression" /> |
230 | 232 | <label v-b-tooltip.hover :title="titleInvertFilterRegex"> |
231 | 233 | <input v-model="addFilterRegexInvert" type="checkbox" /> |
232 | 234 | {{ l("Invert filter.") }} |
233 | 235 | </label> |
234 | 236 | </RuleComponent> |
235 | 237 | <RuleComponent |
| 238 | + v-model:display-rule-type="displayRuleType" |
236 | 239 | rule-type="add_filter_matches" |
237 | | - :display-rule-type.sync="displayRuleType" |
238 | 240 | @saveRule="handleRuleSave"> |
239 | | - <ColumnSelector :target.sync="addFilterMatchesTarget" :col-headers="activeRuleColHeaders" /> |
| 241 | + <ColumnSelector |
| 242 | + v-model:target="addFilterMatchesTarget" |
| 243 | + :col-headers="activeRuleColHeaders" /> |
240 | 244 | <input v-model="addFilterMatchesValue" type="text" /> |
241 | 245 | <label v-b-tooltip.hover :title="titleInvertFilterMatches"> |
242 | 246 | <input v-model="addFilterMatchesInvert" type="checkbox" /> |
243 | 247 | {{ l("Invert filter.") }} |
244 | 248 | </label> |
245 | 249 | </RuleComponent> |
246 | 250 | <RuleComponent |
| 251 | + v-model:display-rule-type="displayRuleType" |
247 | 252 | rule-type="add_filter_compare" |
248 | | - :display-rule-type.sync="displayRuleType" |
249 | 253 | @saveRule="handleRuleSave"> |
250 | | - <ColumnSelector :target.sync="addFilterCompareTarget" :col-headers="activeRuleColHeaders" /> |
| 254 | + <ColumnSelector |
| 255 | + v-model:target="addFilterCompareTarget" |
| 256 | + :col-headers="activeRuleColHeaders" /> |
251 | 257 | <label> |
252 | 258 | Filter out rows |
253 | 259 | <select v-model="addFilterCompareType"> |
|
260 | 266 | <input v-model="addFilterCompareValue" type="text" /> |
261 | 267 | </RuleComponent> |
262 | 268 | <RuleComponent |
| 269 | + v-model:display-rule-type="displayRuleType" |
263 | 270 | rule-type="add_filter_count" |
264 | | - :display-rule-type.sync="displayRuleType" |
265 | 271 | @saveRule="handleRuleSave"> |
266 | 272 | <label> |
267 | 273 | Filter which rows? |
|
280 | 286 | </label> |
281 | 287 | </RuleComponent> |
282 | 288 | <RuleComponent |
| 289 | + v-model:display-rule-type="displayRuleType" |
283 | 290 | rule-type="add_filter_empty" |
284 | | - :display-rule-type.sync="displayRuleType" |
285 | 291 | @saveRule="handleRuleSave"> |
286 | | - <ColumnSelector :target.sync="addFilterEmptyTarget" :col-headers="activeRuleColHeaders" /> |
| 292 | + <ColumnSelector v-model:target="addFilterEmptyTarget" :col-headers="activeRuleColHeaders" /> |
287 | 293 | <label v-b-tooltip.hover :title="titleInvertFilterEmpty"> |
288 | 294 | <input v-model="addFilterEmptyInvert" type="checkbox" /> |
289 | 295 | {{ l("Invert filter.") }} |
|
292 | 298 | <div v-if="displayRuleType == 'mapping'"> |
293 | 299 | <div v-for="(map, index) in mapping" :key="map.type" class="map" :index="index"> |
294 | 300 | <ColumnSelector |
| 301 | + v-model:target="map.columns" |
| 302 | + v-model:ordered-edit="map.editing" |
295 | 303 | :class="'rule-map-' + map.type.replace(/_/g, '-')" |
296 | 304 | :label="mappingTargets()[map.type].label" |
297 | 305 | :help="mappingTargets()[map.type].help" |
298 | | - :target.sync="map.columns" |
299 | | - :ordered-edit.sync="map.editing" |
300 | 306 | :col-headers="colHeaders" |
301 | 307 | :multiple="mappingTargets()[map.type].multiple" |
302 | 308 | :ordered="true" |
|
0 commit comments