@biggive/components 1.0.99 → 1.0.100

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.
@@ -32,23 +32,22 @@ export declare class BiggiveCampaignCardFilterGrid {
32
32
  /**
33
33
  * JSON array of category key/values
34
34
  */
35
- categoryOptions: string;
35
+ categoryOptions: string[];
36
36
  /**
37
37
  * JSON array of beneficary key/values
38
38
  */
39
- beneficaryOptions: string;
39
+ beneficaryOptions: string[];
40
40
  /**
41
41
  * JSON array of location key/values
42
42
  */
43
- locationOptions: string;
43
+ locationOptions: string[];
44
44
  /**
45
45
  * JSON array of funding key/values
46
46
  */
47
- fundingOptions: string;
47
+ fundingOptions: string[];
48
48
  private getSearchAndFilterObject;
49
49
  doOptionSelectCompletedHandler(): void;
50
50
  private handleApplyFilterButtonClick;
51
- private handleSearchTextChanged;
52
51
  private handleSearchButtonPressed;
53
52
  private handleEnterPressed;
54
53
  private handleFilterButtonClick;
@@ -348,7 +348,7 @@ export namespace Components {
348
348
  /**
349
349
  * JSON array of beneficary key/values
350
350
  */
351
- "beneficaryOptions": string;
351
+ "beneficaryOptions": string[];
352
352
  /**
353
353
  * Defines the text on the search button
354
354
  */
@@ -356,7 +356,7 @@ export namespace Components {
356
356
  /**
357
357
  * JSON array of category key/values
358
358
  */
359
- "categoryOptions": string;
359
+ "categoryOptions": string[];
360
360
  "filterBeneficary": string;
361
361
  "filterCategory": string;
362
362
  "filterFunding": string;
@@ -364,7 +364,7 @@ export namespace Components {
364
364
  /**
365
365
  * JSON array of funding key/values
366
366
  */
367
- "fundingOptions": string;
367
+ "fundingOptions": string[];
368
368
  /**
369
369
  * Intro
370
370
  */
@@ -372,7 +372,7 @@ export namespace Components {
372
372
  /**
373
373
  * JSON array of location key/values
374
374
  */
375
- "locationOptions": string;
375
+ "locationOptions": string[];
376
376
  /**
377
377
  * Defines the text displayed as the placeholder in the input field before the user types anything
378
378
  */
@@ -1600,7 +1600,7 @@ declare namespace LocalJSX {
1600
1600
  /**
1601
1601
  * JSON array of beneficary key/values
1602
1602
  */
1603
- "beneficaryOptions"?: string;
1603
+ "beneficaryOptions"?: string[];
1604
1604
  /**
1605
1605
  * Defines the text on the search button
1606
1606
  */
@@ -1608,7 +1608,7 @@ declare namespace LocalJSX {
1608
1608
  /**
1609
1609
  * JSON array of category key/values
1610
1610
  */
1611
- "categoryOptions"?: string;
1611
+ "categoryOptions"?: string[];
1612
1612
  "filterBeneficary"?: string;
1613
1613
  "filterCategory"?: string;
1614
1614
  "filterFunding"?: string;
@@ -1616,7 +1616,7 @@ declare namespace LocalJSX {
1616
1616
  /**
1617
1617
  * JSON array of funding key/values
1618
1618
  */
1619
- "fundingOptions"?: string;
1619
+ "fundingOptions"?: string[];
1620
1620
  /**
1621
1621
  * Intro
1622
1622
  */
@@ -1624,7 +1624,7 @@ declare namespace LocalJSX {
1624
1624
  /**
1625
1625
  * JSON array of location key/values
1626
1626
  */
1627
- "locationOptions"?: string;
1627
+ "locationOptions"?: string[];
1628
1628
  /**
1629
1629
  * This event `doChange` event is emitted and propogates to the parent component which handles it
1630
1630
  */
package/hydrate/index.js CHANGED
@@ -6572,10 +6572,6 @@ class BiggiveCampaignCardFilterGrid {
6572
6572
  handleApplyFilterButtonClick() {
6573
6573
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
6574
6574
  }
6575
- handleSearchTextChanged(event) {
6576
- this.searchText = event.target.value;
6577
- this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
6578
- }
6579
6575
  handleSearchButtonPressed() {
6580
6576
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
6581
6577
  }
@@ -6587,7 +6583,7 @@ class BiggiveCampaignCardFilterGrid {
6587
6583
  handleFilterButtonClick() {
6588
6584
  this.el.shadowRoot.getElementById('filter-popup').open();
6589
6585
  if (this.categoryOptions != null) {
6590
- var options = JSON.parse(this.categoryOptions);
6586
+ var options = this.categoryOptions;
6591
6587
  this.el.shadowRoot.getElementById('categories').innerHTML = '';
6592
6588
  for (var prop in options) {
6593
6589
  this.el.shadowRoot.getElementById('categories').innerHTML +=
@@ -6595,7 +6591,7 @@ class BiggiveCampaignCardFilterGrid {
6595
6591
  }
6596
6592
  }
6597
6593
  if (this.beneficaryOptions != null) {
6598
- var options = JSON.parse(this.beneficaryOptions);
6594
+ var options = this.beneficaryOptions;
6599
6595
  this.el.shadowRoot.getElementById('beneficaries').innerHTML = '';
6600
6596
  for (var prop in options) {
6601
6597
  this.el.shadowRoot.getElementById('beneficaries').innerHTML +=
@@ -6603,7 +6599,7 @@ class BiggiveCampaignCardFilterGrid {
6603
6599
  }
6604
6600
  }
6605
6601
  if (this.locationOptions != null) {
6606
- var options = JSON.parse(this.locationOptions);
6602
+ var options = this.locationOptions;
6607
6603
  this.el.shadowRoot.getElementById('locations').innerHTML = '';
6608
6604
  for (var prop in options) {
6609
6605
  this.el.shadowRoot.getElementById('locations').innerHTML +=
@@ -6611,7 +6607,7 @@ class BiggiveCampaignCardFilterGrid {
6611
6607
  }
6612
6608
  }
6613
6609
  if (this.fundingOptions != null) {
6614
- var options = JSON.parse(this.fundingOptions);
6610
+ var options = this.fundingOptions;
6615
6611
  this.el.shadowRoot.getElementById('funding').innerHTML = '';
6616
6612
  for (var prop in options) {
6617
6613
  this.el.shadowRoot.getElementById('funding').innerHTML +=
@@ -6620,7 +6616,7 @@ class BiggiveCampaignCardFilterGrid {
6620
6616
  }
6621
6617
  }
6622
6618
  render() {
6623
- return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, hAsync("div", { class: "search-wrap" }, hAsync("h4", null, this.intro), hAsync("div", { class: "field-wrap" }, hAsync("div", { class: "input-wrap" }, hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, hAsync("path", { d: faMagnifyingGlass.icon[4].toString() })), hAsync("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: event => this.handleSearchTextChanged(event), onKeyDown: event => this.handleEnterPressed(event) })), hAsync("button", { onClick: () => this.handleSearchButtonPressed(), class: "button button-primary" }, this.buttonText))), hAsync("div", { class: "sort-filter-wrap" }, hAsync("div", { class: "sort-wrap" }, hAsync("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by" }, hAsync("biggive-form-field-select-option", { value: "most-raised", label: "Most raised" }), hAsync("biggive-form-field-select-option", { value: "matched-funds-remaining", label: "Match funds remaining" }))), hAsync("div", { class: "filter-wrap" }, hAsync("div", { class: "button button-primary filter", onClick: () => this.handleFilterButtonClick() }, hAsync("span", { class: "filter-icon" }, hAsync("svg", { width: "16", height: "15", viewBox: "0 0 16 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { d: "M0.12042 0.76576C0.327224 0.298 0.766961 0 1.25014 0H14.7517C15.2361 0 15.6736 0.298 15.8799 0.76576C16.0893 1.23352 16.0237 1.787 15.6924 2.18745L10.0011 9.67328V13.929C10.0011 14.3341 9.7886 14.7058 9.44793 14.8866C9.1104 15.0674 8.7041 15.0306 8.40094 14.7862L6.40072 13.179C6.14756 12.9781 6.00067 12.66 6.00067 12.3218V9.67328L0.282594 2.18745C-0.023284 1.787 -0.0864161 1.23352 0.120451 0.76576H0.12042Z", fill: "white" }))), "Filters"), hAsync("biggive-popup", { id: "filter-popup" }, hAsync("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), hAsync("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }), hAsync("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }), hAsync("biggive-form-field-select", { placeholder: "Location", id: "locations", "space-below": "2" }), hAsync("biggive-form-field-select", { placeholder: "Funding", id: "funding", "space-below": "2" }), hAsync("div", { class: "align-right" }, hAsync("a", { href: "#", class: "button button-primary", onClick: () => this.handleApplyFilterButtonClick() }, "Apply filters"))))), hAsync("div", { class: "campaign-grid" }, hAsync("slot", { name: "campaign-grid" })))));
6619
+ return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, hAsync("div", { class: "search-wrap" }, hAsync("h4", null, this.intro), hAsync("div", { class: "field-wrap" }, hAsync("div", { class: "input-wrap" }, hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, hAsync("path", { d: faMagnifyingGlass.icon[4].toString() })), hAsync("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onKeyDown: event => this.handleEnterPressed(event) })), hAsync("button", { onClick: () => this.handleSearchButtonPressed(), class: "button button-primary" }, this.buttonText))), hAsync("div", { class: "sort-filter-wrap" }, hAsync("div", { class: "sort-wrap" }, hAsync("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by" }, hAsync("biggive-form-field-select-option", { value: "most-raised", label: "Most raised" }), hAsync("biggive-form-field-select-option", { value: "matched-funds-remaining", label: "Match funds remaining" }))), hAsync("div", { class: "filter-wrap" }, hAsync("div", { class: "button button-primary filter", onClick: () => this.handleFilterButtonClick() }, hAsync("span", { class: "filter-icon" }, hAsync("svg", { width: "16", height: "15", viewBox: "0 0 16 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { d: "M0.12042 0.76576C0.327224 0.298 0.766961 0 1.25014 0H14.7517C15.2361 0 15.6736 0.298 15.8799 0.76576C16.0893 1.23352 16.0237 1.787 15.6924 2.18745L10.0011 9.67328V13.929C10.0011 14.3341 9.7886 14.7058 9.44793 14.8866C9.1104 15.0674 8.7041 15.0306 8.40094 14.7862L6.40072 13.179C6.14756 12.9781 6.00067 12.66 6.00067 12.3218V9.67328L0.282594 2.18745C-0.023284 1.787 -0.0864161 1.23352 0.120451 0.76576H0.12042Z", fill: "white" }))), "Filters"), hAsync("biggive-popup", { id: "filter-popup" }, hAsync("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), hAsync("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }), hAsync("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }), hAsync("biggive-form-field-select", { placeholder: "Location", id: "locations", "space-below": "2" }), hAsync("biggive-form-field-select", { placeholder: "Funding", id: "funding", "space-below": "2" }), hAsync("div", { class: "align-right" }, hAsync("a", { href: "#", class: "button button-primary", onClick: () => this.handleApplyFilterButtonClick() }, "Apply filters"))))), hAsync("div", { class: "campaign-grid" }, hAsync("slot", { name: "campaign-grid" })))));
6624
6620
  }
6625
6621
  get el() { return getElement(this); }
6626
6622
  static get style() { return biggiveCampaignCardFilterGridCss; }
@@ -6638,10 +6634,10 @@ class BiggiveCampaignCardFilterGrid {
6638
6634
  "intro": [1],
6639
6635
  "placeholderText": [1, "placeholder-text"],
6640
6636
  "buttonText": [1, "button-text"],
6641
- "categoryOptions": [1, "category-options"],
6642
- "beneficaryOptions": [1, "beneficary-options"],
6643
- "locationOptions": [1, "location-options"],
6644
- "fundingOptions": [1, "funding-options"]
6637
+ "categoryOptions": [16],
6638
+ "beneficaryOptions": [16],
6639
+ "locationOptions": [16],
6640
+ "fundingOptions": [16]
6645
6641
  },
6646
6642
  "$listeners$": [[0, "doSelectChange", "doOptionSelectCompletedHandler"]],
6647
6643
  "$lazyBundleId$": "-",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biggive/components",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "description": "Big Give Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",