@nyaruka/temba-components 0.94.0 → 0.94.1
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/dist/temba-components.js +58 -51
- package/dist/temba-components.js.map +1 -1
- package/out-tsc/src/contactsearch/ContactSearch.js +67 -56
- package/out-tsc/src/contactsearch/ContactSearch.js.map +1 -1
- package/package.json +1 -1
- package/src/contactsearch/ContactSearch.ts +72 -59
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
|
+
#### [v0.94.1](https://github.com/nyaruka/temba-components/compare/v0.94.0...v0.94.1)
|
|
8
|
+
|
|
9
|
+
- Don't show contact filter menu with no options [`1ced446`](https://github.com/nyaruka/temba-components/commit/1ced446f385c0cf4f5ccf864bfd4019c77ddd3cb)
|
|
10
|
+
|
|
7
11
|
#### [v0.94.0](https://github.com/nyaruka/temba-components/compare/v0.93.3...v0.94.0)
|
|
8
12
|
|
|
13
|
+
> 25 June 2024
|
|
14
|
+
|
|
9
15
|
- Improvements to contact search [`#437`](https://github.com/nyaruka/temba-components/pull/437)
|
|
10
16
|
- Show contact search exclusions as filters [`98cf90e`](https://github.com/nyaruka/temba-components/commit/98cf90e74a5ca4017998c52284251ddf07268b4a)
|
|
11
17
|
- Allow filter by various activity levels [`8928b7b`](https://github.com/nyaruka/temba-components/commit/8928b7bf3bd018fa53ec1a9c3e4f8b551d4289d6)
|
package/dist/temba-components.js
CHANGED
|
@@ -2827,62 +2827,69 @@ let ir=Is,or=!1;const nr=["es","fr","pt"],{setLocale:sr}=(t=>(function(t){if(or)
|
|
|
2827
2827
|
>
|
|
2828
2828
|
</temba-omnibox>
|
|
2829
2829
|
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
<temba-icon size="1" name="filter"></temba-icon>
|
|
2833
|
-
<div style="margin-left:0.5em">
|
|
2834
|
-
Only include contacts who...
|
|
2835
|
-
</div>
|
|
2836
|
-
</div>
|
|
2837
|
-
|
|
2838
|
-
${this.not_seen_since_days?j`
|
|
2830
|
+
${this.not_seen_since_days||this.in_a_flow||this.started_previously?j`
|
|
2831
|
+
<div class="filters">
|
|
2839
2832
|
<div
|
|
2840
|
-
|
|
2841
|
-
@click=${this.handleActivityLabelClicked}
|
|
2833
|
+
style="display:flex;font-size:1em;margin-bottom:0.5em"
|
|
2842
2834
|
>
|
|
2843
|
-
<temba-
|
|
2844
|
-
style="display:inline;"
|
|
2845
|
-
name="not_seen_since_days"
|
|
2846
|
-
@change=${this.handleExclusionChanged}
|
|
2847
|
-
>
|
|
2848
|
-
</temba-checkbox>
|
|
2849
|
-
|
|
2835
|
+
<temba-icon size="1" name="filter"></temba-icon>
|
|
2850
2836
|
<div style="margin-left:0.5em">
|
|
2851
|
-
|
|
2837
|
+
Only include contacts who...
|
|
2852
2838
|
</div>
|
|
2853
|
-
|
|
2854
|
-
<temba-select
|
|
2855
|
-
style="margin-left:0.5em"
|
|
2856
|
-
class="small-select"
|
|
2857
|
-
@change=${this.handleActivityLevelChanged}
|
|
2858
|
-
?disabled=${!this.exclusions.not_seen_since_days}
|
|
2859
|
-
>
|
|
2860
|
-
<temba-option
|
|
2861
|
-
name="90 days"
|
|
2862
|
-
value="90"
|
|
2863
|
-
></temba-option>
|
|
2864
|
-
<temba-option
|
|
2865
|
-
name="180 days"
|
|
2866
|
-
value="180"
|
|
2867
|
-
></temba-option>
|
|
2868
|
-
<temba-option name="Year" value="365"></temba-option>
|
|
2869
|
-
</temba-select>
|
|
2870
|
-
<div></div>
|
|
2871
2839
|
</div>
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2840
|
+
|
|
2841
|
+
${this.not_seen_since_days?j`
|
|
2842
|
+
<div
|
|
2843
|
+
class="activity-select"
|
|
2844
|
+
@click=${this.handleActivityLabelClicked}
|
|
2845
|
+
>
|
|
2846
|
+
<temba-checkbox
|
|
2847
|
+
style="display:inline;"
|
|
2848
|
+
name="not_seen_since_days"
|
|
2849
|
+
@change=${this.handleExclusionChanged}
|
|
2850
|
+
>
|
|
2851
|
+
</temba-checkbox>
|
|
2852
|
+
|
|
2853
|
+
<div style="margin-left:0.5em">
|
|
2854
|
+
${ir("Have sent a message in the last")}
|
|
2855
|
+
</div>
|
|
2856
|
+
|
|
2857
|
+
<temba-select
|
|
2858
|
+
style="margin-left:0.5em"
|
|
2859
|
+
class="small-select"
|
|
2860
|
+
@change=${this.handleActivityLevelChanged}
|
|
2861
|
+
?disabled=${!this.exclusions.not_seen_since_days}
|
|
2862
|
+
>
|
|
2863
|
+
<temba-option
|
|
2864
|
+
name="90 days"
|
|
2865
|
+
value="90"
|
|
2866
|
+
></temba-option>
|
|
2867
|
+
<temba-option
|
|
2868
|
+
name="180 days"
|
|
2869
|
+
value="180"
|
|
2870
|
+
></temba-option>
|
|
2871
|
+
<temba-option
|
|
2872
|
+
name="Year"
|
|
2873
|
+
value="365"
|
|
2874
|
+
></temba-option>
|
|
2875
|
+
</temba-select>
|
|
2876
|
+
<div></div>
|
|
2877
|
+
</div>
|
|
2878
|
+
`:null}
|
|
2879
|
+
${this.in_a_flow?j`<temba-checkbox
|
|
2880
|
+
name="in_a_flow"
|
|
2881
|
+
label="${ir("Are not currently in a flow")}"
|
|
2882
|
+
?checked=${this.exclusions.in_a_flow}
|
|
2883
|
+
@change=${this.handleExclusionChanged}
|
|
2884
|
+
></temba-checkbox>`:null}
|
|
2885
|
+
${this.started_previously?j`<temba-checkbox
|
|
2886
|
+
name="started_previously"
|
|
2887
|
+
label="${ir("Have not started this flow in the last 90 days")}"
|
|
2888
|
+
?checked=${this.exclusions.started_previously}
|
|
2889
|
+
@change=${this.handleExclusionChanged}
|
|
2890
|
+
></temba-checkbox>`:null}
|
|
2891
|
+
</div>
|
|
2892
|
+
`:null} `}
|
|
2886
2893
|
</div>
|
|
2887
2894
|
|
|
2888
2895
|
<div
|