@biggive/components 202307191013.0.0 → 202307200905.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.
@@ -324,7 +324,7 @@ const BiggiveCampaignCardFilterGrid = class {
324
324
  for (const filterKey of Object.keys(filters)) {
325
325
  // https://stackoverflow.com/a/69757191/2803757
326
326
  const filterValue = filters[filterKey];
327
- if ((filterValue === null || filterValue === void 0 ? void 0 : filterValue.length) === 0) {
327
+ if (filterValue === null || filterValue.length === 0) {
328
328
  continue;
329
329
  }
330
330
  let button = document.createElement('span');
@@ -426,7 +426,7 @@ const BiggiveCampaignCardFilterGrid = class {
426
426
  this.filtersApplied = undefined;
427
427
  }
428
428
  getSearchAndFilterObject() {
429
- const event = {
429
+ return {
430
430
  searchText: this.searchText,
431
431
  sortBy: this.selectedSortByOption,
432
432
  filterCategory: this.selectedFilterCategory,
@@ -434,8 +434,6 @@ const BiggiveCampaignCardFilterGrid = class {
434
434
  filterFunding: this.selectedFilterFunding,
435
435
  filterLocation: this.selectedFilterLocation,
436
436
  };
437
- // @ts-ignore
438
- return event;
439
437
  }
440
438
  componentWillRender() {
441
439
  this.filtersApplied =
@@ -46,7 +46,7 @@ export class BiggiveCampaignCardFilterGrid {
46
46
  for (const filterKey of Object.keys(filters)) {
47
47
  // https://stackoverflow.com/a/69757191/2803757
48
48
  const filterValue = filters[filterKey];
49
- if ((filterValue === null || filterValue === void 0 ? void 0 : filterValue.length) === 0) {
49
+ if (filterValue === null || filterValue.length === 0) {
50
50
  continue;
51
51
  }
52
52
  let button = document.createElement('span');
@@ -148,7 +148,7 @@ export class BiggiveCampaignCardFilterGrid {
148
148
  this.filtersApplied = undefined;
149
149
  }
150
150
  getSearchAndFilterObject() {
151
- const event = {
151
+ return {
152
152
  searchText: this.searchText,
153
153
  sortBy: this.selectedSortByOption,
154
154
  filterCategory: this.selectedFilterCategory,
@@ -156,8 +156,6 @@ export class BiggiveCampaignCardFilterGrid {
156
156
  filterFunding: this.selectedFilterFunding,
157
157
  filterLocation: this.selectedFilterLocation,
158
158
  };
159
- // @ts-ignore
160
- return event;
161
159
  }
162
160
  componentWillRender() {
163
161
  this.filtersApplied =
@@ -56,7 +56,7 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
56
56
  for (const filterKey of Object.keys(filters)) {
57
57
  // https://stackoverflow.com/a/69757191/2803757
58
58
  const filterValue = filters[filterKey];
59
- if ((filterValue === null || filterValue === void 0 ? void 0 : filterValue.length) === 0) {
59
+ if (filterValue === null || filterValue.length === 0) {
60
60
  continue;
61
61
  }
62
62
  let button = document.createElement('span');
@@ -158,7 +158,7 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
158
158
  this.filtersApplied = undefined;
159
159
  }
160
160
  getSearchAndFilterObject() {
161
- const event = {
161
+ return {
162
162
  searchText: this.searchText,
163
163
  sortBy: this.selectedSortByOption,
164
164
  filterCategory: this.selectedFilterCategory,
@@ -166,8 +166,6 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
166
166
  filterFunding: this.selectedFilterFunding,
167
167
  filterLocation: this.selectedFilterLocation,
168
168
  };
169
- // @ts-ignore
170
- return event;
171
169
  }
172
170
  componentWillRender() {
173
171
  this.filtersApplied =
@@ -320,7 +320,7 @@ const BiggiveCampaignCardFilterGrid = class {
320
320
  for (const filterKey of Object.keys(filters)) {
321
321
  // https://stackoverflow.com/a/69757191/2803757
322
322
  const filterValue = filters[filterKey];
323
- if ((filterValue === null || filterValue === void 0 ? void 0 : filterValue.length) === 0) {
323
+ if (filterValue === null || filterValue.length === 0) {
324
324
  continue;
325
325
  }
326
326
  let button = document.createElement('span');
@@ -422,7 +422,7 @@ const BiggiveCampaignCardFilterGrid = class {
422
422
  this.filtersApplied = undefined;
423
423
  }
424
424
  getSearchAndFilterObject() {
425
- const event = {
425
+ return {
426
426
  searchText: this.searchText,
427
427
  sortBy: this.selectedSortByOption,
428
428
  filterCategory: this.selectedFilterCategory,
@@ -430,8 +430,6 @@ const BiggiveCampaignCardFilterGrid = class {
430
430
  filterFunding: this.selectedFilterFunding,
431
431
  filterLocation: this.selectedFilterLocation,
432
432
  };
433
- // @ts-ignore
434
- return event;
435
433
  }
436
434
  componentWillRender() {
437
435
  this.filtersApplied =
package/hydrate/index.js CHANGED
@@ -6823,7 +6823,7 @@ class BiggiveCampaignCardFilterGrid {
6823
6823
  for (const filterKey of Object.keys(filters)) {
6824
6824
  // https://stackoverflow.com/a/69757191/2803757
6825
6825
  const filterValue = filters[filterKey];
6826
- if ((filterValue === null || filterValue === void 0 ? void 0 : filterValue.length) === 0) {
6826
+ if (filterValue === null || filterValue.length === 0) {
6827
6827
  continue;
6828
6828
  }
6829
6829
  let button = document.createElement('span');
@@ -6925,7 +6925,7 @@ class BiggiveCampaignCardFilterGrid {
6925
6925
  this.filtersApplied = undefined;
6926
6926
  }
6927
6927
  getSearchAndFilterObject() {
6928
- const event = {
6928
+ return {
6929
6929
  searchText: this.searchText,
6930
6930
  sortBy: this.selectedSortByOption,
6931
6931
  filterCategory: this.selectedFilterCategory,
@@ -6933,8 +6933,6 @@ class BiggiveCampaignCardFilterGrid {
6933
6933
  filterFunding: this.selectedFilterFunding,
6934
6934
  filterLocation: this.selectedFilterLocation,
6935
6935
  };
6936
- // @ts-ignore
6937
- return event;
6938
6936
  }
6939
6937
  componentWillRender() {
6940
6938
  this.filtersApplied =
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": "202307191013.0.0",
4
+ "version": "202307200905.0.0",
5
5
  "description": "Big Give Components",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.js",