toggle-components-library 1.33.0-beta.6 → 1.33.0-beta.8
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/dist/demo.html +10 -0
- package/dist/img/add_circle.7c6b29c6.svg +29 -0
- package/dist/img/airship-audiences-hover.7197407c.svg +9 -0
- package/dist/img/airship-audiences.e7477e19.svg +9 -0
- package/dist/img/airship-circle-user-icon-hover.7eecff69.svg +3 -0
- package/dist/img/airship-circle-user-icon.b39571b4.svg +3 -0
- package/dist/img/airship-clipboard-hover.80ae4cc8.svg +10 -0
- package/dist/img/airship-clipboard.4e2aec57.svg +10 -0
- package/dist/img/airship-cog-hover.9bfe1b84.svg +10 -0
- package/dist/img/airship-cog.6c89b74b.svg +10 -0
- package/dist/img/airship-down-arrow-active.bab27497.svg +3 -0
- package/dist/img/airship-down-arrow.5b2f3f44.svg +3 -0
- package/dist/img/airship-hat-hover.56740dd2.svg +10 -0
- package/dist/img/airship-hat.5cff7b4e.svg +10 -0
- package/dist/img/airship-megaphone-hover.2a7711d9.svg +10 -0
- package/dist/img/airship-megaphone.38428749.svg +10 -0
- package/dist/img/airship-pencil-hover.3970bc92.svg +11 -0
- package/dist/img/airship-pencil.350548ab.svg +11 -0
- package/dist/img/airship-pie-chart-hover.d3aac6ad.svg +11 -0
- package/dist/img/airship-pie-chart.617f307c.svg +11 -0
- package/dist/img/airship-plane-hover.abb5f358.svg +10 -0
- package/dist/img/airship-plane.978cf187.svg +10 -0
- package/dist/img/airship-sms-hover.4d1b0c06.svg +10 -0
- package/dist/img/airship-sms.17a3fcef.svg +10 -0
- package/dist/img/airship-user-icon.1c0e190a.svg +3 -0
- package/dist/img/airship-wrench-hover.9531b048.svg +10 -0
- package/dist/img/airship-wrench.a406f6f1.svg +10 -0
- package/dist/img/airship-x-hover.e1c3bb98.svg +3 -0
- package/dist/img/airship-x.dec93e61.svg +3 -0
- package/dist/img/arrow-icon.6b7bdc31.svg +3 -0
- package/dist/img/arrow-left-blue-hover.5b0a1e54.svg +32 -0
- package/dist/img/arrow-left-blue.1e5404dd.svg +32 -0
- package/dist/img/arrow-right-blue-hover.b800a882.svg +32 -0
- package/dist/img/arrow-right-blue.fbc83729.svg +32 -0
- package/dist/img/booster_close.34390853.svg +3 -0
- package/dist/img/calendar.16f176cd.svg +37 -0
- package/dist/img/card.e1735960.svg +9 -0
- package/dist/img/checkbox_blank.907b325c.svg +6 -0
- package/dist/img/checkbox_checked.3e2d399f.svg +9 -0
- package/dist/img/checkbox_hover.e99ab40c.svg +3 -0
- package/dist/img/checkbox_inactive.b94b6c81.svg +9 -0
- package/dist/img/circle_blank.ab1622db.svg +24 -0
- package/dist/img/clipboard.e483ded3.svg +12 -0
- package/dist/img/clock-solid.fdaf024d.svg +1 -0
- package/dist/img/contacts-greyblue.ef6f8a9a.svg +1 -0
- package/dist/img/contacts-white.95d07c7a.svg +1 -0
- package/dist/img/delete-grey.cf15dcd1.svg +29 -0
- package/dist/img/delete-trash.3a307964.svg +12 -0
- package/dist/img/delete.ee71bb54.svg +29 -0
- package/dist/img/drag_drop.0c778868.svg +14 -0
- package/dist/img/draggable.7493006c.svg +1 -0
- package/dist/img/edit_circle.4f3826d3.svg +34 -0
- package/dist/img/edit_circle_grey.0c96938c.svg +34 -0
- package/dist/img/email-icon.3c44b236.svg +3 -0
- package/dist/img/email.078e944d.svg +7 -0
- package/dist/img/file.f4fb9e5d.svg +9 -0
- package/dist/img/form_icon.cd53ec12.svg +10 -0
- package/dist/img/funnel.7fa095c3.svg +11 -0
- package/dist/img/graph.7f2e3985.svg +16 -0
- package/dist/img/grey_cross.2ac5fda1.svg +15 -0
- package/dist/img/info.4b233da4.svg +29 -0
- package/dist/img/magnifying-glass-icon.9a2b42a1.svg +3 -0
- package/dist/img/megaphone.73161a8a.svg +19 -0
- package/dist/img/mobile-icon.9e16ffcd.svg +6 -0
- package/dist/img/orders.51f8963f.svg +29 -0
- package/dist/img/search.db8f673f.svg +25 -0
- package/dist/img/tick-grey.b6d7b16c.svg +12 -0
- package/dist/img/tick.97f35963.svg +12 -0
- package/dist/img/tick_circle.417fd97d.svg +28 -0
- package/dist/img/tick_circle_grey.92b7e747.svg +32 -0
- package/dist/img/upload.9b0f1f1c.svg +30 -0
- package/dist/img/view_email.508021c9.svg +7 -0
- package/dist/img/view_heatmap.f9058fdb.svg +1 -0
- package/dist/toggle-components-library.common.js +48603 -0
- package/dist/toggle-components-library.common.js.map +1 -0
- package/dist/toggle-components-library.css +1 -0
- package/dist/toggle-components-library.umd.js +48613 -0
- package/dist/toggle-components-library.umd.js.map +1 -0
- package/dist/toggle-components-library.umd.min.js +322 -0
- package/dist/toggle-components-library.umd.min.js.map +1 -0
- package/package.json +1 -1
- package/src/components/tables/ToggleTable.vue +11 -6
- package/package-lock.json +0 -21226
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
type="text"
|
|
25
25
|
:ref="field.key+'-input'"
|
|
26
26
|
v-model="searchModels[field.key]"
|
|
27
|
-
@input="searchChange(
|
|
27
|
+
@input="searchChange()"
|
|
28
28
|
@bail="closeSearch(field)"
|
|
29
29
|
:searchIsOpen="searchIsOpen"
|
|
30
30
|
/>
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
:searchIsOpen="searchIsOpen"
|
|
36
36
|
:options="field.select_options"
|
|
37
37
|
v-model="searchModels[field.key]"
|
|
38
|
-
@input="val=>searchChange(
|
|
38
|
+
@input="val=>searchChange()"
|
|
39
39
|
/>
|
|
40
40
|
<ToggleDatePicker
|
|
41
41
|
v-if="field.type === 'date_range' && (searchModels[field.key].start || searchModels[field.key].end || editingInput === field.key)"
|
|
42
42
|
name="date_range" size="small"
|
|
43
43
|
:searchIsOpen="searchIsOpen"
|
|
44
|
-
@input="val=>searchChange(
|
|
44
|
+
@input="val=>searchChange()" type="date" :range="true" label="Input label" v-model="searchModels[field.key]"
|
|
45
45
|
/>
|
|
46
46
|
</div>
|
|
47
47
|
</th>
|
|
@@ -160,7 +160,9 @@ export default {
|
|
|
160
160
|
// show the other fields with initial values set.
|
|
161
161
|
else this.activateSearch(this.fields[i]);
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
}
|
|
164
|
+
if(this.anySearchActive){
|
|
165
|
+
this.searchChange(true);
|
|
164
166
|
}
|
|
165
167
|
}
|
|
166
168
|
|
|
@@ -235,11 +237,14 @@ export default {
|
|
|
235
237
|
this.searchChange();
|
|
236
238
|
},
|
|
237
239
|
|
|
238
|
-
searchChange()
|
|
240
|
+
searchChange(immediate = false)
|
|
241
|
+
{
|
|
242
|
+
const delay = immediate ? 0 : 500;
|
|
243
|
+
|
|
239
244
|
clearTimeout(this.searchDebounce);
|
|
240
245
|
this.searchDebounce = setTimeout(()=>{
|
|
241
246
|
this.$emit('search', this.fieldsWithSearch);
|
|
242
|
-
},
|
|
247
|
+
},delay);
|
|
243
248
|
|
|
244
249
|
},
|
|
245
250
|
|