@biggive/components 202307100729.0.0 → 202307102042.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.
@@ -306,7 +306,7 @@ const BiggiveCampaignCardFilterGrid = class {
306
306
  const searchAndFilterObj = this.getSearchAndFilterObject();
307
307
  this.doSearchAndFilterUpdate.emit(searchAndFilterObj);
308
308
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
309
- if (filterPopup instanceof HTMLBiggivePopupElement) {
309
+ if (filterPopup) {
310
310
  filterPopup.closeFromOutside();
311
311
  }
312
312
  const selectedFilters = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.selected-filters');
@@ -340,12 +340,12 @@ const BiggiveCampaignCardFilterGrid = class {
340
340
  if (button.dataset.id === undefined) {
341
341
  return;
342
342
  }
343
- const buttonEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
344
- if (!(buttonEl instanceof HTMLBiggiveFormFieldSelectElement)) {
343
+ const selectEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
344
+ if (!selectEl) {
345
345
  return;
346
346
  }
347
- buttonEl.selectedLabel = null;
348
- buttonEl.selectedValue = null;
347
+ selectEl.selectedLabel = null;
348
+ selectEl.selectedValue = null;
349
349
  });
350
350
  }
351
351
  this.filtersApplied =
@@ -368,7 +368,7 @@ const BiggiveCampaignCardFilterGrid = class {
368
368
  this.handleFilterButtonClick = () => {
369
369
  var _a;
370
370
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
371
- if (filterPopup instanceof HTMLBiggivePopupElement) {
371
+ if (filterPopup) {
372
372
  filterPopup.openFromOutside();
373
373
  }
374
374
  };
@@ -387,7 +387,7 @@ const BiggiveCampaignCardFilterGrid = class {
387
387
  ['sort-by', 'categories', 'beneficiaries', 'locations', 'funding'].forEach(id => {
388
388
  var _a;
389
389
  const theEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(id);
390
- if (!(theEl instanceof HTMLBiggiveFormFieldSelectElement)) {
390
+ if (!theEl) {
391
391
  return;
392
392
  }
393
393
  theEl.selectedValue = null;
@@ -28,7 +28,7 @@ export class BiggiveCampaignCardFilterGrid {
28
28
  const searchAndFilterObj = this.getSearchAndFilterObject();
29
29
  this.doSearchAndFilterUpdate.emit(searchAndFilterObj);
30
30
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
31
- if (filterPopup instanceof HTMLBiggivePopupElement) {
31
+ if (filterPopup) {
32
32
  filterPopup.closeFromOutside();
33
33
  }
34
34
  const selectedFilters = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.selected-filters');
@@ -62,12 +62,12 @@ export class BiggiveCampaignCardFilterGrid {
62
62
  if (button.dataset.id === undefined) {
63
63
  return;
64
64
  }
65
- const buttonEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
66
- if (!(buttonEl instanceof HTMLBiggiveFormFieldSelectElement)) {
65
+ const selectEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
66
+ if (!selectEl) {
67
67
  return;
68
68
  }
69
- buttonEl.selectedLabel = null;
70
- buttonEl.selectedValue = null;
69
+ selectEl.selectedLabel = null;
70
+ selectEl.selectedValue = null;
71
71
  });
72
72
  }
73
73
  this.filtersApplied =
@@ -90,7 +90,7 @@ export class BiggiveCampaignCardFilterGrid {
90
90
  this.handleFilterButtonClick = () => {
91
91
  var _a;
92
92
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
93
- if (filterPopup instanceof HTMLBiggivePopupElement) {
93
+ if (filterPopup) {
94
94
  filterPopup.openFromOutside();
95
95
  }
96
96
  };
@@ -109,7 +109,7 @@ export class BiggiveCampaignCardFilterGrid {
109
109
  ['sort-by', 'categories', 'beneficiaries', 'locations', 'funding'].forEach(id => {
110
110
  var _a;
111
111
  const theEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(id);
112
- if (!(theEl instanceof HTMLBiggiveFormFieldSelectElement)) {
112
+ if (!theEl) {
113
113
  return;
114
114
  }
115
115
  theEl.selectedValue = null;
@@ -38,7 +38,7 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
38
38
  const searchAndFilterObj = this.getSearchAndFilterObject();
39
39
  this.doSearchAndFilterUpdate.emit(searchAndFilterObj);
40
40
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
41
- if (filterPopup instanceof HTMLBiggivePopupElement) {
41
+ if (filterPopup) {
42
42
  filterPopup.closeFromOutside();
43
43
  }
44
44
  const selectedFilters = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.selected-filters');
@@ -72,12 +72,12 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
72
72
  if (button.dataset.id === undefined) {
73
73
  return;
74
74
  }
75
- const buttonEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
76
- if (!(buttonEl instanceof HTMLBiggiveFormFieldSelectElement)) {
75
+ const selectEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
76
+ if (!selectEl) {
77
77
  return;
78
78
  }
79
- buttonEl.selectedLabel = null;
80
- buttonEl.selectedValue = null;
79
+ selectEl.selectedLabel = null;
80
+ selectEl.selectedValue = null;
81
81
  });
82
82
  }
83
83
  this.filtersApplied =
@@ -100,7 +100,7 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
100
100
  this.handleFilterButtonClick = () => {
101
101
  var _a;
102
102
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
103
- if (filterPopup instanceof HTMLBiggivePopupElement) {
103
+ if (filterPopup) {
104
104
  filterPopup.openFromOutside();
105
105
  }
106
106
  };
@@ -119,7 +119,7 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
119
119
  ['sort-by', 'categories', 'beneficiaries', 'locations', 'funding'].forEach(id => {
120
120
  var _a;
121
121
  const theEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(id);
122
- if (!(theEl instanceof HTMLBiggiveFormFieldSelectElement)) {
122
+ if (!theEl) {
123
123
  return;
124
124
  }
125
125
  theEl.selectedValue = null;
@@ -302,7 +302,7 @@ const BiggiveCampaignCardFilterGrid = class {
302
302
  const searchAndFilterObj = this.getSearchAndFilterObject();
303
303
  this.doSearchAndFilterUpdate.emit(searchAndFilterObj);
304
304
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
305
- if (filterPopup instanceof HTMLBiggivePopupElement) {
305
+ if (filterPopup) {
306
306
  filterPopup.closeFromOutside();
307
307
  }
308
308
  const selectedFilters = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.selected-filters');
@@ -336,12 +336,12 @@ const BiggiveCampaignCardFilterGrid = class {
336
336
  if (button.dataset.id === undefined) {
337
337
  return;
338
338
  }
339
- const buttonEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
340
- if (!(buttonEl instanceof HTMLBiggiveFormFieldSelectElement)) {
339
+ const selectEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
340
+ if (!selectEl) {
341
341
  return;
342
342
  }
343
- buttonEl.selectedLabel = null;
344
- buttonEl.selectedValue = null;
343
+ selectEl.selectedLabel = null;
344
+ selectEl.selectedValue = null;
345
345
  });
346
346
  }
347
347
  this.filtersApplied =
@@ -364,7 +364,7 @@ const BiggiveCampaignCardFilterGrid = class {
364
364
  this.handleFilterButtonClick = () => {
365
365
  var _a;
366
366
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
367
- if (filterPopup instanceof HTMLBiggivePopupElement) {
367
+ if (filterPopup) {
368
368
  filterPopup.openFromOutside();
369
369
  }
370
370
  };
@@ -383,7 +383,7 @@ const BiggiveCampaignCardFilterGrid = class {
383
383
  ['sort-by', 'categories', 'beneficiaries', 'locations', 'funding'].forEach(id => {
384
384
  var _a;
385
385
  const theEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(id);
386
- if (!(theEl instanceof HTMLBiggiveFormFieldSelectElement)) {
386
+ if (!theEl) {
387
387
  return;
388
388
  }
389
389
  theEl.selectedValue = null;
package/hydrate/index.js CHANGED
@@ -6803,7 +6803,7 @@ class BiggiveCampaignCardFilterGrid {
6803
6803
  const searchAndFilterObj = this.getSearchAndFilterObject();
6804
6804
  this.doSearchAndFilterUpdate.emit(searchAndFilterObj);
6805
6805
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
6806
- if (filterPopup instanceof HTMLBiggivePopupElement) {
6806
+ if (filterPopup) {
6807
6807
  filterPopup.closeFromOutside();
6808
6808
  }
6809
6809
  const selectedFilters = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.selected-filters');
@@ -6837,12 +6837,12 @@ class BiggiveCampaignCardFilterGrid {
6837
6837
  if (button.dataset.id === undefined) {
6838
6838
  return;
6839
6839
  }
6840
- const buttonEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
6841
- if (!(buttonEl instanceof HTMLBiggiveFormFieldSelectElement)) {
6840
+ const selectEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(button.dataset.id);
6841
+ if (!selectEl) {
6842
6842
  return;
6843
6843
  }
6844
- buttonEl.selectedLabel = null;
6845
- buttonEl.selectedValue = null;
6844
+ selectEl.selectedLabel = null;
6845
+ selectEl.selectedValue = null;
6846
6846
  });
6847
6847
  }
6848
6848
  this.filtersApplied =
@@ -6865,7 +6865,7 @@ class BiggiveCampaignCardFilterGrid {
6865
6865
  this.handleFilterButtonClick = () => {
6866
6866
  var _a;
6867
6867
  const filterPopup = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('filter-popup');
6868
- if (filterPopup instanceof HTMLBiggivePopupElement) {
6868
+ if (filterPopup) {
6869
6869
  filterPopup.openFromOutside();
6870
6870
  }
6871
6871
  };
@@ -6884,7 +6884,7 @@ class BiggiveCampaignCardFilterGrid {
6884
6884
  ['sort-by', 'categories', 'beneficiaries', 'locations', 'funding'].forEach(id => {
6885
6885
  var _a;
6886
6886
  const theEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(id);
6887
- if (!(theEl instanceof HTMLBiggiveFormFieldSelectElement)) {
6887
+ if (!theEl) {
6888
6888
  return;
6889
6889
  }
6890
6890
  theEl.selectedValue = null;
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": "202307100729.0.0",
4
+ "version": "202307102042.0.0",
5
5
  "description": "Big Give Components",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.js",