@biggive/components 202308250924.0.0 → 202308311526.0.0
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/biggive/biggive.esm.js +1 -1
- package/dist/biggive/p-3aec61b5.entry.js +1 -0
- package/dist/cjs/biggive-accordion_43.cjs.entry.js +22 -1
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +22 -1
- package/dist/components/biggive-campaign-card-filter-grid.js +22 -1
- package/dist/esm/biggive-accordion_43.entry.js +22 -1
- package/hydrate/index.js +22 -1
- package/package.json +1 -1
- package/dist/biggive/p-e00a989c.entry.js +0 -1
|
@@ -325,7 +325,8 @@ const BiggiveCampaignCardFilterGrid = class {
|
|
|
325
325
|
funding: searchAndFilterObj.filterFunding,
|
|
326
326
|
locations: searchAndFilterObj.filterLocation,
|
|
327
327
|
};
|
|
328
|
-
|
|
328
|
+
const keys = Object.keys(filters);
|
|
329
|
+
for (const filterKey of keys) {
|
|
329
330
|
// https://stackoverflow.com/a/69757191/2803757
|
|
330
331
|
const filterValue = filters[filterKey];
|
|
331
332
|
if (filterValue === null || filterValue.length === 0) {
|
|
@@ -340,7 +341,27 @@ const BiggiveCampaignCardFilterGrid = class {
|
|
|
340
341
|
}
|
|
341
342
|
button.addEventListener('click', () => {
|
|
342
343
|
var _a;
|
|
344
|
+
switch (filterKey) {
|
|
345
|
+
case 'beneficiaries':
|
|
346
|
+
this.selectedFilterBeneficiary = null;
|
|
347
|
+
break;
|
|
348
|
+
case 'categories':
|
|
349
|
+
this.selectedFilterCategory = null;
|
|
350
|
+
break;
|
|
351
|
+
case 'funding':
|
|
352
|
+
this.selectedFilterFunding = null;
|
|
353
|
+
break;
|
|
354
|
+
case 'locations':
|
|
355
|
+
this.selectedFilterLocation = null;
|
|
356
|
+
break;
|
|
357
|
+
default:
|
|
358
|
+
// This asks the compiler to check that we are in dead code, i.e. we covered all the possible filter keys
|
|
359
|
+
// above. If we missed one we would get a compile error trying to assign a string to a never.
|
|
360
|
+
const exhaustiveSwitch = filterKey;
|
|
361
|
+
console.error(exhaustiveSwitch);
|
|
362
|
+
}
|
|
343
363
|
button.remove();
|
|
364
|
+
this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
|
|
344
365
|
if (button.dataset.id === undefined) {
|
|
345
366
|
return;
|
|
346
367
|
}
|
|
@@ -43,7 +43,8 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
43
43
|
funding: searchAndFilterObj.filterFunding,
|
|
44
44
|
locations: searchAndFilterObj.filterLocation,
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
const keys = Object.keys(filters);
|
|
47
|
+
for (const filterKey of keys) {
|
|
47
48
|
// https://stackoverflow.com/a/69757191/2803757
|
|
48
49
|
const filterValue = filters[filterKey];
|
|
49
50
|
if (filterValue === null || filterValue.length === 0) {
|
|
@@ -58,7 +59,27 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
58
59
|
}
|
|
59
60
|
button.addEventListener('click', () => {
|
|
60
61
|
var _a;
|
|
62
|
+
switch (filterKey) {
|
|
63
|
+
case 'beneficiaries':
|
|
64
|
+
this.selectedFilterBeneficiary = null;
|
|
65
|
+
break;
|
|
66
|
+
case 'categories':
|
|
67
|
+
this.selectedFilterCategory = null;
|
|
68
|
+
break;
|
|
69
|
+
case 'funding':
|
|
70
|
+
this.selectedFilterFunding = null;
|
|
71
|
+
break;
|
|
72
|
+
case 'locations':
|
|
73
|
+
this.selectedFilterLocation = null;
|
|
74
|
+
break;
|
|
75
|
+
default:
|
|
76
|
+
// This asks the compiler to check that we are in dead code, i.e. we covered all the possible filter keys
|
|
77
|
+
// above. If we missed one we would get a compile error trying to assign a string to a never.
|
|
78
|
+
const exhaustiveSwitch = filterKey;
|
|
79
|
+
console.error(exhaustiveSwitch);
|
|
80
|
+
}
|
|
61
81
|
button.remove();
|
|
82
|
+
this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
|
|
62
83
|
if (button.dataset.id === undefined) {
|
|
63
84
|
return;
|
|
64
85
|
}
|
|
@@ -53,7 +53,8 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
|
|
|
53
53
|
funding: searchAndFilterObj.filterFunding,
|
|
54
54
|
locations: searchAndFilterObj.filterLocation,
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
const keys = Object.keys(filters);
|
|
57
|
+
for (const filterKey of keys) {
|
|
57
58
|
// https://stackoverflow.com/a/69757191/2803757
|
|
58
59
|
const filterValue = filters[filterKey];
|
|
59
60
|
if (filterValue === null || filterValue.length === 0) {
|
|
@@ -68,7 +69,27 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
|
|
|
68
69
|
}
|
|
69
70
|
button.addEventListener('click', () => {
|
|
70
71
|
var _a;
|
|
72
|
+
switch (filterKey) {
|
|
73
|
+
case 'beneficiaries':
|
|
74
|
+
this.selectedFilterBeneficiary = null;
|
|
75
|
+
break;
|
|
76
|
+
case 'categories':
|
|
77
|
+
this.selectedFilterCategory = null;
|
|
78
|
+
break;
|
|
79
|
+
case 'funding':
|
|
80
|
+
this.selectedFilterFunding = null;
|
|
81
|
+
break;
|
|
82
|
+
case 'locations':
|
|
83
|
+
this.selectedFilterLocation = null;
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
// This asks the compiler to check that we are in dead code, i.e. we covered all the possible filter keys
|
|
87
|
+
// above. If we missed one we would get a compile error trying to assign a string to a never.
|
|
88
|
+
const exhaustiveSwitch = filterKey;
|
|
89
|
+
console.error(exhaustiveSwitch);
|
|
90
|
+
}
|
|
71
91
|
button.remove();
|
|
92
|
+
this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
|
|
72
93
|
if (button.dataset.id === undefined) {
|
|
73
94
|
return;
|
|
74
95
|
}
|
|
@@ -321,7 +321,8 @@ const BiggiveCampaignCardFilterGrid = class {
|
|
|
321
321
|
funding: searchAndFilterObj.filterFunding,
|
|
322
322
|
locations: searchAndFilterObj.filterLocation,
|
|
323
323
|
};
|
|
324
|
-
|
|
324
|
+
const keys = Object.keys(filters);
|
|
325
|
+
for (const filterKey of keys) {
|
|
325
326
|
// https://stackoverflow.com/a/69757191/2803757
|
|
326
327
|
const filterValue = filters[filterKey];
|
|
327
328
|
if (filterValue === null || filterValue.length === 0) {
|
|
@@ -336,7 +337,27 @@ const BiggiveCampaignCardFilterGrid = class {
|
|
|
336
337
|
}
|
|
337
338
|
button.addEventListener('click', () => {
|
|
338
339
|
var _a;
|
|
340
|
+
switch (filterKey) {
|
|
341
|
+
case 'beneficiaries':
|
|
342
|
+
this.selectedFilterBeneficiary = null;
|
|
343
|
+
break;
|
|
344
|
+
case 'categories':
|
|
345
|
+
this.selectedFilterCategory = null;
|
|
346
|
+
break;
|
|
347
|
+
case 'funding':
|
|
348
|
+
this.selectedFilterFunding = null;
|
|
349
|
+
break;
|
|
350
|
+
case 'locations':
|
|
351
|
+
this.selectedFilterLocation = null;
|
|
352
|
+
break;
|
|
353
|
+
default:
|
|
354
|
+
// This asks the compiler to check that we are in dead code, i.e. we covered all the possible filter keys
|
|
355
|
+
// above. If we missed one we would get a compile error trying to assign a string to a never.
|
|
356
|
+
const exhaustiveSwitch = filterKey;
|
|
357
|
+
console.error(exhaustiveSwitch);
|
|
358
|
+
}
|
|
339
359
|
button.remove();
|
|
360
|
+
this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
|
|
340
361
|
if (button.dataset.id === undefined) {
|
|
341
362
|
return;
|
|
342
363
|
}
|
package/hydrate/index.js
CHANGED
|
@@ -6822,7 +6822,8 @@ class BiggiveCampaignCardFilterGrid {
|
|
|
6822
6822
|
funding: searchAndFilterObj.filterFunding,
|
|
6823
6823
|
locations: searchAndFilterObj.filterLocation,
|
|
6824
6824
|
};
|
|
6825
|
-
|
|
6825
|
+
const keys = Object.keys(filters);
|
|
6826
|
+
for (const filterKey of keys) {
|
|
6826
6827
|
// https://stackoverflow.com/a/69757191/2803757
|
|
6827
6828
|
const filterValue = filters[filterKey];
|
|
6828
6829
|
if (filterValue === null || filterValue.length === 0) {
|
|
@@ -6837,7 +6838,27 @@ class BiggiveCampaignCardFilterGrid {
|
|
|
6837
6838
|
}
|
|
6838
6839
|
button.addEventListener('click', () => {
|
|
6839
6840
|
var _a;
|
|
6841
|
+
switch (filterKey) {
|
|
6842
|
+
case 'beneficiaries':
|
|
6843
|
+
this.selectedFilterBeneficiary = null;
|
|
6844
|
+
break;
|
|
6845
|
+
case 'categories':
|
|
6846
|
+
this.selectedFilterCategory = null;
|
|
6847
|
+
break;
|
|
6848
|
+
case 'funding':
|
|
6849
|
+
this.selectedFilterFunding = null;
|
|
6850
|
+
break;
|
|
6851
|
+
case 'locations':
|
|
6852
|
+
this.selectedFilterLocation = null;
|
|
6853
|
+
break;
|
|
6854
|
+
default:
|
|
6855
|
+
// This asks the compiler to check that we are in dead code, i.e. we covered all the possible filter keys
|
|
6856
|
+
// above. If we missed one we would get a compile error trying to assign a string to a never.
|
|
6857
|
+
const exhaustiveSwitch = filterKey;
|
|
6858
|
+
console.error(exhaustiveSwitch);
|
|
6859
|
+
}
|
|
6840
6860
|
button.remove();
|
|
6861
|
+
this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
|
|
6841
6862
|
if (button.dataset.id === undefined) {
|
|
6842
6863
|
return;
|
|
6843
6864
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biggive/components",
|
|
3
3
|
"_comment": "Version number below is automatically replaced during CircleCI build.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "202308311526.0.0",
|
|
5
5
|
"description": "Big Give Components",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.js",
|