@outliant/sunrise-utils 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/helpers/sortScript.js +4 -2
- package/lib/fieldConditions.js +18 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [1.1.4](https://github.com/outliant/sunrise-utils/compare/1.1.3...1.1.4)
|
|
8
|
+
|
|
9
|
+
- chore: support user field type project fields #860qfghzp [`7f4688b`](https://github.com/outliant/sunrise-utils/commit/7f4688b270fe8734153613650c87eef28483068a)
|
|
10
|
+
|
|
7
11
|
#### [1.1.3](https://github.com/outliant/sunrise-utils/compare/1.1.2...1.1.3)
|
|
8
12
|
|
|
13
|
+
> 28 April 2023
|
|
14
|
+
|
|
9
15
|
- Task/project filter #860qjddeg [`#8`](https://github.com/outliant/sunrise-utils/pull/8)
|
|
10
16
|
- wip: project filter [`0dec4e1`](https://github.com/outliant/sunrise-utils/commit/0dec4e1830bab4470c0b2d23bdfd8cbafe8fc6a7)
|
|
11
17
|
- chore: fix specs [`4d0474c`](https://github.com/outliant/sunrise-utils/commit/4d0474c74bb6a545b66a821cf63376b323393e58)
|
package/helpers/sortScript.js
CHANGED
|
@@ -335,10 +335,12 @@ module.exports.projectFieldText = (order, value) => {
|
|
|
335
335
|
if (fields[i].number != null) {
|
|
336
336
|
return '';
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
|
|
339
339
|
textInfo = fields[i].text == null ? '' : fields[i].text;
|
|
340
|
+
if (fields[i].containsKey('computedText')) {
|
|
341
|
+
textInfo = fields[i].computedText == null ? textInfo : fields[i].computedText;
|
|
342
|
+
}
|
|
340
343
|
}
|
|
341
|
-
|
|
342
344
|
}
|
|
343
345
|
|
|
344
346
|
return textInfo;
|
package/lib/fieldConditions.js
CHANGED
|
@@ -174,6 +174,24 @@ module.exports.conditions = {
|
|
|
174
174
|
label: 'In The Last N Days',
|
|
175
175
|
value: 'last_n_days'
|
|
176
176
|
}
|
|
177
|
+
],
|
|
178
|
+
user_select: [
|
|
179
|
+
{
|
|
180
|
+
label: 'Equals',
|
|
181
|
+
value: 'is_equal'
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
label: "Doesn't Equal",
|
|
185
|
+
value: 'not_equal'
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
label: 'Is Empty',
|
|
189
|
+
value: 'is_empty'
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: 'Is Not Empty',
|
|
193
|
+
value: 'is_not_empty'
|
|
194
|
+
}
|
|
177
195
|
]
|
|
178
196
|
};
|
|
179
197
|
|