@decidables/discountable-elements 0.3.0 → 0.3.1

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.
@@ -12613,8 +12613,10 @@
12613
12613
  }
12614
12614
  `];
12615
12615
  }
12616
- render() {
12616
+ willUpdate() {
12617
12617
  this.alignState();
12618
+ }
12619
+ render() {
12618
12620
  let as;
12619
12621
  let ds;
12620
12622
  let al;
@@ -13033,12 +13035,12 @@
13033
13035
  render() {
13034
13036
  /* eslint-disable-line class-methods-use-this */
13035
13037
  return x$2``;
13036
- // ${DiscountableElement.svgFilters}
13037
- // `;
13038
+ }
13039
+ willUpdate() {
13040
+ this.alignState();
13038
13041
  }
13039
13042
  update(changedProperties) {
13040
13043
  super.update(changedProperties);
13041
- this.alignState();
13042
13044
 
13043
13045
  // Bail out if we can't get the width/height
13044
13046
  if (Number.isNaN(this.width) || Number.isNaN(this.height) || Number.isNaN(this.rem)) {
@@ -22812,8 +22814,10 @@ ${extraStyle}`)).style("margin-left", marginLeft ? `${+marginLeft}px` : null).st
22812
22814
  this.alignState();
22813
22815
  this.sendEvent();
22814
22816
  }
22815
- render() {
22817
+ willUpdate() {
22816
22818
  this.alignState();
22819
+ }
22820
+ render() {
22817
22821
  let a;
22818
22822
  let d;
22819
22823
  let k;
@@ -22936,8 +22940,8 @@ ${extraStyle}`)).style("margin-left", marginLeft ? `${+marginLeft}px` : null).st
22936
22940
  <htd-example-human>
22937
22941
  */
22938
22942
  class HTDExampleHuman extends HTDExample {
22939
- firstUpdated( /* changedProperties */
22940
- ) {
22943
+ connectedCallback() {
22944
+ super.connectedCallback();
22941
22945
  this.discountableControl = this.querySelector('discountable-control');
22942
22946
  this.itcTask = this.querySelector('itc-task');
22943
22947
  this.discountableResponse = this.querySelector('discountable-response');
@@ -23089,8 +23093,8 @@ ${extraStyle}`)).style("margin-left", marginLeft ? `${+marginLeft}px` : null).st
23089
23093
  this.htdCurves = null;
23090
23094
  this.itcChoice = null;
23091
23095
  }
23092
- firstUpdated( /* changedProperties */
23093
- ) {
23096
+ connectedCallback() {
23097
+ super.connectedCallback();
23094
23098
  this.htdCalculation = this.querySelector('htd-calculation');
23095
23099
  this.htdCurves = this.querySelector('htd-curves');
23096
23100
  this.itcChoice = this.querySelector('itc-choice');
@@ -23172,8 +23176,8 @@ ${extraStyle}`)).style("margin-left", marginLeft ? `${+marginLeft}px` : null).st
23172
23176
  this.htdCurves = null;
23173
23177
  this.itcTask = null;
23174
23178
  }
23175
- firstUpdated( /* changedProperties */
23176
- ) {
23179
+ connectedCallback() {
23180
+ super.connectedCallback();
23177
23181
  this.discountableControl = this.querySelector('discountable-control');
23178
23182
  this.discountableResponse = this.querySelector('discountable-response');
23179
23183
  this.htdCalculation = this.querySelector('htd-calculation');